babylon.nodeEditor.max.js 3.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120
  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_Misc_dataStorage__) {
  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:/Repos/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. /* WEBPACK VAR INJECTION */(function(global, setImmediate) {/* 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. /*!
  118. * Font Awesome Free 5.15.0 by @fontawesome - https://fontawesome.com
  119. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  120. */
  121. function _typeof(obj) {
  122. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  123. _typeof = function (obj) {
  124. return typeof obj;
  125. };
  126. } else {
  127. _typeof = function (obj) {
  128. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  129. };
  130. }
  131. return _typeof(obj);
  132. }
  133. function _classCallCheck(instance, Constructor) {
  134. if (!(instance instanceof Constructor)) {
  135. throw new TypeError("Cannot call a class as a function");
  136. }
  137. }
  138. function _defineProperties(target, props) {
  139. for (var i = 0; i < props.length; i++) {
  140. var descriptor = props[i];
  141. descriptor.enumerable = descriptor.enumerable || false;
  142. descriptor.configurable = true;
  143. if ("value" in descriptor) descriptor.writable = true;
  144. Object.defineProperty(target, descriptor.key, descriptor);
  145. }
  146. }
  147. function _createClass(Constructor, protoProps, staticProps) {
  148. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  149. if (staticProps) _defineProperties(Constructor, staticProps);
  150. return Constructor;
  151. }
  152. function _defineProperty(obj, key, value) {
  153. if (key in obj) {
  154. Object.defineProperty(obj, key, {
  155. value: value,
  156. enumerable: true,
  157. configurable: true,
  158. writable: true
  159. });
  160. } else {
  161. obj[key] = value;
  162. }
  163. return obj;
  164. }
  165. function _objectSpread(target) {
  166. for (var i = 1; i < arguments.length; i++) {
  167. var source = arguments[i] != null ? arguments[i] : {};
  168. var ownKeys = Object.keys(source);
  169. if (typeof Object.getOwnPropertySymbols === 'function') {
  170. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  171. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  172. }));
  173. }
  174. ownKeys.forEach(function (key) {
  175. _defineProperty(target, key, source[key]);
  176. });
  177. }
  178. return target;
  179. }
  180. function _slicedToArray(arr, i) {
  181. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  182. }
  183. function _toConsumableArray(arr) {
  184. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  185. }
  186. function _arrayWithoutHoles(arr) {
  187. if (Array.isArray(arr)) {
  188. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  189. return arr2;
  190. }
  191. }
  192. function _arrayWithHoles(arr) {
  193. if (Array.isArray(arr)) return arr;
  194. }
  195. function _iterableToArray(iter) {
  196. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  197. }
  198. function _iterableToArrayLimit(arr, i) {
  199. var _arr = [];
  200. var _n = true;
  201. var _d = false;
  202. var _e = undefined;
  203. try {
  204. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  205. _arr.push(_s.value);
  206. if (i && _arr.length === i) break;
  207. }
  208. } catch (err) {
  209. _d = true;
  210. _e = err;
  211. } finally {
  212. try {
  213. if (!_n && _i["return"] != null) _i["return"]();
  214. } finally {
  215. if (_d) throw _e;
  216. }
  217. }
  218. return _arr;
  219. }
  220. function _nonIterableSpread() {
  221. throw new TypeError("Invalid attempt to spread non-iterable instance");
  222. }
  223. function _nonIterableRest() {
  224. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  225. }
  226. var noop = function noop() {};
  227. var _WINDOW = {};
  228. var _DOCUMENT = {};
  229. var _MUTATION_OBSERVER = null;
  230. var _PERFORMANCE = {
  231. mark: noop,
  232. measure: noop
  233. };
  234. try {
  235. if (typeof window !== 'undefined') _WINDOW = window;
  236. if (typeof document !== 'undefined') _DOCUMENT = document;
  237. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  238. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  239. } catch (e) {}
  240. var _ref = _WINDOW.navigator || {},
  241. _ref$userAgent = _ref.userAgent,
  242. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  243. var WINDOW = _WINDOW;
  244. var DOCUMENT = _DOCUMENT;
  245. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  246. var PERFORMANCE = _PERFORMANCE;
  247. var IS_BROWSER = !!WINDOW.document;
  248. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  249. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  250. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  251. var UNITS_IN_GRID = 16;
  252. var DEFAULT_FAMILY_PREFIX = 'fa';
  253. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  254. var DATA_FA_I2SVG = 'data-fa-i2svg';
  255. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  256. var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
  257. var DATA_PREFIX = 'data-prefix';
  258. var DATA_ICON = 'data-icon';
  259. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  260. var MUTATION_APPROACH_ASYNC = 'async';
  261. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  262. var PRODUCTION = function () {
  263. try {
  264. return "development" === 'production';
  265. } catch (e) {
  266. return false;
  267. }
  268. }();
  269. var PREFIX_TO_STYLE = {
  270. 'fas': 'solid',
  271. 'far': 'regular',
  272. 'fal': 'light',
  273. 'fad': 'duotone',
  274. 'fab': 'brands',
  275. 'fak': 'kit',
  276. 'fa': 'solid'
  277. };
  278. var STYLE_TO_PREFIX = {
  279. 'solid': 'fas',
  280. 'regular': 'far',
  281. 'light': 'fal',
  282. 'duotone': 'fad',
  283. 'brands': 'fab',
  284. 'kit': 'fak'
  285. };
  286. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  287. var FONT_FAMILY_PATTERN = /Font Awesome ([5 ]*)(Solid|Regular|Light|Duotone|Brands|Free|Pro|Kit).*/; // TODO: do we need to handle font-weight for kit SVG pseudo-elements?
  288. var FONT_WEIGHT_TO_PREFIX = {
  289. '900': 'fas',
  290. '400': 'far',
  291. 'normal': 'far',
  292. '300': 'fal'
  293. };
  294. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  295. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  296. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  297. var DUOTONE_CLASSES = {
  298. GROUP: 'group',
  299. SWAP_OPACITY: 'swap-opacity',
  300. PRIMARY: 'primary',
  301. SECONDARY: 'secondary'
  302. };
  303. 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', 'flip-both', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY].concat(oneToTen.map(function (n) {
  304. return "".concat(n, "x");
  305. })).concat(oneToTwenty.map(function (n) {
  306. return "w-".concat(n);
  307. }));
  308. var initial = WINDOW.FontAwesomeConfig || {};
  309. function getAttrConfig(attr) {
  310. var element = DOCUMENT.querySelector('script[' + attr + ']');
  311. if (element) {
  312. return element.getAttribute(attr);
  313. }
  314. }
  315. function coerce(val) {
  316. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  317. // We'll assume that this is an indication that it should be toggled to true
  318. // For example <script data-search-pseudo-elements src="..."></script>
  319. if (val === '') return true;
  320. if (val === 'false') return false;
  321. if (val === 'true') return true;
  322. return val;
  323. }
  324. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  325. 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-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  326. attrs.forEach(function (_ref) {
  327. var _ref2 = _slicedToArray(_ref, 2),
  328. attr = _ref2[0],
  329. key = _ref2[1];
  330. var val = coerce(getAttrConfig(attr));
  331. if (val !== undefined && val !== null) {
  332. initial[key] = val;
  333. }
  334. });
  335. }
  336. var _default = {
  337. familyPrefix: DEFAULT_FAMILY_PREFIX,
  338. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  339. autoReplaceSvg: true,
  340. autoAddCss: true,
  341. autoA11y: true,
  342. searchPseudoElements: false,
  343. observeMutations: true,
  344. mutateApproach: 'async',
  345. keepOriginalSource: true,
  346. measurePerformance: false,
  347. showMissingIcons: true
  348. };
  349. var _config = _objectSpread({}, _default, initial);
  350. if (!_config.autoReplaceSvg) _config.observeMutations = false;
  351. var config = _objectSpread({}, _config);
  352. WINDOW.FontAwesomeConfig = config;
  353. var w = WINDOW || {};
  354. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  355. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  356. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  357. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  358. var namespace = w[NAMESPACE_IDENTIFIER];
  359. var functions = [];
  360. var listener = function listener() {
  361. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  362. loaded = 1;
  363. functions.map(function (fn) {
  364. return fn();
  365. });
  366. };
  367. var loaded = false;
  368. if (IS_DOM) {
  369. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  370. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  371. }
  372. function domready (fn) {
  373. if (!IS_DOM) return;
  374. loaded ? setTimeout(fn, 0) : functions.push(fn);
  375. }
  376. var PENDING = 'pending';
  377. var SETTLED = 'settled';
  378. var FULFILLED = 'fulfilled';
  379. var REJECTED = 'rejected';
  380. var NOOP = function NOOP() {};
  381. var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
  382. var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
  383. var asyncQueue = [];
  384. var asyncTimer;
  385. function asyncFlush() {
  386. // run promise callbacks
  387. for (var i = 0; i < asyncQueue.length; i++) {
  388. asyncQueue[i][0](asyncQueue[i][1]);
  389. } // reset async asyncQueue
  390. asyncQueue = [];
  391. asyncTimer = false;
  392. }
  393. function asyncCall(callback, arg) {
  394. asyncQueue.push([callback, arg]);
  395. if (!asyncTimer) {
  396. asyncTimer = true;
  397. asyncSetTimer(asyncFlush, 0);
  398. }
  399. }
  400. function invokeResolver(resolver, promise) {
  401. function resolvePromise(value) {
  402. resolve(promise, value);
  403. }
  404. function rejectPromise(reason) {
  405. reject(promise, reason);
  406. }
  407. try {
  408. resolver(resolvePromise, rejectPromise);
  409. } catch (e) {
  410. rejectPromise(e);
  411. }
  412. }
  413. function invokeCallback(subscriber) {
  414. var owner = subscriber.owner;
  415. var settled = owner._state;
  416. var value = owner._data;
  417. var callback = subscriber[settled];
  418. var promise = subscriber.then;
  419. if (typeof callback === 'function') {
  420. settled = FULFILLED;
  421. try {
  422. value = callback(value);
  423. } catch (e) {
  424. reject(promise, e);
  425. }
  426. }
  427. if (!handleThenable(promise, value)) {
  428. if (settled === FULFILLED) {
  429. resolve(promise, value);
  430. }
  431. if (settled === REJECTED) {
  432. reject(promise, value);
  433. }
  434. }
  435. }
  436. function handleThenable(promise, value) {
  437. var resolved;
  438. try {
  439. if (promise === value) {
  440. throw new TypeError('A promises callback cannot return that same promise.');
  441. }
  442. if (value && (typeof value === 'function' || _typeof(value) === 'object')) {
  443. // then should be retrieved only once
  444. var then = value.then;
  445. if (typeof then === 'function') {
  446. then.call(value, function (val) {
  447. if (!resolved) {
  448. resolved = true;
  449. if (value === val) {
  450. fulfill(promise, val);
  451. } else {
  452. resolve(promise, val);
  453. }
  454. }
  455. }, function (reason) {
  456. if (!resolved) {
  457. resolved = true;
  458. reject(promise, reason);
  459. }
  460. });
  461. return true;
  462. }
  463. }
  464. } catch (e) {
  465. if (!resolved) {
  466. reject(promise, e);
  467. }
  468. return true;
  469. }
  470. return false;
  471. }
  472. function resolve(promise, value) {
  473. if (promise === value || !handleThenable(promise, value)) {
  474. fulfill(promise, value);
  475. }
  476. }
  477. function fulfill(promise, value) {
  478. if (promise._state === PENDING) {
  479. promise._state = SETTLED;
  480. promise._data = value;
  481. asyncCall(publishFulfillment, promise);
  482. }
  483. }
  484. function reject(promise, reason) {
  485. if (promise._state === PENDING) {
  486. promise._state = SETTLED;
  487. promise._data = reason;
  488. asyncCall(publishRejection, promise);
  489. }
  490. }
  491. function publish(promise) {
  492. promise._then = promise._then.forEach(invokeCallback);
  493. }
  494. function publishFulfillment(promise) {
  495. promise._state = FULFILLED;
  496. publish(promise);
  497. }
  498. function publishRejection(promise) {
  499. promise._state = REJECTED;
  500. publish(promise);
  501. if (!promise._handled && isNode) {
  502. global.process.emit('unhandledRejection', promise._data, promise);
  503. }
  504. }
  505. function notifyRejectionHandled(promise) {
  506. global.process.emit('rejectionHandled', promise);
  507. }
  508. /**
  509. * @class
  510. */
  511. function P(resolver) {
  512. if (typeof resolver !== 'function') {
  513. throw new TypeError('Promise resolver ' + resolver + ' is not a function');
  514. }
  515. if (this instanceof P === false) {
  516. throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
  517. }
  518. this._then = [];
  519. invokeResolver(resolver, this);
  520. }
  521. P.prototype = {
  522. constructor: P,
  523. _state: PENDING,
  524. _then: null,
  525. _data: undefined,
  526. _handled: false,
  527. then: function then(onFulfillment, onRejection) {
  528. var subscriber = {
  529. owner: this,
  530. then: new this.constructor(NOOP),
  531. fulfilled: onFulfillment,
  532. rejected: onRejection
  533. };
  534. if ((onRejection || onFulfillment) && !this._handled) {
  535. this._handled = true;
  536. if (this._state === REJECTED && isNode) {
  537. asyncCall(notifyRejectionHandled, this);
  538. }
  539. }
  540. if (this._state === FULFILLED || this._state === REJECTED) {
  541. // already resolved, call callback async
  542. asyncCall(invokeCallback, subscriber);
  543. } else {
  544. // subscribe
  545. this._then.push(subscriber);
  546. }
  547. return subscriber.then;
  548. },
  549. catch: function _catch(onRejection) {
  550. return this.then(null, onRejection);
  551. }
  552. };
  553. P.all = function (promises) {
  554. if (!Array.isArray(promises)) {
  555. throw new TypeError('You must pass an array to Promise.all().');
  556. }
  557. return new P(function (resolve, reject) {
  558. var results = [];
  559. var remaining = 0;
  560. function resolver(index) {
  561. remaining++;
  562. return function (value) {
  563. results[index] = value;
  564. if (! --remaining) {
  565. resolve(results);
  566. }
  567. };
  568. }
  569. for (var i = 0, promise; i < promises.length; i++) {
  570. promise = promises[i];
  571. if (promise && typeof promise.then === 'function') {
  572. promise.then(resolver(i), reject);
  573. } else {
  574. results[i] = promise;
  575. }
  576. }
  577. if (!remaining) {
  578. resolve(results);
  579. }
  580. });
  581. };
  582. P.race = function (promises) {
  583. if (!Array.isArray(promises)) {
  584. throw new TypeError('You must pass an array to Promise.race().');
  585. }
  586. return new P(function (resolve, reject) {
  587. for (var i = 0, promise; i < promises.length; i++) {
  588. promise = promises[i];
  589. if (promise && typeof promise.then === 'function') {
  590. promise.then(resolve, reject);
  591. } else {
  592. resolve(promise);
  593. }
  594. }
  595. });
  596. };
  597. P.resolve = function (value) {
  598. if (value && _typeof(value) === 'object' && value.constructor === P) {
  599. return value;
  600. }
  601. return new P(function (resolve) {
  602. resolve(value);
  603. });
  604. };
  605. P.reject = function (reason) {
  606. return new P(function (resolve, reject) {
  607. reject(reason);
  608. });
  609. };
  610. var picked = typeof Promise === 'function' ? Promise : P;
  611. var d = UNITS_IN_GRID;
  612. var meaninglessTransform = {
  613. size: 16,
  614. x: 0,
  615. y: 0,
  616. rotate: 0,
  617. flipX: false,
  618. flipY: false
  619. };
  620. function isReserved(name) {
  621. return ~RESERVED_CLASSES.indexOf(name);
  622. }
  623. function insertCss(css) {
  624. if (!css || !IS_DOM) {
  625. return;
  626. }
  627. var style = DOCUMENT.createElement('style');
  628. style.setAttribute('type', 'text/css');
  629. style.innerHTML = css;
  630. var headChildren = DOCUMENT.head.childNodes;
  631. var beforeChild = null;
  632. for (var i = headChildren.length - 1; i > -1; i--) {
  633. var child = headChildren[i];
  634. var tagName = (child.tagName || '').toUpperCase();
  635. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  636. beforeChild = child;
  637. }
  638. }
  639. DOCUMENT.head.insertBefore(style, beforeChild);
  640. return css;
  641. }
  642. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  643. function nextUniqueId() {
  644. var size = 12;
  645. var id = '';
  646. while (size-- > 0) {
  647. id += idPool[Math.random() * 62 | 0];
  648. }
  649. return id;
  650. }
  651. function toArray(obj) {
  652. var array = [];
  653. for (var i = (obj || []).length >>> 0; i--;) {
  654. array[i] = obj[i];
  655. }
  656. return array;
  657. }
  658. function classArray(node) {
  659. if (node.classList) {
  660. return toArray(node.classList);
  661. } else {
  662. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  663. return i;
  664. });
  665. }
  666. }
  667. function getIconName(familyPrefix, cls) {
  668. var parts = cls.split('-');
  669. var prefix = parts[0];
  670. var iconName = parts.slice(1).join('-');
  671. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  672. return iconName;
  673. } else {
  674. return null;
  675. }
  676. }
  677. function htmlEscape(str) {
  678. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  679. }
  680. function joinAttributes(attributes) {
  681. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  682. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  683. }, '').trim();
  684. }
  685. function joinStyles(styles) {
  686. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  687. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  688. }, '');
  689. }
  690. function transformIsMeaningful(transform) {
  691. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  692. }
  693. function transformForSvg(_ref) {
  694. var transform = _ref.transform,
  695. containerWidth = _ref.containerWidth,
  696. iconWidth = _ref.iconWidth;
  697. var outer = {
  698. transform: "translate(".concat(containerWidth / 2, " 256)")
  699. };
  700. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  701. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  702. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  703. var inner = {
  704. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  705. };
  706. var path = {
  707. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  708. };
  709. return {
  710. outer: outer,
  711. inner: inner,
  712. path: path
  713. };
  714. }
  715. function transformForCss(_ref2) {
  716. var transform = _ref2.transform,
  717. _ref2$width = _ref2.width,
  718. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  719. _ref2$height = _ref2.height,
  720. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  721. _ref2$startCentered = _ref2.startCentered,
  722. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  723. var val = '';
  724. if (startCentered && IS_IE) {
  725. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  726. } else if (startCentered) {
  727. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  728. } else {
  729. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  730. }
  731. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  732. val += "rotate(".concat(transform.rotate, "deg) ");
  733. return val;
  734. }
  735. var ALL_SPACE = {
  736. x: 0,
  737. y: 0,
  738. width: '100%',
  739. height: '100%'
  740. };
  741. function fillBlack(abstract) {
  742. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  743. if (abstract.attributes && (abstract.attributes.fill || force)) {
  744. abstract.attributes.fill = 'black';
  745. }
  746. return abstract;
  747. }
  748. function deGroup(abstract) {
  749. if (abstract.tag === 'g') {
  750. return abstract.children;
  751. } else {
  752. return [abstract];
  753. }
  754. }
  755. function makeIconMasking (_ref) {
  756. var children = _ref.children,
  757. attributes = _ref.attributes,
  758. main = _ref.main,
  759. mask = _ref.mask,
  760. explicitMaskId = _ref.maskId,
  761. transform = _ref.transform;
  762. var mainWidth = main.width,
  763. mainPath = main.icon;
  764. var maskWidth = mask.width,
  765. maskPath = mask.icon;
  766. var trans = transformForSvg({
  767. transform: transform,
  768. containerWidth: maskWidth,
  769. iconWidth: mainWidth
  770. });
  771. var maskRect = {
  772. tag: 'rect',
  773. attributes: _objectSpread({}, ALL_SPACE, {
  774. fill: 'white'
  775. })
  776. };
  777. var maskInnerGroupChildrenMixin = mainPath.children ? {
  778. children: mainPath.children.map(fillBlack)
  779. } : {};
  780. var maskInnerGroup = {
  781. tag: 'g',
  782. attributes: _objectSpread({}, trans.inner),
  783. children: [fillBlack(_objectSpread({
  784. tag: mainPath.tag,
  785. attributes: _objectSpread({}, mainPath.attributes, trans.path)
  786. }, maskInnerGroupChildrenMixin))]
  787. };
  788. var maskOuterGroup = {
  789. tag: 'g',
  790. attributes: _objectSpread({}, trans.outer),
  791. children: [maskInnerGroup]
  792. };
  793. var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
  794. var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
  795. var maskTag = {
  796. tag: 'mask',
  797. attributes: _objectSpread({}, ALL_SPACE, {
  798. id: maskId,
  799. maskUnits: 'userSpaceOnUse',
  800. maskContentUnits: 'userSpaceOnUse'
  801. }),
  802. children: [maskRect, maskOuterGroup]
  803. };
  804. var defs = {
  805. tag: 'defs',
  806. children: [{
  807. tag: 'clipPath',
  808. attributes: {
  809. id: clipId
  810. },
  811. children: deGroup(maskPath)
  812. }, maskTag]
  813. };
  814. children.push(defs, {
  815. tag: 'rect',
  816. attributes: _objectSpread({
  817. fill: 'currentColor',
  818. 'clip-path': "url(#".concat(clipId, ")"),
  819. mask: "url(#".concat(maskId, ")")
  820. }, ALL_SPACE)
  821. });
  822. return {
  823. children: children,
  824. attributes: attributes
  825. };
  826. }
  827. function makeIconStandard (_ref) {
  828. var children = _ref.children,
  829. attributes = _ref.attributes,
  830. main = _ref.main,
  831. transform = _ref.transform,
  832. styles = _ref.styles;
  833. var styleString = joinStyles(styles);
  834. if (styleString.length > 0) {
  835. attributes['style'] = styleString;
  836. }
  837. if (transformIsMeaningful(transform)) {
  838. var trans = transformForSvg({
  839. transform: transform,
  840. containerWidth: main.width,
  841. iconWidth: main.width
  842. });
  843. children.push({
  844. tag: 'g',
  845. attributes: _objectSpread({}, trans.outer),
  846. children: [{
  847. tag: 'g',
  848. attributes: _objectSpread({}, trans.inner),
  849. children: [{
  850. tag: main.icon.tag,
  851. children: main.icon.children,
  852. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  853. }]
  854. }]
  855. });
  856. } else {
  857. children.push(main.icon);
  858. }
  859. return {
  860. children: children,
  861. attributes: attributes
  862. };
  863. }
  864. function asIcon (_ref) {
  865. var children = _ref.children,
  866. main = _ref.main,
  867. mask = _ref.mask,
  868. attributes = _ref.attributes,
  869. styles = _ref.styles,
  870. transform = _ref.transform;
  871. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  872. var width = main.width,
  873. height = main.height;
  874. var offset = {
  875. x: width / height / 2,
  876. y: 0.5
  877. };
  878. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  879. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  880. }));
  881. }
  882. return [{
  883. tag: 'svg',
  884. attributes: attributes,
  885. children: children
  886. }];
  887. }
  888. function asSymbol (_ref) {
  889. var prefix = _ref.prefix,
  890. iconName = _ref.iconName,
  891. children = _ref.children,
  892. attributes = _ref.attributes,
  893. symbol = _ref.symbol;
  894. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  895. return [{
  896. tag: 'svg',
  897. attributes: {
  898. style: 'display: none;'
  899. },
  900. children: [{
  901. tag: 'symbol',
  902. attributes: _objectSpread({}, attributes, {
  903. id: id
  904. }),
  905. children: children
  906. }]
  907. }];
  908. }
  909. function makeInlineSvgAbstract(params) {
  910. var _params$icons = params.icons,
  911. main = _params$icons.main,
  912. mask = _params$icons.mask,
  913. prefix = params.prefix,
  914. iconName = params.iconName,
  915. transform = params.transform,
  916. symbol = params.symbol,
  917. title = params.title,
  918. maskId = params.maskId,
  919. titleId = params.titleId,
  920. extra = params.extra,
  921. _params$watchable = params.watchable,
  922. watchable = _params$watchable === void 0 ? false : _params$watchable;
  923. var _ref = mask.found ? mask : main,
  924. width = _ref.width,
  925. height = _ref.height;
  926. var isUploadedIcon = prefix === 'fak';
  927. var widthClass = isUploadedIcon ? '' : "fa-w-".concat(Math.ceil(width / height * 16));
  928. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  929. return extra.classes.indexOf(c) === -1;
  930. }).filter(function (c) {
  931. return c !== '' || !!c;
  932. }).concat(extra.classes).join(' ');
  933. var content = {
  934. children: [],
  935. attributes: _objectSpread({}, extra.attributes, {
  936. 'data-prefix': prefix,
  937. 'data-icon': iconName,
  938. 'class': attrClass,
  939. 'role': extra.attributes.role || 'img',
  940. 'xmlns': 'http://www.w3.org/2000/svg',
  941. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  942. })
  943. };
  944. var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {
  945. width: "".concat(width / height * 16 * 0.0625, "em")
  946. } : {};
  947. if (watchable) {
  948. content.attributes[DATA_FA_I2SVG] = '';
  949. }
  950. if (title) content.children.push({
  951. tag: 'title',
  952. attributes: {
  953. id: content.attributes['aria-labelledby'] || "title-".concat(titleId || nextUniqueId())
  954. },
  955. children: [title]
  956. });
  957. var args = _objectSpread({}, content, {
  958. prefix: prefix,
  959. iconName: iconName,
  960. main: main,
  961. mask: mask,
  962. maskId: maskId,
  963. transform: transform,
  964. symbol: symbol,
  965. styles: _objectSpread({}, uploadedIconWidthStyle, extra.styles)
  966. });
  967. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  968. children = _ref2.children,
  969. attributes = _ref2.attributes;
  970. args.children = children;
  971. args.attributes = attributes;
  972. if (symbol) {
  973. return asSymbol(args);
  974. } else {
  975. return asIcon(args);
  976. }
  977. }
  978. function makeLayersTextAbstract(params) {
  979. var content = params.content,
  980. width = params.width,
  981. height = params.height,
  982. transform = params.transform,
  983. title = params.title,
  984. extra = params.extra,
  985. _params$watchable2 = params.watchable,
  986. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  987. var attributes = _objectSpread({}, extra.attributes, title ? {
  988. 'title': title
  989. } : {}, {
  990. 'class': extra.classes.join(' ')
  991. });
  992. if (watchable) {
  993. attributes[DATA_FA_I2SVG] = '';
  994. }
  995. var styles = _objectSpread({}, extra.styles);
  996. if (transformIsMeaningful(transform)) {
  997. styles['transform'] = transformForCss({
  998. transform: transform,
  999. startCentered: true,
  1000. width: width,
  1001. height: height
  1002. });
  1003. styles['-webkit-transform'] = styles['transform'];
  1004. }
  1005. var styleString = joinStyles(styles);
  1006. if (styleString.length > 0) {
  1007. attributes['style'] = styleString;
  1008. }
  1009. var val = [];
  1010. val.push({
  1011. tag: 'span',
  1012. attributes: attributes,
  1013. children: [content]
  1014. });
  1015. if (title) {
  1016. val.push({
  1017. tag: 'span',
  1018. attributes: {
  1019. class: 'sr-only'
  1020. },
  1021. children: [title]
  1022. });
  1023. }
  1024. return val;
  1025. }
  1026. function makeLayersCounterAbstract(params) {
  1027. var content = params.content,
  1028. title = params.title,
  1029. extra = params.extra;
  1030. var attributes = _objectSpread({}, extra.attributes, title ? {
  1031. 'title': title
  1032. } : {}, {
  1033. 'class': extra.classes.join(' ')
  1034. });
  1035. var styleString = joinStyles(extra.styles);
  1036. if (styleString.length > 0) {
  1037. attributes['style'] = styleString;
  1038. }
  1039. var val = [];
  1040. val.push({
  1041. tag: 'span',
  1042. attributes: attributes,
  1043. children: [content]
  1044. });
  1045. if (title) {
  1046. val.push({
  1047. tag: 'span',
  1048. attributes: {
  1049. class: 'sr-only'
  1050. },
  1051. children: [title]
  1052. });
  1053. }
  1054. return val;
  1055. }
  1056. var noop$1 = function noop() {};
  1057. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  1058. mark: noop$1,
  1059. measure: noop$1
  1060. };
  1061. var preamble = "FA \"5.15.0\"";
  1062. var begin = function begin(name) {
  1063. p.mark("".concat(preamble, " ").concat(name, " begins"));
  1064. return function () {
  1065. return end(name);
  1066. };
  1067. };
  1068. var end = function end(name) {
  1069. p.mark("".concat(preamble, " ").concat(name, " ends"));
  1070. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  1071. };
  1072. var perf = {
  1073. begin: begin,
  1074. end: end
  1075. };
  1076. /**
  1077. * Internal helper to bind a function known to have 4 arguments
  1078. * to a given context.
  1079. */
  1080. var bindInternal4 = function bindInternal4(func, thisContext) {
  1081. return function (a, b, c, d) {
  1082. return func.call(thisContext, a, b, c, d);
  1083. };
  1084. };
  1085. /**
  1086. * # Reduce
  1087. *
  1088. * A fast object `.reduce()` implementation.
  1089. *
  1090. * @param {Object} subject The object to reduce over.
  1091. * @param {Function} fn The reducer function.
  1092. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  1093. * @param {Object} thisContext The context for the reducer.
  1094. * @return {mixed} The final result.
  1095. */
  1096. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  1097. var keys = Object.keys(subject),
  1098. length = keys.length,
  1099. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  1100. i,
  1101. key,
  1102. result;
  1103. if (initialValue === undefined) {
  1104. i = 1;
  1105. result = subject[keys[0]];
  1106. } else {
  1107. i = 0;
  1108. result = initialValue;
  1109. }
  1110. for (; i < length; i++) {
  1111. key = keys[i];
  1112. result = iterator(result, subject[key], key, subject);
  1113. }
  1114. return result;
  1115. };
  1116. function toHex(unicode) {
  1117. var result = '';
  1118. for (var i = 0; i < unicode.length; i++) {
  1119. var hex = unicode.charCodeAt(i).toString(16);
  1120. result += ('000' + hex).slice(-4);
  1121. }
  1122. return result;
  1123. }
  1124. function codePointAt(string, index) {
  1125. /*! https://mths.be/codepointat v0.2.0 by @mathias */
  1126. var size = string.length;
  1127. var first = string.charCodeAt(index);
  1128. var second;
  1129. if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {
  1130. second = string.charCodeAt(index + 1);
  1131. if (second >= 0xDC00 && second <= 0xDFFF) {
  1132. return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
  1133. }
  1134. }
  1135. return first;
  1136. }
  1137. /**
  1138. * Used to check that the character is between the E000..F8FF private unicode
  1139. * range
  1140. */
  1141. function isPrivateUnicode(iconName) {
  1142. if (iconName.length !== 1) {
  1143. return false;
  1144. } else {
  1145. var cp = codePointAt(iconName, 0);
  1146. return cp >= 57344 && cp <= 63743;
  1147. }
  1148. }
  1149. function defineIcons(prefix, icons) {
  1150. var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1151. var _params$skipHooks = params.skipHooks,
  1152. skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
  1153. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1154. var icon = icons[iconName];
  1155. var expanded = !!icon.icon;
  1156. if (expanded) {
  1157. acc[icon.iconName] = icon.icon;
  1158. } else {
  1159. acc[iconName] = icon;
  1160. }
  1161. return acc;
  1162. }, {});
  1163. if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
  1164. namespace.hooks.addPack(prefix, normalized);
  1165. } else {
  1166. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1167. }
  1168. /**
  1169. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1170. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1171. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1172. * this as well.
  1173. */
  1174. if (prefix === 'fas') {
  1175. defineIcons('fa', icons);
  1176. }
  1177. }
  1178. var styles = namespace.styles,
  1179. shims = namespace.shims;
  1180. var _byUnicode = {};
  1181. var _byLigature = {};
  1182. var _byOldName = {};
  1183. var build = function build() {
  1184. var lookup = function lookup(reducer) {
  1185. return reduce(styles, function (o, style, prefix) {
  1186. o[prefix] = reduce(style, reducer, {});
  1187. return o;
  1188. }, {});
  1189. };
  1190. _byUnicode = lookup(function (acc, icon, iconName) {
  1191. if (icon[3]) {
  1192. acc[icon[3]] = iconName;
  1193. }
  1194. return acc;
  1195. });
  1196. _byLigature = lookup(function (acc, icon, iconName) {
  1197. var ligatures = icon[2];
  1198. acc[iconName] = iconName;
  1199. ligatures.forEach(function (ligature) {
  1200. acc[ligature] = iconName;
  1201. });
  1202. return acc;
  1203. });
  1204. var hasRegular = 'far' in styles;
  1205. _byOldName = reduce(shims, function (acc, shim) {
  1206. var oldName = shim[0];
  1207. var prefix = shim[1];
  1208. var iconName = shim[2];
  1209. if (prefix === 'far' && !hasRegular) {
  1210. prefix = 'fas';
  1211. }
  1212. acc[oldName] = {
  1213. prefix: prefix,
  1214. iconName: iconName
  1215. };
  1216. return acc;
  1217. }, {});
  1218. };
  1219. build();
  1220. function byUnicode(prefix, unicode) {
  1221. return (_byUnicode[prefix] || {})[unicode];
  1222. }
  1223. function byLigature(prefix, ligature) {
  1224. return (_byLigature[prefix] || {})[ligature];
  1225. }
  1226. function byOldName(name) {
  1227. return _byOldName[name] || {
  1228. prefix: null,
  1229. iconName: null
  1230. };
  1231. }
  1232. var styles$1 = namespace.styles;
  1233. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  1234. return {
  1235. prefix: null,
  1236. iconName: null,
  1237. rest: []
  1238. };
  1239. };
  1240. function getCanonicalIcon(values) {
  1241. return values.reduce(function (acc, cls) {
  1242. var iconName = getIconName(config.familyPrefix, cls);
  1243. if (styles$1[cls]) {
  1244. acc.prefix = cls;
  1245. } else if (config.autoFetchSvg && Object.keys(PREFIX_TO_STYLE).indexOf(cls) > -1) {
  1246. acc.prefix = cls;
  1247. } else if (iconName) {
  1248. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  1249. acc.iconName = shim.iconName || iconName;
  1250. acc.prefix = shim.prefix || acc.prefix;
  1251. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  1252. acc.rest.push(cls);
  1253. }
  1254. return acc;
  1255. }, emptyCanonicalIcon());
  1256. }
  1257. function iconFromMapping(mapping, prefix, iconName) {
  1258. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  1259. return {
  1260. prefix: prefix,
  1261. iconName: iconName,
  1262. icon: mapping[prefix][iconName]
  1263. };
  1264. }
  1265. }
  1266. function toHtml(abstractNodes) {
  1267. var tag = abstractNodes.tag,
  1268. _abstractNodes$attrib = abstractNodes.attributes,
  1269. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  1270. _abstractNodes$childr = abstractNodes.children,
  1271. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  1272. if (typeof abstractNodes === 'string') {
  1273. return htmlEscape(abstractNodes);
  1274. } else {
  1275. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  1276. }
  1277. }
  1278. var noop$2 = function noop() {};
  1279. function isWatched(node) {
  1280. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  1281. return typeof i2svg === 'string';
  1282. }
  1283. function getMutator() {
  1284. if (config.autoReplaceSvg === true) {
  1285. return mutators.replace;
  1286. }
  1287. var mutator = mutators[config.autoReplaceSvg];
  1288. return mutator || mutators.replace;
  1289. }
  1290. var mutators = {
  1291. replace: function replace(mutation) {
  1292. var node = mutation[0];
  1293. var abstract = mutation[1];
  1294. var newOuterHTML = abstract.map(function (a) {
  1295. return toHtml(a);
  1296. }).join('\n');
  1297. if (node.parentNode && node.outerHTML) {
  1298. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " Font Awesome fontawesome.com -->") : '');
  1299. } else if (node.parentNode) {
  1300. var newNode = document.createElement('span');
  1301. node.parentNode.replaceChild(newNode, node);
  1302. newNode.outerHTML = newOuterHTML;
  1303. }
  1304. },
  1305. nest: function nest(mutation) {
  1306. var node = mutation[0];
  1307. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  1308. // Short-circuit to the standard replacement
  1309. if (~classArray(node).indexOf(config.replacementClass)) {
  1310. return mutators.replace(mutation);
  1311. }
  1312. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  1313. delete abstract[0].attributes.style;
  1314. delete abstract[0].attributes.id;
  1315. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  1316. if (cls === config.replacementClass || cls.match(forSvg)) {
  1317. acc.toSvg.push(cls);
  1318. } else {
  1319. acc.toNode.push(cls);
  1320. }
  1321. return acc;
  1322. }, {
  1323. toNode: [],
  1324. toSvg: []
  1325. });
  1326. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  1327. var newInnerHTML = abstract.map(function (a) {
  1328. return toHtml(a);
  1329. }).join('\n');
  1330. node.setAttribute('class', splitClasses.toNode.join(' '));
  1331. node.setAttribute(DATA_FA_I2SVG, '');
  1332. node.innerHTML = newInnerHTML;
  1333. }
  1334. };
  1335. function performOperationSync(op) {
  1336. op();
  1337. }
  1338. function perform(mutations, callback) {
  1339. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  1340. if (mutations.length === 0) {
  1341. callbackFunction();
  1342. } else {
  1343. var frame = performOperationSync;
  1344. if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
  1345. frame = WINDOW.requestAnimationFrame || performOperationSync;
  1346. }
  1347. frame(function () {
  1348. var mutator = getMutator();
  1349. var mark = perf.begin('mutate');
  1350. mutations.map(mutator);
  1351. mark();
  1352. callbackFunction();
  1353. });
  1354. }
  1355. }
  1356. var disabled = false;
  1357. function disableObservation() {
  1358. disabled = true;
  1359. }
  1360. function enableObservation() {
  1361. disabled = false;
  1362. }
  1363. var mo = null;
  1364. function observe(options) {
  1365. if (!MUTATION_OBSERVER) {
  1366. return;
  1367. }
  1368. if (!config.observeMutations) {
  1369. return;
  1370. }
  1371. var treeCallback = options.treeCallback,
  1372. nodeCallback = options.nodeCallback,
  1373. pseudoElementsCallback = options.pseudoElementsCallback,
  1374. _options$observeMutat = options.observeMutationsRoot,
  1375. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
  1376. mo = new MUTATION_OBSERVER(function (objects) {
  1377. if (disabled) return;
  1378. toArray(objects).forEach(function (mutationRecord) {
  1379. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  1380. if (config.searchPseudoElements) {
  1381. pseudoElementsCallback(mutationRecord.target);
  1382. }
  1383. treeCallback(mutationRecord.target);
  1384. }
  1385. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1386. pseudoElementsCallback(mutationRecord.target.parentNode);
  1387. }
  1388. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1389. if (mutationRecord.attributeName === 'class') {
  1390. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1391. prefix = _getCanonicalIcon.prefix,
  1392. iconName = _getCanonicalIcon.iconName;
  1393. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1394. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1395. } else {
  1396. nodeCallback(mutationRecord.target);
  1397. }
  1398. }
  1399. });
  1400. });
  1401. if (!IS_DOM) return;
  1402. mo.observe(observeMutationsRoot, {
  1403. childList: true,
  1404. attributes: true,
  1405. characterData: true,
  1406. subtree: true
  1407. });
  1408. }
  1409. function disconnect() {
  1410. if (!mo) return;
  1411. mo.disconnect();
  1412. }
  1413. function styleParser (node) {
  1414. var style = node.getAttribute('style');
  1415. var val = [];
  1416. if (style) {
  1417. val = style.split(';').reduce(function (acc, style) {
  1418. var styles = style.split(':');
  1419. var prop = styles[0];
  1420. var value = styles.slice(1);
  1421. if (prop && value.length > 0) {
  1422. acc[prop] = value.join(':').trim();
  1423. }
  1424. return acc;
  1425. }, {});
  1426. }
  1427. return val;
  1428. }
  1429. function classParser (node) {
  1430. var existingPrefix = node.getAttribute('data-prefix');
  1431. var existingIconName = node.getAttribute('data-icon');
  1432. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1433. var val = getCanonicalIcon(classArray(node));
  1434. if (existingPrefix && existingIconName) {
  1435. val.prefix = existingPrefix;
  1436. val.iconName = existingIconName;
  1437. }
  1438. if (val.prefix && innerText.length > 1) {
  1439. val.iconName = byLigature(val.prefix, node.innerText);
  1440. } else if (val.prefix && innerText.length === 1) {
  1441. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1442. }
  1443. return val;
  1444. }
  1445. var parseTransformString = function parseTransformString(transformString) {
  1446. var transform = {
  1447. size: 16,
  1448. x: 0,
  1449. y: 0,
  1450. flipX: false,
  1451. flipY: false,
  1452. rotate: 0
  1453. };
  1454. if (!transformString) {
  1455. return transform;
  1456. } else {
  1457. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1458. var parts = n.toLowerCase().split('-');
  1459. var first = parts[0];
  1460. var rest = parts.slice(1).join('-');
  1461. if (first && rest === 'h') {
  1462. acc.flipX = true;
  1463. return acc;
  1464. }
  1465. if (first && rest === 'v') {
  1466. acc.flipY = true;
  1467. return acc;
  1468. }
  1469. rest = parseFloat(rest);
  1470. if (isNaN(rest)) {
  1471. return acc;
  1472. }
  1473. switch (first) {
  1474. case 'grow':
  1475. acc.size = acc.size + rest;
  1476. break;
  1477. case 'shrink':
  1478. acc.size = acc.size - rest;
  1479. break;
  1480. case 'left':
  1481. acc.x = acc.x - rest;
  1482. break;
  1483. case 'right':
  1484. acc.x = acc.x + rest;
  1485. break;
  1486. case 'up':
  1487. acc.y = acc.y - rest;
  1488. break;
  1489. case 'down':
  1490. acc.y = acc.y + rest;
  1491. break;
  1492. case 'rotate':
  1493. acc.rotate = acc.rotate + rest;
  1494. break;
  1495. }
  1496. return acc;
  1497. }, transform);
  1498. }
  1499. };
  1500. function transformParser (node) {
  1501. return parseTransformString(node.getAttribute('data-fa-transform'));
  1502. }
  1503. function symbolParser (node) {
  1504. var symbol = node.getAttribute('data-fa-symbol');
  1505. return symbol === null ? false : symbol === '' ? true : symbol;
  1506. }
  1507. function attributesParser (node) {
  1508. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1509. if (acc.name !== 'class' && acc.name !== 'style') {
  1510. acc[attr.name] = attr.value;
  1511. }
  1512. return acc;
  1513. }, {});
  1514. var title = node.getAttribute('title');
  1515. var titleId = node.getAttribute('data-fa-title-id');
  1516. if (config.autoA11y) {
  1517. if (title) {
  1518. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
  1519. } else {
  1520. extraAttributes['aria-hidden'] = 'true';
  1521. extraAttributes['focusable'] = 'false';
  1522. }
  1523. }
  1524. return extraAttributes;
  1525. }
  1526. function maskParser (node) {
  1527. var mask = node.getAttribute('data-fa-mask');
  1528. if (!mask) {
  1529. return emptyCanonicalIcon();
  1530. } else {
  1531. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1532. return i.trim();
  1533. }));
  1534. }
  1535. }
  1536. function blankMeta() {
  1537. return {
  1538. iconName: null,
  1539. title: null,
  1540. titleId: null,
  1541. prefix: null,
  1542. transform: meaninglessTransform,
  1543. symbol: false,
  1544. mask: null,
  1545. maskId: null,
  1546. extra: {
  1547. classes: [],
  1548. styles: {},
  1549. attributes: {}
  1550. }
  1551. };
  1552. }
  1553. function parseMeta(node) {
  1554. var _classParser = classParser(node),
  1555. iconName = _classParser.iconName,
  1556. prefix = _classParser.prefix,
  1557. extraClasses = _classParser.rest;
  1558. var extraStyles = styleParser(node);
  1559. var transform = transformParser(node);
  1560. var symbol = symbolParser(node);
  1561. var extraAttributes = attributesParser(node);
  1562. var mask = maskParser(node);
  1563. return {
  1564. iconName: iconName,
  1565. title: node.getAttribute('title'),
  1566. titleId: node.getAttribute('data-fa-title-id'),
  1567. prefix: prefix,
  1568. transform: transform,
  1569. symbol: symbol,
  1570. mask: mask,
  1571. maskId: node.getAttribute('data-fa-mask-id'),
  1572. extra: {
  1573. classes: extraClasses,
  1574. styles: extraStyles,
  1575. attributes: extraAttributes
  1576. }
  1577. };
  1578. }
  1579. function MissingIcon(error) {
  1580. this.name = 'MissingIcon';
  1581. this.message = error || 'Icon unavailable';
  1582. this.stack = new Error().stack;
  1583. }
  1584. MissingIcon.prototype = Object.create(Error.prototype);
  1585. MissingIcon.prototype.constructor = MissingIcon;
  1586. var FILL = {
  1587. fill: 'currentColor'
  1588. };
  1589. var ANIMATION_BASE = {
  1590. attributeType: 'XML',
  1591. repeatCount: 'indefinite',
  1592. dur: '2s'
  1593. };
  1594. var RING = {
  1595. tag: 'path',
  1596. attributes: _objectSpread({}, FILL, {
  1597. 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'
  1598. })
  1599. };
  1600. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1601. attributeName: 'opacity'
  1602. });
  1603. var DOT = {
  1604. tag: 'circle',
  1605. attributes: _objectSpread({}, FILL, {
  1606. cx: '256',
  1607. cy: '364',
  1608. r: '28'
  1609. }),
  1610. children: [{
  1611. tag: 'animate',
  1612. attributes: _objectSpread({}, ANIMATION_BASE, {
  1613. attributeName: 'r',
  1614. values: '28;14;28;28;14;28;'
  1615. })
  1616. }, {
  1617. tag: 'animate',
  1618. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1619. values: '1;0;1;1;0;1;'
  1620. })
  1621. }]
  1622. };
  1623. var QUESTION = {
  1624. tag: 'path',
  1625. attributes: _objectSpread({}, FILL, {
  1626. opacity: '1',
  1627. 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'
  1628. }),
  1629. children: [{
  1630. tag: 'animate',
  1631. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1632. values: '1;0;0;0;0;1;'
  1633. })
  1634. }]
  1635. };
  1636. var EXCLAMATION = {
  1637. tag: 'path',
  1638. attributes: _objectSpread({}, FILL, {
  1639. opacity: '0',
  1640. 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'
  1641. }),
  1642. children: [{
  1643. tag: 'animate',
  1644. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1645. values: '0;0;1;1;0;0;'
  1646. })
  1647. }]
  1648. };
  1649. var missing = {
  1650. tag: 'g',
  1651. children: [RING, DOT, QUESTION, EXCLAMATION]
  1652. };
  1653. var styles$2 = namespace.styles;
  1654. function resolveCustomIconVersion() {
  1655. var kitConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1656. var iconName = arguments.length > 1 ? arguments[1] : undefined;
  1657. if (iconName && isPrivateUnicode(iconName)) {
  1658. if (kitConfig && kitConfig.iconUploads) {
  1659. var iconUploads = kitConfig.iconUploads;
  1660. var descriptiveIconName = Object.keys(iconUploads).find(function (key) {
  1661. return iconUploads[key] && iconUploads[key].u && iconUploads[key].u === toHex(iconName);
  1662. });
  1663. if (descriptiveIconName) {
  1664. return iconUploads[descriptiveIconName].v;
  1665. }
  1666. }
  1667. } else {
  1668. if (kitConfig && kitConfig.iconUploads && kitConfig.iconUploads[iconName] && kitConfig.iconUploads[iconName].v) {
  1669. return kitConfig.iconUploads[iconName].v;
  1670. }
  1671. }
  1672. }
  1673. function asFoundIcon(icon) {
  1674. var width = icon[0];
  1675. var height = icon[1];
  1676. var _icon$slice = icon.slice(4),
  1677. _icon$slice2 = _slicedToArray(_icon$slice, 1),
  1678. vectorData = _icon$slice2[0];
  1679. var element = null;
  1680. if (Array.isArray(vectorData)) {
  1681. element = {
  1682. tag: 'g',
  1683. attributes: {
  1684. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
  1685. },
  1686. children: [{
  1687. tag: 'path',
  1688. attributes: {
  1689. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
  1690. fill: 'currentColor',
  1691. d: vectorData[0]
  1692. }
  1693. }, {
  1694. tag: 'path',
  1695. attributes: {
  1696. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
  1697. fill: 'currentColor',
  1698. d: vectorData[1]
  1699. }
  1700. }]
  1701. };
  1702. } else {
  1703. element = {
  1704. tag: 'path',
  1705. attributes: {
  1706. fill: 'currentColor',
  1707. d: vectorData
  1708. }
  1709. };
  1710. }
  1711. return {
  1712. found: true,
  1713. width: width,
  1714. height: height,
  1715. icon: element
  1716. };
  1717. }
  1718. function findIcon(iconName, prefix) {
  1719. return new picked(function (resolve, reject) {
  1720. var val = {
  1721. found: false,
  1722. width: 512,
  1723. height: 512,
  1724. icon: missing
  1725. };
  1726. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1727. var icon = styles$2[prefix][iconName];
  1728. return resolve(asFoundIcon(icon));
  1729. }
  1730. var kitToken = null;
  1731. var iconVersion = resolveCustomIconVersion(WINDOW.FontAwesomeKitConfig, iconName);
  1732. if (WINDOW.FontAwesomeKitConfig && WINDOW.FontAwesomeKitConfig.token) {
  1733. kitToken = WINDOW.FontAwesomeKitConfig.token;
  1734. }
  1735. if (iconName && prefix && !config.showMissingIcons) {
  1736. reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
  1737. } else {
  1738. resolve(val);
  1739. }
  1740. });
  1741. }
  1742. var styles$3 = namespace.styles;
  1743. function generateSvgReplacementMutation(node, nodeMeta) {
  1744. var iconName = nodeMeta.iconName,
  1745. title = nodeMeta.title,
  1746. titleId = nodeMeta.titleId,
  1747. prefix = nodeMeta.prefix,
  1748. transform = nodeMeta.transform,
  1749. symbol = nodeMeta.symbol,
  1750. mask = nodeMeta.mask,
  1751. maskId = nodeMeta.maskId,
  1752. extra = nodeMeta.extra;
  1753. return new picked(function (resolve, reject) {
  1754. picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {
  1755. var _ref2 = _slicedToArray(_ref, 2),
  1756. main = _ref2[0],
  1757. mask = _ref2[1];
  1758. resolve([node, makeInlineSvgAbstract({
  1759. icons: {
  1760. main: main,
  1761. mask: mask
  1762. },
  1763. prefix: prefix,
  1764. iconName: iconName,
  1765. transform: transform,
  1766. symbol: symbol,
  1767. mask: mask,
  1768. maskId: maskId,
  1769. title: title,
  1770. titleId: titleId,
  1771. extra: extra,
  1772. watchable: true
  1773. })]);
  1774. });
  1775. });
  1776. }
  1777. function generateLayersText(node, nodeMeta) {
  1778. var title = nodeMeta.title,
  1779. transform = nodeMeta.transform,
  1780. extra = nodeMeta.extra;
  1781. var width = null;
  1782. var height = null;
  1783. if (IS_IE) {
  1784. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1785. var boundingClientRect = node.getBoundingClientRect();
  1786. width = boundingClientRect.width / computedFontSize;
  1787. height = boundingClientRect.height / computedFontSize;
  1788. }
  1789. if (config.autoA11y && !title) {
  1790. extra.attributes['aria-hidden'] = 'true';
  1791. }
  1792. return picked.resolve([node, makeLayersTextAbstract({
  1793. content: node.innerHTML,
  1794. width: width,
  1795. height: height,
  1796. transform: transform,
  1797. title: title,
  1798. extra: extra,
  1799. watchable: true
  1800. })]);
  1801. }
  1802. function generateMutation(node) {
  1803. var nodeMeta = parseMeta(node);
  1804. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1805. return generateLayersText(node, nodeMeta);
  1806. } else {
  1807. return generateSvgReplacementMutation(node, nodeMeta);
  1808. }
  1809. }
  1810. function onTree(root) {
  1811. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1812. if (!IS_DOM) return;
  1813. var htmlClassList = DOCUMENT.documentElement.classList;
  1814. var hclAdd = function hclAdd(suffix) {
  1815. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1816. };
  1817. var hclRemove = function hclRemove(suffix) {
  1818. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1819. };
  1820. var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);
  1821. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1822. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1823. })).join(', ');
  1824. if (prefixesDomQuery.length === 0) {
  1825. return;
  1826. }
  1827. var candidates = [];
  1828. try {
  1829. candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1830. } catch (e) {// noop
  1831. }
  1832. if (candidates.length > 0) {
  1833. hclAdd('pending');
  1834. hclRemove('complete');
  1835. } else {
  1836. return;
  1837. }
  1838. var mark = perf.begin('onTree');
  1839. var mutations = candidates.reduce(function (acc, node) {
  1840. try {
  1841. var mutation = generateMutation(node);
  1842. if (mutation) {
  1843. acc.push(mutation);
  1844. }
  1845. } catch (e) {
  1846. if (!PRODUCTION) {
  1847. if (e instanceof MissingIcon) {
  1848. console.error(e);
  1849. }
  1850. }
  1851. }
  1852. return acc;
  1853. }, []);
  1854. return new picked(function (resolve, reject) {
  1855. picked.all(mutations).then(function (resolvedMutations) {
  1856. perform(resolvedMutations, function () {
  1857. hclAdd('active');
  1858. hclAdd('complete');
  1859. hclRemove('pending');
  1860. if (typeof callback === 'function') callback();
  1861. mark();
  1862. resolve();
  1863. });
  1864. }).catch(function () {
  1865. mark();
  1866. reject();
  1867. });
  1868. });
  1869. }
  1870. function onNode(node) {
  1871. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1872. generateMutation(node).then(function (mutation) {
  1873. if (mutation) {
  1874. perform([mutation], callback);
  1875. }
  1876. });
  1877. }
  1878. function replaceForPosition(node, position) {
  1879. var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
  1880. return new picked(function (resolve, reject) {
  1881. if (node.getAttribute(pendingAttribute) !== null) {
  1882. // This node is already being processed
  1883. return resolve();
  1884. }
  1885. var children = toArray(node.children);
  1886. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1887. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
  1888. })[0];
  1889. var styles = WINDOW.getComputedStyle(node, position);
  1890. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1891. var fontWeight = styles.getPropertyValue('font-weight');
  1892. var content = styles.getPropertyValue('content');
  1893. if (alreadyProcessedPseudoElement && !fontFamily) {
  1894. // If we've already processed it but the current computed style does not result in a font-family,
  1895. // that probably means that a class name that was previously present to make the icon has been
  1896. // removed. So we now should delete the icon.
  1897. node.removeChild(alreadyProcessedPseudoElement);
  1898. return resolve();
  1899. } else if (fontFamily && content !== 'none' && content !== '') {
  1900. var _content = styles.getPropertyValue('content');
  1901. var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1902. var hexValue = toHex(_content.length === 3 ? _content.substr(1, 1) : _content);
  1903. var iconName = byUnicode(prefix, hexValue);
  1904. var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1905. // already done so with the same prefix and iconName
  1906. if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
  1907. node.setAttribute(pendingAttribute, iconIdentifier);
  1908. if (alreadyProcessedPseudoElement) {
  1909. // Delete the old one, since we're replacing it with a new one
  1910. node.removeChild(alreadyProcessedPseudoElement);
  1911. }
  1912. var meta = blankMeta();
  1913. var extra = meta.extra;
  1914. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
  1915. findIcon(iconName, prefix).then(function (main) {
  1916. var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {
  1917. icons: {
  1918. main: main,
  1919. mask: emptyCanonicalIcon()
  1920. },
  1921. prefix: prefix,
  1922. iconName: iconIdentifier,
  1923. extra: extra,
  1924. watchable: true
  1925. }));
  1926. var element = DOCUMENT.createElement('svg');
  1927. if (position === ':before') {
  1928. node.insertBefore(element, node.firstChild);
  1929. } else {
  1930. node.appendChild(element);
  1931. }
  1932. element.outerHTML = abstract.map(function (a) {
  1933. return toHtml(a);
  1934. }).join('\n');
  1935. node.removeAttribute(pendingAttribute);
  1936. resolve();
  1937. }).catch(reject);
  1938. } else {
  1939. resolve();
  1940. }
  1941. } else {
  1942. resolve();
  1943. }
  1944. });
  1945. }
  1946. function replace(node) {
  1947. return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);
  1948. }
  1949. function processable(node) {
  1950. return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');
  1951. }
  1952. function searchPseudoElements (root) {
  1953. if (!IS_DOM) return;
  1954. return new picked(function (resolve, reject) {
  1955. var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
  1956. var end = perf.begin('searchPseudoElements');
  1957. disableObservation();
  1958. picked.all(operations).then(function () {
  1959. end();
  1960. enableObservation();
  1961. resolve();
  1962. }).catch(function () {
  1963. end();
  1964. enableObservation();
  1965. reject();
  1966. });
  1967. });
  1968. }
  1969. 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-both, .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:root .fa-flip-both {\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}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}";
  1970. function css () {
  1971. var dfp = DEFAULT_FAMILY_PREFIX;
  1972. var drc = DEFAULT_REPLACEMENT_CLASS;
  1973. var fp = config.familyPrefix;
  1974. var rc = config.replacementClass;
  1975. var s = baseStyles;
  1976. if (fp !== dfp || rc !== drc) {
  1977. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1978. var customPropPatt = new RegExp("\\--".concat(dfp, "\\-"), 'g');
  1979. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1980. s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1981. }
  1982. return s;
  1983. }
  1984. var Library =
  1985. /*#__PURE__*/
  1986. function () {
  1987. function Library() {
  1988. _classCallCheck(this, Library);
  1989. this.definitions = {};
  1990. }
  1991. _createClass(Library, [{
  1992. key: "add",
  1993. value: function add() {
  1994. var _this = this;
  1995. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1996. definitions[_key] = arguments[_key];
  1997. }
  1998. var additions = definitions.reduce(this._pullDefinitions, {});
  1999. Object.keys(additions).forEach(function (key) {
  2000. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  2001. defineIcons(key, additions[key]);
  2002. build();
  2003. });
  2004. }
  2005. }, {
  2006. key: "reset",
  2007. value: function reset() {
  2008. this.definitions = {};
  2009. }
  2010. }, {
  2011. key: "_pullDefinitions",
  2012. value: function _pullDefinitions(additions, definition) {
  2013. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  2014. 0: definition
  2015. } : definition;
  2016. Object.keys(normalized).map(function (key) {
  2017. var _normalized$key = normalized[key],
  2018. prefix = _normalized$key.prefix,
  2019. iconName = _normalized$key.iconName,
  2020. icon = _normalized$key.icon;
  2021. if (!additions[prefix]) additions[prefix] = {};
  2022. additions[prefix][iconName] = icon;
  2023. });
  2024. return additions;
  2025. }
  2026. }]);
  2027. return Library;
  2028. }();
  2029. function ensureCss() {
  2030. if (config.autoAddCss && !_cssInserted) {
  2031. insertCss(css());
  2032. _cssInserted = true;
  2033. }
  2034. }
  2035. function apiObject(val, abstractCreator) {
  2036. Object.defineProperty(val, 'abstract', {
  2037. get: abstractCreator
  2038. });
  2039. Object.defineProperty(val, 'html', {
  2040. get: function get() {
  2041. return val.abstract.map(function (a) {
  2042. return toHtml(a);
  2043. });
  2044. }
  2045. });
  2046. Object.defineProperty(val, 'node', {
  2047. get: function get() {
  2048. if (!IS_DOM) return;
  2049. var container = DOCUMENT.createElement('div');
  2050. container.innerHTML = val.html;
  2051. return container.children;
  2052. }
  2053. });
  2054. return val;
  2055. }
  2056. function findIconDefinition(iconLookup) {
  2057. var _iconLookup$prefix = iconLookup.prefix,
  2058. prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,
  2059. iconName = iconLookup.iconName;
  2060. if (!iconName) return;
  2061. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  2062. }
  2063. function resolveIcons(next) {
  2064. return function (maybeIconDefinition) {
  2065. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2066. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  2067. var mask = params.mask;
  2068. if (mask) {
  2069. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  2070. }
  2071. return next(iconDefinition, _objectSpread({}, params, {
  2072. mask: mask
  2073. }));
  2074. };
  2075. }
  2076. var library = new Library();
  2077. var noAuto = function noAuto() {
  2078. config.autoReplaceSvg = false;
  2079. config.observeMutations = false;
  2080. disconnect();
  2081. };
  2082. var _cssInserted = false;
  2083. var dom = {
  2084. i2svg: function i2svg() {
  2085. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2086. if (IS_DOM) {
  2087. ensureCss();
  2088. var _params$node = params.node,
  2089. node = _params$node === void 0 ? DOCUMENT : _params$node,
  2090. _params$callback = params.callback,
  2091. callback = _params$callback === void 0 ? function () {} : _params$callback;
  2092. if (config.searchPseudoElements) {
  2093. searchPseudoElements(node);
  2094. }
  2095. return onTree(node, callback);
  2096. } else {
  2097. return picked.reject('Operation requires a DOM of some kind.');
  2098. }
  2099. },
  2100. css: css,
  2101. insertCss: function insertCss$$1() {
  2102. if (!_cssInserted) {
  2103. insertCss(css());
  2104. _cssInserted = true;
  2105. }
  2106. },
  2107. watch: function watch() {
  2108. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2109. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  2110. observeMutationsRoot = params.observeMutationsRoot;
  2111. if (config.autoReplaceSvg === false) {
  2112. config.autoReplaceSvg = true;
  2113. }
  2114. config.observeMutations = true;
  2115. domready(function () {
  2116. autoReplace({
  2117. autoReplaceSvgRoot: autoReplaceSvgRoot
  2118. });
  2119. observe({
  2120. treeCallback: onTree,
  2121. nodeCallback: onNode,
  2122. pseudoElementsCallback: searchPseudoElements,
  2123. observeMutationsRoot: observeMutationsRoot
  2124. });
  2125. });
  2126. }
  2127. };
  2128. var parse = {
  2129. transform: function transform(transformString) {
  2130. return parseTransformString(transformString);
  2131. }
  2132. };
  2133. var icon = resolveIcons(function (iconDefinition) {
  2134. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2135. var _params$transform = params.transform,
  2136. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  2137. _params$symbol = params.symbol,
  2138. symbol = _params$symbol === void 0 ? false : _params$symbol,
  2139. _params$mask = params.mask,
  2140. mask = _params$mask === void 0 ? null : _params$mask,
  2141. _params$maskId = params.maskId,
  2142. maskId = _params$maskId === void 0 ? null : _params$maskId,
  2143. _params$title = params.title,
  2144. title = _params$title === void 0 ? null : _params$title,
  2145. _params$titleId = params.titleId,
  2146. titleId = _params$titleId === void 0 ? null : _params$titleId,
  2147. _params$classes = params.classes,
  2148. classes = _params$classes === void 0 ? [] : _params$classes,
  2149. _params$attributes = params.attributes,
  2150. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  2151. _params$styles = params.styles,
  2152. styles = _params$styles === void 0 ? {} : _params$styles;
  2153. if (!iconDefinition) return;
  2154. var prefix = iconDefinition.prefix,
  2155. iconName = iconDefinition.iconName,
  2156. icon = iconDefinition.icon;
  2157. return apiObject(_objectSpread({
  2158. type: 'icon'
  2159. }, iconDefinition), function () {
  2160. ensureCss();
  2161. if (config.autoA11y) {
  2162. if (title) {
  2163. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
  2164. } else {
  2165. attributes['aria-hidden'] = 'true';
  2166. attributes['focusable'] = 'false';
  2167. }
  2168. }
  2169. return makeInlineSvgAbstract({
  2170. icons: {
  2171. main: asFoundIcon(icon),
  2172. mask: mask ? asFoundIcon(mask.icon) : {
  2173. found: false,
  2174. width: null,
  2175. height: null,
  2176. icon: {}
  2177. }
  2178. },
  2179. prefix: prefix,
  2180. iconName: iconName,
  2181. transform: _objectSpread({}, meaninglessTransform, transform),
  2182. symbol: symbol,
  2183. title: title,
  2184. maskId: maskId,
  2185. titleId: titleId,
  2186. extra: {
  2187. attributes: attributes,
  2188. styles: styles,
  2189. classes: classes
  2190. }
  2191. });
  2192. });
  2193. });
  2194. var text = function text(content) {
  2195. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2196. var _params$transform2 = params.transform,
  2197. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  2198. _params$title2 = params.title,
  2199. title = _params$title2 === void 0 ? null : _params$title2,
  2200. _params$classes2 = params.classes,
  2201. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  2202. _params$attributes2 = params.attributes,
  2203. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  2204. _params$styles2 = params.styles,
  2205. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  2206. return apiObject({
  2207. type: 'text',
  2208. content: content
  2209. }, function () {
  2210. ensureCss();
  2211. return makeLayersTextAbstract({
  2212. content: content,
  2213. transform: _objectSpread({}, meaninglessTransform, transform),
  2214. title: title,
  2215. extra: {
  2216. attributes: attributes,
  2217. styles: styles,
  2218. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  2219. }
  2220. });
  2221. });
  2222. };
  2223. var counter = function counter(content) {
  2224. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2225. var _params$title3 = params.title,
  2226. title = _params$title3 === void 0 ? null : _params$title3,
  2227. _params$classes3 = params.classes,
  2228. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  2229. _params$attributes3 = params.attributes,
  2230. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  2231. _params$styles3 = params.styles,
  2232. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  2233. return apiObject({
  2234. type: 'counter',
  2235. content: content
  2236. }, function () {
  2237. ensureCss();
  2238. return makeLayersCounterAbstract({
  2239. content: content.toString(),
  2240. title: title,
  2241. extra: {
  2242. attributes: attributes,
  2243. styles: styles,
  2244. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  2245. }
  2246. });
  2247. });
  2248. };
  2249. var layer = function layer(assembler) {
  2250. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2251. var _params$classes4 = params.classes,
  2252. classes = _params$classes4 === void 0 ? [] : _params$classes4;
  2253. return apiObject({
  2254. type: 'layer'
  2255. }, function () {
  2256. ensureCss();
  2257. var children = [];
  2258. assembler(function (args) {
  2259. Array.isArray(args) ? args.map(function (a) {
  2260. children = children.concat(a.abstract);
  2261. }) : children = children.concat(args.abstract);
  2262. });
  2263. return [{
  2264. tag: 'span',
  2265. attributes: {
  2266. class: ["".concat(config.familyPrefix, "-layers")].concat(_toConsumableArray(classes)).join(' ')
  2267. },
  2268. children: children
  2269. }];
  2270. });
  2271. };
  2272. var api = {
  2273. noAuto: noAuto,
  2274. config: config,
  2275. dom: dom,
  2276. library: library,
  2277. parse: parse,
  2278. findIconDefinition: findIconDefinition,
  2279. icon: icon,
  2280. text: text,
  2281. counter: counter,
  2282. layer: layer,
  2283. toHtml: toHtml
  2284. };
  2285. var autoReplace = function autoReplace() {
  2286. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2287. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  2288. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  2289. if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  2290. node: autoReplaceSvgRoot
  2291. });
  2292. };
  2293. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../timers-browserify/main.js */ "../../node_modules/timers-browserify/main.js").setImmediate))
  2294. /***/ }),
  2295. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  2296. /*!**************************************************************************************!*\
  2297. !*** C:/Repos/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  2298. \**************************************************************************************/
  2299. /*! 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, faBaby, faBabyCarriage, faBackspace, faBackward, faBacon, faBacteria, faBacterium, faBahai, faBalanceScale, faBalanceScaleLeft, faBalanceScaleRight, faBan, faBandAid, faBarcode, faBars, faBaseballBall, faBasketballBall, faBath, faBatteryEmpty, faBatteryFull, faBatteryHalf, faBatteryQuarter, faBatteryThreeQuarters, faBed, faBeer, faBell, faBellSlash, faBezierCurve, faBible, faBicycle, faBiking, faBinoculars, faBiohazard, faBirthdayCake, faBlender, faBlenderPhone, faBlind, faBlog, faBold, faBolt, faBomb, faBone, faBong, faBook, faBookDead, faBookMedical, faBookOpen, faBookReader, faBookmark, faBorderAll, faBorderNone, faBorderStyle, faBowlingBall, faBox, faBoxOpen, faBoxTissue, faBoxes, faBraille, faBrain, faBreadSlice, faBriefcase, faBriefcaseMedical, faBroadcastTower, faBroom, faBrush, faBug, faBuilding, faBullhorn, faBullseye, faBurn, faBus, faBusAlt, faBusinessTime, faCalculator, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarDay, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCalendarWeek, faCamera, faCameraRetro, faCampground, faCandyCane, faCannabis, faCapsules, faCar, faCarAlt, faCarBattery, faCarCrash, faCarSide, faCaravan, faCaretDown, faCaretLeft, faCaretRight, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faCaretUp, faCarrot, faCartArrowDown, faCartPlus, faCashRegister, faCat, faCertificate, faChair, faChalkboard, faChalkboardTeacher, faChargingStation, faChartArea, faChartBar, faChartLine, faChartPie, faCheck, faCheckCircle, faCheckDouble, faCheckSquare, faCheese, faChess, faChessBishop, faChessBoard, faChessKing, faChessKnight, faChessPawn, faChessQueen, faChessRook, faChevronCircleDown, faChevronCircleLeft, faChevronCircleRight, faChevronCircleUp, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChild, faChurch, faCircle, faCircleNotch, faCity, faClinicMedical, faClipboard, faClipboardCheck, faClipboardList, faClock, faClone, faClosedCaptioning, faCloud, faCloudDownloadAlt, faCloudMeatball, faCloudMoon, faCloudMoonRain, faCloudRain, faCloudShowersHeavy, faCloudSun, faCloudSunRain, faCloudUploadAlt, faCocktail, faCode, faCodeBranch, faCoffee, faCog, faCogs, faCoins, faColumns, faComment, faCommentAlt, faCommentDollar, faCommentDots, faCommentMedical, faCommentSlash, faComments, faCommentsDollar, faCompactDisc, faCompass, faCompress, faCompressAlt, faCompressArrowsAlt, faConciergeBell, faCookie, faCookieBite, faCopy, faCopyright, faCouch, faCreditCard, faCrop, faCropAlt, faCross, faCrosshairs, faCrow, faCrown, faCrutch, faCube, faCubes, faCut, faDatabase, faDeaf, faDemocrat, faDesktop, faDharmachakra, faDiagnoses, faDice, faDiceD20, faDiceD6, faDiceFive, faDiceFour, faDiceOne, faDiceSix, faDiceThree, faDiceTwo, faDigitalTachograph, faDirections, faDisease, faDivide, faDizzy, faDna, faDog, faDollarSign, faDolly, faDollyFlatbed, faDonate, faDoorClosed, faDoorOpen, faDotCircle, faDove, faDownload, faDraftingCompass, faDragon, faDrawPolygon, faDrum, faDrumSteelpan, faDrumstickBite, faDumbbell, faDumpster, faDumpsterFire, faDungeon, faEdit, faEgg, faEject, faEllipsisH, faEllipsisV, faEnvelope, faEnvelopeOpen, faEnvelopeOpenText, faEnvelopeSquare, faEquals, faEraser, faEthernet, faEuroSign, faExchangeAlt, faExclamation, faExclamationCircle, faExclamationTriangle, faExpand, faExpandAlt, faExpandArrowsAlt, faExternalLinkAlt, faExternalLinkSquareAlt, faEye, faEyeDropper, faEyeSlash, faFan, faFastBackward, faFastForward, faFaucet, 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, faFireAlt, faFireExtinguisher, faFirstAid, faFish, faFistRaised, faFlag, faFlagCheckered, faFlagUsa, faFlask, faFlushed, faFolder, faFolderMinus, faFolderOpen, faFolderPlus, faFont, faFontAwesomeLogoFull, faFootballBall, faForward, faFrog, faFrown, faFrownOpen, faFunnelDollar, faFutbol, faGamepad, faGasPump, faGavel, faGem, faGenderless, faGhost, faGift, faGifts, faGlassCheers, faGlassMartini, faGlassMartiniAlt, faGlassWhiskey, faGlasses, faGlobe, faGlobeAfrica, faGlobeAmericas, faGlobeAsia, faGlobeEurope, faGolfBall, faGopuram, faGraduationCap, faGreaterThan, faGreaterThanEqual, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faGripHorizontal, faGripLines, faGripLinesVertical, faGripVertical, faGuitar, faHSquare, faHamburger, faHammer, faHamsa, faHandHolding, faHandHoldingHeart, faHandHoldingMedical, faHandHoldingUsd, faHandHoldingWater, faHandLizard, faHandMiddleFinger, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSparkles, faHandSpock, faHands, faHandsHelping, faHandsWash, faHandshake, faHandshakeAltSlash, faHandshakeSlash, faHanukiah, faHardHat, faHashtag, faHatCowboy, faHatCowboySide, faHatWizard, faHdd, faHeadSideCough, faHeadSideCoughSlash, faHeadSideMask, faHeadSideVirus, faHeading, faHeadphones, faHeadphonesAlt, faHeadset, faHeart, faHeartBroken, faHeartbeat, faHelicopter, faHighlighter, faHiking, faHippo, faHistory, faHockeyPuck, faHollyBerry, faHome, faHorse, faHorseHead, faHospital, faHospitalAlt, faHospitalSymbol, faHospitalUser, faHotTub, faHotdog, faHotel, faHourglass, faHourglassEnd, faHourglassHalf, faHourglassStart, faHouseDamage, faHouseUser, faHryvnia, faICursor, faIceCream, faIcicles, faIcons, faIdBadge, faIdCard, faIdCardAlt, faIgloo, faImage, faImages, faInbox, faIndent, faIndustry, faInfinity, faInfo, faInfoCircle, faItalic, faJedi, faJoint, faJournalWhills, faKaaba, faKey, faKeyboard, faKhanda, faKiss, faKissBeam, faKissWinkHeart, faKiwiBird, faLandmark, faLanguage, faLaptop, faLaptopCode, faLaptopHouse, faLaptopMedical, 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, faLungs, faLungsVirus, 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, faMeteor, faMicrochip, faMicrophone, faMicrophoneAlt, faMicrophoneAltSlash, faMicrophoneSlash, faMicroscope, faMinus, faMinusCircle, faMinusSquare, faMitten, faMobile, faMobileAlt, faMoneyBill, faMoneyBillAlt, faMoneyBillWave, faMoneyBillWaveAlt, faMoneyCheck, faMoneyCheckAlt, faMonument, faMoon, faMortarPestle, faMosque, faMotorcycle, faMountain, faMouse, faMousePointer, faMugHot, faMusic, faNetworkWired, faNeuter, faNewspaper, faNotEqual, faNotesMedical, faObjectGroup, faObjectUngroup, faOilCan, faOm, faOtter, faOutdent, faPager, faPaintBrush, faPaintRoller, faPalette, faPallet, faPaperPlane, faPaperclip, faParachuteBox, faParagraph, faParking, faPassport, faPastafarianism, faPaste, faPause, faPauseCircle, faPaw, faPeace, faPen, faPenAlt, faPenFancy, faPenNib, faPenSquare, faPencilAlt, faPencilRuler, faPeopleArrows, faPeopleCarry, faPepperHot, faPercent, faPercentage, faPersonBooth, faPhone, faPhoneAlt, faPhoneSlash, faPhoneSquare, faPhoneSquareAlt, faPhoneVolume, faPhotoVideo, faPiggyBank, faPills, faPizzaSlice, faPlaceOfWorship, faPlane, faPlaneArrival, faPlaneDeparture, faPlaneSlash, faPlay, faPlayCircle, faPlug, faPlus, faPlusCircle, faPlusSquare, faPodcast, faPoll, faPollH, faPoo, faPooStorm, faPoop, faPortrait, faPoundSign, faPowerOff, faPray, faPrayingHands, faPrescription, faPrescriptionBottle, faPrescriptionBottleAlt, faPrint, faProcedures, faProjectDiagram, faPumpMedical, faPumpSoap, faPuzzlePiece, faQrcode, faQuestion, faQuestionCircle, faQuidditch, faQuoteLeft, faQuoteRight, faQuran, faRadiation, faRadiationAlt, faRainbow, faRandom, faReceipt, faRecordVinyl, faRecycle, faRedo, faRedoAlt, faRegistered, faRemoveFormat, faReply, faReplyAll, faRepublican, faRestroom, faRetweet, faRibbon, faRing, faRoad, faRobot, faRocket, faRoute, faRss, faRssSquare, faRubleSign, faRuler, faRulerCombined, faRulerHorizontal, faRulerVertical, faRunning, faRupeeSign, faSadCry, faSadTear, faSatellite, faSatelliteDish, faSave, faSchool, faScrewdriver, faScroll, faSdCard, faSearch, faSearchDollar, faSearchLocation, faSearchMinus, faSearchPlus, faSeedling, faServer, faShapes, faShare, faShareAlt, faShareAltSquare, faShareSquare, faShekelSign, faShieldAlt, faShieldVirus, faShip, faShippingFast, faShoePrints, faShoppingBag, faShoppingBasket, faShoppingCart, faShower, faShuttleVan, faSign, faSignInAlt, faSignLanguage, faSignOutAlt, faSignal, faSignature, faSimCard, faSink, faSitemap, faSkating, faSkiing, faSkiingNordic, faSkull, faSkullCrossbones, faSlash, faSleigh, faSlidersH, faSmile, faSmileBeam, faSmileWink, faSmog, faSmoking, faSmokingBan, faSms, faSnowboarding, faSnowflake, faSnowman, faSnowplow, faSoap, faSocks, faSolarPanel, faSort, faSortAlphaDown, faSortAlphaDownAlt, faSortAlphaUp, faSortAlphaUpAlt, faSortAmountDown, faSortAmountDownAlt, faSortAmountUp, faSortAmountUpAlt, faSortDown, faSortNumericDown, faSortNumericDownAlt, faSortNumericUp, faSortNumericUpAlt, faSortUp, faSpa, faSpaceShuttle, faSpellCheck, faSpider, faSpinner, faSplotch, faSprayCan, faSquare, faSquareFull, faSquareRootAlt, faStamp, faStar, faStarAndCrescent, faStarHalf, faStarHalfAlt, faStarOfDavid, faStarOfLife, faStepBackward, faStepForward, faStethoscope, faStickyNote, faStop, faStopCircle, faStopwatch, faStopwatch20, faStore, faStoreAlt, faStoreAltSlash, faStoreSlash, 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, faTemperatureHigh, faTemperatureLow, faTenge, faTerminal, faTextHeight, faTextWidth, faTh, faThLarge, faThList, faTheaterMasks, faThermometer, faThermometerEmpty, faThermometerFull, faThermometerHalf, faThermometerQuarter, faThermometerThreeQuarters, faThumbsDown, faThumbsUp, faThumbtack, faTicketAlt, faTimes, faTimesCircle, faTint, faTintSlash, faTired, faToggleOff, faToggleOn, faToilet, faToiletPaper, faToiletPaperSlash, faToolbox, faTools, faTooth, faTorah, faToriiGate, faTractor, faTrademark, faTrafficLight, faTrailer, faTrain, faTram, faTransgender, faTransgenderAlt, faTrash, faTrashAlt, faTrashRestore, faTrashRestoreAlt, 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, faUserNurse, faUserPlus, faUserSecret, faUserShield, faUserSlash, faUserTag, faUserTie, faUserTimes, faUsers, faUsersCog, faUsersSlash, faUtensilSpoon, faUtensils, faVectorSquare, faVenus, faVenusDouble, faVenusMars, faVial, faVials, faVideo, faVideoSlash, faVihara, faVirus, faVirusSlash, faViruses, faVoicemail, faVolleyballBall, faVolumeDown, faVolumeMute, faVolumeOff, faVolumeUp, faVoteYea, faVrCardboard, faWalking, faWallet, faWarehouse, faWater, faWaveSquare, faWeight, faWeightHanging, faWheelchair, faWifi, faWind, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore, faWineBottle, faWineGlass, faWineGlassAlt, faWonSign, faWrench, faXRay, faYenSign, faYinYang */
  2300. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2301. "use strict";
  2302. __webpack_require__.r(__webpack_exports__);
  2303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  2304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  2305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  2306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  2307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  2308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  2309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  2310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  2311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  2312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  2313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  2314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  2315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  2316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  2317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  2318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaby", function() { return faBaby; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBabyCarriage", function() { return faBabyCarriage; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBacon", function() { return faBacon; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBacteria", function() { return faBacteria; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBacterium", function() { return faBacterium; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBahai", function() { return faBahai; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScaleLeft", function() { return faBalanceScaleLeft; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScaleRight", function() { return faBalanceScaleRight; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBiking", function() { return faBiking; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBiohazard", function() { return faBiohazard; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlog", function() { return faBlog; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookMedical", function() { return faBookMedical; });
  2399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  2400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  2401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  2402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBorderAll", function() { return faBorderAll; });
  2403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBorderNone", function() { return faBorderNone; });
  2404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBorderStyle", function() { return faBorderStyle; });
  2405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  2406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  2407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  2408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxTissue", function() { return faBoxTissue; });
  2409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  2410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  2411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  2412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBreadSlice", function() { return faBreadSlice; });
  2413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  2414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  2415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  2416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  2417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  2418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  2419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  2420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  2421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  2422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  2423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  2425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  2426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  2427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  2428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  2429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  2430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarDay", function() { return faCalendarDay; });
  2431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  2432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  2433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  2434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarWeek", function() { return faCalendarWeek; });
  2435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  2436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  2437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  2438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCandyCane", function() { return faCandyCane; });
  2439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  2440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  2441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  2442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  2443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  2444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  2445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  2446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaravan", function() { return faCaravan; });
  2447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  2448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  2449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  2450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  2451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  2452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  2453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  2454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  2455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarrot", function() { return faCarrot; });
  2456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  2458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCashRegister", function() { return faCashRegister; });
  2459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  2460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  2461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  2462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  2464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  2465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  2466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  2467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  2468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  2469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  2470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  2471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  2472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  2473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheese", function() { return faCheese; });
  2474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  2475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  2476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  2477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  2478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  2479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  2480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  2481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  2482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  2483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  2484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  2485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  2486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  2487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  2488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  2489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  2490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  2491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  2492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClinicMedical", function() { return faClinicMedical; });
  2496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  2498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  2499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  2503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  2504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMeatball", function() { return faCloudMeatball; });
  2505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  2506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoonRain", function() { return faCloudMoonRain; });
  2507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudRain", function() { return faCloudRain; });
  2508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudShowersHeavy", function() { return faCloudShowersHeavy; });
  2509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  2510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSunRain", function() { return faCloudSunRain; });
  2511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  2512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  2513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  2514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  2515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  2516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  2517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  2518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  2519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  2520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  2523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentMedical", function() { return faCommentMedical; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  2526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  2528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  2529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  2531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompressAlt", function() { return faCompressAlt; });
  2532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompressArrowsAlt", function() { return faCompressArrowsAlt; });
  2533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  2534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  2535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  2536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  2541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  2542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  2543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  2544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  2545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  2546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrutch", function() { return faCrutch; });
  2547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  2548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  2549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  2550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  2551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  2552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDemocrat", function() { return faDemocrat; });
  2553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  2554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  2555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  2556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  2557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  2558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  2559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  2560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  2561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  2562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  2563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  2564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  2565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  2566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  2567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDisease", function() { return faDisease; });
  2568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  2569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  2571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  2572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  2573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  2575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  2576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  2577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  2578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  2580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  2581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  2582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  2583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  2584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  2585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  2586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  2587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  2588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumpster", function() { return faDumpster; });
  2589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumpsterFire", function() { return faDumpsterFire; });
  2590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  2591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEgg", function() { return faEgg; });
  2593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  2594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  2595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  2596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  2599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  2600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  2601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  2602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEthernet", function() { return faEthernet; });
  2603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  2604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  2605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  2606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  2607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  2608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  2609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandAlt", function() { return faExpandAlt; });
  2610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  2611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  2612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  2613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  2615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFan", function() { return faFan; });
  2617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  2618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  2619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFaucet", function() { return faFaucet; });
  2620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  2621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  2622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  2623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  2625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  2633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  2635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  2637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  2638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  2639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  2640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  2641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  2644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  2645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  2646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  2649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  2650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  2651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  2652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireAlt", function() { return faFireAlt; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  2657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  2659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagUsa", function() { return faFlagUsa; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  2679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  2680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  2682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGifts", function() { return faGifts; });
  2685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassCheers", function() { return faGlassCheers; });
  2686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  2687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  2688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassWhiskey", function() { return faGlassWhiskey; });
  2689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  2690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  2691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  2692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  2694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeEurope", function() { return faGlobeEurope; });
  2695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  2696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  2697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  2698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  2699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  2700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  2715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripLines", function() { return faGripLines; });
  2716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripLinesVertical", function() { return faGripLinesVertical; });
  2717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  2718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGuitar", function() { return faGuitar; });
  2719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  2720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamburger", function() { return faHamburger; });
  2721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  2722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  2723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  2724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  2725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingMedical", function() { return faHandHoldingMedical; });
  2726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  2727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingWater", function() { return faHandHoldingWater; });
  2728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandMiddleFinger", function() { return faHandMiddleFinger; });
  2730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSparkles", function() { return faHandSparkles; });
  2740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  2742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  2743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsWash", function() { return faHandsWash; });
  2744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshakeAltSlash", function() { return faHandshakeAltSlash; });
  2746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshakeSlash", function() { return faHandshakeSlash; });
  2747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  2748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHardHat", function() { return faHardHat; });
  2749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  2750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatCowboy", function() { return faHatCowboy; });
  2751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatCowboySide", function() { return faHatCowboySide; });
  2752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  2753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideCough", function() { return faHeadSideCough; });
  2755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideCoughSlash", function() { return faHeadSideCoughSlash; });
  2756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideMask", function() { return faHeadSideMask; });
  2757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideVirus", function() { return faHeadSideVirus; });
  2758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  2759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  2760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  2761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  2762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartBroken", function() { return faHeartBroken; });
  2764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  2765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  2766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  2767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  2768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  2769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  2770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  2771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHollyBerry", function() { return faHollyBerry; });
  2772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  2773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  2774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorseHead", function() { return faHorseHead; });
  2775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  2777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  2778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalUser", function() { return faHospitalUser; });
  2779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  2780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotdog", function() { return faHotdog; });
  2781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  2782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  2784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  2785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  2786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  2787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseUser", function() { return faHouseUser; });
  2788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  2789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  2790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIceCream", function() { return faIceCream; });
  2791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIcicles", function() { return faIcicles; });
  2792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIcons", function() { return faIcons; });
  2793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  2796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIgloo", function() { return faIgloo; });
  2797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  2800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  2801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  2802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  2803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  2804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  2805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  2806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  2807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  2808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  2809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  2810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  2811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  2813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  2817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  2818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  2819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  2820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  2821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopHouse", function() { return faLaptopHouse; });
  2822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopMedical", function() { return faLaptopMedical; });
  2823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  2828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  2829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  2831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  2832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  2833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  2834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  2837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  2838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  2839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  2841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  2842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  2843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  2844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  2845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  2846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  2847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  2848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  2849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  2850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  2851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLungs", function() { return faLungs; });
  2852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLungsVirus", function() { return faLungsVirus; });
  2853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  2854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  2855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  2856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  2857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  2859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  2860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  2861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  2862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  2863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  2864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  2865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  2866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  2867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  2868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  2869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  2870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  2871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  2872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  2873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  2877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  2878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  2879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeteor", function() { return faMeteor; });
  2880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  2881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  2882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  2883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  2884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  2885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  2886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  2887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  2888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMitten", function() { return faMitten; });
  2890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  2891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  2892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  2893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  2895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  2896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  2897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  2898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  2899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  2901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  2902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  2903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  2904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMouse", function() { return faMouse; });
  2905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  2906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMugHot", function() { return faMugHot; });
  2907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  2908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  2909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  2910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  2912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  2913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  2916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  2917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  2918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  2919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPager", function() { return faPager; });
  2920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  2921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  2922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  2923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  2924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  2926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  2927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  2928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  2929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  2930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  2931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  2932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  2933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  2935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  2936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  2937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  2938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  2939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  2940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  2941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  2942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  2943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleArrows", function() { return faPeopleArrows; });
  2944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  2945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPepperHot", function() { return faPepperHot; });
  2946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  2947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  2948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPersonBooth", function() { return faPersonBooth; });
  2949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  2950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneAlt", function() { return faPhoneAlt; });
  2951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  2952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  2953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquareAlt", function() { return faPhoneSquareAlt; });
  2954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  2955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhotoVideo", function() { return faPhotoVideo; });
  2956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  2957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  2958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPizzaSlice", function() { return faPizzaSlice; });
  2959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  2960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  2961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  2962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  2963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneSlash", function() { return faPlaneSlash; });
  2964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  2965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  2967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  2968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  2969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  2971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  2972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  2973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  2974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPooStorm", function() { return faPooStorm; });
  2975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  2976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  2977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  2978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  2979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  2980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  2981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  2982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  2983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  2984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  2985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  2986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  2987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPumpMedical", function() { return faPumpMedical; });
  2988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPumpSoap", function() { return faPumpSoap; });
  2989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  2990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  2991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  2992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  2994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  2995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  2996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  2997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRadiation", function() { return faRadiation; });
  2998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRadiationAlt", function() { return faRadiationAlt; });
  2999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRainbow", function() { return faRainbow; });
  3000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  3001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  3002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecordVinyl", function() { return faRecordVinyl; });
  3003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  3004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  3005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  3006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  3007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRemoveFormat", function() { return faRemoveFormat; });
  3008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  3009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  3010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRepublican", function() { return faRepublican; });
  3011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRestroom", function() { return faRestroom; });
  3012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  3013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  3014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  3015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  3016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  3017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  3018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  3019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  3020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  3021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  3022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  3023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  3024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  3025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  3026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  3027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  3028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  3029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  3030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSatellite", function() { return faSatellite; });
  3031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSatelliteDish", function() { return faSatelliteDish; });
  3032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  3033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  3034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  3035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  3036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSdCard", function() { return faSdCard; });
  3037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  3038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  3039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  3040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  3041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  3042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  3043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  3044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  3045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  3046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  3047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  3048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  3049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  3050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  3051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldVirus", function() { return faShieldVirus; });
  3052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  3053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  3054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  3055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  3056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  3057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  3058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  3059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  3060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  3061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  3062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  3063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  3064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  3065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  3066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSimCard", function() { return faSimCard; });
  3067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSink", function() { return faSink; });
  3068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  3069. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkating", function() { return faSkating; });
  3070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkiing", function() { return faSkiing; });
  3071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkiingNordic", function() { return faSkiingNordic; });
  3072. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  3073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  3074. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  3075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSleigh", function() { return faSleigh; });
  3076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  3077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  3078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  3079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  3080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmog", function() { return faSmog; });
  3081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  3082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  3083. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSms", function() { return faSms; });
  3084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowboarding", function() { return faSnowboarding; });
  3085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  3086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowman", function() { return faSnowman; });
  3087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowplow", function() { return faSnowplow; });
  3088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSoap", function() { return faSoap; });
  3089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  3090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  3091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  3092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  3093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDownAlt", function() { return faSortAlphaDownAlt; });
  3094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  3095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUpAlt", function() { return faSortAlphaUpAlt; });
  3096. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  3097. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDownAlt", function() { return faSortAmountDownAlt; });
  3098. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  3099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUpAlt", function() { return faSortAmountUpAlt; });
  3100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  3101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  3102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDownAlt", function() { return faSortNumericDownAlt; });
  3103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  3104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUpAlt", function() { return faSortNumericUpAlt; });
  3105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  3106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  3107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  3108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpellCheck", function() { return faSpellCheck; });
  3109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  3110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  3111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  3112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  3113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  3114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  3115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  3116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  3117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  3118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  3119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  3120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  3121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  3122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  3123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  3124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  3125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  3126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  3127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  3128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  3129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  3130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch20", function() { return faStopwatch20; });
  3131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  3132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  3133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAltSlash", function() { return faStoreAltSlash; });
  3134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreSlash", function() { return faStoreSlash; });
  3135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  3136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  3137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  3138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  3139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  3140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  3141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  3142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  3143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  3144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  3145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  3146. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  3147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  3148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  3149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  3150. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  3151. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  3152. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  3153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  3154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  3155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  3156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  3157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  3158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  3159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  3160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  3161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  3162. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  3163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  3164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  3165. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  3166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTemperatureHigh", function() { return faTemperatureHigh; });
  3167. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTemperatureLow", function() { return faTemperatureLow; });
  3168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTenge", function() { return faTenge; });
  3169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  3170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  3171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  3172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  3173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  3174. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  3175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  3176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  3177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  3178. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  3179. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  3180. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  3181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  3182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  3183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  3184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  3185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  3186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  3187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  3188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  3189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  3190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  3191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  3192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  3193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToilet", function() { return faToilet; });
  3194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  3195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaperSlash", function() { return faToiletPaperSlash; });
  3196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  3197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTools", function() { return faTools; });
  3198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  3199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  3200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  3201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  3202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  3203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  3204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrailer", function() { return faTrailer; });
  3205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  3206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTram", function() { return faTram; });
  3207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  3208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  3209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  3210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  3211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashRestore", function() { return faTrashRestore; });
  3212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashRestoreAlt", function() { return faTrashRestoreAlt; });
  3213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  3214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  3215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  3216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  3217. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  3218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  3219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  3220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  3221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  3222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  3223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  3224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  3225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  3226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  3227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  3228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  3229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  3230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  3231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  3232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  3233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  3234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  3235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  3236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  3237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  3238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  3239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  3240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  3241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  3242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  3243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  3244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  3245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  3246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  3247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  3248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  3249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  3250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNurse", function() { return faUserNurse; });
  3251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  3252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  3253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  3254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  3255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  3256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  3257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  3258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  3259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  3260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersSlash", function() { return faUsersSlash; });
  3261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  3262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  3263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  3264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  3265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  3266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  3267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  3268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  3269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  3270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  3271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  3272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVirus", function() { return faVirus; });
  3273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVirusSlash", function() { return faVirusSlash; });
  3274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faViruses", function() { return faViruses; });
  3275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVoicemail", function() { return faVoicemail; });
  3276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  3277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  3278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  3279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  3280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  3281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVoteYea", function() { return faVoteYea; });
  3282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  3283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  3284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  3285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  3286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWater", function() { return faWater; });
  3287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWaveSquare", function() { return faWaveSquare; });
  3288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  3289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  3290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  3291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  3292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  3293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  3294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  3295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  3296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  3297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  3298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  3299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  3300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  3301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  3302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  3303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  3304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  3305. var prefix = "fas";
  3306. var faAd = {
  3307. prefix: 'fas',
  3308. iconName: 'ad',
  3309. 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"]
  3310. };
  3311. var faAddressBook = {
  3312. prefix: 'fas',
  3313. iconName: 'address-book',
  3314. 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"]
  3315. };
  3316. var faAddressCard = {
  3317. prefix: 'fas',
  3318. iconName: 'address-card',
  3319. 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"]
  3320. };
  3321. var faAdjust = {
  3322. prefix: 'fas',
  3323. iconName: 'adjust',
  3324. 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"]
  3325. };
  3326. var faAirFreshener = {
  3327. prefix: 'fas',
  3328. iconName: 'air-freshener',
  3329. 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"]
  3330. };
  3331. var faAlignCenter = {
  3332. prefix: 'fas',
  3333. iconName: 'align-center',
  3334. icon: [448, 512, [], "f037", "M432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM108.1 96h231.81A12.09 12.09 0 0 0 352 83.9V44.09A12.09 12.09 0 0 0 339.91 32H108.1A12.09 12.09 0 0 0 96 44.09V83.9A12.1 12.1 0 0 0 108.1 96zm231.81 256A12.09 12.09 0 0 0 352 339.9v-39.81A12.09 12.09 0 0 0 339.91 288H108.1A12.09 12.09 0 0 0 96 300.09v39.81a12.1 12.1 0 0 0 12.1 12.1z"]
  3335. };
  3336. var faAlignJustify = {
  3337. prefix: 'fas',
  3338. iconName: 'align-justify',
  3339. icon: [448, 512, [], "f039", "M432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  3340. };
  3341. var faAlignLeft = {
  3342. prefix: 'fas',
  3343. iconName: 'align-left',
  3344. icon: [448, 512, [], "f036", "M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  3345. };
  3346. var faAlignRight = {
  3347. prefix: 'fas',
  3348. iconName: 'align-right',
  3349. icon: [448, 512, [], "f038", "M16 224h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm416 192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-384H172.83A12.82 12.82 0 0 0 160 44.83v38.34A12.82 12.82 0 0 0 172.83 96h262.34A12.82 12.82 0 0 0 448 83.17V44.83A12.82 12.82 0 0 0 435.17 32zm0 256H172.83A12.82 12.82 0 0 0 160 300.83v38.34A12.82 12.82 0 0 0 172.83 352h262.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288z"]
  3350. };
  3351. var faAllergies = {
  3352. prefix: 'fas',
  3353. iconName: 'allergies',
  3354. 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"]
  3355. };
  3356. var faAmbulance = {
  3357. prefix: 'fas',
  3358. iconName: 'ambulance',
  3359. 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"]
  3360. };
  3361. var faAmericanSignLanguageInterpreting = {
  3362. prefix: 'fas',
  3363. iconName: 'american-sign-language-interpreting',
  3364. 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"]
  3365. };
  3366. var faAnchor = {
  3367. prefix: 'fas',
  3368. iconName: 'anchor',
  3369. 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"]
  3370. };
  3371. var faAngleDoubleDown = {
  3372. prefix: 'fas',
  3373. iconName: 'angle-double-down',
  3374. 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"]
  3375. };
  3376. var faAngleDoubleLeft = {
  3377. prefix: 'fas',
  3378. iconName: 'angle-double-left',
  3379. 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"]
  3380. };
  3381. var faAngleDoubleRight = {
  3382. prefix: 'fas',
  3383. iconName: 'angle-double-right',
  3384. 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"]
  3385. };
  3386. var faAngleDoubleUp = {
  3387. prefix: 'fas',
  3388. iconName: 'angle-double-up',
  3389. 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"]
  3390. };
  3391. var faAngleDown = {
  3392. prefix: 'fas',
  3393. iconName: 'angle-down',
  3394. 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"]
  3395. };
  3396. var faAngleLeft = {
  3397. prefix: 'fas',
  3398. iconName: 'angle-left',
  3399. 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"]
  3400. };
  3401. var faAngleRight = {
  3402. prefix: 'fas',
  3403. iconName: 'angle-right',
  3404. 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"]
  3405. };
  3406. var faAngleUp = {
  3407. prefix: 'fas',
  3408. iconName: 'angle-up',
  3409. 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"]
  3410. };
  3411. var faAngry = {
  3412. prefix: 'fas',
  3413. iconName: 'angry',
  3414. 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"]
  3415. };
  3416. var faAnkh = {
  3417. prefix: 'fas',
  3418. iconName: 'ankh',
  3419. 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"]
  3420. };
  3421. var faAppleAlt = {
  3422. prefix: 'fas',
  3423. iconName: 'apple-alt',
  3424. 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"]
  3425. };
  3426. var faArchive = {
  3427. prefix: 'fas',
  3428. iconName: 'archive',
  3429. 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"]
  3430. };
  3431. var faArchway = {
  3432. prefix: 'fas',
  3433. iconName: 'archway',
  3434. 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"]
  3435. };
  3436. var faArrowAltCircleDown = {
  3437. prefix: 'fas',
  3438. iconName: 'arrow-alt-circle-down',
  3439. 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"]
  3440. };
  3441. var faArrowAltCircleLeft = {
  3442. prefix: 'fas',
  3443. iconName: 'arrow-alt-circle-left',
  3444. 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"]
  3445. };
  3446. var faArrowAltCircleRight = {
  3447. prefix: 'fas',
  3448. iconName: 'arrow-alt-circle-right',
  3449. 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"]
  3450. };
  3451. var faArrowAltCircleUp = {
  3452. prefix: 'fas',
  3453. iconName: 'arrow-alt-circle-up',
  3454. 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"]
  3455. };
  3456. var faArrowCircleDown = {
  3457. prefix: 'fas',
  3458. iconName: 'arrow-circle-down',
  3459. 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"]
  3460. };
  3461. var faArrowCircleLeft = {
  3462. prefix: 'fas',
  3463. iconName: 'arrow-circle-left',
  3464. 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"]
  3465. };
  3466. var faArrowCircleRight = {
  3467. prefix: 'fas',
  3468. iconName: 'arrow-circle-right',
  3469. 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"]
  3470. };
  3471. var faArrowCircleUp = {
  3472. prefix: 'fas',
  3473. iconName: 'arrow-circle-up',
  3474. 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"]
  3475. };
  3476. var faArrowDown = {
  3477. prefix: 'fas',
  3478. iconName: 'arrow-down',
  3479. 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"]
  3480. };
  3481. var faArrowLeft = {
  3482. prefix: 'fas',
  3483. iconName: 'arrow-left',
  3484. 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"]
  3485. };
  3486. var faArrowRight = {
  3487. prefix: 'fas',
  3488. iconName: 'arrow-right',
  3489. 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"]
  3490. };
  3491. var faArrowUp = {
  3492. prefix: 'fas',
  3493. iconName: 'arrow-up',
  3494. 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"]
  3495. };
  3496. var faArrowsAlt = {
  3497. prefix: 'fas',
  3498. iconName: 'arrows-alt',
  3499. 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"]
  3500. };
  3501. var faArrowsAltH = {
  3502. prefix: 'fas',
  3503. iconName: 'arrows-alt-h',
  3504. 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"]
  3505. };
  3506. var faArrowsAltV = {
  3507. prefix: 'fas',
  3508. iconName: 'arrows-alt-v',
  3509. 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"]
  3510. };
  3511. var faAssistiveListeningSystems = {
  3512. prefix: 'fas',
  3513. iconName: 'assistive-listening-systems',
  3514. 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"]
  3515. };
  3516. var faAsterisk = {
  3517. prefix: 'fas',
  3518. iconName: 'asterisk',
  3519. 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"]
  3520. };
  3521. var faAt = {
  3522. prefix: 'fas',
  3523. iconName: 'at',
  3524. 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"]
  3525. };
  3526. var faAtlas = {
  3527. prefix: 'fas',
  3528. iconName: 'atlas',
  3529. 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"]
  3530. };
  3531. var faAtom = {
  3532. prefix: 'fas',
  3533. iconName: 'atom',
  3534. icon: [448, 512, [], "f5d2", "M223.99908,224a32,32,0,1,0,32.00782,32A32.06431,32.06431,0,0,0,223.99908,224Zm214.172-96c-10.877-19.5-40.50979-50.75-116.27544-41.875C300.39168,34.875,267.63386,0,223.99908,0s-76.39066,34.875-97.89653,86.125C50.3369,77.375,20.706,108.5,9.82907,128-6.54984,157.375-5.17484,201.125,34.958,256-5.17484,310.875-6.54984,354.625,9.82907,384c29.13087,52.375,101.64652,43.625,116.27348,41.875C147.60842,477.125,180.36429,512,223.99908,512s76.3926-34.875,97.89652-86.125c14.62891,1.75,87.14456,10.5,116.27544-41.875C454.55,354.625,453.175,310.875,413.04017,256,453.175,201.125,454.55,157.375,438.171,128ZM63.33886,352c-4-7.25-.125-24.75,15.00391-48.25,6.87695,6.5,14.12891,12.875,21.88087,19.125,1.625,13.75,4,27.125,6.75,40.125C82.34472,363.875,67.09081,358.625,63.33886,352Zm36.88478-162.875c-7.752,6.25-15.00392,12.625-21.88087,19.125-15.12891-23.5-19.00392-41-15.00391-48.25,3.377-6.125,16.37891-11.5,37.88478-11.5,1.75,0,3.875.375,5.75.375C104.09864,162.25,101.84864,175.625,100.22364,189.125ZM223.99908,64c9.50195,0,22.25586,13.5,33.88282,37.25-11.252,3.75-22.50391,8-33.88282,12.875-11.377-4.875-22.62892-9.125-33.88283-12.875C201.74516,77.5,214.49712,64,223.99908,64Zm0,384c-9.502,0-22.25392-13.5-33.88283-37.25,11.25391-3.75,22.50587-8,33.88283-12.875C235.378,402.75,246.62994,407,257.8819,410.75,246.25494,434.5,233.501,448,223.99908,448Zm0-112a80,80,0,1,1,80-80A80.00023,80.00023,0,0,1,223.99908,336ZM384.6593,352c-3.625,6.625-19.00392,11.875-43.63479,11,2.752-13,5.127-26.375,6.752-40.125,7.75195-6.25,15.00391-12.625,21.87891-19.125C384.7843,327.25,388.6593,344.75,384.6593,352ZM369.65538,208.25c-6.875-6.5-14.127-12.875-21.87891-19.125-1.625-13.5-3.875-26.875-6.752-40.25,1.875,0,4.002-.375,5.752-.375,21.50391,0,34.50782,5.375,37.88283,11.5C388.6593,167.25,384.7843,184.75,369.65538,208.25Z"]
  3535. };
  3536. var faAudioDescription = {
  3537. prefix: 'fas',
  3538. iconName: 'audio-description',
  3539. 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"]
  3540. };
  3541. var faAward = {
  3542. prefix: 'fas',
  3543. iconName: 'award',
  3544. 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"]
  3545. };
  3546. var faBaby = {
  3547. prefix: 'fas',
  3548. iconName: 'baby',
  3549. icon: [384, 512, [], "f77c", "M192 160c44.2 0 80-35.8 80-80S236.2 0 192 0s-80 35.8-80 80 35.8 80 80 80zm-53.4 248.8l25.6-32-61.5-51.2L56.8 383c-11.4 14.2-11.7 34.4-.8 49l48 64c7.9 10.5 19.9 16 32 16 8.3 0 16.8-2.6 24-8 17.7-13.2 21.2-38.3 8-56l-29.4-39.2zm142.7-83.2l-61.5 51.2 25.6 32L216 448c-13.2 17.7-9.7 42.8 8 56 7.2 5.4 15.6 8 24 8 12.2 0 24.2-5.5 32-16l48-64c10.9-14.6 10.6-34.8-.8-49l-45.9-57.4zM376.7 145c-12.7-18.1-37.6-22.4-55.7-9.8l-40.6 28.5c-52.7 37-124.2 37-176.8 0L63 135.3C44.9 122.6 20 127 7.3 145-5.4 163.1-1 188 17 200.7l40.6 28.5c17 11.9 35.4 20.9 54.4 27.9V288h160v-30.8c19-7 37.4-16 54.4-27.9l40.6-28.5c18.1-12.8 22.4-37.7 9.7-55.8z"]
  3550. };
  3551. var faBabyCarriage = {
  3552. prefix: 'fas',
  3553. iconName: 'baby-carriage',
  3554. icon: [512, 512, [], "f77d", "M144.8 17c-11.3-17.8-37.2-22.8-54-9.4C35.3 51.9 0 118 0 192h256L144.8 17zM496 96h-48c-35.3 0-64 28.7-64 64v64H0c0 50.6 23 96.4 60.3 130.7C25.7 363.6 0 394.7 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-8.9-1.8-17.2-4.4-25.2 21.6 5.9 44.6 9.2 68.4 9.2s46.9-3.3 68.4-9.2c-2.7 8-4.4 16.3-4.4 25.2 0 44.2 35.8 80 80 80s80-35.8 80-80c0-37.3-25.7-68.4-60.3-77.3C425 320.4 448 274.6 448 224v-64h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM80 464c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm320-32c0 17.6-14.4 32-32 32s-32-14.4-32-32 14.4-32 32-32 32 14.4 32 32z"]
  3555. };
  3556. var faBackspace = {
  3557. prefix: 'fas',
  3558. iconName: 'backspace',
  3559. 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"]
  3560. };
  3561. var faBackward = {
  3562. prefix: 'fas',
  3563. iconName: 'backward',
  3564. 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"]
  3565. };
  3566. var faBacon = {
  3567. prefix: 'fas',
  3568. iconName: 'bacon',
  3569. icon: [576, 512, [], "f7e5", "M218.92 336.39c34.89-34.89 44.2-59.7 54.05-86 10.61-28.29 21.59-57.54 61.37-97.34s69.05-50.77 97.35-61.38c23.88-9 46.64-17.68 76.79-45.37L470.81 8.91a31 31 0 0 0-40.18-2.83c-13.64 10.1-25.15 14.39-41 20.3C247 79.52 209.26 191.29 200.65 214.1c-29.75 78.83-89.55 94.68-98.72 98.09-24.86 9.26-54.73 20.38-91.07 50.36C-3 374-3.63 395 9.07 407.61l35.76 35.51C80 410.52 107 400.15 133 390.39c26.27-9.84 51.06-19.12 85.92-54zm348-232l-35.75-35.51c-35.19 32.63-62.18 43-88.25 52.79-26.26 9.85-51.06 19.16-85.95 54s-44.19 59.69-54 86C292.33 290 281.34 319.22 241.55 359s-69 50.73-97.3 61.32c-23.86 9-46.61 17.66-76.72 45.33l37.68 37.43a31 31 0 0 0 40.18 2.82c13.6-10.06 25.09-14.34 40.94-20.24 142.2-53 180-164.1 188.94-187.69C405 219.18 464.8 203.3 474 199.86c24.87-9.27 54.74-20.4 91.11-50.41 13.89-11.4 14.52-32.45 1.82-45.05z"]
  3570. };
  3571. var faBacteria = {
  3572. prefix: 'fas',
  3573. iconName: 'bacteria',
  3574. icon: [640, 512, [], "f959", "M272.35,226.4A17.71,17.71,0,0,0,281.46,203l-4-9.08a121.29,121.29,0,0,1,12.36-3.08A83.34,83.34,0,0,0,323.57,177l10,9a17.76,17.76,0,1,0,23.92-26.27l-9.72-8.76a83.12,83.12,0,0,0,11.65-48.18l11.85-3.51a17.73,17.73,0,1,0-10.15-34l-11.34,3.36a84,84,0,0,0-36.38-35.57l2.84-10.85a17.8,17.8,0,0,0-34.47-8.93l-2.82,10.78a83.25,83.25,0,0,0-16.74,1.1C250.83,27,240,30.22,229.1,33.39l-3.38-9.46a17.8,17.8,0,0,0-33.56,11.89l3.49,9.8a286.74,286.74,0,0,0-43.94,23.57l-6.32-8.43a17.9,17.9,0,0,0-24.94-3.6A17.69,17.69,0,0,0,116.84,82l6.45,8.61a286.59,286.59,0,0,0-34.95,35.33l-8.82-6.42a17.84,17.84,0,0,0-24.89,3.86,17.66,17.66,0,0,0,3.88,24.77l8.88,6.47a286.6,286.6,0,0,0-23,43.91l-10.48-3.59a17.73,17.73,0,1,0-11.59,33.52L32.67,232c-2.79,10-5.79,19.84-7.52,30.22a83.16,83.16,0,0,0-.82,19l-11.58,3.43a17.73,17.73,0,1,0,10.13,34l11.27-3.33a83.51,83.51,0,0,0,36.39,35.43l-2.88,11.06a17.81,17.81,0,0,0,34.48,8.92l2.87-11c1,0,2.07.26,3.1.26a83.39,83.39,0,0,0,45.65-13.88l8.59,8.8a17.77,17.77,0,0,0,25.56-24.7l-9.14-9.37a83.41,83.41,0,0,0,12.08-31.05,119.08,119.08,0,0,1,3.87-15.53l9,4.22a17.74,17.74,0,1,0,15.15-32.09l-8.8-4.11c.67-1,1.2-2.08,1.9-3.05a119.89,119.89,0,0,1,7.87-9.41,121.73,121.73,0,0,1,11.65-11.4,119.49,119.49,0,0,1,9.94-7.82c1.12-.77,2.32-1.42,3.47-2.15l3.92,8.85a17.86,17.86,0,0,0,16.32,10.58A18.14,18.14,0,0,0,272.35,226.4ZM128,256a32,32,0,1,1,32-32A32,32,0,0,1,128,256Zm80-96a16,16,0,1,1,16-16A16,16,0,0,1,208,160Zm431.26,45.3a17.79,17.79,0,0,0-17.06-12.69,17.55,17.55,0,0,0-5.08.74l-11.27,3.33a83.61,83.61,0,0,0-36.39-35.43l2.88-11.06a17.81,17.81,0,0,0-34.48-8.91l-2.87,11c-1,0-2.07-.26-3.1-.26a83.32,83.32,0,0,0-45.65,13.89l-8.59-8.81a17.77,17.77,0,0,0-25.56,24.7l9.14,9.37a83.28,83.28,0,0,0-12.08,31.06,119.34,119.34,0,0,1-3.87,15.52l-9-4.22a17.74,17.74,0,1,0-15.15,32.09l8.8,4.11c-.67,1-1.2,2.08-1.89,3.05a117.71,117.71,0,0,1-7.94,9.47,119,119,0,0,1-11.57,11.33,121.59,121.59,0,0,1-10,7.83c-1.12.77-2.32,1.42-3.47,2.15l-3.92-8.85a17.86,17.86,0,0,0-16.32-10.58,18.14,18.14,0,0,0-7.18,1.5A17.71,17.71,0,0,0,358.54,309l4,9.08a118.71,118.71,0,0,1-12.36,3.08,83.34,83.34,0,0,0-33.77,13.9l-10-9a17.77,17.77,0,1,0-23.92,26.28l9.72,8.75a83.12,83.12,0,0,0-11.65,48.18l-11.86,3.51a17.73,17.73,0,1,0,10.16,34l11.34-3.36A84,84,0,0,0,326.61,479l-2.84,10.85a17.8,17.8,0,0,0,34.47,8.93L361.06,488a83.3,83.3,0,0,0,16.74-1.1c11.37-1.89,22.24-5.07,33.1-8.24l3.38,9.46a17.8,17.8,0,0,0,33.56-11.89l-3.49-9.79a287.66,287.66,0,0,0,43.94-23.58l6.32,8.43a17.88,17.88,0,0,0,24.93,3.6A17.67,17.67,0,0,0,523.16,430l-6.45-8.61a287.37,287.37,0,0,0,34.95-35.34l8.82,6.42a17.76,17.76,0,1,0,21-28.63l-8.88-6.46a287.17,287.17,0,0,0,23-43.92l10.48,3.59a17.73,17.73,0,1,0,11.59-33.52L607.33,280c2.79-10,5.79-19.84,7.52-30.21a83.27,83.27,0,0,0,.82-19.05l11.58-3.43A17.7,17.7,0,0,0,639.26,205.3ZM416,416a32,32,0,1,1,32-32A32,32,0,0,1,416,416Z"]
  3575. };
  3576. var faBacterium = {
  3577. prefix: 'fas',
  3578. iconName: 'bacterium',
  3579. icon: [512, 512, [], "f95a", "M511,102.93A23.76,23.76,0,0,0,481.47,87l-15.12,4.48a111.85,111.85,0,0,0-48.5-47.42l3.79-14.47a23.74,23.74,0,0,0-46-11.91l-3.76,14.37a111.94,111.94,0,0,0-22.33,1.47,386.74,386.74,0,0,0-44.33,10.41l-4.3-12a23.74,23.74,0,0,0-44.75,15.85l4.3,12.05a383.4,383.4,0,0,0-58.69,31.83l-8-10.63a23.85,23.85,0,0,0-33.24-4.8,23.57,23.57,0,0,0-4.83,33.09l8,10.63a386.14,386.14,0,0,0-46.7,47.44l-11-8a23.68,23.68,0,1,0-28,38.17l11.09,8.06a383.45,383.45,0,0,0-30.92,58.75l-12.93-4.43a23.65,23.65,0,1,0-15.47,44.69l13,4.48a385.81,385.81,0,0,0-9.3,40.53A111.58,111.58,0,0,0,32.44,375L17,379.56a23.64,23.64,0,0,0,13.51,45.31l15-4.44a111.49,111.49,0,0,0,48.53,47.24l-3.85,14.75a23.66,23.66,0,0,0,17,28.83,24.7,24.7,0,0,0,6,.75,23.73,23.73,0,0,0,23-17.7L140,479.67c1.37.05,2.77.35,4.13.35A111.22,111.22,0,0,0,205,461.5l11.45,11.74a23.7,23.7,0,0,0,34.08-32.93l-12.19-12.5a111,111,0,0,0,16.11-41.4,158.69,158.69,0,0,1,5.16-20.71l12,5.64a23.66,23.66,0,1,0,20.19-42.79l-11.72-5.49c.89-1.32,1.59-2.77,2.52-4.06a157.86,157.86,0,0,1,10.46-12.49,159.5,159.5,0,0,1,15.59-15.28,162.18,162.18,0,0,1,13.23-10.4c1.5-1,3.1-1.89,4.63-2.87l5.23,11.8a23.74,23.74,0,0,0,43.48-19.08l-5.36-12.11a158.87,158.87,0,0,1,16.49-4.1,111,111,0,0,0,45-18.54l13.33,12a23.69,23.69,0,1,0,31.88-35l-12.94-11.67A110.83,110.83,0,0,0,479.21,137L495,132.32A23.61,23.61,0,0,0,511,102.93ZM160,368a48,48,0,1,1,48-48A48,48,0,0,1,160,368Zm80-136a24,24,0,1,1,24-24A24,24,0,0,1,240,232Z"]
  3580. };
  3581. var faBahai = {
  3582. prefix: 'fas',
  3583. iconName: 'bahai',
  3584. 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"]
  3585. };
  3586. var faBalanceScale = {
  3587. prefix: 'fas',
  3588. iconName: 'balance-scale',
  3589. 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"]
  3590. };
  3591. var faBalanceScaleLeft = {
  3592. prefix: 'fas',
  3593. iconName: 'balance-scale-left',
  3594. icon: [640, 512, [], "f515", "M528 448H352V153.25c20.42-8.94 36.1-26.22 43.38-47.47l132-44.26c8.38-2.81 12.89-11.88 10.08-20.26l-10.17-30.34C524.48 2.54 515.41-1.97 507.03.84L389.11 40.37C375.3 16.36 349.69 0 320 0c-44.18 0-80 35.82-80 80 0 3.43.59 6.71 1.01 10.03l-128.39 43.05c-8.38 2.81-12.89 11.88-10.08 20.26l10.17 30.34c2.81 8.38 11.88 12.89 20.26 10.08l142.05-47.63c4.07 2.77 8.43 5.12 12.99 7.12V496c0 8.84 7.16 16 16 16h224c8.84 0 16-7.16 16-16v-32c-.01-8.84-7.17-16-16.01-16zm111.98-144c0-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 288l72-144 72 144H440zm-269.07-37.51c-17.65-35.29-68.19-35.36-85.87 0C-2.06 424.75.02 416.33.02 432H0c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-16.18 1.34-8.73-85.05-181.51zM56 416l72-144 72 144H56z"]
  3595. };
  3596. var faBalanceScaleRight = {
  3597. prefix: 'fas',
  3598. iconName: 'balance-scale-right',
  3599. icon: [640, 512, [], "f516", "M96 464v32c0 8.84 7.16 16 16 16h224c8.84 0 16-7.16 16-16V153.25c4.56-2 8.92-4.35 12.99-7.12l142.05 47.63c8.38 2.81 17.45-1.71 20.26-10.08l10.17-30.34c2.81-8.38-1.71-17.45-10.08-20.26l-128.4-43.05c.42-3.32 1.01-6.6 1.01-10.03 0-44.18-35.82-80-80-80-29.69 0-55.3 16.36-69.11 40.37L132.96.83c-8.38-2.81-17.45 1.71-20.26 10.08l-10.17 30.34c-2.81 8.38 1.71 17.45 10.08 20.26l132 44.26c7.28 21.25 22.96 38.54 43.38 47.47V448H112c-8.84 0-16 7.16-16 16zM0 304c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-15.67 2.08-7.25-85.05-181.51-17.68-35.36-68.22-35.29-85.87 0C-1.32 295.27.02 287.82.02 304H0zm56-16l72-144 72 144H56zm328.02 144H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-15.67 2.08-7.25-85.05-181.51-17.68-35.36-68.22-35.29-85.87 0-86.38 172.78-85.04 165.33-85.04 181.51zM440 416l72-144 72 144H440z"]
  3600. };
  3601. var faBan = {
  3602. prefix: 'fas',
  3603. iconName: 'ban',
  3604. 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"]
  3605. };
  3606. var faBandAid = {
  3607. prefix: 'fas',
  3608. iconName: 'band-aid',
  3609. 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"]
  3610. };
  3611. var faBarcode = {
  3612. prefix: 'fas',
  3613. iconName: 'barcode',
  3614. 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"]
  3615. };
  3616. var faBars = {
  3617. prefix: 'fas',
  3618. iconName: 'bars',
  3619. 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"]
  3620. };
  3621. var faBaseballBall = {
  3622. prefix: 'fas',
  3623. iconName: 'baseball-ball',
  3624. 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"]
  3625. };
  3626. var faBasketballBall = {
  3627. prefix: 'fas',
  3628. iconName: 'basketball-ball',
  3629. 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"]
  3630. };
  3631. var faBath = {
  3632. prefix: 'fas',
  3633. iconName: 'bath',
  3634. icon: [512, 512, [], "f2cd", "M32,384a95.4,95.4,0,0,0,32,71.09V496a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V480H384v16a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V455.09A95.4,95.4,0,0,0,480,384V336H32ZM496,256H80V69.25a21.26,21.26,0,0,1,36.28-15l19.27,19.26c-13.13,29.88-7.61,59.11,8.62,79.73l-.17.17A16,16,0,0,0,144,176l11.31,11.31a16,16,0,0,0,22.63,0L283.31,81.94a16,16,0,0,0,0-22.63L272,48a16,16,0,0,0-22.62,0l-.17.17c-20.62-16.23-49.83-21.75-79.73-8.62L150.22,20.28A69.25,69.25,0,0,0,32,69.25V256H16A16,16,0,0,0,0,272v16a16,16,0,0,0,16,16H496a16,16,0,0,0,16-16V272A16,16,0,0,0,496,256Z"]
  3635. };
  3636. var faBatteryEmpty = {
  3637. prefix: 'fas',
  3638. iconName: 'battery-empty',
  3639. 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"]
  3640. };
  3641. var faBatteryFull = {
  3642. prefix: 'fas',
  3643. iconName: 'battery-full',
  3644. 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"]
  3645. };
  3646. var faBatteryHalf = {
  3647. prefix: 'fas',
  3648. iconName: 'battery-half',
  3649. 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"]
  3650. };
  3651. var faBatteryQuarter = {
  3652. prefix: 'fas',
  3653. iconName: 'battery-quarter',
  3654. 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"]
  3655. };
  3656. var faBatteryThreeQuarters = {
  3657. prefix: 'fas',
  3658. iconName: 'battery-three-quarters',
  3659. 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"]
  3660. };
  3661. var faBed = {
  3662. prefix: 'fas',
  3663. iconName: 'bed',
  3664. 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"]
  3665. };
  3666. var faBeer = {
  3667. prefix: 'fas',
  3668. iconName: 'beer',
  3669. 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"]
  3670. };
  3671. var faBell = {
  3672. prefix: 'fas',
  3673. iconName: 'bell',
  3674. 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"]
  3675. };
  3676. var faBellSlash = {
  3677. prefix: 'fas',
  3678. iconName: 'bell-slash',
  3679. 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"]
  3680. };
  3681. var faBezierCurve = {
  3682. prefix: 'fas',
  3683. iconName: 'bezier-curve',
  3684. 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"]
  3685. };
  3686. var faBible = {
  3687. prefix: 'fas',
  3688. iconName: 'bible',
  3689. 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"]
  3690. };
  3691. var faBicycle = {
  3692. prefix: 'fas',
  3693. iconName: 'bicycle',
  3694. 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"]
  3695. };
  3696. var faBiking = {
  3697. prefix: 'fas',
  3698. iconName: 'biking',
  3699. icon: [640, 512, [], "f84a", "M400 96a48 48 0 1 0-48-48 48 48 0 0 0 48 48zm-4 121a31.9 31.9 0 0 0 20 7h64a32 32 0 0 0 0-64h-52.78L356 103a31.94 31.94 0 0 0-40.81.68l-112 96a32 32 0 0 0 3.08 50.92L288 305.12V416a32 32 0 0 0 64 0V288a32 32 0 0 0-14.25-26.62l-41.36-27.57 58.25-49.92zm116 39a128 128 0 1 0 128 128 128 128 0 0 0-128-128zm0 192a64 64 0 1 1 64-64 64 64 0 0 1-64 64zM128 256a128 128 0 1 0 128 128 128 128 0 0 0-128-128zm0 192a64 64 0 1 1 64-64 64 64 0 0 1-64 64z"]
  3700. };
  3701. var faBinoculars = {
  3702. prefix: 'fas',
  3703. iconName: 'binoculars',
  3704. 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"]
  3705. };
  3706. var faBiohazard = {
  3707. prefix: 'fas',
  3708. iconName: 'biohazard',
  3709. icon: [576, 512, [], "f780", "M287.9 112c18.6 0 36.2 3.8 52.8 9.6 13.3-10.3 23.6-24.3 29.5-40.7-25.2-10.9-53-17-82.2-17-29.1 0-56.9 6-82.1 16.9 5.9 16.4 16.2 30.4 29.5 40.7 16.5-5.7 34-9.5 52.5-9.5zM163.6 438.7c12-11.8 20.4-26.4 24.5-42.4-32.9-26.4-54.8-65.3-58.9-109.6-8.5-2.8-17.2-4.6-26.4-4.6-7.6 0-15.2 1-22.5 3.1 4.1 62.8 35.8 118 83.3 153.5zm224.2-42.6c4.1 16 12.5 30.7 24.5 42.5 47.4-35.5 79.1-90.7 83-153.5-7.2-2-14.7-3-22.2-3-9.2 0-18 1.9-26.6 4.7-4.1 44.2-26 82.9-58.7 109.3zm113.5-205c-17.6-10.4-36.3-16.6-55.3-19.9 6-17.7 10-36.4 10-56.2 0-41-14.5-80.8-41-112.2-2.5-3-6.6-3.7-10-1.8-3.3 1.9-4.8 6-3.6 9.7 4.5 13.8 6.6 26.3 6.6 38.5 0 67.8-53.8 122.9-120 122.9S168 117 168 49.2c0-12.1 2.2-24.7 6.6-38.5 1.2-3.7-.3-7.8-3.6-9.7-3.4-1.9-7.5-1.2-10 1.8C134.6 34.2 120 74 120 115c0 19.8 3.9 38.5 10 56.2-18.9 3.3-37.7 9.5-55.3 19.9-34.6 20.5-61 53.3-74.3 92.4-1.3 3.7.2 7.7 3.5 9.8 3.3 2 7.5 1.3 10-1.6 9.4-10.8 19-19.1 29.2-25.1 57.3-33.9 130.8-13.7 163.9 45 33.1 58.7 13.4 134-43.9 167.9-10.2 6.1-22 10.4-35.8 13.4-3.7.8-6.4 4.2-6.4 8.1.1 4 2.7 7.3 6.5 8 39.7 7.8 80.6.8 115.2-19.7 18-10.6 32.9-24.5 45.3-40.1 12.4 15.6 27.3 29.5 45.3 40.1 34.6 20.5 75.5 27.5 115.2 19.7 3.8-.7 6.4-4 6.5-8 0-3.9-2.6-7.3-6.4-8.1-13.9-2.9-25.6-7.3-35.8-13.4-57.3-33.9-77-109.2-43.9-167.9s106.6-78.9 163.9-45c10.2 6.1 19.8 14.3 29.2 25.1 2.5 2.9 6.7 3.6 10 1.6s4.8-6.1 3.5-9.8c-13.1-39.1-39.5-72-74.1-92.4zm-213.4 129c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"]
  3710. };
  3711. var faBirthdayCake = {
  3712. prefix: 'fas',
  3713. iconName: 'birthday-cake',
  3714. 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"]
  3715. };
  3716. var faBlender = {
  3717. prefix: 'fas',
  3718. iconName: 'blender',
  3719. 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"]
  3720. };
  3721. var faBlenderPhone = {
  3722. prefix: 'fas',
  3723. iconName: 'blender-phone',
  3724. 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"]
  3725. };
  3726. var faBlind = {
  3727. prefix: 'fas',
  3728. iconName: 'blind',
  3729. 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"]
  3730. };
  3731. var faBlog = {
  3732. prefix: 'fas',
  3733. iconName: 'blog',
  3734. icon: [512, 512, [], "f781", "M172.2 226.8c-14.6-2.9-28.2 8.9-28.2 23.8V301c0 10.2 7.1 18.4 16.7 22 18.2 6.8 31.3 24.4 31.3 45 0 26.5-21.5 48-48 48s-48-21.5-48-48V120c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v248c0 89.5 82.1 160.2 175 140.7 54.4-11.4 98.3-55.4 109.7-109.7 17.4-82.9-37-157.2-112.5-172.2zM209 0c-9.2-.5-17 6.8-17 16v31.6c0 8.5 6.6 15.5 15 15.9 129.4 7 233.4 112 240.9 241.5.5 8.4 7.5 15 15.9 15h32.1c9.2 0 16.5-7.8 16-17C503.4 139.8 372.2 8.6 209 0zm.3 96c-9.3-.7-17.3 6.7-17.3 16.1v32.1c0 8.4 6.5 15.3 14.8 15.9 76.8 6.3 138 68.2 144.9 145.2.8 8.3 7.6 14.7 15.9 14.7h32.2c9.3 0 16.8-8 16.1-17.3-8.4-110.1-96.5-198.2-206.6-206.7z"]
  3735. };
  3736. var faBold = {
  3737. prefix: 'fas',
  3738. iconName: 'bold',
  3739. icon: [384, 512, [], "f032", "M333.49 238a122 122 0 0 0 27-65.21C367.87 96.49 308 32 233.42 32H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h31.87v288H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h209.32c70.8 0 134.14-51.75 141-122.4 4.74-48.45-16.39-92.06-50.83-119.6zM145.66 112h87.76a48 48 0 0 1 0 96h-87.76zm87.76 288h-87.76V288h87.76a56 56 0 0 1 0 112z"]
  3740. };
  3741. var faBolt = {
  3742. prefix: 'fas',
  3743. iconName: 'bolt',
  3744. icon: [320, 512, [], "f0e7", "M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]
  3745. };
  3746. var faBomb = {
  3747. prefix: 'fas',
  3748. iconName: 'bomb',
  3749. 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"]
  3750. };
  3751. var faBone = {
  3752. prefix: 'fas',
  3753. iconName: 'bone',
  3754. 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"]
  3755. };
  3756. var faBong = {
  3757. prefix: 'fas',
  3758. iconName: 'bong',
  3759. 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"]
  3760. };
  3761. var faBook = {
  3762. prefix: 'fas',
  3763. iconName: 'book',
  3764. 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"]
  3765. };
  3766. var faBookDead = {
  3767. prefix: 'fas',
  3768. iconName: 'book-dead',
  3769. icon: [448, 512, [], "f6b7", "M272 136c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 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.2 0 80 28.7 80 64 0 20.9-12.7 39.2-32 50.9V184c0 8.8-7.2 16-16 16h-64c-8.8 0-16-7.2-16-16v-13.1c-19.3-11.7-32-30-32-50.9 0-35.3 35.8-64 80-64zM124.8 223.3l6.3-14.7c1.7-4.1 6.4-5.9 10.5-4.2l98.3 42.1 98.4-42.1c4.1-1.7 8.8.1 10.5 4.2l6.3 14.7c1.7 4.1-.1 8.8-4.2 10.5L280.6 264l70.3 30.1c4.1 1.7 5.9 6.4 4.2 10.5l-6.3 14.7c-1.7 4.1-6.4 5.9-10.5 4.2L240 281.4l-98.3 42.2c-4.1 1.7-8.8-.1-10.5-4.2l-6.3-14.7c-1.7-4.1.1-8.8 4.2-10.5l70.4-30.1-70.5-30.3c-4.1-1.7-5.9-6.4-4.2-10.5zm256 224.7H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8zM208 136c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16z"]
  3770. };
  3771. var faBookMedical = {
  3772. prefix: 'fas',
  3773. iconName: 'book-medical',
  3774. icon: [448, 512, [], "f7e6", "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-16q0-9.6-9.6-19.2c-3.2-16-3.2-60.8 0-73.6q9.6-4.8 9.6-19.2zM144 168a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8v48a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8zm236.8 280H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8z"]
  3775. };
  3776. var faBookOpen = {
  3777. prefix: 'fas',
  3778. iconName: 'book-open',
  3779. 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"]
  3780. };
  3781. var faBookReader = {
  3782. prefix: 'fas',
  3783. iconName: 'book-reader',
  3784. 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"]
  3785. };
  3786. var faBookmark = {
  3787. prefix: 'fas',
  3788. iconName: 'bookmark',
  3789. icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"]
  3790. };
  3791. var faBorderAll = {
  3792. prefix: 'fas',
  3793. iconName: 'border-all',
  3794. icon: [448, 512, [], "f84c", "M416 32H32A32 32 0 0 0 0 64v384a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32zm-32 64v128H256V96zm-192 0v128H64V96zM64 416V288h128v128zm192 0V288h128v128z"]
  3795. };
  3796. var faBorderNone = {
  3797. prefix: 'fas',
  3798. iconName: 'border-none',
  3799. icon: [448, 512, [], "f850", "M240 224h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-288 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM240 320h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-96 288h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96-384h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM48 224H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  3800. };
  3801. var faBorderStyle = {
  3802. prefix: 'fas',
  3803. iconName: 'border-style',
  3804. icon: [448, 512, [], "f853", "M240 416h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm192 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-288h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H32A32 32 0 0 0 0 64v400a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V96h368a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  3805. };
  3806. var faBowlingBall = {
  3807. prefix: 'fas',
  3808. iconName: 'bowling-ball',
  3809. 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"]
  3810. };
  3811. var faBox = {
  3812. prefix: 'fas',
  3813. iconName: 'box',
  3814. 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"]
  3815. };
  3816. var faBoxOpen = {
  3817. prefix: 'fas',
  3818. iconName: 'box-open',
  3819. icon: [640, 512, [], "f49e", "M425.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.9zm212.6-112.2L586.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.1zM53.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.9z"]
  3820. };
  3821. var faBoxTissue = {
  3822. prefix: 'fas',
  3823. iconName: 'box-tissue',
  3824. icon: [512, 512, [], "f95b", "M383.88,287.82l64-192H338.47a70.2,70.2,0,0,1-66.59-48,70.21,70.21,0,0,0-66.6-48H63.88l64,288Zm-384,192a32,32,0,0,0,32,32h448a32,32,0,0,0,32-32v-64H-.12Zm480-256H438.94l-21.33,64h14.27a16,16,0,0,1,0,32h-352a16,16,0,1,1,0-32H95.09l-14.22-64h-49a32,32,0,0,0-32,32v128h512v-128A32,32,0,0,0,479.88,223.82Z"]
  3825. };
  3826. var faBoxes = {
  3827. prefix: 'fas',
  3828. iconName: 'boxes',
  3829. 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"]
  3830. };
  3831. var faBraille = {
  3832. prefix: 'fas',
  3833. iconName: 'braille',
  3834. 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"]
  3835. };
  3836. var faBrain = {
  3837. prefix: 'fas',
  3838. iconName: 'brain',
  3839. icon: [576, 512, [], "f5dc", "M208 0c-29.9 0-54.7 20.5-61.8 48.2-.8 0-1.4-.2-2.2-.2-35.3 0-64 28.7-64 64 0 4.8.6 9.5 1.7 14C52.5 138 32 166.6 32 200c0 12.6 3.2 24.3 8.3 34.9C16.3 248.7 0 274.3 0 304c0 33.3 20.4 61.9 49.4 73.9-.9 4.6-1.4 9.3-1.4 14.1 0 39.8 32.2 72 72 72 4.1 0 8.1-.5 12-1.2 9.6 28.5 36.2 49.2 68 49.2 39.8 0 72-32.2 72-72V64c0-35.3-28.7-64-64-64zm368 304c0-29.7-16.3-55.3-40.3-69.1 5.2-10.6 8.3-22.3 8.3-34.9 0-33.4-20.5-62-49.7-74 1-4.5 1.7-9.2 1.7-14 0-35.3-28.7-64-64-64-.8 0-1.5.2-2.2.2C422.7 20.5 397.9 0 368 0c-35.3 0-64 28.6-64 64v376c0 39.8 32.2 72 72 72 31.8 0 58.4-20.7 68-49.2 3.9.7 7.9 1.2 12 1.2 39.8 0 72-32.2 72-72 0-4.8-.5-9.5-1.4-14.1 29-12 49.4-40.6 49.4-73.9z"]
  3840. };
  3841. var faBreadSlice = {
  3842. prefix: 'fas',
  3843. iconName: 'bread-slice',
  3844. icon: [576, 512, [], "f7ec", "M288 0C108 0 0 93.4 0 169.14 0 199.44 24.24 224 64 224v256c0 17.67 16.12 32 36 32h376c19.88 0 36-14.33 36-32V224c39.76 0 64-24.56 64-54.86C576 93.4 468 0 288 0z"]
  3845. };
  3846. var faBriefcase = {
  3847. prefix: 'fas',
  3848. iconName: 'briefcase',
  3849. 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"]
  3850. };
  3851. var faBriefcaseMedical = {
  3852. prefix: 'fas',
  3853. iconName: 'briefcase-medical',
  3854. 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"]
  3855. };
  3856. var faBroadcastTower = {
  3857. prefix: 'fas',
  3858. iconName: 'broadcast-tower',
  3859. 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"]
  3860. };
  3861. var faBroom = {
  3862. prefix: 'fas',
  3863. iconName: 'broom',
  3864. 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"]
  3865. };
  3866. var faBrush = {
  3867. prefix: 'fas',
  3868. iconName: 'brush',
  3869. 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"]
  3870. };
  3871. var faBug = {
  3872. prefix: 'fas',
  3873. iconName: 'bug',
  3874. 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"]
  3875. };
  3876. var faBuilding = {
  3877. prefix: 'fas',
  3878. iconName: 'building',
  3879. 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"]
  3880. };
  3881. var faBullhorn = {
  3882. prefix: 'fas',
  3883. iconName: 'bullhorn',
  3884. 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"]
  3885. };
  3886. var faBullseye = {
  3887. prefix: 'fas',
  3888. iconName: 'bullseye',
  3889. 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"]
  3890. };
  3891. var faBurn = {
  3892. prefix: 'fas',
  3893. iconName: 'burn',
  3894. 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"]
  3895. };
  3896. var faBus = {
  3897. prefix: 'fas',
  3898. iconName: 'bus',
  3899. 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"]
  3900. };
  3901. var faBusAlt = {
  3902. prefix: 'fas',
  3903. iconName: 'bus-alt',
  3904. 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"]
  3905. };
  3906. var faBusinessTime = {
  3907. prefix: 'fas',
  3908. iconName: 'business-time',
  3909. 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"]
  3910. };
  3911. var faCalculator = {
  3912. prefix: 'fas',
  3913. iconName: 'calculator',
  3914. 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"]
  3915. };
  3916. var faCalendar = {
  3917. prefix: 'fas',
  3918. iconName: 'calendar',
  3919. 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"]
  3920. };
  3921. var faCalendarAlt = {
  3922. prefix: 'fas',
  3923. iconName: 'calendar-alt',
  3924. icon: [448, 512, [], "f073", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
  3925. };
  3926. var faCalendarCheck = {
  3927. prefix: 'fas',
  3928. iconName: 'calendar-check',
  3929. 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"]
  3930. };
  3931. var faCalendarDay = {
  3932. prefix: 'fas',
  3933. iconName: 'calendar-day',
  3934. icon: [448, 512, [], "f783", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm64-192c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-96zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
  3935. };
  3936. var faCalendarMinus = {
  3937. prefix: 'fas',
  3938. iconName: 'calendar-minus',
  3939. 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"]
  3940. };
  3941. var faCalendarPlus = {
  3942. prefix: 'fas',
  3943. iconName: 'calendar-plus',
  3944. 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"]
  3945. };
  3946. var faCalendarTimes = {
  3947. prefix: 'fas',
  3948. iconName: 'calendar-times',
  3949. 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"]
  3950. };
  3951. var faCalendarWeek = {
  3952. prefix: 'fas',
  3953. iconName: 'calendar-week',
  3954. icon: [448, 512, [], "f784", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm64-192c0-8.8 7.2-16 16-16h288c8.8 0 16 7.2 16 16v64c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-64zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
  3955. };
  3956. var faCamera = {
  3957. prefix: 'fas',
  3958. iconName: 'camera',
  3959. 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"]
  3960. };
  3961. var faCameraRetro = {
  3962. prefix: 'fas',
  3963. iconName: 'camera-retro',
  3964. 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"]
  3965. };
  3966. var faCampground = {
  3967. prefix: 'fas',
  3968. iconName: 'campground',
  3969. 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"]
  3970. };
  3971. var faCandyCane = {
  3972. prefix: 'fas',
  3973. iconName: 'candy-cane',
  3974. icon: [512, 512, [], "f786", "M497.5 92C469.6 33.1 411.8 0 352.4 0c-27.9 0-56.2 7.3-81.8 22.6L243.1 39c-15.2 9.1-20.1 28.7-11 43.9l32.8 54.9c6 10 16.6 15.6 27.5 15.6 5.6 0 11.2-1.5 16.4-4.5l27.5-16.4c5.1-3.1 10.8-4.5 16.4-4.5 10.9 0 21.5 5.6 27.5 15.6 9.1 15.1 4.1 34.8-11 43.9L15.6 397.6c-15.2 9.1-20.1 28.7-11 43.9l32.8 54.9c6 10 16.6 15.6 27.5 15.6 5.6 0 11.2-1.5 16.4-4.5L428.6 301c71.7-42.9 104.6-133.5 68.9-209zm-177.7 13l-2.5 1.5L296.8 45c9.7-4.7 19.8-8.1 30.3-10.2l20.6 61.8c-9.8.8-19.4 3.3-27.9 8.4zM145.9 431.8l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zm107.5-63.9l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zM364.3 302l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zm20.4-197.3l46-46c8.4 6.5 16 14.1 22.6 22.6L407.6 127c-5.7-9.3-13.7-16.9-22.9-22.3zm82.1 107.8l-59.5-19.8c3.2-5.3 5.8-10.9 7.4-17.1 1.1-4.5 1.7-9.1 1.8-13.6l60.4 20.1c-2.1 10.4-5.5 20.6-10.1 30.4z"]
  3975. };
  3976. var faCannabis = {
  3977. prefix: 'fas',
  3978. iconName: 'cannabis',
  3979. 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"]
  3980. };
  3981. var faCapsules = {
  3982. prefix: 'fas',
  3983. iconName: 'capsules',
  3984. 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"]
  3985. };
  3986. var faCar = {
  3987. prefix: 'fas',
  3988. iconName: 'car',
  3989. 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"]
  3990. };
  3991. var faCarAlt = {
  3992. prefix: 'fas',
  3993. iconName: 'car-alt',
  3994. 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"]
  3995. };
  3996. var faCarBattery = {
  3997. prefix: 'fas',
  3998. iconName: 'car-battery',
  3999. 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"]
  4000. };
  4001. var faCarCrash = {
  4002. prefix: 'fas',
  4003. iconName: 'car-crash',
  4004. 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"]
  4005. };
  4006. var faCarSide = {
  4007. prefix: 'fas',
  4008. iconName: 'car-side',
  4009. 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"]
  4010. };
  4011. var faCaravan = {
  4012. prefix: 'fas',
  4013. iconName: 'caravan',
  4014. icon: [640, 512, [], "f8ff", "M416,208a16,16,0,1,0,16,16A16,16,0,0,0,416,208ZM624,320H576V160A160,160,0,0,0,416,0H64A64,64,0,0,0,0,64V320a64,64,0,0,0,64,64H96a96,96,0,0,0,192,0H624a16,16,0,0,0,16-16V336A16,16,0,0,0,624,320ZM192,432a48,48,0,1,1,48-48A48.05,48.05,0,0,1,192,432Zm64-240a32,32,0,0,1-32,32H96a32,32,0,0,1-32-32V128A32,32,0,0,1,96,96H224a32,32,0,0,1,32,32ZM448,320H320V128a32,32,0,0,1,32-32h64a32,32,0,0,1,32,32Z"]
  4015. };
  4016. var faCaretDown = {
  4017. prefix: 'fas',
  4018. iconName: 'caret-down',
  4019. 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"]
  4020. };
  4021. var faCaretLeft = {
  4022. prefix: 'fas',
  4023. iconName: 'caret-left',
  4024. 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"]
  4025. };
  4026. var faCaretRight = {
  4027. prefix: 'fas',
  4028. iconName: 'caret-right',
  4029. 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"]
  4030. };
  4031. var faCaretSquareDown = {
  4032. prefix: 'fas',
  4033. iconName: 'caret-square-down',
  4034. 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"]
  4035. };
  4036. var faCaretSquareLeft = {
  4037. prefix: 'fas',
  4038. iconName: 'caret-square-left',
  4039. 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"]
  4040. };
  4041. var faCaretSquareRight = {
  4042. prefix: 'fas',
  4043. iconName: 'caret-square-right',
  4044. 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"]
  4045. };
  4046. var faCaretSquareUp = {
  4047. prefix: 'fas',
  4048. iconName: 'caret-square-up',
  4049. 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"]
  4050. };
  4051. var faCaretUp = {
  4052. prefix: 'fas',
  4053. iconName: 'caret-up',
  4054. 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"]
  4055. };
  4056. var faCarrot = {
  4057. prefix: 'fas',
  4058. iconName: 'carrot',
  4059. icon: [512, 512, [], "f787", "M298.2 156.6c-52.7-25.7-114.5-10.5-150.2 32.8l55.2 55.2c6.3 6.3 6.3 16.4 0 22.6-3.1 3.1-7.2 4.7-11.3 4.7s-8.2-1.6-11.3-4.7L130.4 217 2.3 479.7c-2.9 6-3.1 13.3 0 19.7 5.4 11.1 18.9 15.7 30 10.3l133.6-65.2-49.2-49.2c-6.3-6.2-6.3-16.4 0-22.6 6.3-6.2 16.4-6.2 22.6 0l57 57 102-49.8c24-11.7 44.5-31.3 57.1-57.1 30.1-61.7 4.5-136.1-57.2-166.2zm92.1-34.9C409.8 81 399.7 32.9 360 0c-50.3 41.7-52.5 107.5-7.9 151.9l8 8c44.4 44.6 110.3 42.4 151.9-7.9-32.9-39.7-81-49.8-121.7-30.3z"]
  4060. };
  4061. var faCartArrowDown = {
  4062. prefix: 'fas',
  4063. iconName: 'cart-arrow-down',
  4064. 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"]
  4065. };
  4066. var faCartPlus = {
  4067. prefix: 'fas',
  4068. iconName: 'cart-plus',
  4069. 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"]
  4070. };
  4071. var faCashRegister = {
  4072. prefix: 'fas',
  4073. iconName: 'cash-register',
  4074. icon: [512, 512, [], "f788", "M511.1 378.8l-26.7-160c-2.6-15.4-15.9-26.7-31.6-26.7H208v-64h96c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h96v64H59.1c-15.6 0-29 11.3-31.6 26.7L.8 378.7c-.6 3.5-.9 7-.9 10.5V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-90.7c.1-3.5-.2-7-.8-10.5zM280 248c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16zm-32 64h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16zm-32-80c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16zM80 80V48h192v32H80zm40 200h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16zm16 64v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16zm216 112c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16zm24-112c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16zm48-80c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16z"]
  4075. };
  4076. var faCat = {
  4077. prefix: 'fas',
  4078. iconName: 'cat',
  4079. 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"]
  4080. };
  4081. var faCertificate = {
  4082. prefix: 'fas',
  4083. iconName: 'certificate',
  4084. 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"]
  4085. };
  4086. var faChair = {
  4087. prefix: 'fas',
  4088. iconName: 'chair',
  4089. icon: [448, 512, [], "f6c0", "M112 128c0-29.5 16.2-55 40-68.9V256h48V48h48v208h48V59.1c23.8 13.9 40 39.4 40 68.9v128h48V128C384 57.3 326.7 0 256 0h-64C121.3 0 64 57.3 64 128v128h48zm334.3 213.9l-10.7-32c-4.4-13.1-16.6-21.9-30.4-21.9H42.7c-13.8 0-26 8.8-30.4 21.9l-10.7 32C-5.2 362.6 10.2 384 32 384v112c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V384h256v112c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V384c21.8 0 37.2-21.4 30.3-42.1z"]
  4090. };
  4091. var faChalkboard = {
  4092. prefix: 'fas',
  4093. iconName: 'chalkboard',
  4094. 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"]
  4095. };
  4096. var faChalkboardTeacher = {
  4097. prefix: 'fas',
  4098. iconName: 'chalkboard-teacher',
  4099. 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"]
  4100. };
  4101. var faChargingStation = {
  4102. prefix: 'fas',
  4103. iconName: 'charging-station',
  4104. 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"]
  4105. };
  4106. var faChartArea = {
  4107. prefix: 'fas',
  4108. iconName: 'chart-area',
  4109. 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"]
  4110. };
  4111. var faChartBar = {
  4112. prefix: 'fas',
  4113. iconName: 'chart-bar',
  4114. 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"]
  4115. };
  4116. var faChartLine = {
  4117. prefix: 'fas',
  4118. iconName: 'chart-line',
  4119. 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"]
  4120. };
  4121. var faChartPie = {
  4122. prefix: 'fas',
  4123. iconName: 'chart-pie',
  4124. 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"]
  4125. };
  4126. var faCheck = {
  4127. prefix: 'fas',
  4128. iconName: 'check',
  4129. 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"]
  4130. };
  4131. var faCheckCircle = {
  4132. prefix: 'fas',
  4133. iconName: 'check-circle',
  4134. 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"]
  4135. };
  4136. var faCheckDouble = {
  4137. prefix: 'fas',
  4138. iconName: 'check-double',
  4139. icon: [512, 512, [], "f560", "M505 174.8l-39.6-39.6c-9.4-9.4-24.6-9.4-33.9 0L192 374.7 80.6 263.2c-9.4-9.4-24.6-9.4-33.9 0L7 302.9c-9.4 9.4-9.4 24.6 0 34L175 505c9.4 9.4 24.6 9.4 33.9 0l296-296.2c9.4-9.5 9.4-24.7.1-34zm-324.3 106c6.2 6.3 16.4 6.3 22.6 0l208-208.2c6.2-6.3 6.2-16.4 0-22.6L366.1 4.7c-6.2-6.3-16.4-6.3-22.6 0L192 156.2l-55.4-55.5c-6.2-6.3-16.4-6.3-22.6 0L68.7 146c-6.2 6.3-6.2 16.4 0 22.6l112 112.2z"]
  4140. };
  4141. var faCheckSquare = {
  4142. prefix: 'fas',
  4143. iconName: 'check-square',
  4144. 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"]
  4145. };
  4146. var faCheese = {
  4147. prefix: 'fas',
  4148. iconName: 'cheese',
  4149. icon: [512, 512, [], "f7ef", "M0 288v160a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V288zM299.83 32a32 32 0 0 0-21.13 7L0 256h512c0-119.89-94-217.8-212.17-224z"]
  4150. };
  4151. var faChess = {
  4152. prefix: 'fas',
  4153. iconName: 'chess',
  4154. icon: [512, 512, [], "f439", "M74 208H64a16 16 0 0 0-16 16v16a16 16 0 0 0 16 16h15.94A535.78 535.78 0 0 1 64 384h128a535.78 535.78 0 0 1-15.94-128H192a16 16 0 0 0 16-16v-16a16 16 0 0 0-16-16h-10l33.89-90.38a16 16 0 0 0-15-21.62H144V64h24a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8h-24V8a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v24H88a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h24v32H55.09a16 16 0 0 0-15 21.62zm173.16 251.58L224 448v-16a16 16 0 0 0-16-16H48a16 16 0 0 0-16 16v16L8.85 459.58A16 16 0 0 0 0 473.89V496a16 16 0 0 0 16 16h224a16 16 0 0 0 16-16v-22.11a16 16 0 0 0-8.84-14.31zm92.77-157.78l-3.29 82.2h126.72l-3.29-82.21 24.6-20.79A32 32 0 0 0 496 256.54V198a6 6 0 0 0-6-6h-26.38a6 6 0 0 0-6 6v26h-24.71v-26a6 6 0 0 0-6-6H373.1a6 6 0 0 0-6 6v26h-24.71v-26a6 6 0 0 0-6-6H310a6 6 0 0 0-6 6v58.6a32 32 0 0 0 11.36 24.4zM384 304a16 16 0 0 1 32 0v32h-32zm119.16 155.58L480 448v-16a16 16 0 0 0-16-16H336a16 16 0 0 0-16 16v16l-23.15 11.58a16 16 0 0 0-8.85 14.31V496a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-22.11a16 16 0 0 0-8.84-14.31z"]
  4155. };
  4156. var faChessBishop = {
  4157. prefix: 'fas',
  4158. iconName: 'chess-bishop',
  4159. icon: [320, 512, [], "f43a", "M8 287.88c0 51.64 22.14 73.83 56 84.6V416h192v-43.52c33.86-10.77 56-33 56-84.6 0-30.61-10.73-67.1-26.69-102.56L185 285.65a8 8 0 0 1-11.31 0l-11.31-11.31a8 8 0 0 1 0-11.31L270.27 155.1c-20.8-37.91-46.47-72.1-70.87-92.59C213.4 59.09 224 47.05 224 32a32 32 0 0 0-32-32h-64a32 32 0 0 0-32 32c0 15 10.6 27.09 24.6 30.51C67.81 106.8 8 214.5 8 287.88zM304 448H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  4160. };
  4161. var faChessBoard = {
  4162. prefix: 'fas',
  4163. iconName: 'chess-board',
  4164. icon: [512, 512, [], "f43c", "M255.9.2h-64v64h64zM0 64.17v64h64v-64zM128 .2H64v64h64zm64 255.9v64h64v-64zM0 192.12v64h64v-64zM383.85.2h-64v64h64zm128 0h-64v64h64zM128 256.1H64v64h64zM511.8 448v-64h-64v64zm0-128v-64h-64v64zM383.85 512h64v-64h-64zm128-319.88v-64h-64v64zM128 512h64v-64h-64zM0 512h64v-64H0zm255.9 0h64v-64h-64zM0 320.07v64h64v-64zm319.88-191.92v-64h-64v64zm-64 128h64v-64h-64zm-64 128v64h64v-64zm128-64h64v-64h-64zm0-127.95h64v-64h-64zm0 191.93v64h64v-64zM64 384.05v64h64v-64zm128-255.9v-64h-64v64zm191.92 255.9h64v-64h-64zm-128-191.93v-64h-64v64zm128-127.95v64h64v-64zm-128 255.9v64h64v-64zm-64-127.95H128v64h64zm191.92 64h64v-64h-64zM128 128.15H64v64h64zm0 191.92v64h64v-64z"]
  4165. };
  4166. var faChessKing = {
  4167. prefix: 'fas',
  4168. iconName: 'chess-king',
  4169. icon: [448, 512, [], "f43f", "M400 448H48a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm16-288H256v-48h40a8 8 0 0 0 8-8V56a8 8 0 0 0-8-8h-40V8a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v40h-40a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h40v48H32a32 32 0 0 0-30.52 41.54L74.56 416h298.88l73.08-214.46A32 32 0 0 0 416 160z"]
  4170. };
  4171. var faChessKnight = {
  4172. prefix: 'fas',
  4173. iconName: 'chess-knight',
  4174. icon: [384, 512, [], "f441", "M19 272.47l40.63 18.06a32 32 0 0 0 24.88.47l12.78-5.12a32 32 0 0 0 18.76-20.5l9.22-30.65a24 24 0 0 1 12.55-15.65L159.94 208v50.33a48 48 0 0 1-26.53 42.94l-57.22 28.65A80 80 0 0 0 32 401.48V416h319.86V224c0-106-85.92-192-191.92-192H12A12 12 0 0 0 0 44a16.9 16.9 0 0 0 1.79 7.58L16 80l-9 9a24 24 0 0 0-7 17v137.21a32 32 0 0 0 19 29.26zM52 128a20 20 0 1 1-20 20 20 20 0 0 1 20-20zm316 320H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  4175. };
  4176. var faChessPawn = {
  4177. prefix: 'fas',
  4178. iconName: 'chess-pawn',
  4179. icon: [320, 512, [], "f443", "M105.1 224H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h16v5.49c0 44-4.14 86.6-24 122.51h176c-19.89-35.91-24-78.51-24-122.51V288h16a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-25.1c29.39-18.38 49.1-50.78 49.1-88a104 104 0 0 0-208 0c0 37.22 19.71 69.62 49.1 88zM304 448H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  4180. };
  4181. var faChessQueen = {
  4182. prefix: 'fas',
  4183. iconName: 'chess-queen',
  4184. icon: [512, 512, [], "f445", "M256 112a56 56 0 1 0-56-56 56 56 0 0 0 56 56zm176 336H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm72.87-263.84l-28.51-15.92c-7.44-5-16.91-2.46-22.29 4.68a47.59 47.59 0 0 1-47.23 18.23C383.7 186.86 368 164.93 368 141.4a13.4 13.4 0 0 0-13.4-13.4h-38.77c-6 0-11.61 4-12.86 9.91a48 48 0 0 1-93.94 0c-1.25-5.92-6.82-9.91-12.86-9.91H157.4a13.4 13.4 0 0 0-13.4 13.4c0 25.69-19 48.75-44.67 50.49a47.5 47.5 0 0 1-41.54-19.15c-5.28-7.09-14.73-9.45-22.09-4.54l-28.57 16a16 16 0 0 0-5.44 20.47L104.24 416h303.52l102.55-211.37a16 16 0 0 0-5.44-20.47z"]
  4185. };
  4186. var faChessRook = {
  4187. prefix: 'fas',
  4188. iconName: 'chess-rook',
  4189. icon: [384, 512, [], "f447", "M368 32h-56a16 16 0 0 0-16 16v48h-48V48a16 16 0 0 0-16-16h-80a16 16 0 0 0-16 16v48H88.1V48a16 16 0 0 0-16-16H16A16 16 0 0 0 0 48v176l64 32c0 48.33-1.54 95-13.21 160h282.42C321.54 351 320 303.72 320 256l64-32V48a16 16 0 0 0-16-16zM224 320h-64v-64a32 32 0 0 1 64 0zm144 128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  4190. };
  4191. var faChevronCircleDown = {
  4192. prefix: 'fas',
  4193. iconName: 'chevron-circle-down',
  4194. 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"]
  4195. };
  4196. var faChevronCircleLeft = {
  4197. prefix: 'fas',
  4198. iconName: 'chevron-circle-left',
  4199. 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"]
  4200. };
  4201. var faChevronCircleRight = {
  4202. prefix: 'fas',
  4203. iconName: 'chevron-circle-right',
  4204. 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"]
  4205. };
  4206. var faChevronCircleUp = {
  4207. prefix: 'fas',
  4208. iconName: 'chevron-circle-up',
  4209. 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"]
  4210. };
  4211. var faChevronDown = {
  4212. prefix: 'fas',
  4213. iconName: 'chevron-down',
  4214. 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"]
  4215. };
  4216. var faChevronLeft = {
  4217. prefix: 'fas',
  4218. iconName: 'chevron-left',
  4219. 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"]
  4220. };
  4221. var faChevronRight = {
  4222. prefix: 'fas',
  4223. iconName: 'chevron-right',
  4224. 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"]
  4225. };
  4226. var faChevronUp = {
  4227. prefix: 'fas',
  4228. iconName: 'chevron-up',
  4229. 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"]
  4230. };
  4231. var faChild = {
  4232. prefix: 'fas',
  4233. iconName: 'child',
  4234. 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"]
  4235. };
  4236. var faChurch = {
  4237. prefix: 'fas',
  4238. iconName: 'church',
  4239. 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"]
  4240. };
  4241. var faCircle = {
  4242. prefix: 'fas',
  4243. iconName: 'circle',
  4244. icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"]
  4245. };
  4246. var faCircleNotch = {
  4247. prefix: 'fas',
  4248. iconName: 'circle-notch',
  4249. 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"]
  4250. };
  4251. var faCity = {
  4252. prefix: 'fas',
  4253. iconName: 'city',
  4254. 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"]
  4255. };
  4256. var faClinicMedical = {
  4257. prefix: 'fas',
  4258. iconName: 'clinic-medical',
  4259. icon: [576, 512, [], "f7f2", "M288 115L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2zm96 261a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8zm186.69-139.72l-255.94-226a39.85 39.85 0 0 0-53.45 0l-256 226a16 16 0 0 0-1.21 22.6L25.5 282.7a16 16 0 0 0 22.6 1.21L277.42 81.63a16 16 0 0 1 21.17 0L527.91 283.9a16 16 0 0 0 22.6-1.21l21.4-23.82a16 16 0 0 0-1.22-22.59z"]
  4260. };
  4261. var faClipboard = {
  4262. prefix: 'fas',
  4263. iconName: 'clipboard',
  4264. 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"]
  4265. };
  4266. var faClipboardCheck = {
  4267. prefix: 'fas',
  4268. iconName: 'clipboard-check',
  4269. 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"]
  4270. };
  4271. var faClipboardList = {
  4272. prefix: 'fas',
  4273. iconName: 'clipboard-list',
  4274. 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"]
  4275. };
  4276. var faClock = {
  4277. prefix: 'fas',
  4278. iconName: 'clock',
  4279. icon: [512, 512, [], "f017", "M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"]
  4280. };
  4281. var faClone = {
  4282. prefix: 'fas',
  4283. iconName: 'clone',
  4284. 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"]
  4285. };
  4286. var faClosedCaptioning = {
  4287. prefix: 'fas',
  4288. iconName: 'closed-captioning',
  4289. 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"]
  4290. };
  4291. var faCloud = {
  4292. prefix: 'fas',
  4293. iconName: 'cloud',
  4294. 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"]
  4295. };
  4296. var faCloudDownloadAlt = {
  4297. prefix: 'fas',
  4298. iconName: 'cloud-download-alt',
  4299. 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"]
  4300. };
  4301. var faCloudMeatball = {
  4302. prefix: 'fas',
  4303. iconName: 'cloud-meatball',
  4304. icon: [512, 512, [], "f73b", "M48 352c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm416 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-119 11.1c4.6-14.5 1.6-30.8-9.8-42.3-11.5-11.5-27.8-14.4-42.3-9.9-7-13.5-20.7-23-36.9-23s-29.9 9.5-36.9 23c-14.5-4.6-30.8-1.6-42.3 9.9-11.5 11.5-14.4 27.8-9.9 42.3-13.5 7-23 20.7-23 36.9s9.5 29.9 23 36.9c-4.6 14.5-1.6 30.8 9.9 42.3 8.2 8.2 18.9 12.3 29.7 12.3 4.3 0 8.5-1.1 12.6-2.5 7 13.5 20.7 23 36.9 23s29.9-9.5 36.9-23c4.1 1.3 8.3 2.5 12.6 2.5 10.8 0 21.5-4.1 29.7-12.3 11.5-11.5 14.4-27.8 9.8-42.3 13.5-7 23-20.7 23-36.9s-9.5-29.9-23-36.9zM512 224c0-53-43-96-96-96-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.1 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h43.4c3.6-8 8.4-15.4 14.8-21.8 13.5-13.5 31.5-21.1 50.8-21.3 13.5-13.2 31.7-20.9 51-20.9s37.5 7.7 51 20.9c19.3.2 37.3 7.8 50.8 21.3 6.4 6.4 11.3 13.8 14.8 21.8H416c53 0 96-43 96-96z"]
  4305. };
  4306. var faCloudMoon = {
  4307. prefix: 'fas',
  4308. iconName: 'cloud-moon',
  4309. icon: [576, 512, [], "f6c3", "M342.8 352.7c5.7-9.6 9.2-20.7 9.2-32.7 0-35.3-28.7-64-64-64-17.2 0-32.8 6.9-44.3 17.9-16.3-29.6-47.5-49.9-83.7-49.9-53 0-96 43-96 96 0 2 .5 3.8.6 5.7C27.1 338.8 0 374.1 0 416c0 53 43 96 96 96h240c44.2 0 80-35.8 80-80 0-41.9-32.3-75.8-73.2-79.3zm222.5-54.3c-93.1 17.7-178.5-53.7-178.5-147.7 0-54.2 29-104 76.1-130.8 7.3-4.1 5.4-15.1-2.8-16.7C448.4 1.1 436.7 0 425 0 319.1 0 233.1 85.9 233.1 192c0 8.5.7 16.8 1.8 25 5.9 4.3 11.6 8.9 16.7 14.2 11.4-4.7 23.7-7.2 36.4-7.2 52.9 0 96 43.1 96 96 0 3.6-.2 7.2-.6 10.7 23.6 10.8 42.4 29.5 53.5 52.6 54.4-3.4 103.7-29.3 137.1-70.4 5.3-6.5-.5-16.1-8.7-14.5z"]
  4310. };
  4311. var faCloudMoonRain = {
  4312. prefix: 'fas',
  4313. iconName: 'cloud-moon-rain',
  4314. icon: [576, 512, [], "f73c", "M350.5 225.5c-6.9-37.2-39.3-65.5-78.5-65.5-12.3 0-23.9 3-34.3 8-17.4-24.1-45.6-40-77.7-40-53 0-96 43-96 96 0 .5.2 1.1.2 1.6C27.6 232.9 0 265.2 0 304c0 44.2 35.8 80 80 80h256c44.2 0 80-35.8 80-80 0-39.2-28.2-71.7-65.5-78.5zm217.4-1.7c-70.4 13.3-135-40.3-135-110.8 0-40.6 21.9-78 57.5-98.1 5.5-3.1 4.1-11.4-2.1-12.5C479.6.8 470.7 0 461.8 0c-77.9 0-141.1 61.2-144.4 137.9 26.7 11.9 48.2 33.8 58.9 61.7 37.1 14.3 64 47.4 70.2 86.8 5.1.5 10 1.5 15.2 1.5 44.7 0 85.6-20.2 112.6-53.3 4.2-4.8-.2-12-6.4-10.8zM364.5 418.1c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8z"]
  4315. };
  4316. var faCloudRain = {
  4317. prefix: 'fas',
  4318. iconName: 'cloud-rain',
  4319. icon: [512, 512, [], "f73d", "M416 128c-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.1 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h320c53 0 96-43 96-96s-43-96-96-96zM88 374.2c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0zm160 0c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0zm160 0c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0z"]
  4320. };
  4321. var faCloudShowersHeavy = {
  4322. prefix: 'fas',
  4323. iconName: 'cloud-showers-heavy',
  4324. icon: [512, 512, [], "f740", "M183.9 370.1c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm96 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm-192 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm384 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm-96 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zM416 128c-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.2 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h320c53 0 96-43 96-96s-43-96-96-96z"]
  4325. };
  4326. var faCloudSun = {
  4327. prefix: 'fas',
  4328. iconName: 'cloud-sun',
  4329. icon: [640, 512, [], "f6c4", "M575.2 325.7c.2-1.9.8-3.7.8-5.6 0-35.3-28.7-64-64-64-12.6 0-24.2 3.8-34.1 10-17.6-38.8-56.5-66-101.9-66-61.8 0-112 50.1-112 112 0 3 .7 5.8.9 8.7-49.6 3.7-88.9 44.7-88.9 95.3 0 53 43 96 96 96h272c53 0 96-43 96-96 0-42.1-27.2-77.4-64.8-90.4zm-430.4-22.6c-43.7-43.7-43.7-114.7 0-158.3 43.7-43.7 114.7-43.7 158.4 0 9.7 9.7 16.9 20.9 22.3 32.7 9.8-3.7 20.1-6 30.7-7.5L386 81.1c4-11.9-7.3-23.1-19.2-19.2L279 91.2 237.5 8.4C232-2.8 216-2.8 210.4 8.4L169 91.2 81.1 61.9C69.3 58 58 69.3 61.9 81.1l29.3 87.8-82.8 41.5c-11.2 5.6-11.2 21.5 0 27.1l82.8 41.4-29.3 87.8c-4 11.9 7.3 23.1 19.2 19.2l76.1-25.3c6.1-12.4 14-23.7 23.6-33.5-13.1-5.4-25.4-13.4-36-24zm-4.8-79.2c0 40.8 29.3 74.8 67.9 82.3 8-4.7 16.3-8.8 25.2-11.7 5.4-44.3 31-82.5 67.4-105C287.3 160.4 258 140 224 140c-46.3 0-84 37.6-84 83.9z"]
  4330. };
  4331. var faCloudSunRain = {
  4332. prefix: 'fas',
  4333. iconName: 'cloud-sun-rain',
  4334. icon: [576, 512, [], "f743", "M510.5 225.5c-6.9-37.2-39.3-65.5-78.5-65.5-12.3 0-23.9 3-34.3 8-17.4-24.1-45.6-40-77.7-40-53 0-96 43-96 96 0 .5.2 1.1.2 1.6C187.6 233 160 265.2 160 304c0 44.2 35.8 80 80 80h256c44.2 0 80-35.8 80-80 0-39.2-28.2-71.7-65.5-78.5zm-386.4 34.4c-37.4-37.4-37.4-98.3 0-135.8 34.6-34.6 89.1-36.8 126.7-7.4 20-12.9 43.6-20.7 69.2-20.7.7 0 1.3.2 2 .2l8.9-26.7c3.4-10.2-6.3-19.8-16.5-16.4l-75.3 25.1-35.5-71c-4.8-9.6-18.5-9.6-23.3 0l-35.5 71-75.3-25.1c-10.2-3.4-19.8 6.3-16.4 16.5l25.1 75.3-71 35.5c-9.6 4.8-9.6 18.5 0 23.3l71 35.5-25.1 75.3c-3.4 10.2 6.3 19.8 16.5 16.5l59.2-19.7c-.2-2.4-.7-4.7-.7-7.2 0-12.5 2.3-24.5 6.2-35.9-3.6-2.7-7.1-5.2-10.2-8.3zm69.8-58c4.3-24.5 15.8-46.4 31.9-64-9.8-6.2-21.4-9.9-33.8-9.9-35.3 0-64 28.7-64 64 0 18.7 8.2 35.4 21.1 47.1 11.3-15.9 26.6-28.9 44.8-37.2zm330.6 216.2c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8z"]
  4335. };
  4336. var faCloudUploadAlt = {
  4337. prefix: 'fas',
  4338. iconName: 'cloud-upload-alt',
  4339. 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"]
  4340. };
  4341. var faCocktail = {
  4342. prefix: 'fas',
  4343. iconName: 'cocktail',
  4344. 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"]
  4345. };
  4346. var faCode = {
  4347. prefix: 'fas',
  4348. iconName: 'code',
  4349. 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"]
  4350. };
  4351. var faCodeBranch = {
  4352. prefix: 'fas',
  4353. iconName: 'code-branch',
  4354. 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"]
  4355. };
  4356. var faCoffee = {
  4357. prefix: 'fas',
  4358. iconName: 'coffee',
  4359. 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"]
  4360. };
  4361. var faCog = {
  4362. prefix: 'fas',
  4363. iconName: 'cog',
  4364. icon: [512, 512, [], "f013", "M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
  4365. };
  4366. var faCogs = {
  4367. prefix: 'fas',
  4368. iconName: 'cogs',
  4369. 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"]
  4370. };
  4371. var faCoins = {
  4372. prefix: 'fas',
  4373. iconName: 'coins',
  4374. 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"]
  4375. };
  4376. var faColumns = {
  4377. prefix: 'fas',
  4378. iconName: 'columns',
  4379. 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"]
  4380. };
  4381. var faComment = {
  4382. prefix: 'fas',
  4383. iconName: 'comment',
  4384. 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"]
  4385. };
  4386. var faCommentAlt = {
  4387. prefix: 'fas',
  4388. iconName: 'comment-alt',
  4389. 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"]
  4390. };
  4391. var faCommentDollar = {
  4392. prefix: 'fas',
  4393. iconName: 'comment-dollar',
  4394. 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"]
  4395. };
  4396. var faCommentDots = {
  4397. prefix: 'fas',
  4398. iconName: 'comment-dots',
  4399. 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"]
  4400. };
  4401. var faCommentMedical = {
  4402. prefix: 'fas',
  4403. iconName: 'comment-medical',
  4404. icon: [512, 512, [], "f7f5", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95 57 130.74C44.46 421.05 2.7 466 2.2 466.5A8 8 0 0 0 8 480c66.26 0 116-31.75 140.6-51.38A304.66 304.66 0 0 0 256 448c141.39 0 256-93.12 256-208S397.39 32 256 32zm96 232a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8z"]
  4405. };
  4406. var faCommentSlash = {
  4407. prefix: 'fas',
  4408. iconName: 'comment-slash',
  4409. 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"]
  4410. };
  4411. var faComments = {
  4412. prefix: 'fas',
  4413. iconName: 'comments',
  4414. 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"]
  4415. };
  4416. var faCommentsDollar = {
  4417. prefix: 'fas',
  4418. iconName: 'comments-dollar',
  4419. 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"]
  4420. };
  4421. var faCompactDisc = {
  4422. prefix: 'fas',
  4423. iconName: 'compact-disc',
  4424. 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"]
  4425. };
  4426. var faCompass = {
  4427. prefix: 'fas',
  4428. iconName: 'compass',
  4429. 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"]
  4430. };
  4431. var faCompress = {
  4432. prefix: 'fas',
  4433. iconName: 'compress',
  4434. 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"]
  4435. };
  4436. var faCompressAlt = {
  4437. prefix: 'fas',
  4438. iconName: 'compress-alt',
  4439. icon: [448, 512, [], "f422", "M4.686 427.314L104 328l-32.922-31.029C55.958 281.851 66.666 256 88.048 256h112C213.303 256 224 266.745 224 280v112c0 21.382-25.803 32.09-40.922 16.971L152 376l-99.314 99.314c-6.248 6.248-16.379 6.248-22.627 0L4.686 449.941c-6.248-6.248-6.248-16.379 0-22.627zM443.314 84.686L344 184l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C234.697 256 224 245.255 224 232V120c0-21.382 25.803-32.09 40.922-16.971L296 136l99.314-99.314c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.248 6.248 6.248 16.379 0 22.627z"]
  4440. };
  4441. var faCompressArrowsAlt = {
  4442. prefix: 'fas',
  4443. iconName: 'compress-arrows-alt',
  4444. icon: [512, 512, [], "f78c", "M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z"]
  4445. };
  4446. var faConciergeBell = {
  4447. prefix: 'fas',
  4448. iconName: 'concierge-bell',
  4449. 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"]
  4450. };
  4451. var faCookie = {
  4452. prefix: 'fas',
  4453. iconName: 'cookie',
  4454. 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"]
  4455. };
  4456. var faCookieBite = {
  4457. prefix: 'fas',
  4458. iconName: 'cookie-bite',
  4459. 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"]
  4460. };
  4461. var faCopy = {
  4462. prefix: 'fas',
  4463. iconName: 'copy',
  4464. 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"]
  4465. };
  4466. var faCopyright = {
  4467. prefix: 'fas',
  4468. iconName: 'copyright',
  4469. 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"]
  4470. };
  4471. var faCouch = {
  4472. prefix: 'fas',
  4473. iconName: 'couch',
  4474. 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"]
  4475. };
  4476. var faCreditCard = {
  4477. prefix: 'fas',
  4478. iconName: 'credit-card',
  4479. 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"]
  4480. };
  4481. var faCrop = {
  4482. prefix: 'fas',
  4483. iconName: 'crop',
  4484. 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"]
  4485. };
  4486. var faCropAlt = {
  4487. prefix: 'fas',
  4488. iconName: 'crop-alt',
  4489. 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"]
  4490. };
  4491. var faCross = {
  4492. prefix: 'fas',
  4493. iconName: 'cross',
  4494. 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"]
  4495. };
  4496. var faCrosshairs = {
  4497. prefix: 'fas',
  4498. iconName: 'crosshairs',
  4499. 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"]
  4500. };
  4501. var faCrow = {
  4502. prefix: 'fas',
  4503. iconName: 'crow',
  4504. 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"]
  4505. };
  4506. var faCrown = {
  4507. prefix: 'fas',
  4508. iconName: 'crown',
  4509. 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"]
  4510. };
  4511. var faCrutch = {
  4512. prefix: 'fas',
  4513. iconName: 'crutch',
  4514. icon: [512, 512, [], "f7f7", "M507.31 185.71l-181-181a16 16 0 0 0-22.62 0L281 27.31a16 16 0 0 0 0 22.63l181 181a16 16 0 0 0 22.63 0l22.62-22.63a16 16 0 0 0 .06-22.6zm-179.54 66.41l-67.89-67.89 55.1-55.1-45.25-45.25-109.67 109.67a96.08 96.08 0 0 0-25.67 46.29L106.65 360.1l-102 102a16 16 0 0 0 0 22.63l22.62 22.62a16 16 0 0 0 22.63 0l102-102 120.25-27.75a95.88 95.88 0 0 0 46.29-25.65l109.68-109.68L382.87 197zm-54.57 54.57a32 32 0 0 1-15.45 8.54l-79.3 18.32 18.3-79.3a32.22 32.22 0 0 1 8.56-15.45l9.31-9.31 67.89 67.89z"]
  4515. };
  4516. var faCube = {
  4517. prefix: 'fas',
  4518. iconName: 'cube',
  4519. 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"]
  4520. };
  4521. var faCubes = {
  4522. prefix: 'fas',
  4523. iconName: 'cubes',
  4524. 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"]
  4525. };
  4526. var faCut = {
  4527. prefix: 'fas',
  4528. iconName: 'cut',
  4529. 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"]
  4530. };
  4531. var faDatabase = {
  4532. prefix: 'fas',
  4533. iconName: 'database',
  4534. 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"]
  4535. };
  4536. var faDeaf = {
  4537. prefix: 'fas',
  4538. iconName: 'deaf',
  4539. 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"]
  4540. };
  4541. var faDemocrat = {
  4542. prefix: 'fas',
  4543. iconName: 'democrat',
  4544. icon: [640, 512, [], "f747", "M637.3 256.9l-19.6-29.4c-28.2-42.3-75.3-67.5-126.1-67.5H256l-81.2-81.2c20.1-20.1 22.6-51.1 7.5-73.9-3.4-5.2-10.8-5.9-15.2-1.5l-41.8 41.8L82.4 2.4c-3.6-3.6-9.6-3-12.4 1.2-12.3 18.6-10.3 44 6.1 60.4 3.3 3.3 7.3 5.3 11.3 7.5-2.2 1.7-4.7 3.1-6.4 5.4L6.4 176.2c-7.3 9.7-8.4 22.7-3 33.5l14.3 28.6c5.4 10.8 16.5 17.7 28.6 17.7h31c8.5 0 16.6-3.4 22.6-9.4L138 212l54 108h352v-77.8c16.2 12.2 18.3 17.6 40.1 50.3 4.9 7.4 14.8 9.3 22.2 4.4l26.6-17.7c7.3-5 9.3-14.9 4.4-22.3zm-341.1-13.6l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L256 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zm112 0l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L368 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zm112 0l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L480 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zM192 496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80h160v80c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V352H192v144z"]
  4545. };
  4546. var faDesktop = {
  4547. prefix: 'fas',
  4548. iconName: 'desktop',
  4549. 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"]
  4550. };
  4551. var faDharmachakra = {
  4552. prefix: 'fas',
  4553. iconName: 'dharmachakra',
  4554. 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"]
  4555. };
  4556. var faDiagnoses = {
  4557. prefix: 'fas',
  4558. iconName: 'diagnoses',
  4559. 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"]
  4560. };
  4561. var faDice = {
  4562. prefix: 'fas',
  4563. iconName: 'dice',
  4564. 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"]
  4565. };
  4566. var faDiceD20 = {
  4567. prefix: 'fas',
  4568. iconName: 'dice-d20',
  4569. 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"]
  4570. };
  4571. var faDiceD6 = {
  4572. prefix: 'fas',
  4573. iconName: 'dice-d6',
  4574. 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"]
  4575. };
  4576. var faDiceFive = {
  4577. prefix: 'fas',
  4578. iconName: 'dice-five',
  4579. 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"]
  4580. };
  4581. var faDiceFour = {
  4582. prefix: 'fas',
  4583. iconName: 'dice-four',
  4584. 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"]
  4585. };
  4586. var faDiceOne = {
  4587. prefix: 'fas',
  4588. iconName: 'dice-one',
  4589. 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"]
  4590. };
  4591. var faDiceSix = {
  4592. prefix: 'fas',
  4593. iconName: 'dice-six',
  4594. 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"]
  4595. };
  4596. var faDiceThree = {
  4597. prefix: 'fas',
  4598. iconName: 'dice-three',
  4599. 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"]
  4600. };
  4601. var faDiceTwo = {
  4602. prefix: 'fas',
  4603. iconName: 'dice-two',
  4604. 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"]
  4605. };
  4606. var faDigitalTachograph = {
  4607. prefix: 'fas',
  4608. iconName: 'digital-tachograph',
  4609. 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"]
  4610. };
  4611. var faDirections = {
  4612. prefix: 'fas',
  4613. iconName: 'directions',
  4614. 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"]
  4615. };
  4616. var faDisease = {
  4617. prefix: 'fas',
  4618. iconName: 'disease',
  4619. icon: [512, 512, [], "f7fa", "M472.29 195.9l-67.06-23c-19.28-6.6-33.54-20.92-38.14-38.31l-16-60.45c-11.58-43.77-76.57-57.13-110-22.62L195 99.24c-13.26 13.71-33.54 20.93-54.2 19.31l-71.9-5.62c-52-4.07-86.93 44.89-59 82.84l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24l-28.43 57C4 396.67 47.46 440.29 98.11 429.23l70-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101 7.57 104.45-37.22l4.7-61.86c1.35-17.8 12.8-33.87 30.63-43l62-31.74c44.84-22.96 39.55-80.17-8.99-96.79zM160 256a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm128 96a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm16-128a16 16 0 1 1 16-16 16 16 0 0 1-16 16z"]
  4620. };
  4621. var faDivide = {
  4622. prefix: 'fas',
  4623. iconName: 'divide',
  4624. 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"]
  4625. };
  4626. var faDizzy = {
  4627. prefix: 'fas',
  4628. iconName: 'dizzy',
  4629. 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"]
  4630. };
  4631. var faDna = {
  4632. prefix: 'fas',
  4633. iconName: 'dna',
  4634. 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"]
  4635. };
  4636. var faDog = {
  4637. prefix: 'fas',
  4638. iconName: 'dog',
  4639. icon: [576, 512, [], "f6d3", "M298.06,224,448,277.55V496a16,16,0,0,1-16,16H368a16,16,0,0,1-16-16V384H192V496a16,16,0,0,1-16,16H112a16,16,0,0,1-16-16V282.09C58.84,268.84,32,233.66,32,192a32,32,0,0,1,64,0,32.06,32.06,0,0,0,32,32ZM544,112v32a64,64,0,0,1-64,64H448v35.58L320,197.87V48c0-14.25,17.22-21.39,27.31-11.31L374.59,64h53.63c10.91,0,23.75,7.92,28.62,17.69L464,96h64A16,16,0,0,1,544,112Zm-112,0a16,16,0,1,0-16,16A16,16,0,0,0,432,112Z"]
  4640. };
  4641. var faDollarSign = {
  4642. prefix: 'fas',
  4643. iconName: 'dollar-sign',
  4644. 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"]
  4645. };
  4646. var faDolly = {
  4647. prefix: 'fas',
  4648. iconName: 'dolly',
  4649. 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"]
  4650. };
  4651. var faDollyFlatbed = {
  4652. prefix: 'fas',
  4653. iconName: 'dolly-flatbed',
  4654. 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"]
  4655. };
  4656. var faDonate = {
  4657. prefix: 'fas',
  4658. iconName: 'donate',
  4659. 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"]
  4660. };
  4661. var faDoorClosed = {
  4662. prefix: 'fas',
  4663. iconName: 'door-closed',
  4664. 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"]
  4665. };
  4666. var faDoorOpen = {
  4667. prefix: 'fas',
  4668. iconName: 'door-open',
  4669. 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"]
  4670. };
  4671. var faDotCircle = {
  4672. prefix: 'fas',
  4673. iconName: 'dot-circle',
  4674. 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"]
  4675. };
  4676. var faDove = {
  4677. prefix: 'fas',
  4678. iconName: 'dove',
  4679. 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"]
  4680. };
  4681. var faDownload = {
  4682. prefix: 'fas',
  4683. iconName: 'download',
  4684. 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"]
  4685. };
  4686. var faDraftingCompass = {
  4687. prefix: 'fas',
  4688. iconName: 'drafting-compass',
  4689. 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"]
  4690. };
  4691. var faDragon = {
  4692. prefix: 'fas',
  4693. iconName: 'dragon',
  4694. 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"]
  4695. };
  4696. var faDrawPolygon = {
  4697. prefix: 'fas',
  4698. iconName: 'draw-polygon',
  4699. 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"]
  4700. };
  4701. var faDrum = {
  4702. prefix: 'fas',
  4703. iconName: 'drum',
  4704. icon: [512, 512, [], "f569", "M431.34 122.05l73.53-47.42a16 16 0 0 0 4.44-22.19l-8.87-13.31a16 16 0 0 0-22.19-4.44l-110.06 71C318.43 96.91 271.22 96 256 96 219.55 96 0 100.55 0 208.15v160.23c0 30.27 27.5 57.68 72 77.86v-101.9a24 24 0 1 1 48 0v118.93c33.05 9.11 71.07 15.06 112 16.73V376.39a24 24 0 1 1 48 0V480c40.93-1.67 78.95-7.62 112-16.73V344.34a24 24 0 1 1 48 0v101.9c44.5-20.18 72-47.59 72-77.86V208.15c0-43.32-35.76-69.76-80.66-86.1zM256 272.24c-114.88 0-208-28.69-208-64.09s93.12-64.08 208-64.08c17.15 0 33.73.71 49.68 1.91l-72.81 47a16 16 0 0 0-4.43 22.19l8.87 13.31a16 16 0 0 0 22.19 4.44l118.64-76.52C430.09 168 464 186.84 464 208.15c0 35.4-93.13 64.09-208 64.09z"]
  4705. };
  4706. var faDrumSteelpan = {
  4707. prefix: 'fas',
  4708. iconName: 'drum-steelpan',
  4709. 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"]
  4710. };
  4711. var faDrumstickBite = {
  4712. prefix: 'fas',
  4713. iconName: 'drumstick-bite',
  4714. icon: [512, 512, [], "f6d7", "M462.8 49.57a169.44 169.44 0 0 0-239.5 0C187.82 85 160.13 128 160.13 192v85.83l-40.62 40.59c-9.7 9.69-24 11.07-36.78 6a60.33 60.33 0 0 0-65 98.72C33 438.39 54.24 442.7 73.85 438.21c-4.5 19.6-.18 40.83 15.1 56.1a60.35 60.35 0 0 0 98.8-65c-5.09-12.73-3.72-27 6-36.75L234.36 352h85.89a187.87 187.87 0 0 0 61.89-10c-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.96-14.81-90.28-49.13-124.56z"]
  4715. };
  4716. var faDumbbell = {
  4717. prefix: 'fas',
  4718. iconName: 'dumbbell',
  4719. 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"]
  4720. };
  4721. var faDumpster = {
  4722. prefix: 'fas',
  4723. iconName: 'dumpster',
  4724. icon: [576, 512, [], "f793", "M560 160c10.4 0 18-9.8 15.5-19.9l-24-96C549.7 37 543.3 32 536 32h-98.9l25.6 128H560zM272 32H171.5l-25.6 128H272V32zm132.5 0H304v128h126.1L404.5 32zM16 160h97.3l25.6-128H40c-7.3 0-13.7 5-15.5 12.1l-24 96C-2 150.2 5.6 160 16 160zm544 64h-20l4-32H32l4 32H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h28l20 160v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h320v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16l20-160h28c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
  4725. };
  4726. var faDumpsterFire = {
  4727. prefix: 'fas',
  4728. iconName: 'dumpster-fire',
  4729. icon: [640, 512, [], "f794", "M418.7 104.1l.2-.2-14.4-72H304v128h60.8c16.2-19.3 34.2-38.2 53.9-55.8zM272 32H171.5l-25.6 128H272V32zm189.3 72.1c18.2 16.3 35.5 33.7 51.1 51.5 5.7-5.6 11.4-11.1 17.3-16.3l21.3-19 21.3 19c1.1.9 2.1 2.1 3.1 3.1-.1-.8.2-1.5 0-2.3l-24-96C549.7 37 543.3 32 536 32h-98.9l12.3 61.5 11.9 10.6zM16 160h97.3l25.6-128H40c-7.3 0-13.7 5-15.5 12.1l-24 96C-2 150.2 5.6 160 16 160zm324.6 32H32l4 32H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h28l20 160v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208.8c-30.2-33.7-48.8-77.9-48.8-126.4 0-35.9 19.9-82.9 52.6-129.6zm210.5-28.8c-14.9 13.3-28.3 27.2-40.2 41.2-19.5-25.8-43.6-52-71-76.4-70.2 62.7-120 144.3-120 193.6 0 87.5 71.6 158.4 160 158.4s160-70.9 160-158.4c.1-36.6-37-112.2-88.8-158.4zm-18.6 229.4c-14.7 10.7-32.9 17-52.5 17-49 0-88.9-33.5-88.9-88 0-27.1 16.5-51 49.4-91.9 4.7 5.6 67.1 88.1 67.1 88.1l39.8-47c2.8 4.8 5.4 9.5 7.7 14 18.6 36.7 10.8 83.6-22.6 107.8z"]
  4730. };
  4731. var faDungeon = {
  4732. prefix: 'fas',
  4733. iconName: 'dungeon',
  4734. 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"]
  4735. };
  4736. var faEdit = {
  4737. prefix: 'fas',
  4738. iconName: 'edit',
  4739. 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"]
  4740. };
  4741. var faEgg = {
  4742. prefix: 'fas',
  4743. iconName: 'egg',
  4744. icon: [384, 512, [], "f7fb", "M192 0C86 0 0 214 0 320s86 192 192 192 192-86 192-192S298 0 192 0z"]
  4745. };
  4746. var faEject = {
  4747. prefix: 'fas',
  4748. iconName: 'eject',
  4749. 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"]
  4750. };
  4751. var faEllipsisH = {
  4752. prefix: 'fas',
  4753. iconName: 'ellipsis-h',
  4754. 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"]
  4755. };
  4756. var faEllipsisV = {
  4757. prefix: 'fas',
  4758. iconName: 'ellipsis-v',
  4759. 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"]
  4760. };
  4761. var faEnvelope = {
  4762. prefix: 'fas',
  4763. iconName: 'envelope',
  4764. 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"]
  4765. };
  4766. var faEnvelopeOpen = {
  4767. prefix: 'fas',
  4768. iconName: 'envelope-open',
  4769. 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"]
  4770. };
  4771. var faEnvelopeOpenText = {
  4772. prefix: 'fas',
  4773. iconName: 'envelope-open-text',
  4774. 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"]
  4775. };
  4776. var faEnvelopeSquare = {
  4777. prefix: 'fas',
  4778. iconName: 'envelope-square',
  4779. 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"]
  4780. };
  4781. var faEquals = {
  4782. prefix: 'fas',
  4783. iconName: 'equals',
  4784. 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"]
  4785. };
  4786. var faEraser = {
  4787. prefix: 'fas',
  4788. iconName: 'eraser',
  4789. 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"]
  4790. };
  4791. var faEthernet = {
  4792. prefix: 'fas',
  4793. iconName: 'ethernet',
  4794. icon: [512, 512, [], "f796", "M496 192h-48v-48c0-8.8-7.2-16-16-16h-48V80c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16v48H80c-8.8 0-16 7.2-16 16v48H16c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16h80V320h32v128h64V320h32v128h64V320h32v128h64V320h32v128h80c8.8 0 16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]
  4795. };
  4796. var faEuroSign = {
  4797. prefix: 'fas',
  4798. iconName: 'euro-sign',
  4799. 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"]
  4800. };
  4801. var faExchangeAlt = {
  4802. prefix: 'fas',
  4803. iconName: 'exchange-alt',
  4804. 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"]
  4805. };
  4806. var faExclamation = {
  4807. prefix: 'fas',
  4808. iconName: 'exclamation',
  4809. 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"]
  4810. };
  4811. var faExclamationCircle = {
  4812. prefix: 'fas',
  4813. iconName: 'exclamation-circle',
  4814. 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"]
  4815. };
  4816. var faExclamationTriangle = {
  4817. prefix: 'fas',
  4818. iconName: 'exclamation-triangle',
  4819. 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"]
  4820. };
  4821. var faExpand = {
  4822. prefix: 'fas',
  4823. iconName: 'expand',
  4824. 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"]
  4825. };
  4826. var faExpandAlt = {
  4827. prefix: 'fas',
  4828. iconName: 'expand-alt',
  4829. icon: [448, 512, [], "f424", "M212.686 315.314L120 408l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C10.697 480 0 469.255 0 456V344c0-21.382 25.803-32.09 40.922-16.971L72 360l92.686-92.686c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.249 6.248 6.249 16.378 0 22.627zm22.628-118.628L328 104l-32.922-31.029C279.958 57.851 290.666 32 312.048 32h112C437.303 32 448 42.745 448 56v112c0 21.382-25.803 32.09-40.922 16.971L376 152l-92.686 92.686c-6.248 6.248-16.379 6.248-22.627 0l-25.373-25.373c-6.249-6.248-6.249-16.378 0-22.627z"]
  4830. };
  4831. var faExpandArrowsAlt = {
  4832. prefix: 'fas',
  4833. iconName: 'expand-arrows-alt',
  4834. icon: [448, 512, [], "f31e", "M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"]
  4835. };
  4836. var faExternalLinkAlt = {
  4837. prefix: 'fas',
  4838. iconName: 'external-link-alt',
  4839. icon: [512, 512, [], "f35d", "M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"]
  4840. };
  4841. var faExternalLinkSquareAlt = {
  4842. prefix: 'fas',
  4843. iconName: 'external-link-square-alt',
  4844. 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"]
  4845. };
  4846. var faEye = {
  4847. prefix: 'fas',
  4848. iconName: 'eye',
  4849. icon: [576, 512, [], "f06e", "M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]
  4850. };
  4851. var faEyeDropper = {
  4852. prefix: 'fas',
  4853. iconName: 'eye-dropper',
  4854. 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"]
  4855. };
  4856. var faEyeSlash = {
  4857. prefix: 'fas',
  4858. iconName: 'eye-slash',
  4859. icon: [640, 512, [], "f070", "M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]
  4860. };
  4861. var faFan = {
  4862. prefix: 'fas',
  4863. iconName: 'fan',
  4864. icon: [512, 512, [], "f863", "M352.57 128c-28.09 0-54.09 4.52-77.06 12.86l12.41-123.11C289 7.31 279.81-1.18 269.33.13 189.63 10.13 128 77.64 128 159.43c0 28.09 4.52 54.09 12.86 77.06L17.75 224.08C7.31 223-1.18 232.19.13 242.67c10 79.7 77.51 141.33 159.3 141.33 28.09 0 54.09-4.52 77.06-12.86l-12.41 123.11c-1.05 10.43 8.11 18.93 18.59 17.62 79.7-10 141.33-77.51 141.33-159.3 0-28.09-4.52-54.09-12.86-77.06l123.11 12.41c10.44 1.05 18.93-8.11 17.62-18.59-10-79.7-77.51-141.33-159.3-141.33zM256 288a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"]
  4865. };
  4866. var faFastBackward = {
  4867. prefix: 'fas',
  4868. iconName: 'fast-backward',
  4869. 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"]
  4870. };
  4871. var faFastForward = {
  4872. prefix: 'fas',
  4873. iconName: 'fast-forward',
  4874. 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"]
  4875. };
  4876. var faFaucet = {
  4877. prefix: 'fas',
  4878. iconName: 'faucet',
  4879. icon: [512, 512, [], "f905", "M352,256H313.39c-15.71-13.44-35.46-23.07-57.39-28V180.44l-32-3.38-32,3.38V228c-21.93,5-41.68,14.6-57.39,28H16A16,16,0,0,0,0,272v96a16,16,0,0,0,16,16h92.79C129.38,421.73,173,448,224,448s94.62-26.27,115.21-64H352a32,32,0,0,1,32,32,32,32,0,0,0,32,32h64a32,32,0,0,0,32-32A160,160,0,0,0,352,256ZM81.59,159.91l142.41-15,142.41,15c9.42,1,17.59-6.81,17.59-16.8V112.89c0-10-8.17-17.8-17.59-16.81L256,107.74V80a16,16,0,0,0-16-16H208a16,16,0,0,0-16,16v27.74L81.59,96.08C72.17,95.09,64,102.9,64,112.89v30.22C64,153.1,72.17,160.91,81.59,159.91Z"]
  4880. };
  4881. var faFax = {
  4882. prefix: 'fas',
  4883. iconName: 'fax',
  4884. icon: [512, 512, [], "f1ac", "M480 160V77.25a32 32 0 0 0-9.38-22.63L425.37 9.37A32 32 0 0 0 402.75 0H160a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h320a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM288 432a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm128 128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-112H192V64h160v48a16 16 0 0 0 16 16h48zM64 128H32a32 32 0 0 0-32 32v320a32 32 0 0 0 32 32h32a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z"]
  4885. };
  4886. var faFeather = {
  4887. prefix: 'fas',
  4888. iconName: 'feather',
  4889. 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"]
  4890. };
  4891. var faFeatherAlt = {
  4892. prefix: 'fas',
  4893. iconName: 'feather-alt',
  4894. 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"]
  4895. };
  4896. var faFemale = {
  4897. prefix: 'fas',
  4898. iconName: 'female',
  4899. 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"]
  4900. };
  4901. var faFighterJet = {
  4902. prefix: 'fas',
  4903. iconName: 'fighter-jet',
  4904. 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"]
  4905. };
  4906. var faFile = {
  4907. prefix: 'fas',
  4908. iconName: 'file',
  4909. 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"]
  4910. };
  4911. var faFileAlt = {
  4912. prefix: 'fas',
  4913. iconName: 'file-alt',
  4914. 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"]
  4915. };
  4916. var faFileArchive = {
  4917. prefix: 'fas',
  4918. iconName: 'file-archive',
  4919. icon: [384, 512, [], "f1c6", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zM128.4 336c-17.9 0-32.4 12.1-32.4 27 0 15 14.6 27 32.5 27s32.4-12.1 32.4-27-14.6-27-32.5-27zM224 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-32zm32.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.6z"]
  4920. };
  4921. var faFileAudio = {
  4922. prefix: 'fas',
  4923. iconName: 'file-audio',
  4924. 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"]
  4925. };
  4926. var faFileCode = {
  4927. prefix: 'fas',
  4928. iconName: 'file-code',
  4929. 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"]
  4930. };
  4931. var faFileContract = {
  4932. prefix: 'fas',
  4933. iconName: 'file-contract',
  4934. 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"]
  4935. };
  4936. var faFileCsv = {
  4937. prefix: 'fas',
  4938. iconName: 'file-csv',
  4939. 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"]
  4940. };
  4941. var faFileDownload = {
  4942. prefix: 'fas',
  4943. iconName: 'file-download',
  4944. 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"]
  4945. };
  4946. var faFileExcel = {
  4947. prefix: 'fas',
  4948. iconName: 'file-excel',
  4949. 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"]
  4950. };
  4951. var faFileExport = {
  4952. prefix: 'fas',
  4953. iconName: 'file-export',
  4954. 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-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-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.8 0-16-7.2-16-16z"]
  4955. };
  4956. var faFileImage = {
  4957. prefix: 'fas',
  4958. iconName: 'file-image',
  4959. 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"]
  4960. };
  4961. var faFileImport = {
  4962. prefix: 'fas',
  4963. iconName: 'file-import',
  4964. icon: [512, 512, [], "f56f", "M16 288c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h112v-64zm489-183L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H152c-13.3 0-24 10.7-24 24v264h128v-65.2c0-14.3 17.3-21.4 27.4-11.3L379 308c6.6 6.7 6.6 17.4 0 24l-95.7 96.4c-10.1 10.1-27.4 3-27.4-11.3V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24z"]
  4965. };
  4966. var faFileInvoice = {
  4967. prefix: 'fas',
  4968. iconName: 'file-invoice',
  4969. 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"]
  4970. };
  4971. var faFileInvoiceDollar = {
  4972. prefix: 'fas',
  4973. iconName: 'file-invoice-dollar',
  4974. 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"]
  4975. };
  4976. var faFileMedical = {
  4977. prefix: 'fas',
  4978. iconName: 'file-medical',
  4979. 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"]
  4980. };
  4981. var faFileMedicalAlt = {
  4982. prefix: 'fas',
  4983. iconName: 'file-medical-alt',
  4984. 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"]
  4985. };
  4986. var faFilePdf = {
  4987. prefix: 'fas',
  4988. iconName: 'file-pdf',
  4989. 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"]
  4990. };
  4991. var faFilePowerpoint = {
  4992. prefix: 'fas',
  4993. iconName: 'file-powerpoint',
  4994. 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"]
  4995. };
  4996. var faFilePrescription = {
  4997. prefix: 'fas',
  4998. iconName: 'file-prescription',
  4999. 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"]
  5000. };
  5001. var faFileSignature = {
  5002. prefix: 'fas',
  5003. iconName: 'file-signature',
  5004. 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"]
  5005. };
  5006. var faFileUpload = {
  5007. prefix: 'fas',
  5008. iconName: 'file-upload',
  5009. 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"]
  5010. };
  5011. var faFileVideo = {
  5012. prefix: 'fas',
  5013. iconName: 'file-video',
  5014. 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"]
  5015. };
  5016. var faFileWord = {
  5017. prefix: 'fas',
  5018. iconName: 'file-word',
  5019. 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"]
  5020. };
  5021. var faFill = {
  5022. prefix: 'fas',
  5023. iconName: 'fill',
  5024. 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"]
  5025. };
  5026. var faFillDrip = {
  5027. prefix: 'fas',
  5028. iconName: 'fill-drip',
  5029. 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"]
  5030. };
  5031. var faFilm = {
  5032. prefix: 'fas',
  5033. iconName: 'film',
  5034. 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"]
  5035. };
  5036. var faFilter = {
  5037. prefix: 'fas',
  5038. iconName: 'filter',
  5039. 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"]
  5040. };
  5041. var faFingerprint = {
  5042. prefix: 'fas',
  5043. iconName: 'fingerprint',
  5044. 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"]
  5045. };
  5046. var faFire = {
  5047. prefix: 'fas',
  5048. iconName: 'fire',
  5049. icon: [384, 512, [], "f06d", "M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13 192-192c0-170.29-168-193-168-296.14z"]
  5050. };
  5051. var faFireAlt = {
  5052. prefix: 'fas',
  5053. iconName: 'fire-alt',
  5054. icon: [448, 512, [], "f7e4", "M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"]
  5055. };
  5056. var faFireExtinguisher = {
  5057. prefix: 'fas',
  5058. iconName: 'fire-extinguisher',
  5059. 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"]
  5060. };
  5061. var faFirstAid = {
  5062. prefix: 'fas',
  5063. iconName: 'first-aid',
  5064. 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"]
  5065. };
  5066. var faFish = {
  5067. prefix: 'fas',
  5068. iconName: 'fish',
  5069. 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"]
  5070. };
  5071. var faFistRaised = {
  5072. prefix: 'fas',
  5073. iconName: 'fist-raised',
  5074. 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"]
  5075. };
  5076. var faFlag = {
  5077. prefix: 'fas',
  5078. iconName: 'flag',
  5079. 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"]
  5080. };
  5081. var faFlagCheckered = {
  5082. prefix: 'fas',
  5083. iconName: 'flag-checkered',
  5084. icon: [512, 512, [], "f11e", "M243.2 189.9V258c26.1 5.9 49.3 15.6 73.6 22.3v-68.2c-26-5.8-49.4-15.5-73.6-22.2zm223.3-123c-34.3 15.9-76.5 31.9-117 31.9C296 98.8 251.7 64 184.3 64c-25 0-47.3 4.4-68 12 2.8-7.3 4.1-15.2 3.6-23.6C118.1 24 94.8 1.2 66.3 0 34.3-1.3 8 24.3 8 56c0 19 9.5 35.8 24 45.9V488c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24v-94.4c28.3-12.1 63.6-22.1 114.4-22.1 53.6 0 97.8 34.8 165.2 34.8 48.2 0 86.7-16.3 122.5-40.9 8.7-6 13.8-15.8 13.8-26.4V95.9c.1-23.3-24.2-38.8-45.4-29zM169.6 325.5c-25.8 2.7-50 8.2-73.6 16.6v-70.5c26.2-9.3 47.5-15 73.6-17.4zM464 191c-23.6 9.8-46.3 19.5-73.6 23.9V286c24.8-3.4 51.4-11.8 73.6-26v70.5c-25.1 16.1-48.5 24.7-73.6 27.1V286c-27 3.7-47.9 1.5-73.6-5.6v67.4c-23.9-7.4-47.3-16.7-73.6-21.3V258c-19.7-4.4-40.8-6.8-73.6-3.8v-70c-22.4 3.1-44.6 10.2-73.6 20.9v-70.5c33.2-12.2 50.1-19.8 73.6-22v71.6c27-3.7 48.4-1.3 73.6 5.7v-67.4c23.7 7.4 47.2 16.7 73.6 21.3v68.4c23.7 5.3 47.6 6.9 73.6 2.7V143c27-4.8 52.3-13.6 73.6-22.5z"]
  5085. };
  5086. var faFlagUsa = {
  5087. prefix: 'fas',
  5088. iconName: 'flag-usa',
  5089. icon: [512, 512, [], "f74d", "M32 0C14.3 0 0 14.3 0 32v464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V32C64 14.3 49.7 0 32 0zm267.9 303.6c-57.2-15.1-111.7-28.8-203.9 11.1V384c185.7-92.2 221.7 53.3 397.5-23.1 11.4-5 18.5-16.5 18.5-28.8v-36c-43.6 17.3-80.2 24.1-112.1 24.1-37.4-.1-68.9-8.4-100-16.6zm0-96c-57.2-15.1-111.7-28.8-203.9 11.1v61.5c94.8-37.6 154.6-22.7 212.1-7.6 57.2 15.1 111.7 28.8 203.9-11.1V200c-43.6 17.3-80.2 24.1-112.1 24.1-37.4 0-68.9-8.3-100-16.5zm9.5-125.9c51.8 15.6 97.4 29 202.6-20.1V30.8c0-25.1-26.8-38.1-49.4-26.6C291.3 91.5 305.4-62.2 96 32.4v151.9c94.8-37.5 154.6-22.7 212.1-7.6 57.2 15 111.7 28.7 203.9-11.1V96.7c-53.6 23.5-93.3 31.4-126.1 31.4s-59-7.8-85.7-15.9c-4-1.2-8.1-2.4-12.1-3.5V75.5c7.2 2 14.3 4.1 21.3 6.2zM160 128.1c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16-7.2 16-16 16zm0-55.8c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16zm64 47.9c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16zm0-55.9c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16z"]
  5090. };
  5091. var faFlask = {
  5092. prefix: 'fas',
  5093. iconName: 'flask',
  5094. 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"]
  5095. };
  5096. var faFlushed = {
  5097. prefix: 'fas',
  5098. iconName: 'flushed',
  5099. 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"]
  5100. };
  5101. var faFolder = {
  5102. prefix: 'fas',
  5103. iconName: 'folder',
  5104. 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"]
  5105. };
  5106. var faFolderMinus = {
  5107. prefix: 'fas',
  5108. iconName: 'folder-minus',
  5109. 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"]
  5110. };
  5111. var faFolderOpen = {
  5112. prefix: 'fas',
  5113. iconName: 'folder-open',
  5114. 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"]
  5115. };
  5116. var faFolderPlus = {
  5117. prefix: 'fas',
  5118. iconName: 'folder-plus',
  5119. icon: [512, 512, [], "f65e", "M464,128H272L208,64H48A48,48,0,0,0,0,112V400a48,48,0,0,0,48,48H464a48,48,0,0,0,48-48V176A48,48,0,0,0,464,128ZM359.5,296a16,16,0,0,1-16,16h-64v64a16,16,0,0,1-16,16h-16a16,16,0,0,1-16-16V312h-64a16,16,0,0,1-16-16V280a16,16,0,0,1,16-16h64V200a16,16,0,0,1,16-16h16a16,16,0,0,1,16,16v64h64a16,16,0,0,1,16,16Z"]
  5120. };
  5121. var faFont = {
  5122. prefix: 'fas',
  5123. iconName: 'font',
  5124. icon: [448, 512, [], "f031", "M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z"]
  5125. };
  5126. var faFontAwesomeLogoFull = {
  5127. prefix: 'fas',
  5128. iconName: 'font-awesome-logo-full',
  5129. 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"]
  5130. };
  5131. var faFootballBall = {
  5132. prefix: 'fas',
  5133. iconName: 'football-ball',
  5134. 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"]
  5135. };
  5136. var faForward = {
  5137. prefix: 'fas',
  5138. iconName: 'forward',
  5139. 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"]
  5140. };
  5141. var faFrog = {
  5142. prefix: 'fas',
  5143. iconName: 'frog',
  5144. 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"]
  5145. };
  5146. var faFrown = {
  5147. prefix: 'fas',
  5148. iconName: 'frown',
  5149. 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"]
  5150. };
  5151. var faFrownOpen = {
  5152. prefix: 'fas',
  5153. iconName: 'frown-open',
  5154. 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"]
  5155. };
  5156. var faFunnelDollar = {
  5157. prefix: 'fas',
  5158. iconName: 'funnel-dollar',
  5159. 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"]
  5160. };
  5161. var faFutbol = {
  5162. prefix: 'fas',
  5163. iconName: 'futbol',
  5164. 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"]
  5165. };
  5166. var faGamepad = {
  5167. prefix: 'fas',
  5168. iconName: 'gamepad',
  5169. icon: [640, 512, [], "f11b", "M480.07 96H160a160 160 0 1 0 114.24 272h91.52A160 160 0 1 0 480.07 96zM248 268a12 12 0 0 1-12 12h-52v52a12 12 0 0 1-12 12h-24a12 12 0 0 1-12-12v-52H84a12 12 0 0 1-12-12v-24a12 12 0 0 1 12-12h52v-52a12 12 0 0 1 12-12h24a12 12 0 0 1 12 12v52h52a12 12 0 0 1 12 12zm216 76a40 40 0 1 1 40-40 40 40 0 0 1-40 40zm64-96a40 40 0 1 1 40-40 40 40 0 0 1-40 40z"]
  5170. };
  5171. var faGasPump = {
  5172. prefix: 'fas',
  5173. iconName: 'gas-pump',
  5174. 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"]
  5175. };
  5176. var faGavel = {
  5177. prefix: 'fas',
  5178. iconName: 'gavel',
  5179. 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"]
  5180. };
  5181. var faGem = {
  5182. prefix: 'fas',
  5183. iconName: 'gem',
  5184. 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"]
  5185. };
  5186. var faGenderless = {
  5187. prefix: 'fas',
  5188. iconName: 'genderless',
  5189. 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"]
  5190. };
  5191. var faGhost = {
  5192. prefix: 'fas',
  5193. iconName: 'ghost',
  5194. 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"]
  5195. };
  5196. var faGift = {
  5197. prefix: 'fas',
  5198. iconName: 'gift',
  5199. icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm256 32h160c17.7 0 32-14.3 32-32V320H288v160zm192-320h-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 40z"]
  5200. };
  5201. var faGifts = {
  5202. prefix: 'fas',
  5203. iconName: 'gifts',
  5204. icon: [640, 512, [], "f79c", "M240.6 194.1c1.9-30.8 17.3-61.2 44-79.8C279.4 103.5 268.7 96 256 96h-29.4l30.7-22c7.2-5.1 8.9-15.1 3.7-22.3l-9.3-13c-5.1-7.2-15.1-8.9-22.3-3.7l-32 22.9 11.5-30.6c3.1-8.3-1.1-17.5-9.4-20.6l-15-5.6c-8.3-3.1-17.5 1.1-20.6 9.4l-19.9 53-19.9-53.1C121 2.1 111.8-2.1 103.5 1l-15 5.6C80.2 9.7 76 19 79.2 27.2l11.5 30.6L58.6 35c-7.2-5.1-17.2-3.5-22.3 3.7l-9.3 13c-5.1 7.2-3.5 17.2 3.7 22.3l30.7 22H32c-17.7 0-32 14.3-32 32v352c0 17.7 14.3 32 32 32h168.9c-5.5-9.5-8.9-20.3-8.9-32V256c0-29.9 20.8-55 48.6-61.9zM224 480c0 17.7 14.3 32 32 32h160V384H224v96zm224 32h160c17.7 0 32-14.3 32-32v-96H448v128zm160-288h-20.4c2.6-7.6 4.4-15.5 4.4-23.8 0-35.5-27-72.2-72.1-72.2-48.1 0-75.9 47.7-87.9 75.3-12.1-27.6-39.9-75.3-87.9-75.3-45.1 0-72.1 36.7-72.1 72.2 0 8.3 1.7 16.2 4.4 23.8H256c-17.7 0-32 14.3-32 32v96h192V224h15.3l.7-.2.7.2H448v128h192v-96c0-17.7-14.3-32-32-32zm-272 0c-2.7-1.4-5.1-3-7.2-4.8-7.3-6.4-8.8-13.8-8.8-19 0-9.7 6.4-24.2 24.1-24.2 18.7 0 35.6 27.4 44.5 48H336zm199.2-4.8c-2.1 1.8-4.5 3.4-7.2 4.8h-52.6c8.8-20.3 25.8-48 44.5-48 17.7 0 24.1 14.5 24.1 24.2 0 5.2-1.5 12.6-8.8 19z"]
  5205. };
  5206. var faGlassCheers = {
  5207. prefix: 'fas',
  5208. iconName: 'glass-cheers',
  5209. icon: [640, 512, [], "f79f", "M639.4 433.6c-8.4-20.4-31.8-30.1-52.2-21.6l-22.1 9.2-38.7-101.9c47.9-35 64.8-100.3 34.5-152.8L474.3 16c-8-13.9-25.1-19.7-40-13.6L320 49.8 205.7 2.4c-14.9-6.2-32-.3-40 13.6L79.1 166.5C48.9 219 65.7 284.3 113.6 319.2L74.9 421.1l-22.1-9.2c-20.4-8.5-43.7 1.2-52.2 21.6-1.7 4.1.2 8.8 4.3 10.5l162.3 67.4c4.1 1.7 8.7-.2 10.4-4.3 8.4-20.4-1.2-43.8-21.6-52.3l-22.1-9.2L173.3 342c4.4.5 8.8 1.3 13.1 1.3 51.7 0 99.4-33.1 113.4-85.3l20.2-75.4 20.2 75.4c14 52.2 61.7 85.3 113.4 85.3 4.3 0 8.7-.8 13.1-1.3L506 445.6l-22.1 9.2c-20.4 8.5-30.1 31.9-21.6 52.3 1.7 4.1 6.4 6 10.4 4.3L635.1 444c4-1.7 6-6.3 4.3-10.4zM275.9 162.1l-112.1-46.5 36.5-63.4 94.5 39.2-18.9 70.7zm88.2 0l-18.9-70.7 94.5-39.2 36.5 63.4-112.1 46.5z"]
  5210. };
  5211. var faGlassMartini = {
  5212. prefix: 'fas',
  5213. iconName: 'glass-martini',
  5214. 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"]
  5215. };
  5216. var faGlassMartiniAlt = {
  5217. prefix: 'fas',
  5218. iconName: 'glass-martini-alt',
  5219. 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"]
  5220. };
  5221. var faGlassWhiskey = {
  5222. prefix: 'fas',
  5223. iconName: 'glass-whiskey',
  5224. icon: [512, 512, [], "f7a0", "M480 32H32C12.5 32-2.4 49.2.3 68.5l56 356.5c4.5 31.5 31.5 54.9 63.4 54.9h273c31.8 0 58.9-23.4 63.4-54.9l55.6-356.5C514.4 49.2 499.5 32 480 32zm-37.4 64l-30 192h-313L69.4 96h373.2z"]
  5225. };
  5226. var faGlasses = {
  5227. prefix: 'fas',
  5228. iconName: 'glasses',
  5229. 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"]
  5230. };
  5231. var faGlobe = {
  5232. prefix: 'fas',
  5233. iconName: 'globe',
  5234. 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"]
  5235. };
  5236. var faGlobeAfrica = {
  5237. prefix: 'fas',
  5238. iconName: 'globe-africa',
  5239. 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"]
  5240. };
  5241. var faGlobeAmericas = {
  5242. prefix: 'fas',
  5243. iconName: 'globe-americas',
  5244. 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"]
  5245. };
  5246. var faGlobeAsia = {
  5247. prefix: 'fas',
  5248. iconName: 'globe-asia',
  5249. 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"]
  5250. };
  5251. var faGlobeEurope = {
  5252. prefix: 'fas',
  5253. iconName: 'globe-europe',
  5254. icon: [496, 512, [], "f7a2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm200 248c0 22.5-3.9 44.2-10.8 64.4h-20.3c-4.3 0-8.4-1.7-11.4-4.8l-32-32.6c-4.5-4.6-4.5-12.1.1-16.7l12.5-12.5v-8.7c0-3-1.2-5.9-3.3-8l-9.4-9.4c-2.1-2.1-5-3.3-8-3.3h-16c-6.2 0-11.3-5.1-11.3-11.3 0-3 1.2-5.9 3.3-8l9.4-9.4c2.1-2.1 5-3.3 8-3.3h32c6.2 0 11.3-5.1 11.3-11.3v-9.4c0-6.2-5.1-11.3-11.3-11.3h-36.7c-8.8 0-16 7.2-16 16v4.5c0 6.9-4.4 13-10.9 15.2l-31.6 10.5c-3.3 1.1-5.5 4.1-5.5 7.6v2.2c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8s-3.6-8-8-8H247c-3 0-5.8 1.7-7.2 4.4l-9.4 18.7c-2.7 5.4-8.2 8.8-14.3 8.8H194c-8.8 0-16-7.2-16-16V199c0-4.2 1.7-8.3 4.7-11.3l20.1-20.1c4.6-4.6 7.2-10.9 7.2-17.5 0-3.4 2.2-6.5 5.5-7.6l40-13.3c1.7-.6 3.2-1.5 4.4-2.7l26.8-26.8c2.1-2.1 3.3-5 3.3-8 0-6.2-5.1-11.3-11.3-11.3H258l-16 16v8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-20c0-2.5 1.2-4.9 3.2-6.4l28.9-21.7c1.9-.1 3.8-.3 5.7-.3C358.3 56 448 145.7 448 256zM130.1 149.1c0-3 1.2-5.9 3.3-8l25.4-25.4c2.1-2.1 5-3.3 8-3.3 6.2 0 11.3 5.1 11.3 11.3v16c0 3-1.2 5.9-3.3 8l-9.4 9.4c-2.1 2.1-5 3.3-8 3.3h-16c-6.2 0-11.3-5.1-11.3-11.3zm128 306.4v-7.1c0-8.8-7.2-16-16-16h-20.2c-10.8 0-26.7-5.3-35.4-11.8l-22.2-16.7c-11.5-8.6-18.2-22.1-18.2-36.4v-23.9c0-16 8.4-30.8 22.1-39l42.9-25.7c7.1-4.2 15.2-6.5 23.4-6.5h31.2c10.9 0 21.4 3.9 29.6 10.9l43.2 37.1h18.3c8.5 0 16.6 3.4 22.6 9.4l17.3 17.3c3.4 3.4 8.1 5.3 12.9 5.3H423c-32.4 58.9-93.8 99.5-164.9 103.1z"]
  5255. };
  5256. var faGolfBall = {
  5257. prefix: 'fas',
  5258. iconName: 'golf-ball',
  5259. 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"]
  5260. };
  5261. var faGopuram = {
  5262. prefix: 'fas',
  5263. iconName: 'gopuram',
  5264. icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.8-7.2-16-16-16h-16v-80c0-8.8-7.2-16-16-16h-16V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16S96 7.2 96 16v112H80c-8.8 0-16 7.2-16 16v80H48c-8.8 0-16 7.2-16 16v112H16c-8.8 0-16 7.2-16 16v128c0 8.8 7.2 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zM232 176c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v48h-48zm56 176h-64v-64c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16z"]
  5265. };
  5266. var faGraduationCap = {
  5267. prefix: 'fas',
  5268. iconName: 'graduation-cap',
  5269. 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"]
  5270. };
  5271. var faGreaterThan = {
  5272. prefix: 'fas',
  5273. iconName: 'greater-than',
  5274. 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"]
  5275. };
  5276. var faGreaterThanEqual = {
  5277. prefix: 'fas',
  5278. iconName: 'greater-than-equal',
  5279. 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"]
  5280. };
  5281. var faGrimace = {
  5282. prefix: 'fas',
  5283. iconName: 'grimace',
  5284. 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"]
  5285. };
  5286. var faGrin = {
  5287. prefix: 'fas',
  5288. iconName: 'grin',
  5289. 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"]
  5290. };
  5291. var faGrinAlt = {
  5292. prefix: 'fas',
  5293. iconName: 'grin-alt',
  5294. 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"]
  5295. };
  5296. var faGrinBeam = {
  5297. prefix: 'fas',
  5298. iconName: 'grin-beam',
  5299. 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"]
  5300. };
  5301. var faGrinBeamSweat = {
  5302. prefix: 'fas',
  5303. iconName: 'grin-beam-sweat',
  5304. 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"]
  5305. };
  5306. var faGrinHearts = {
  5307. prefix: 'fas',
  5308. iconName: 'grin-hearts',
  5309. 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"]
  5310. };
  5311. var faGrinSquint = {
  5312. prefix: 'fas',
  5313. iconName: 'grin-squint',
  5314. 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"]
  5315. };
  5316. var faGrinSquintTears = {
  5317. prefix: 'fas',
  5318. iconName: 'grin-squint-tears',
  5319. 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"]
  5320. };
  5321. var faGrinStars = {
  5322. prefix: 'fas',
  5323. iconName: 'grin-stars',
  5324. 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"]
  5325. };
  5326. var faGrinTears = {
  5327. prefix: 'fas',
  5328. iconName: 'grin-tears',
  5329. 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"]
  5330. };
  5331. var faGrinTongue = {
  5332. prefix: 'fas',
  5333. iconName: 'grin-tongue',
  5334. 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"]
  5335. };
  5336. var faGrinTongueSquint = {
  5337. prefix: 'fas',
  5338. iconName: 'grin-tongue-squint',
  5339. 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"]
  5340. };
  5341. var faGrinTongueWink = {
  5342. prefix: 'fas',
  5343. iconName: 'grin-tongue-wink',
  5344. 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"]
  5345. };
  5346. var faGrinWink = {
  5347. prefix: 'fas',
  5348. iconName: 'grin-wink',
  5349. 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"]
  5350. };
  5351. var faGripHorizontal = {
  5352. prefix: 'fas',
  5353. iconName: 'grip-horizontal',
  5354. 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"]
  5355. };
  5356. var faGripLines = {
  5357. prefix: 'fas',
  5358. iconName: 'grip-lines',
  5359. icon: [512, 512, [], "f7a4", "M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
  5360. };
  5361. var faGripLinesVertical = {
  5362. prefix: 'fas',
  5363. iconName: 'grip-lines-vertical',
  5364. icon: [256, 512, [], "f7a5", "M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z"]
  5365. };
  5366. var faGripVertical = {
  5367. prefix: 'fas',
  5368. iconName: 'grip-vertical',
  5369. 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"]
  5370. };
  5371. var faGuitar = {
  5372. prefix: 'fas',
  5373. iconName: 'guitar',
  5374. icon: [512, 512, [], "f7a6", "M502.63 39L473 9.37a32 32 0 0 0-45.26 0L381.46 55.7a35.14 35.14 0 0 0-8.53 13.79L360.77 106l-76.26 76.26c-12.16-8.76-25.5-15.74-40.1-19.14-33.45-7.78-67-.88-89.88 22a82.45 82.45 0 0 0-20.24 33.47c-6 18.56-23.21 32.69-42.15 34.46-23.7 2.27-45.73 11.45-62.61 28.44C-16.11 327-7.9 409 47.58 464.45S185 528 230.56 482.52c17-16.88 26.16-38.9 28.45-62.71 1.76-18.85 15.89-36.13 34.43-42.14a82.6 82.6 0 0 0 33.48-20.25c22.87-22.88 29.74-56.36 22-89.75-3.39-14.64-10.37-28-19.16-40.2L406 151.23l36.48-12.16a35.14 35.14 0 0 0 13.79-8.53l46.33-46.32a32 32 0 0 0 .03-45.22zM208 352a48 48 0 1 1 48-48 48 48 0 0 1-48 48z"]
  5375. };
  5376. var faHSquare = {
  5377. prefix: 'fas',
  5378. iconName: 'h-square',
  5379. 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"]
  5380. };
  5381. var faHamburger = {
  5382. prefix: 'fas',
  5383. iconName: 'hamburger',
  5384. icon: [512, 512, [], "f805", "M464 256H48a48 48 0 0 0 0 96h416a48 48 0 0 0 0-96zm16 128H32a16 16 0 0 0-16 16v16a64 64 0 0 0 64 64h352a64 64 0 0 0 64-64v-16a16 16 0 0 0-16-16zM58.64 224h394.72c34.57 0 54.62-43.9 34.82-75.88C448 83.2 359.55 32.1 256 32c-103.54.1-192 51.2-232.18 116.11C4 180.09 24.07 224 58.64 224zM384 112a16 16 0 1 1-16 16 16 16 0 0 1 16-16zM256 80a16 16 0 1 1-16 16 16 16 0 0 1 16-16zm-128 32a16 16 0 1 1-16 16 16 16 0 0 1 16-16z"]
  5385. };
  5386. var faHammer = {
  5387. prefix: 'fas',
  5388. iconName: 'hammer',
  5389. 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"]
  5390. };
  5391. var faHamsa = {
  5392. prefix: 'fas',
  5393. iconName: 'hamsa',
  5394. 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"]
  5395. };
  5396. var faHandHolding = {
  5397. prefix: 'fas',
  5398. iconName: 'hand-holding',
  5399. 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"]
  5400. };
  5401. var faHandHoldingHeart = {
  5402. prefix: 'fas',
  5403. iconName: 'hand-holding-heart',
  5404. 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"]
  5405. };
  5406. var faHandHoldingMedical = {
  5407. prefix: 'fas',
  5408. iconName: 'hand-holding-medical',
  5409. icon: [576, 512, [], "f95c", "M159.88,175.82h64v64a16,16,0,0,0,16,16h64a16,16,0,0,0,16-16v-64h64a16,16,0,0,0,16-16v-64a16,16,0,0,0-16-16h-64v-64a16,16,0,0,0-16-16h-64a16,16,0,0,0-16,16v64h-64a16,16,0,0,0-16,16v64A16,16,0,0,0,159.88,175.82ZM568.07,336.13a39.91,39.91,0,0,0-55.93-8.47L392.47,415.84H271.86a16,16,0,0,1,0-32H350.1c16,0,30.75-10.87,33.37-26.61a32.06,32.06,0,0,0-31.62-37.38h-160a117.7,117.7,0,0,0-74.12,26.25l-46.5,37.74H15.87a16.11,16.11,0,0,0-16,16v96a16.11,16.11,0,0,0,16,16h347a104.8,104.8,0,0,0,61.7-20.27L559.6,392A40,40,0,0,0,568.07,336.13Z"]
  5410. };
  5411. var faHandHoldingUsd = {
  5412. prefix: 'fas',
  5413. iconName: 'hand-holding-usd',
  5414. icon: [576, 512, [], "f4c0", "M271.06,144.3l54.27,14.3a8.59,8.59,0,0,1,6.63,8.1c0,4.6-4.09,8.4-9.12,8.4h-35.6a30,30,0,0,1-11.19-2.2c-5.24-2.2-11.28-1.7-15.3,2l-19,17.5a11.68,11.68,0,0,0-2.25,2.66,11.42,11.42,0,0,0,3.88,15.74,83.77,83.77,0,0,0,34.51,11.5V240c0,8.8,7.83,16,17.37,16h17.37c9.55,0,17.38-7.2,17.38-16V222.4c32.93-3.6,57.84-31,53.5-63-3.15-23-22.46-41.3-46.56-47.7L282.68,97.4a8.59,8.59,0,0,1-6.63-8.1c0-4.6,4.09-8.4,9.12-8.4h35.6A30,30,0,0,1,332,83.1c5.23,2.2,11.28,1.7,15.3-2l19-17.5A11.31,11.31,0,0,0,368.47,61a11.43,11.43,0,0,0-3.84-15.78,83.82,83.82,0,0,0-34.52-11.5V16c0-8.8-7.82-16-17.37-16H295.37C285.82,0,278,7.2,278,16V33.6c-32.89,3.6-57.85,31-53.51,63C227.63,119.6,247,137.9,271.06,144.3ZM565.27,328.1c-11.8-10.7-30.2-10-42.6,0L430.27,402a63.64,63.64,0,0,1-40,14H272a16,16,0,0,1,0-32h78.29c15.9,0,30.71-10.9,33.25-26.6a31.2,31.2,0,0,0,.46-5.46A32,32,0,0,0,352,320H192a117.66,117.66,0,0,0-74.1,26.29L71.4,384H16A16,16,0,0,0,0,400v96a16,16,0,0,0,16,16H372.77a64,64,0,0,0,40-14L564,377a32,32,0,0,0,1.28-48.9Z"]
  5415. };
  5416. var faHandHoldingWater = {
  5417. prefix: 'fas',
  5418. iconName: 'hand-holding-water',
  5419. icon: [576, 512, [], "f4c1", "M288 256c53 0 96-42.1 96-94 0-40-57.1-120.7-83.2-155.6-6.4-8.5-19.2-8.5-25.6 0C249.1 41.3 192 122 192 162c0 51.9 43 94 96 94zm277.3 72.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"]
  5420. };
  5421. var faHandLizard = {
  5422. prefix: 'fas',
  5423. iconName: 'hand-lizard',
  5424. 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"]
  5425. };
  5426. var faHandMiddleFinger = {
  5427. prefix: 'fas',
  5428. iconName: 'hand-middle-finger',
  5429. icon: [512, 512, [], "f806", "M479.93 317.12a37.33 37.33 0 0 0-28.28-36.19L416 272v-49.59c0-11.44-9.69-21.29-23.15-23.54l-38.4-6.4C336.63 189.5 320 200.86 320 216v32a8 8 0 0 1-16 0V50c0-26.28-20.25-49.2-46.52-50A48 48 0 0 0 208 48v200a8 8 0 0 1-16 0v-32c0-15.15-16.63-26.51-34.45-23.54l-30.68 5.12c-18 3-30.87 16.12-30.87 31.38V376a8 8 0 0 1-16 0v-76l-27.36 15A37.34 37.34 0 0 0 32 348.4v73.47a37.31 37.31 0 0 0 10.93 26.39l30.93 30.93A112 112 0 0 0 153.05 512h215A112 112 0 0 0 480 400z"]
  5430. };
  5431. var faHandPaper = {
  5432. prefix: 'fas',
  5433. iconName: 'hand-paper',
  5434. 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"]
  5435. };
  5436. var faHandPeace = {
  5437. prefix: 'fas',
  5438. iconName: 'hand-peace',
  5439. 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"]
  5440. };
  5441. var faHandPointDown = {
  5442. prefix: 'fas',
  5443. iconName: 'hand-point-down',
  5444. 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"]
  5445. };
  5446. var faHandPointLeft = {
  5447. prefix: 'fas',
  5448. iconName: 'hand-point-left',
  5449. 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"]
  5450. };
  5451. var faHandPointRight = {
  5452. prefix: 'fas',
  5453. iconName: 'hand-point-right',
  5454. 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"]
  5455. };
  5456. var faHandPointUp = {
  5457. prefix: 'fas',
  5458. iconName: 'hand-point-up',
  5459. 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"]
  5460. };
  5461. var faHandPointer = {
  5462. prefix: 'fas',
  5463. iconName: 'hand-pointer',
  5464. 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"]
  5465. };
  5466. var faHandRock = {
  5467. prefix: 'fas',
  5468. iconName: 'hand-rock',
  5469. icon: [512, 512, [], "f255", "M464.8 80c-26.9-.4-48.8 21.2-48.8 48h-8V96.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v32h-8V80.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v48h-8V96.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v136l-8-7.1v-48.1c0-26.3-20.9-48.3-47.2-48.8C21.9 127.6 0 149.2 0 176v66.4c0 27.4 11.7 53.5 32.2 71.8l111.7 99.3c10.2 9.1 16.1 22.2 16.1 35.9v6.7c0 13.3 10.7 24 24 24h240c13.3 0 24-10.7 24-24v-2.9c0-12.8 2.6-25.5 7.5-37.3l49-116.3c5-11.8 7.5-24.5 7.5-37.3V128.8c0-26.3-20.9-48.4-47.2-48.8z"]
  5470. };
  5471. var faHandScissors = {
  5472. prefix: 'fas',
  5473. iconName: 'hand-scissors',
  5474. 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"]
  5475. };
  5476. var faHandSparkles = {
  5477. prefix: 'fas',
  5478. iconName: 'hand-sparkles',
  5479. icon: [640, 512, [], "f95d", "M106.66,170.64l.09,0,49.55-20.65a7.32,7.32,0,0,0,3.68-6h0a7.29,7.29,0,0,0-3.68-6l-49.57-20.67-.07,0L86,67.68a6.66,6.66,0,0,0-11.92,0l-20.7,49.63-.05,0L3.7,138A7.29,7.29,0,0,0,0,144H0a7.32,7.32,0,0,0,3.68,6L53.27,170.6l.07,0L74,220.26a6.65,6.65,0,0,0,11.92,0l20.69-49.62ZM471.38,467.41l-1-.42-1-.5a38.67,38.67,0,0,1,0-69.14l1-.49,1-.43,37.49-15.63,15.63-37.48.41-1,.47-.95c3.85-7.74,10.58-13.63,18.35-17.34,0-1.33.25-2.69.27-4V144a32,32,0,0,0-64,0v72a8,8,0,0,1-8,8H456a8,8,0,0,1-8-8V64a32,32,0,0,0-64,0V216a8,8,0,0,1-8,8H360a8,8,0,0,1-8-8V32a32,32,0,0,0-64,0V216a8,8,0,0,1-8,8H264a8,8,0,0,1-8-8V64a32,32,0,0,0-64,0v241l-23.59-32.49a40,40,0,0,0-64.71,47.09L229.3,492.21A48.07,48.07,0,0,0,268.09,512H465.7c19.24,0,35.65-11.73,43.24-28.79l-.07-.17ZM349.79,339.52,320,351.93l-12.42,29.78a4,4,0,0,1-7.15,0L288,351.93l-29.79-12.41a4,4,0,0,1,0-7.16L288,319.94l12.42-29.78a4,4,0,0,1,7.15,0L320,319.94l29.79,12.42a4,4,0,0,1,0,7.16ZM640,431.91a7.28,7.28,0,0,0-3.68-6l-49.57-20.67-.07,0L566,355.63a6.66,6.66,0,0,0-11.92,0l-20.7,49.63-.05,0L483.7,426a7.28,7.28,0,0,0-3.68,6h0a7.29,7.29,0,0,0,3.68,5.95l49.57,20.67.07,0L554,508.21a6.65,6.65,0,0,0,11.92,0l20.69-49.62h0l.09,0,49.55-20.66a7.29,7.29,0,0,0,3.68-5.95h0Z"]
  5480. };
  5481. var faHandSpock = {
  5482. prefix: 'fas',
  5483. iconName: 'hand-spock',
  5484. icon: [512, 512, [], "f259", "M510.9005,145.27027,442.604,432.09391A103.99507,103.99507,0,0,1,341.43745,512H214.074a135.96968,135.96968,0,0,1-93.18489-36.95291L12.59072,373.12723a39.992,39.992,0,0,1,54.8122-58.24988l60.59342,57.02528v0a283.24849,283.24849,0,0,0-11.6703-80.46734L73.63726,147.36011a40.00575,40.00575,0,1,1,76.71833-22.7187l37.15458,125.39477a8.33113,8.33113,0,0,0,16.05656-4.4414L153.26183,49.95406A39.99638,39.99638,0,1,1,230.73015,30.0166l56.09491,218.15825a10.42047,10.42047,0,0,0,20.30018-.501L344.80766,63.96966a40.052,40.052,0,0,1,51.30245-30.0893c19.86073,6.2998,30.86262,27.67378,26.67564,48.08487l-33.83869,164.966a7.55172,7.55172,0,0,0,14.74406,3.2666l29.3973-123.45874a39.99414,39.99414,0,1,1,77.81208,18.53121Z"]
  5485. };
  5486. var faHands = {
  5487. prefix: 'fas',
  5488. iconName: 'hands',
  5489. 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"]
  5490. };
  5491. var faHandsHelping = {
  5492. prefix: 'fas',
  5493. iconName: 'hands-helping',
  5494. 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"]
  5495. };
  5496. var faHandsWash = {
  5497. prefix: 'fas',
  5498. iconName: 'hands-wash',
  5499. icon: [576, 512, [], "f95e", "M496,224a48,48,0,1,0-48-48A48,48,0,0,0,496,224ZM311.47,178.45A56.77,56.77,0,0,1,328,176a56,56,0,0,1,19,3.49l15.35-48.61A24,24,0,0,0,342,99.74c-11.53-1.35-22.21,6.44-25.71,17.51l-20.9,66.17ZM93.65,386.33c.8-.19,1.54-.54,2.35-.71V359.93a156,156,0,0,1,107.06-148l73.7-22.76L310.92,81.05a24,24,0,0,0-20.33-31.11c-11.53-1.34-22.22,6.45-25.72,17.52L231.42,173.88a8,8,0,0,1-15.26-4.83L259.53,31.26A24,24,0,0,0,239.2.15C227.67-1.19,217,6.6,213.49,17.66L165.56,169.37a8,8,0,1,1-15.26-4.82l38.56-122a24,24,0,0,0-20.33-31.11C157,10,146.32,17.83,142.82,28.9l-60,189.85L80.76,168.7A24,24,0,0,0,56.9,144.55c-13.23-.05-24.72,10.54-24.9,23.86V281.14A123.69,123.69,0,0,0,93.65,386.33ZM519.1,336H360a8,8,0,0,1,0-16H488a24,24,0,0,0,23.54-28.76C509.35,279.84,498.71,272,487.1,272H288l47.09-17.06a24,24,0,0,0-14.18-45.88L213.19,242.31A123.88,123.88,0,0,0,128,360v25.65a79.78,79.78,0,0,1,58,108.63A118.9,118.9,0,0,0,248,512H456a24,24,0,0,0,23.54-28.76C477.35,471.84,466.71,464,455.1,464H360a8,8,0,0,1,0-16H488a24,24,0,0,0,23.54-28.76C509.35,407.84,498.71,400,487.1,400H360a8,8,0,0,1,0-16H520a24,24,0,0,0,23.54-28.76C541.35,343.84,530.71,336,519.1,336ZM416,64a32,32,0,1,0-32-32A32,32,0,0,0,416,64ZM112,416a48,48,0,1,0,48,48A48,48,0,0,0,112,416Z"]
  5500. };
  5501. var faHandshake = {
  5502. prefix: 'fas',
  5503. iconName: 'handshake',
  5504. 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"]
  5505. };
  5506. var faHandshakeAltSlash = {
  5507. prefix: 'fas',
  5508. iconName: 'handshake-alt-slash',
  5509. icon: [640, 512, [], "f95f", "M358.59,195.6,504.2,313.8a63.4,63.4,0,0,1,22.21,37.91H624a16.05,16.05,0,0,0,16-16V143.91A16,16,0,0,0,624,128H512L457.41,73.41A32,32,0,0,0,434.8,64H348.91a32,32,0,0,0-21.61,8.41l-88.12,80.68-25.69-19.85L289.09,64H205.3a32,32,0,0,0-22.6,9.41l-20.34,20.3L45.47,3.38A16,16,0,0,0,23,6.19L3.38,31.46A16,16,0,0,0,6.19,53.91L594.54,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45L303.4,202.72l32.69-29.92,27-24.7a16,16,0,0,1,21.61,23.61ZM16,128A16.05,16.05,0,0,0,0,144V335.91a16,16,0,0,0,16,16H146.3l90.5,81.89a64,64,0,0,0,90-9.3l.2-.2,17.91,15.5a37.16,37.16,0,0,0,52.29-5.39l8.8-10.82L23.56,128Z"]
  5510. };
  5511. var faHandshakeSlash = {
  5512. prefix: 'fas',
  5513. iconName: 'handshake-slash',
  5514. icon: [640, 512, [], "f960", "M0,128.21V384H64a32,32,0,0,0,32-32V184L23.83,128.21ZM48,320.1a16,16,0,1,1-16,16A16,16,0,0,1,48,320.1Zm80,31.81h18.3l90.5,81.89a64,64,0,0,0,90-9.3l.2-.2,17.91,15.5a37.16,37.16,0,0,0,52.29-5.39l8.8-10.82L128,208.72Zm416-223.7V352.1a32,32,0,0,0,32,32h64V128.21ZM592,352.1a16,16,0,1,1,16-16A16,16,0,0,1,592,352.1ZM303.33,202.67l59.58-54.57a16,16,0,0,1,21.59,23.61L358.41,195.6,504,313.8a73.08,73.08,0,0,1,7.91,7.7V128L457.3,73.41A31.76,31.76,0,0,0,434.7,64H348.8a31.93,31.93,0,0,0-21.6,8.41l-88.07,80.64-25.64-19.81L289.09,64H205.3a32,32,0,0,0-22.6,9.41L162.36,93.72,45.47,3.38A16,16,0,0,0,23,6.19L3.38,31.46A16,16,0,0,0,6.19,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.65-25.27a16,16,0,0,0-2.82-22.45Z"]
  5515. };
  5516. var faHanukiah = {
  5517. prefix: 'fas',
  5518. iconName: 'hanukiah',
  5519. 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"]
  5520. };
  5521. var faHardHat = {
  5522. prefix: 'fas',
  5523. iconName: 'hard-hat',
  5524. icon: [512, 512, [], "f807", "M480 288c0-80.25-49.28-148.92-119.19-177.62L320 192V80a16 16 0 0 0-16-16h-96a16 16 0 0 0-16 16v112l-40.81-81.62C81.28 139.08 32 207.75 32 288v64h448zm16 96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  5525. };
  5526. var faHashtag = {
  5527. prefix: 'fas',
  5528. iconName: 'hashtag',
  5529. 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"]
  5530. };
  5531. var faHatCowboy = {
  5532. prefix: 'fas',
  5533. iconName: 'hat-cowboy',
  5534. icon: [640, 512, [], "f8c0", "M490 296.9C480.51 239.51 450.51 64 392.3 64c-14 0-26.49 5.93-37 14a58.21 58.21 0 0 1-70.58 0c-10.51-8-23-14-37-14-58.2 0-88.2 175.47-97.71 232.88C188.81 309.47 243.73 320 320 320s131.23-10.51 170-23.1zm142.9-37.18a16 16 0 0 0-19.75 1.5c-1 .9-101.27 90.78-293.16 90.78-190.82 0-292.22-89.94-293.24-90.84A16 16 0 0 0 1 278.53C1.73 280.55 78.32 480 320 480s318.27-199.45 319-201.47a16 16 0 0 0-6.09-18.81z"]
  5535. };
  5536. var faHatCowboySide = {
  5537. prefix: 'fas',
  5538. iconName: 'hat-cowboy-side',
  5539. icon: [640, 512, [], "f8c1", "M260.8 291.06c-28.63-22.94-62-35.06-96.4-35.06C87 256 21.47 318.72 1.43 412.06c-3.55 16.6-.43 33.83 8.57 47.3C18.75 472.47 31.83 480 45.88 480H592c-103.21 0-155-37.07-233.19-104.46zm234.65-18.29L468.4 116.2A64 64 0 0 0 392 64.41L200.85 105a64 64 0 0 0-50.35 55.79L143.61 226c6.9-.83 13.7-2 20.79-2 41.79 0 82 14.55 117.29 42.82l98 84.48C450.76 412.54 494.9 448 592 448a48 48 0 0 0 48-48c0-25.39-29.6-119.33-144.55-127.23z"]
  5540. };
  5541. var faHatWizard = {
  5542. prefix: 'fas',
  5543. iconName: 'hat-wizard',
  5544. 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"]
  5545. };
  5546. var faHdd = {
  5547. prefix: 'fas',
  5548. iconName: 'hdd',
  5549. 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"]
  5550. };
  5551. var faHeadSideCough = {
  5552. prefix: 'fas',
  5553. iconName: 'head-side-cough',
  5554. icon: [640, 512, [], "f961", "M616,304a24,24,0,1,0-24-24A24,24,0,0,0,616,304ZM552,416a24,24,0,1,0,24,24A24,24,0,0,0,552,416Zm-64-56a24,24,0,1,0,24,24A24,24,0,0,0,488,360ZM616,464a24,24,0,1,0,24,24A24,24,0,0,0,616,464Zm0-104a24,24,0,1,0,24,24A24,24,0,0,0,616,360Zm-64-40a24,24,0,1,0,24,24A24,24,0,0,0,552,320Zm-74.78-45c-21-47.12-48.5-151.75-73.12-186.75A208.13,208.13,0,0,0,234.1,0H192C86,0,0,86,0,192c0,56.75,24.75,107.62,64,142.88V512H288V480h64a64,64,0,0,0,64-64H320a32,32,0,0,1,0-64h96V320h32A32,32,0,0,0,477.22,275ZM288,224a32,32,0,1,1,32-32A32.07,32.07,0,0,1,288,224Z"]
  5555. };
  5556. var faHeadSideCoughSlash = {
  5557. prefix: 'fas',
  5558. iconName: 'head-side-cough-slash',
  5559. icon: [640, 512, [], "f962", "M454.11,319.21c19.56-3.81,31.62-25,23.11-44.21-21-47.12-48.5-151.75-73.12-186.75A208.13,208.13,0,0,0,234.1,0H192A190.64,190.64,0,0,0,84.18,33.3L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45ZM313.39,210.45,263.61,172c5.88-7.14,14.43-12,24.36-12a32.06,32.06,0,0,1,32,32C320,199,317.24,205.17,313.39,210.45ZM616,304a24,24,0,1,0-24-24A24,24,0,0,0,616,304Zm-64,64a24,24,0,1,0-24-24A24,24,0,0,0,552,368ZM288,384a32,32,0,0,1,32-32h19.54L20.73,105.59A190.86,190.86,0,0,0,0,192c0,56.75,24.75,107.62,64,142.88V512H288V480h64a64,64,0,0,0,64-64H320A32,32,0,0,1,288,384Zm328-24a24,24,0,1,0,24,24A24,24,0,0,0,616,360Z"]
  5560. };
  5561. var faHeadSideMask = {
  5562. prefix: 'fas',
  5563. iconName: 'head-side-mask',
  5564. icon: [512, 512, [], "f963", "M.15,184.42C-2.17,244.21,23,298.06,64,334.88V512H224V316.51L3.67,156.25A182.28,182.28,0,0,0,.15,184.42ZM509.22,275c-21-47.12-48.5-151.75-73.12-186.75A208.11,208.11,0,0,0,266.11,0H200C117,0,42.48,50.57,13.25,123.65L239.21,288H511.76A31.35,31.35,0,0,0,509.22,275ZM320,224a32,32,0,1,1,32-32A32.07,32.07,0,0,1,320,224Zm16,144H496l16-48H256V512H401.88a64,64,0,0,0,60.71-43.76L464,464H336a16,16,0,0,1,0-32H474.67l10.67-32H336a16,16,0,0,1,0-32Z"]
  5565. };
  5566. var faHeadSideVirus = {
  5567. prefix: 'fas',
  5568. iconName: 'head-side-virus',
  5569. icon: [512, 512, [], "f964", "M272,240a16,16,0,1,0,16,16A16,16,0,0,0,272,240Zm-64-64a16,16,0,1,0,16,16A16,16,0,0,0,208,176Zm301.2,99c-20.93-47.12-48.43-151.73-73.07-186.75A207.9,207.9,0,0,0,266.09,0H192C86,0,0,86,0,192A191.23,191.23,0,0,0,64,334.81V512H320V448h64a64,64,0,0,0,64-64V320H480A32,32,0,0,0,509.2,275ZM368,240H355.88c-28.51,0-42.79,34.47-22.63,54.63l8.58,8.57a16,16,0,1,1-22.63,22.63l-8.57-8.58C290.47,297.09,256,311.37,256,339.88V352a16,16,0,0,1-32,0V339.88c0-28.51-34.47-42.79-54.63-22.63l-8.57,8.58a16,16,0,0,1-22.63-22.63l8.58-8.57c20.16-20.16,5.88-54.63-22.63-54.63H112a16,16,0,0,1,0-32h12.12c28.51,0,42.79-34.47,22.63-54.63l-8.58-8.57a16,16,0,0,1,22.63-22.63l8.57,8.58c20.16,20.16,54.63,5.88,54.63-22.63V96a16,16,0,0,1,32,0v12.12c0,28.51,34.47,42.79,54.63,22.63l8.57-8.58a16,16,0,0,1,22.63,22.63l-8.58,8.57C313.09,173.53,327.37,208,355.88,208H368a16,16,0,0,1,0,32Z"]
  5570. };
  5571. var faHeading = {
  5572. prefix: 'fas',
  5573. iconName: 'heading',
  5574. icon: [512, 512, [], "f1dc", "M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z"]
  5575. };
  5576. var faHeadphones = {
  5577. prefix: 'fas',
  5578. iconName: 'headphones',
  5579. 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"]
  5580. };
  5581. var faHeadphonesAlt = {
  5582. prefix: 'fas',
  5583. iconName: 'headphones-alt',
  5584. 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"]
  5585. };
  5586. var faHeadset = {
  5587. prefix: 'fas',
  5588. iconName: 'headset',
  5589. 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"]
  5590. };
  5591. var faHeart = {
  5592. prefix: 'fas',
  5593. iconName: 'heart',
  5594. 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"]
  5595. };
  5596. var faHeartBroken = {
  5597. prefix: 'fas',
  5598. iconName: 'heart-broken',
  5599. icon: [512, 512, [], "f7a9", "M473.7 73.8l-2.4-2.5c-46-47-118-51.7-169.6-14.8L336 159.9l-96 64 48 128-144-144 96-64-28.6-86.5C159.7 19.6 87 24 40.7 71.4l-2.4 2.4C-10.4 123.6-12.5 202.9 31 256l212.1 218.6c7.1 7.3 18.6 7.3 25.7 0L481 255.9c43.5-53 41.4-132.3-7.3-182.1z"]
  5600. };
  5601. var faHeartbeat = {
  5602. prefix: 'fas',
  5603. iconName: 'heartbeat',
  5604. 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"]
  5605. };
  5606. var faHelicopter = {
  5607. prefix: 'fas',
  5608. iconName: 'helicopter',
  5609. 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"]
  5610. };
  5611. var faHighlighter = {
  5612. prefix: 'fas',
  5613. iconName: 'highlighter',
  5614. 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"]
  5615. };
  5616. var faHiking = {
  5617. prefix: 'fas',
  5618. iconName: 'hiking',
  5619. 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"]
  5620. };
  5621. var faHippo = {
  5622. prefix: 'fas',
  5623. iconName: 'hippo',
  5624. 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"]
  5625. };
  5626. var faHistory = {
  5627. prefix: 'fas',
  5628. iconName: 'history',
  5629. 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"]
  5630. };
  5631. var faHockeyPuck = {
  5632. prefix: 'fas',
  5633. iconName: 'hockey-puck',
  5634. 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"]
  5635. };
  5636. var faHollyBerry = {
  5637. prefix: 'fas',
  5638. iconName: 'holly-berry',
  5639. icon: [448, 512, [], "f7aa", "M144 192c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48zm112-48c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zm-32-48c26.5 0 48-21.5 48-48S250.5 0 224 0s-48 21.5-48 48 21.5 48 48 48zm-16.2 139.1c.1-12.4-13.1-20.1-23.8-13.7-34.3 20.3-71.4 32.7-108.7 36.2-9.7.9-15.6 11.3-11.6 20.2 6.2 13.9 11.1 28.6 14.7 43.8 3.6 15.2-5.3 30.6-20.2 35.1-14.9 4.5-30.1 7.6-45.3 9.1-9.7 1-15.7 11.3-11.7 20.2 15 32.8 22.9 69.5 23 107.7.1 14.4 15.2 23.1 27.6 16 33.2-19 68.9-30.5 104.8-33.9 9.7-.9 15.6-11.3 11.6-20.2-6.2-13.9-11.1-28.6-14.7-43.8-3.6-15.2 5.3-30.6 20.2-35.1 14.9-4.5 30.1-7.6 45.3-9.1 9.7-1 15.7-11.3 11.7-20.2-15.5-34.2-23.3-72.5-22.9-112.3zM435 365.6c-15.2-1.6-30.3-4.7-45.3-9.1-14.9-4.5-23.8-19.9-20.2-35.1 3.6-15.2 8.5-29.8 14.7-43.8 4-8.9-1.9-19.3-11.6-20.2-37.3-3.5-74.4-15.9-108.7-36.2-10.7-6.3-23.9 1.4-23.8 13.7 0 1.6-.2 3.2-.2 4.9.2 33.3 7 65.7 19.9 94 5.7 12.4 5.2 26.6-.6 38.9 4.9 1.2 9.9 2.2 14.8 3.7 14.9 4.5 23.8 19.9 20.2 35.1-3.6 15.2-8.5 29.8-14.7 43.8-4 8.9 1.9 19.3 11.6 20.2 35.9 3.4 71.6 14.9 104.8 33.9 12.5 7.1 27.6-1.6 27.6-16 .2-38.2 8-75 23-107.7 4.3-8.7-1.8-19.1-11.5-20.1z"]
  5640. };
  5641. var faHome = {
  5642. prefix: 'fas',
  5643. iconName: 'home',
  5644. icon: [576, 512, [], "f015", "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"]
  5645. };
  5646. var faHorse = {
  5647. prefix: 'fas',
  5648. iconName: 'horse',
  5649. 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"]
  5650. };
  5651. var faHorseHead = {
  5652. prefix: 'fas',
  5653. iconName: 'horse-head',
  5654. icon: [512, 512, [], "f7ab", "M509.8 332.5l-69.9-164.3c-14.9-41.2-50.4-71-93-79.2 18-10.6 46.3-35.9 34.2-82.3-1.3-5-7.1-7.9-12-6.1L166.9 76.3C35.9 123.4 0 238.9 0 398.8V480c0 17.7 14.3 32 32 32h236.2c23.8 0 39.3-25 28.6-46.3L256 384v-.7c-45.6-3.5-84.6-30.7-104.3-69.6-1.6-3.1-.9-6.9 1.6-9.3l12.1-12.1c3.9-3.9 10.6-2.7 12.9 2.4 14.8 33.7 48.2 57.4 87.4 57.4 17.2 0 33-5.1 46.8-13.2l46 63.9c6 8.4 15.7 13.3 26 13.3h50.3c8.5 0 16.6-3.4 22.6-9.4l45.3-39.8c8.9-9.1 11.7-22.6 7.1-34.4zM328 224c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24z"]
  5655. };
  5656. var faHospital = {
  5657. prefix: 'fas',
  5658. iconName: 'hospital',
  5659. 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"]
  5660. };
  5661. var faHospitalAlt = {
  5662. prefix: 'fas',
  5663. iconName: 'hospital-alt',
  5664. 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"]
  5665. };
  5666. var faHospitalSymbol = {
  5667. prefix: 'fas',
  5668. iconName: 'hospital-symbol',
  5669. 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"]
  5670. };
  5671. var faHospitalUser = {
  5672. prefix: 'fas',
  5673. iconName: 'hospital-user',
  5674. icon: [640, 512, [], "f80d", "M480 320a96 96 0 1 0-96-96 96 96 0 0 0 96 96zm48 32a22.88 22.88 0 0 0-7.06 1.09 124.76 124.76 0 0 1-81.89 0A22.82 22.82 0 0 0 432 352a112 112 0 0 0-112 112.62c.14 26.26 21.73 47.38 48 47.38h224c26.27 0 47.86-21.12 48-47.38A112 112 0 0 0 528 352zm-198.09 10.45A145.19 145.19 0 0 1 352 344.62V128a32 32 0 0 0-32-32h-32V32a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v64H32a32 32 0 0 0-32 32v368a16 16 0 0 0 16 16h288.31A78.62 78.62 0 0 1 288 464.79a143.06 143.06 0 0 1 41.91-102.34zM144 404a12 12 0 0 1-12 12H92a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm0-128a12 12 0 0 1-12 12H92a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm48-122a6 6 0 0 1-6 6h-20a6 6 0 0 1-6-6v-26h-26a6 6 0 0 1-6-6v-20a6 6 0 0 1 6-6h26V70a6 6 0 0 1 6-6h20a6 6 0 0 1 6 6v26h26a6 6 0 0 1 6 6v20a6 6 0 0 1-6 6h-26zm80 250a12 12 0 0 1-12 12h-40a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm0-128a12 12 0 0 1-12 12h-40a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12z"]
  5675. };
  5676. var faHotTub = {
  5677. prefix: 'fas',
  5678. iconName: 'hot-tub',
  5679. 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"]
  5680. };
  5681. var faHotdog = {
  5682. prefix: 'fas',
  5683. iconName: 'hotdog',
  5684. icon: [512, 512, [], "f80f", "M488.56 23.44a80 80 0 0 0-113.12 0l-352 352a80 80 0 1 0 113.12 113.12l352-352a80 80 0 0 0 0-113.12zm-49.93 95.19c-19.6 19.59-37.52 22.67-51.93 25.14C373.76 146 364.4 147.6 352 160s-14 21.76-16.23 34.71c-2.48 14.4-5.55 32.33-25.15 51.92s-37.52 22.67-51.92 25.15C245.75 274 236.4 275.6 224 288s-14 21.75-16.23 34.7c-2.47 14.4-5.54 32.33-25.14 51.92s-37.53 22.68-51.93 25.15C117.76 402 108.4 403.6 96 416a16 16 0 0 1-22.63-22.63c19.6-19.59 37.52-22.67 51.92-25.14 13-2.22 22.3-3.82 34.71-16.23s14-21.75 16.22-34.7c2.48-14.4 5.55-32.33 25.15-51.92s37.52-22.67 51.92-25.14c13-2.22 22.3-3.83 34.7-16.23s14-21.76 16.24-34.71c2.47-14.4 5.54-32.33 25.14-51.92s37.52-22.68 51.92-25.15C394.24 110 403.59 108.41 416 96a16 16 0 0 1 22.63 22.63zM31.44 322.18L322.18 31.44l-11.54-11.55c-25-25-63.85-26.66-86.79-3.72L16.17 223.85c-22.94 22.94-21.27 61.79 3.72 86.78zm449.12-132.36L189.82 480.56l11.54 11.55c25 25 63.85 26.66 86.79 3.72l207.68-207.68c22.94-22.94 21.27-61.79-3.72-86.79z"]
  5685. };
  5686. var faHotel = {
  5687. prefix: 'fas',
  5688. iconName: 'hotel',
  5689. 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"]
  5690. };
  5691. var faHourglass = {
  5692. prefix: 'fas',
  5693. iconName: 'hourglass',
  5694. 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"]
  5695. };
  5696. var faHourglassEnd = {
  5697. prefix: 'fas',
  5698. iconName: 'hourglass-end',
  5699. 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"]
  5700. };
  5701. var faHourglassHalf = {
  5702. prefix: 'fas',
  5703. iconName: 'hourglass-half',
  5704. 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"]
  5705. };
  5706. var faHourglassStart = {
  5707. prefix: 'fas',
  5708. iconName: 'hourglass-start',
  5709. 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"]
  5710. };
  5711. var faHouseDamage = {
  5712. prefix: 'fas',
  5713. iconName: 'house-damage',
  5714. 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"]
  5715. };
  5716. var faHouseUser = {
  5717. prefix: 'fas',
  5718. iconName: 'house-user',
  5719. icon: [576, 512, [], "f965", "M570.69,236.27,512,184.44V48a16,16,0,0,0-16-16H432a16,16,0,0,0-16,16V99.67L314.78,10.3C308.5,4.61,296.53,0,288,0s-20.46,4.61-26.74,10.3l-256,226A18.27,18.27,0,0,0,0,248.2a18.64,18.64,0,0,0,4.09,10.71L25.5,282.7a21.14,21.14,0,0,0,12,5.3,21.67,21.67,0,0,0,10.69-4.11l15.9-14V480a32,32,0,0,0,32,32H480a32,32,0,0,0,32-32V269.88l15.91,14A21.94,21.94,0,0,0,538.63,288a20.89,20.89,0,0,0,11.87-5.31l21.41-23.81A21.64,21.64,0,0,0,576,248.19,21,21,0,0,0,570.69,236.27ZM288,176a64,64,0,1,1-64,64A64,64,0,0,1,288,176ZM400,448H176a16,16,0,0,1-16-16,96,96,0,0,1,96-96h64a96,96,0,0,1,96,96A16,16,0,0,1,400,448Z"]
  5720. };
  5721. var faHryvnia = {
  5722. prefix: 'fas',
  5723. iconName: 'hryvnia',
  5724. 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"]
  5725. };
  5726. var faICursor = {
  5727. prefix: 'fas',
  5728. iconName: 'i-cursor',
  5729. 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"]
  5730. };
  5731. var faIceCream = {
  5732. prefix: 'fas',
  5733. iconName: 'ice-cream',
  5734. icon: [448, 512, [], "f810", "M368 160h-.94a144 144 0 1 0-286.12 0H80a48 48 0 0 0 0 96h288a48 48 0 0 0 0-96zM195.38 493.69a31.52 31.52 0 0 0 57.24 0L352 288H96z"]
  5735. };
  5736. var faIcicles = {
  5737. prefix: 'fas',
  5738. iconName: 'icicles',
  5739. icon: [512, 512, [], "f7ad", "M511.4 37.9C515.1 18.2 500 0 480 0H32C10.6 0-4.8 20.7 1.4 41.2l87.1 273.4c2.5 7.2 12.7 7.2 15.1 0L140 190.5l44.2 187.3c1.9 8.3 13.7 8.3 15.6 0l46.5-196.9 34.1 133.4c2.3 7.6 13 7.6 15.3 0l45.8-172.5 66.7 363.8c1.7 8.6 14 8.6 15.7 0l87.5-467.7z"]
  5740. };
  5741. var faIcons = {
  5742. prefix: 'fas',
  5743. iconName: 'icons',
  5744. icon: [512, 512, [], "f86d", "M116.65 219.35a15.68 15.68 0 0 0 22.65 0l96.75-99.83c28.15-29 26.5-77.1-4.91-103.88C203.75-7.7 163-3.5 137.86 22.44L128 32.58l-9.85-10.14C93.05-3.5 52.25-7.7 24.86 15.64c-31.41 26.78-33 74.85-5 103.88zm143.92 100.49h-48l-7.08-14.24a27.39 27.39 0 0 0-25.66-17.78h-71.71a27.39 27.39 0 0 0-25.66 17.78l-7 14.24h-48A27.45 27.45 0 0 0 0 347.3v137.25A27.44 27.44 0 0 0 27.43 512h233.14A27.45 27.45 0 0 0 288 484.55V347.3a27.45 27.45 0 0 0-27.43-27.46zM144 468a52 52 0 1 1 52-52 52 52 0 0 1-52 52zm355.4-115.9h-60.58l22.36-50.75c2.1-6.65-3.93-13.21-12.18-13.21h-75.59c-6.3 0-11.66 3.9-12.5 9.1l-16.8 106.93c-1 6.3 4.88 11.89 12.5 11.89h62.31l-24.2 83c-1.89 6.65 4.2 12.9 12.23 12.9a13.26 13.26 0 0 0 10.92-5.25l92.4-138.91c4.88-6.91-1.16-15.7-10.87-15.7zM478.08.33L329.51 23.17C314.87 25.42 304 38.92 304 54.83V161.6a83.25 83.25 0 0 0-16-1.7c-35.35 0-64 21.48-64 48s28.65 48 64 48c35.2 0 63.73-21.32 64-47.66V99.66l112-17.22v47.18a83.25 83.25 0 0 0-16-1.7c-35.35 0-64 21.48-64 48s28.65 48 64 48c35.2 0 63.73-21.32 64-47.66V32c0-19.48-16-34.42-33.92-31.67z"]
  5745. };
  5746. var faIdBadge = {
  5747. prefix: 'fas',
  5748. iconName: 'id-badge',
  5749. 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"]
  5750. };
  5751. var faIdCard = {
  5752. prefix: 'fas',
  5753. iconName: 'id-card',
  5754. 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"]
  5755. };
  5756. var faIdCardAlt = {
  5757. prefix: 'fas',
  5758. iconName: 'id-card-alt',
  5759. 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"]
  5760. };
  5761. var faIgloo = {
  5762. prefix: 'fas',
  5763. iconName: 'igloo',
  5764. icon: [576, 512, [], "f7ae", "M320 33.9c-10.5-1.2-21.2-1.9-32-1.9-99.8 0-187.8 50.8-239.4 128H320V33.9zM96 192H30.3C11.1 230.6 0 274 0 320h96V192zM352 39.4V160h175.4C487.2 99.9 424.8 55.9 352 39.4zM480 320h96c0-46-11.1-89.4-30.3-128H480v128zm-64 64v96h128c17.7 0 32-14.3 32-32v-96H411.5c2.6 10.3 4.5 20.9 4.5 32zm32-192H128v128h49.8c22.2-38.1 63-64 110.2-64s88 25.9 110.2 64H448V192zM0 448c0 17.7 14.3 32 32 32h128v-96c0-11.1 1.9-21.7 4.5-32H0v96zm288-160c-53 0-96 43-96 96v96h192v-96c0-53-43-96-96-96z"]
  5765. };
  5766. var faImage = {
  5767. prefix: 'fas',
  5768. iconName: 'image',
  5769. 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"]
  5770. };
  5771. var faImages = {
  5772. prefix: 'fas',
  5773. iconName: 'images',
  5774. 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"]
  5775. };
  5776. var faInbox = {
  5777. prefix: 'fas',
  5778. iconName: 'inbox',
  5779. 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"]
  5780. };
  5781. var faIndent = {
  5782. prefix: 'fas',
  5783. iconName: 'indent',
  5784. icon: [448, 512, [], "f03c", "M27.31 363.3l96-96a16 16 0 0 0 0-22.62l-96-96C17.27 138.66 0 145.78 0 160v192c0 14.31 17.33 21.3 27.31 11.3zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  5785. };
  5786. var faIndustry = {
  5787. prefix: 'fas',
  5788. iconName: 'industry',
  5789. 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"]
  5790. };
  5791. var faInfinity = {
  5792. prefix: 'fas',
  5793. iconName: 'infinity',
  5794. 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"]
  5795. };
  5796. var faInfo = {
  5797. prefix: 'fas',
  5798. iconName: 'info',
  5799. 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"]
  5800. };
  5801. var faInfoCircle = {
  5802. prefix: 'fas',
  5803. iconName: 'info-circle',
  5804. 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"]
  5805. };
  5806. var faItalic = {
  5807. prefix: 'fas',
  5808. iconName: 'italic',
  5809. icon: [320, 512, [], "f033", "M320 48v32a16 16 0 0 1-16 16h-62.76l-80 320H208a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h62.76l80-320H112a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16z"]
  5810. };
  5811. var faJedi = {
  5812. prefix: 'fas',
  5813. iconName: 'jedi',
  5814. icon: [576, 512, [], "f669", "M535.95308,352c-42.64069,94.17188-137.64086,160-247.9848,160q-6.39844,0-12.84377-.29688C171.15558,506.9375,81.26481,442.23438,40.01474,352H79.93668L21.3272,293.40625a264.82522,264.82522,0,0,1-5.10938-39.42187,273.6653,273.6653,0,0,1,.5-29.98438H63.93665L22.546,182.625A269.79782,269.79782,0,0,1,130.51489,20.54688a16.06393,16.06393,0,0,1,9.28127-3,16.36332,16.36332,0,0,1,13.5,7.25,16.02739,16.02739,0,0,1,1.625,15.09374,138.387,138.387,0,0,0-9.84376,51.26563c0,45.10937,21.04691,86.57813,57.71884,113.73437a16.29989,16.29989,0,0,1,1.20313,25.39063c-26.54692,23.98437-41.17194,56.5-41.17194,91.57813,0,60.03124,42.95319,110.28124,99.89079,121.92187l2.5-65.26563L238.062,397a8.33911,8.33911,0,0,1-10-.75,8.025,8.025,0,0,1-1.39063-9.9375l20.125-33.76562-42.06257-8.73438a7.9898,7.9898,0,0,1,0-15.65625l42.06257-8.71875-20.10941-33.73438a7.99122,7.99122,0,0,1,11.35939-10.71874L268.437,295.64062,279.95265,7.67188a7.97138,7.97138,0,0,1,8-7.67188h.04687a8.02064,8.02064,0,0,1,7.95314,7.70312L307.48394,295.625l30.39068-20.67188a8.08327,8.08327,0,0,1,10,.8125,7.99866,7.99866,0,0,1,1.39062,9.90626L329.12461,319.4375l42.07819,8.73438a7.99373,7.99373,0,0,1,0,15.65624l-42.07819,8.71876,20.1094,33.73437a7.97791,7.97791,0,0,1-1.32812,9.92187A8.25739,8.25739,0,0,1,337.87462,397L310.7027,378.53125l2.5,65.34375c48.48446-9.40625,87.57828-48.15625,97.31267-96.5A123.52652,123.52652,0,0,0,371.9528,230.29688a16.30634,16.30634,0,0,1,1.20313-25.42188c36.65631-27.17188,57.6876-68.60938,57.6876-113.73438a138.01689,138.01689,0,0,0-9.85939-51.3125,15.98132,15.98132,0,0,1,1.60937-15.09374,16.36914,16.36914,0,0,1,13.5-7.23438,16.02453,16.02453,0,0,1,9.25,2.98438A271.26947,271.26947,0,0,1,553.25,182.76562L511.99992,224h46.9532C559.3125,229.76562,560,235.45312,560,241.26562a270.092,270.092,0,0,1-5.125,51.85938L495.98427,352Z"]
  5815. };
  5816. var faJoint = {
  5817. prefix: 'fas',
  5818. iconName: 'joint',
  5819. 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"]
  5820. };
  5821. var faJournalWhills = {
  5822. prefix: 'fas',
  5823. iconName: 'journal-whills',
  5824. icon: [448, 512, [], "f66a", "M438.40625,377.59375c-3.20313,12.8125-3.20313,57.60937,0,73.60937Q447.9922,460.78907,448,470.40625v16c0,16-12.79688,25.59375-25.59375,25.59375H96c-54.40625,0-96-41.59375-96-96V96C0,41.59375,41.59375,0,96,0H422.40625C438.40625,0,448,9.59375,448,25.59375v332.8125Q448,372.79688,438.40625,377.59375ZM380.79688,384H96c-16,0-32,12.79688-32,32s12.79688,32,32,32H380.79688ZM128.01562,176.01562c0,.51563.14063.98438.14063,1.5l37.10937,32.46876A7.99954,7.99954,0,0,1,160,224h-.01562a9.17678,9.17678,0,0,1-5.25-1.98438L131.14062,201.375C142.6875,250.95312,186.90625,288,240,288s97.3125-37.04688,108.875-86.625l-23.59375,20.64062a8.02516,8.02516,0,0,1-5.26563,1.96876H320a9.14641,9.14641,0,0,1-6.01562-2.71876A9.26508,9.26508,0,0,1,312,216a9.097,9.097,0,0,1,2.73438-6.01562l37.10937-32.46876c.01563-.53124.15625-1,.15625-1.51562,0-11.04688-2.09375-21.51562-5.06251-31.59375l-21.26562,21.25a8.00467,8.00467,0,0,1-11.32812-11.3125l26.42187-26.40625a111.81517,111.81517,0,0,0-46.35937-49.26562,63.02336,63.02336,0,0,1-14.0625,82.64062A55.83846,55.83846,0,0,1,251.625,254.73438l-1.42188-34.28126,12.67188,8.625a3.967,3.967,0,0,0,2.25.6875,3.98059,3.98059,0,0,0,3.43749-6.03124l-8.53124-14.3125,17.90625-3.71876a4.00647,4.00647,0,0,0,0-7.84374l-17.90625-3.71876,8.53124-14.3125a3.98059,3.98059,0,0,0-3.43749-6.03124,4.726,4.726,0,0,0-2.25.67187L248.6875,184.125,244,71.82812a4.00386,4.00386,0,0,0-8,0l-4.625,110.8125-12-8.15624a4.003,4.003,0,0,0-5.68751,5.35937l8.53126,14.3125L204.3125,197.875a3.99686,3.99686,0,0,0,0,7.82812l17.90625,3.73438-8.53126,14.29688a4.72469,4.72469,0,0,0-.56249,2.04687,4.59547,4.59547,0,0,0,1.25,2.90625,4.01059,4.01059,0,0,0,2.75,1.09375,4.09016,4.09016,0,0,0,2.25-.6875l10.35937-7.04687L228.375,254.76562a55.86414,55.86414,0,0,1-28.71875-93.45312,63.01119,63.01119,0,0,1-14.04688-82.65625,111.93158,111.93158,0,0,0-46.375,49.26563l26.42187,26.42187a7.99917,7.99917,0,0,1-11.3125,11.3125l-21.26563-21.26563C130.09375,154.48438,128,164.95312,128.01562,176.01562Z"]
  5825. };
  5826. var faKaaba = {
  5827. prefix: 'fas',
  5828. iconName: 'kaaba',
  5829. 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"]
  5830. };
  5831. var faKey = {
  5832. prefix: 'fas',
  5833. iconName: 'key',
  5834. 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"]
  5835. };
  5836. var faKeyboard = {
  5837. prefix: 'fas',
  5838. iconName: 'keyboard',
  5839. 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"]
  5840. };
  5841. var faKhanda = {
  5842. prefix: 'fas',
  5843. iconName: 'khanda',
  5844. 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"]
  5845. };
  5846. var faKiss = {
  5847. prefix: 'fas',
  5848. iconName: 'kiss',
  5849. 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"]
  5850. };
  5851. var faKissBeam = {
  5852. prefix: 'fas',
  5853. iconName: 'kiss-beam',
  5854. 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"]
  5855. };
  5856. var faKissWinkHeart = {
  5857. prefix: 'fas',
  5858. iconName: 'kiss-wink-heart',
  5859. 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"]
  5860. };
  5861. var faKiwiBird = {
  5862. prefix: 'fas',
  5863. iconName: 'kiwi-bird',
  5864. 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"]
  5865. };
  5866. var faLandmark = {
  5867. prefix: 'fas',
  5868. iconName: 'landmark',
  5869. 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"]
  5870. };
  5871. var faLanguage = {
  5872. prefix: 'fas',
  5873. iconName: 'language',
  5874. icon: [640, 512, [], "f1ab", "M152.1 236.2c-3.5-12.1-7.8-33.2-7.8-33.2h-.5s-4.3 21.1-7.8 33.2l-11.1 37.5H163zM616 96H336v320h280c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm-24 120c0 6.6-5.4 12-12 12h-11.4c-6.9 23.6-21.7 47.4-42.7 69.9 8.4 6.4 17.1 12.5 26.1 18 5.5 3.4 7.3 10.5 4.1 16.2l-7.9 13.9c-3.4 5.9-10.9 7.8-16.7 4.3-12.6-7.8-24.5-16.1-35.4-24.9-10.9 8.7-22.7 17.1-35.4 24.9-5.8 3.5-13.3 1.6-16.7-4.3l-7.9-13.9c-3.2-5.6-1.4-12.8 4.2-16.2 9.3-5.7 18-11.7 26.1-18-7.9-8.4-14.9-17-21-25.7-4-5.7-2.2-13.6 3.7-17.1l6.5-3.9 7.3-4.3c5.4-3.2 12.4-1.7 16 3.4 5 7 10.8 14 17.4 20.9 13.5-14.2 23.8-28.9 30-43.2H412c-6.6 0-12-5.4-12-12v-16c0-6.6 5.4-12 12-12h64v-16c0-6.6 5.4-12 12-12h16c6.6 0 12 5.4 12 12v16h64c6.6 0 12 5.4 12 12zM0 120v272c0 13.3 10.7 24 24 24h280V96H24c-13.3 0-24 10.7-24 24zm58.9 216.1L116.4 167c1.7-4.9 6.2-8.1 11.4-8.1h32.5c5.1 0 9.7 3.3 11.4 8.1l57.5 169.1c2.6 7.8-3.1 15.9-11.4 15.9h-22.9a12 12 0 0 1-11.5-8.6l-9.4-31.9h-60.2l-9.1 31.8c-1.5 5.1-6.2 8.7-11.5 8.7H70.3c-8.2 0-14-8.1-11.4-15.9z"]
  5875. };
  5876. var faLaptop = {
  5877. prefix: 'fas',
  5878. iconName: 'laptop',
  5879. 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"]
  5880. };
  5881. var faLaptopCode = {
  5882. prefix: 'fas',
  5883. iconName: 'laptop-code',
  5884. 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"]
  5885. };
  5886. var faLaptopHouse = {
  5887. prefix: 'fas',
  5888. iconName: 'laptop-house',
  5889. icon: [640, 512, [], "f966", "M272,288H208a16,16,0,0,1-16-16V208a16,16,0,0,1,16-16h64a16,16,0,0,1,16,16v37.12C299.11,232.24,315,224,332.8,224H469.74l6.65-7.53A16.51,16.51,0,0,0,480,207a16.31,16.31,0,0,0-4.75-10.61L416,144V48a16,16,0,0,0-16-16H368a16,16,0,0,0-16,16V87.3L263.5,8.92C258,4,247.45,0,240.05,0s-17.93,4-23.47,8.92L4.78,196.42A16.15,16.15,0,0,0,0,207a16.4,16.4,0,0,0,3.55,9.39L22.34,237.7A16.22,16.22,0,0,0,33,242.48,16.51,16.51,0,0,0,42.34,239L64,219.88V384a32,32,0,0,0,32,32H272ZM629.33,448H592V288c0-17.67-12.89-32-28.8-32H332.8c-15.91,0-28.8,14.33-28.8,32V448H266.67A10.67,10.67,0,0,0,256,458.67v10.66A42.82,42.82,0,0,0,298.6,512H597.4A42.82,42.82,0,0,0,640,469.33V458.67A10.67,10.67,0,0,0,629.33,448ZM544,448H352V304H544Z"]
  5890. };
  5891. var faLaptopMedical = {
  5892. prefix: 'fas',
  5893. iconName: 'laptop-medical',
  5894. icon: [640, 512, [], "f812", "M232 224h56v56a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-56h56a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8h-56v-56a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v56h-56a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8zM576 48a48.14 48.14 0 0 0-48-48H112a48.14 48.14 0 0 0-48 48v336h512zm-64 272H128V64h384zm112 96H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33-17.47-32.77-32H16a16 16 0 0 0-16 16v16a64.19 64.19 0 0 0 64 64h512a64.19 64.19 0 0 0 64-64v-16a16 16 0 0 0-16-16z"]
  5895. };
  5896. var faLaugh = {
  5897. prefix: 'fas',
  5898. iconName: 'laugh',
  5899. 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"]
  5900. };
  5901. var faLaughBeam = {
  5902. prefix: 'fas',
  5903. iconName: 'laugh-beam',
  5904. 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"]
  5905. };
  5906. var faLaughSquint = {
  5907. prefix: 'fas',
  5908. iconName: 'laugh-squint',
  5909. 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"]
  5910. };
  5911. var faLaughWink = {
  5912. prefix: 'fas',
  5913. iconName: 'laugh-wink',
  5914. 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"]
  5915. };
  5916. var faLayerGroup = {
  5917. prefix: 'fas',
  5918. iconName: 'layer-group',
  5919. 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"]
  5920. };
  5921. var faLeaf = {
  5922. prefix: 'fas',
  5923. iconName: 'leaf',
  5924. 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"]
  5925. };
  5926. var faLemon = {
  5927. prefix: 'fas',
  5928. iconName: 'lemon',
  5929. 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"]
  5930. };
  5931. var faLessThan = {
  5932. prefix: 'fas',
  5933. iconName: 'less-than',
  5934. 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"]
  5935. };
  5936. var faLessThanEqual = {
  5937. prefix: 'fas',
  5938. iconName: 'less-than-equal',
  5939. 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"]
  5940. };
  5941. var faLevelDownAlt = {
  5942. prefix: 'fas',
  5943. iconName: 'level-down-alt',
  5944. 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"]
  5945. };
  5946. var faLevelUpAlt = {
  5947. prefix: 'fas',
  5948. iconName: 'level-up-alt',
  5949. 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"]
  5950. };
  5951. var faLifeRing = {
  5952. prefix: 'fas',
  5953. iconName: 'life-ring',
  5954. 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"]
  5955. };
  5956. var faLightbulb = {
  5957. prefix: 'fas',
  5958. iconName: 'lightbulb',
  5959. 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"]
  5960. };
  5961. var faLink = {
  5962. prefix: 'fas',
  5963. iconName: 'link',
  5964. 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"]
  5965. };
  5966. var faLiraSign = {
  5967. prefix: 'fas',
  5968. iconName: 'lira-sign',
  5969. 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"]
  5970. };
  5971. var faList = {
  5972. prefix: 'fas',
  5973. iconName: 'list',
  5974. icon: [512, 512, [], "f03a", "M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  5975. };
  5976. var faListAlt = {
  5977. prefix: 'fas',
  5978. iconName: 'list-alt',
  5979. 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"]
  5980. };
  5981. var faListOl = {
  5982. prefix: 'fas',
  5983. iconName: 'list-ol',
  5984. icon: [512, 512, [], "f0cb", "M61.77 401l17.5-20.15a19.92 19.92 0 0 0 5.07-14.19v-3.31C84.34 356 80.5 352 73 352H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h22.83a157.41 157.41 0 0 0-11 12.31l-5.61 7c-4 5.07-5.25 10.13-2.8 14.88l1.05 1.93c3 5.76 6.29 7.88 12.25 7.88h4.73c10.33 0 15.94 2.44 15.94 9.09 0 4.72-4.2 8.22-14.36 8.22a41.54 41.54 0 0 1-15.47-3.12c-6.49-3.88-11.74-3.5-15.6 3.12l-5.59 9.31c-3.72 6.13-3.19 11.72 2.63 15.94 7.71 4.69 20.38 9.44 37 9.44 34.16 0 48.5-22.75 48.5-44.12-.03-14.38-9.12-29.76-28.73-34.88zM496 224H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h64a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H64V40a8 8 0 0 0-8-8H32a8 8 0 0 0-7.14 4.42l-8 16A8 8 0 0 0 24 64h8v64H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8zm-3.91 160H80a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H41.32c3.29-10.29 48.34-18.68 48.34-56.44 0-29.06-25-39.56-44.47-39.56-21.36 0-33.8 10-40.46 18.75-4.37 5.59-3 10.84 2.8 15.37l8.58 6.88c5.61 4.56 11 2.47 16.12-2.44a13.44 13.44 0 0 1 9.46-3.84c3.33 0 9.28 1.56 9.28 8.75C51 248.19 0 257.31 0 304.59v4C0 316 5.08 320 12.09 320z"]
  5985. };
  5986. var faListUl = {
  5987. prefix: 'fas',
  5988. iconName: 'list-ul',
  5989. icon: [512, 512, [], "f0ca", "M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  5990. };
  5991. var faLocationArrow = {
  5992. prefix: 'fas',
  5993. iconName: 'location-arrow',
  5994. 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"]
  5995. };
  5996. var faLock = {
  5997. prefix: 'fas',
  5998. iconName: 'lock',
  5999. 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"]
  6000. };
  6001. var faLockOpen = {
  6002. prefix: 'fas',
  6003. iconName: 'lock-open',
  6004. 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"]
  6005. };
  6006. var faLongArrowAltDown = {
  6007. prefix: 'fas',
  6008. iconName: 'long-arrow-alt-down',
  6009. 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"]
  6010. };
  6011. var faLongArrowAltLeft = {
  6012. prefix: 'fas',
  6013. iconName: 'long-arrow-alt-left',
  6014. 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"]
  6015. };
  6016. var faLongArrowAltRight = {
  6017. prefix: 'fas',
  6018. iconName: 'long-arrow-alt-right',
  6019. 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"]
  6020. };
  6021. var faLongArrowAltUp = {
  6022. prefix: 'fas',
  6023. iconName: 'long-arrow-alt-up',
  6024. 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"]
  6025. };
  6026. var faLowVision = {
  6027. prefix: 'fas',
  6028. iconName: 'low-vision',
  6029. 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"]
  6030. };
  6031. var faLuggageCart = {
  6032. prefix: 'fas',
  6033. iconName: 'luggage-cart',
  6034. 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"]
  6035. };
  6036. var faLungs = {
  6037. prefix: 'fas',
  6038. iconName: 'lungs',
  6039. icon: [640, 512, [], "f604", "M636.11 390.15C614.44 308.85 580.07 231 534.1 159.13 511.98 124.56 498.03 96 454.05 96 415.36 96 384 125.42 384 161.71v60.11l-32.88-21.92a15.996 15.996 0 0 1-7.12-13.31V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v170.59c0 5.35-2.67 10.34-7.12 13.31L256 221.82v-60.11C256 125.42 224.64 96 185.95 96c-43.98 0-57.93 28.56-80.05 63.13C59.93 231 25.56 308.85 3.89 390.15 1.3 399.84 0 409.79 0 419.78c0 61.23 62.48 105.44 125.24 88.62l59.5-15.95c42.18-11.3 71.26-47.47 71.26-88.62v-87.49l-85.84 57.23a7.992 7.992 0 0 1-11.09-2.22l-8.88-13.31a7.992 7.992 0 0 1 2.22-11.09L320 235.23l167.59 111.72a7.994 7.994 0 0 1 2.22 11.09l-8.88 13.31a7.994 7.994 0 0 1-11.09 2.22L384 316.34v87.49c0 41.15 29.08 77.31 71.26 88.62l59.5 15.95C577.52 525.22 640 481.01 640 419.78c0-9.99-1.3-19.94-3.89-29.63z"]
  6040. };
  6041. var faLungsVirus = {
  6042. prefix: 'fas',
  6043. iconName: 'lungs-virus',
  6044. icon: [640, 512, [], "f967", "M344,150.68V16A16,16,0,0,0,328,0H312a16,16,0,0,0-16,16V150.68a46.45,46.45,0,0,1,48,0ZM195.54,444.46a48.06,48.06,0,0,1,0-67.88l8.58-8.58H192a48,48,0,0,1,0-96h12.12l-8.58-8.57a48,48,0,0,1,60.46-74V161.75C256,125.38,224.62,96,186,96c-44,0-58,28.5-80.12,63.13a819.52,819.52,0,0,0-102,231A113.16,113.16,0,0,0,0,419.75C0,481,62.5,525.26,125.25,508.38l59.5-15.87a98.51,98.51,0,0,0,52.5-34.75,46.49,46.49,0,0,1-41.71-13.3Zm226.29-22.63a16,16,0,0,0,0-22.62l-8.58-8.58C393.09,370.47,407.37,336,435.88,336H448a16,16,0,0,0,0-32H435.88c-28.51,0-42.79-34.47-22.63-54.62l8.58-8.58a16,16,0,0,0-22.63-22.63l-8.57,8.58C370.47,246.91,336,232.63,336,204.12V192a16,16,0,0,0-32,0v12.12c0,28.51-34.47,42.79-54.63,22.63l-8.57-8.58a16,16,0,0,0-22.63,22.63l8.58,8.58c20.16,20.15,5.88,54.62-22.63,54.62H192a16,16,0,0,0,0,32h12.12c28.51,0,42.79,34.47,22.63,54.63l-8.58,8.58a16,16,0,1,0,22.63,22.62l8.57-8.57C269.53,393.1,304,407.38,304,435.88V448a16,16,0,0,0,32,0V435.88c0-28.5,34.47-42.78,54.63-22.62l8.57,8.57a16,16,0,0,0,22.63,0ZM288,304a16,16,0,1,1,16-16A16,16,0,0,1,288,304Zm64,64a16,16,0,1,1,16-16A16,16,0,0,1,352,368Zm284.12,22.13a819.52,819.52,0,0,0-102-231C512,124.5,498,96,454,96c-38.62,0-70,29.38-70,65.75v27.72a48,48,0,0,1,60.46,74L435.88,272H448a48,48,0,0,1,0,96H435.88l8.58,8.58a47.7,47.7,0,0,1-41.71,81.18,98.51,98.51,0,0,0,52.5,34.75l59.5,15.87C577.5,525.26,640,481,640,419.75A113.16,113.16,0,0,0,636.12,390.13Z"]
  6045. };
  6046. var faMagic = {
  6047. prefix: 'fas',
  6048. iconName: 'magic',
  6049. 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"]
  6050. };
  6051. var faMagnet = {
  6052. prefix: 'fas',
  6053. iconName: 'magnet',
  6054. icon: [512, 512, [], "f076", "M164.07 148.1H12a12 12 0 0 1-12-12v-80a36 36 0 0 1 36-36h104a36 36 0 0 1 36 36v80a11.89 11.89 0 0 1-11.93 12zm347.93-12V56a36 36 0 0 0-36-36H372a36 36 0 0 0-36 36v80a12 12 0 0 0 12 12h152a11.89 11.89 0 0 0 12-11.9zm-164 44a12 12 0 0 0-12 12v52c0 128.1-160 127.9-160 0v-52a12 12 0 0 0-12-12H12.1a12 12 0 0 0-12 12.1c.1 21.4.6 40.3 0 53.3 0 150.6 136.17 246.6 256.75 246.6s255-96 255-246.7c-.6-12.8-.2-33 0-53.2a12 12 0 0 0-12-12.1z"]
  6055. };
  6056. var faMailBulk = {
  6057. prefix: 'fas',
  6058. iconName: 'mail-bulk',
  6059. 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"]
  6060. };
  6061. var faMale = {
  6062. prefix: 'fas',
  6063. iconName: 'male',
  6064. 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"]
  6065. };
  6066. var faMap = {
  6067. prefix: 'fas',
  6068. iconName: 'map',
  6069. 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"]
  6070. };
  6071. var faMapMarked = {
  6072. prefix: 'fas',
  6073. iconName: 'map-marked',
  6074. 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"]
  6075. };
  6076. var faMapMarkedAlt = {
  6077. prefix: 'fas',
  6078. iconName: 'map-marked-alt',
  6079. 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"]
  6080. };
  6081. var faMapMarker = {
  6082. prefix: 'fas',
  6083. iconName: 'map-marker',
  6084. 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"]
  6085. };
  6086. var faMapMarkerAlt = {
  6087. prefix: 'fas',
  6088. iconName: 'map-marker-alt',
  6089. 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"]
  6090. };
  6091. var faMapPin = {
  6092. prefix: 'fas',
  6093. iconName: 'map-pin',
  6094. 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"]
  6095. };
  6096. var faMapSigns = {
  6097. prefix: 'fas',
  6098. iconName: 'map-signs',
  6099. 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"]
  6100. };
  6101. var faMarker = {
  6102. prefix: 'fas',
  6103. iconName: 'marker',
  6104. 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"]
  6105. };
  6106. var faMars = {
  6107. prefix: 'fas',
  6108. iconName: 'mars',
  6109. 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"]
  6110. };
  6111. var faMarsDouble = {
  6112. prefix: 'fas',
  6113. iconName: 'mars-double',
  6114. 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"]
  6115. };
  6116. var faMarsStroke = {
  6117. prefix: 'fas',
  6118. iconName: 'mars-stroke',
  6119. 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"]
  6120. };
  6121. var faMarsStrokeH = {
  6122. prefix: 'fas',
  6123. iconName: 'mars-stroke-h',
  6124. 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"]
  6125. };
  6126. var faMarsStrokeV = {
  6127. prefix: 'fas',
  6128. iconName: 'mars-stroke-v',
  6129. 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"]
  6130. };
  6131. var faMask = {
  6132. prefix: 'fas',
  6133. iconName: 'mask',
  6134. 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"]
  6135. };
  6136. var faMedal = {
  6137. prefix: 'fas',
  6138. iconName: 'medal',
  6139. 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"]
  6140. };
  6141. var faMedkit = {
  6142. prefix: 'fas',
  6143. iconName: 'medkit',
  6144. 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"]
  6145. };
  6146. var faMeh = {
  6147. prefix: 'fas',
  6148. iconName: 'meh',
  6149. 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"]
  6150. };
  6151. var faMehBlank = {
  6152. prefix: 'fas',
  6153. iconName: 'meh-blank',
  6154. 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"]
  6155. };
  6156. var faMehRollingEyes = {
  6157. prefix: 'fas',
  6158. iconName: 'meh-rolling-eyes',
  6159. 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"]
  6160. };
  6161. var faMemory = {
  6162. prefix: 'fas',
  6163. iconName: 'memory',
  6164. 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"]
  6165. };
  6166. var faMenorah = {
  6167. prefix: 'fas',
  6168. iconName: 'menorah',
  6169. 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"]
  6170. };
  6171. var faMercury = {
  6172. prefix: 'fas',
  6173. iconName: 'mercury',
  6174. 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"]
  6175. };
  6176. var faMeteor = {
  6177. prefix: 'fas',
  6178. iconName: 'meteor',
  6179. icon: [512, 512, [], "f753", "M511.328,20.8027c-11.60759,38.70264-34.30724,111.70173-61.30311,187.70077,6.99893,2.09372,13.4042,4,18.60653,5.59368a16.06158,16.06158,0,0,1,9.49854,22.906c-22.106,42.29635-82.69047,152.795-142.47819,214.40356-.99984,1.09373-1.99969,2.5-2.99954,3.49995A194.83046,194.83046,0,1,1,57.085,179.41009c.99985-1,2.40588-2,3.49947-3,61.59994-59.90549,171.97367-120.40473,214.37343-142.4982a16.058,16.058,0,0,1,22.90274,9.49988c1.59351,5.09368,3.49947,11.5936,5.5929,18.59351C379.34818,35.00565,452.43074,12.30281,491.12794.70921A16.18325,16.18325,0,0,1,511.328,20.8027ZM319.951,320.00207A127.98041,127.98041,0,1,0,191.97061,448.00046,127.97573,127.97573,0,0,0,319.951,320.00207Zm-127.98041-31.9996a31.9951,31.9951,0,1,1-31.9951-31.9996A31.959,31.959,0,0,1,191.97061,288.00247Zm31.9951,79.999a15.99755,15.99755,0,1,1-15.99755-15.9998A16.04975,16.04975,0,0,1,223.96571,368.00147Z"]
  6180. };
  6181. var faMicrochip = {
  6182. prefix: 'fas',
  6183. iconName: 'microchip',
  6184. 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"]
  6185. };
  6186. var faMicrophone = {
  6187. prefix: 'fas',
  6188. iconName: 'microphone',
  6189. 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"]
  6190. };
  6191. var faMicrophoneAlt = {
  6192. prefix: 'fas',
  6193. iconName: 'microphone-alt',
  6194. 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"]
  6195. };
  6196. var faMicrophoneAltSlash = {
  6197. prefix: 'fas',
  6198. iconName: 'microphone-alt-slash',
  6199. 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"]
  6200. };
  6201. var faMicrophoneSlash = {
  6202. prefix: 'fas',
  6203. iconName: 'microphone-slash',
  6204. 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"]
  6205. };
  6206. var faMicroscope = {
  6207. prefix: 'fas',
  6208. iconName: 'microscope',
  6209. 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"]
  6210. };
  6211. var faMinus = {
  6212. prefix: 'fas',
  6213. iconName: 'minus',
  6214. 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"]
  6215. };
  6216. var faMinusCircle = {
  6217. prefix: 'fas',
  6218. iconName: 'minus-circle',
  6219. 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"]
  6220. };
  6221. var faMinusSquare = {
  6222. prefix: 'fas',
  6223. iconName: 'minus-square',
  6224. 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"]
  6225. };
  6226. var faMitten = {
  6227. prefix: 'fas',
  6228. iconName: 'mitten',
  6229. icon: [448, 512, [], "f7b5", "M368 416H48c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16zm57-209.1c-27.2-22.6-67.5-19-90.1 8.2l-20.9 25-29.6-128.4c-18-77.5-95.4-125.9-172.8-108C34.2 21.6-14.2 98.9 3.7 176.4L51.6 384h309l72.5-87c22.7-27.2 19-67.5-8.1-90.1z"]
  6230. };
  6231. var faMobile = {
  6232. prefix: 'fas',
  6233. iconName: 'mobile',
  6234. 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"]
  6235. };
  6236. var faMobileAlt = {
  6237. prefix: 'fas',
  6238. iconName: 'mobile-alt',
  6239. 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"]
  6240. };
  6241. var faMoneyBill = {
  6242. prefix: 'fas',
  6243. iconName: 'money-bill',
  6244. 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"]
  6245. };
  6246. var faMoneyBillAlt = {
  6247. prefix: 'fas',
  6248. iconName: 'money-bill-alt',
  6249. 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"]
  6250. };
  6251. var faMoneyBillWave = {
  6252. prefix: 'fas',
  6253. iconName: 'money-bill-wave',
  6254. 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"]
  6255. };
  6256. var faMoneyBillWaveAlt = {
  6257. prefix: 'fas',
  6258. iconName: 'money-bill-wave-alt',
  6259. 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"]
  6260. };
  6261. var faMoneyCheck = {
  6262. prefix: 'fas',
  6263. iconName: 'money-check',
  6264. 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"]
  6265. };
  6266. var faMoneyCheckAlt = {
  6267. prefix: 'fas',
  6268. iconName: 'money-check-alt',
  6269. 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"]
  6270. };
  6271. var faMonument = {
  6272. prefix: 'fas',
  6273. iconName: 'monument',
  6274. 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"]
  6275. };
  6276. var faMoon = {
  6277. prefix: 'fas',
  6278. iconName: 'moon',
  6279. 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"]
  6280. };
  6281. var faMortarPestle = {
  6282. prefix: 'fas',
  6283. iconName: 'mortar-pestle',
  6284. 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"]
  6285. };
  6286. var faMosque = {
  6287. prefix: 'fas',
  6288. iconName: 'mosque',
  6289. 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"]
  6290. };
  6291. var faMotorcycle = {
  6292. prefix: 'fas',
  6293. iconName: 'motorcycle',
  6294. icon: [640, 512, [], "f21c", "M512.9 192c-14.9-.1-29.1 2.3-42.4 6.9L437.6 144H520c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24h-45.3c-6.8 0-13.3 2.9-17.8 7.9l-37.5 41.7-22.8-38C392.2 68.4 384.4 64 376 64h-80c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h66.4l19.2 32H227.9c-17.7-23.1-44.9-40-99.9-40H72.5C59 104 47.7 115 48 128.5c.2 13 10.9 23.5 24 23.5h56c24.5 0 38.7 10.9 47.8 24.8l-11.3 20.5c-13-3.9-26.9-5.7-41.3-5.2C55.9 194.5 1.6 249.6 0 317c-1.6 72.1 56.3 131 128 131 59.6 0 109.7-40.8 124-96h84.2c13.7 0 24.6-11.4 24-25.1-2.1-47.1 17.5-93.7 56.2-125l12.5 20.8c-27.6 23.7-45.1 58.9-44.8 98.2.5 69.6 57.2 126.5 126.8 127.1 71.6.7 129.8-57.5 129.2-129.1-.7-69.6-57.6-126.4-127.2-126.9zM128 400c-44.1 0-80-35.9-80-80s35.9-80 80-80c4.2 0 8.4.3 12.5 1L99 316.4c-8.8 16 2.8 35.6 21 35.6h81.3c-12.4 28.2-40.6 48-73.3 48zm463.9-75.6c-2.2 40.6-35 73.4-75.5 75.5-46.1 2.5-84.4-34.3-84.4-79.9 0-21.4 8.4-40.8 22.1-55.1l49.4 82.4c4.5 7.6 14.4 10 22 5.5l13.7-8.2c7.6-4.5 10-14.4 5.5-22l-48.6-80.9c5.2-1.1 10.5-1.6 15.9-1.6 45.6-.1 82.3 38.2 79.9 84.3z"]
  6295. };
  6296. var faMountain = {
  6297. prefix: 'fas',
  6298. iconName: 'mountain',
  6299. 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"]
  6300. };
  6301. var faMouse = {
  6302. prefix: 'fas',
  6303. iconName: 'mouse',
  6304. icon: [384, 512, [], "f8cc", "M0 352a160 160 0 0 0 160 160h64a160 160 0 0 0 160-160V224H0zM176 0h-16A160 160 0 0 0 0 160v32h176zm48 0h-16v192h176v-32A160 160 0 0 0 224 0z"]
  6305. };
  6306. var faMousePointer = {
  6307. prefix: 'fas',
  6308. iconName: 'mouse-pointer',
  6309. 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"]
  6310. };
  6311. var faMugHot = {
  6312. prefix: 'fas',
  6313. iconName: 'mug-hot',
  6314. icon: [512, 512, [], "f7b6", "M127.1 146.5c1.3 7.7 8 13.5 16 13.5h16.5c9.8 0 17.6-8.5 16.3-18-3.8-28.2-16.4-54.2-36.6-74.7-14.4-14.7-23.6-33.3-26.4-53.5C111.8 5.9 105 0 96.8 0H80.4C70.6 0 63 8.5 64.1 18c3.9 31.9 18 61.3 40.6 84.4 12 12.2 19.7 27.5 22.4 44.1zm112 0c1.3 7.7 8 13.5 16 13.5h16.5c9.8 0 17.6-8.5 16.3-18-3.8-28.2-16.4-54.2-36.6-74.7-14.4-14.7-23.6-33.3-26.4-53.5C223.8 5.9 217 0 208.8 0h-16.4c-9.8 0-17.5 8.5-16.3 18 3.9 31.9 18 61.3 40.6 84.4 12 12.2 19.7 27.5 22.4 44.1zM400 192H32c-17.7 0-32 14.3-32 32v192c0 53 43 96 96 96h192c53 0 96-43 96-96h16c61.8 0 112-50.2 112-112s-50.2-112-112-112zm0 160h-16v-96h16c26.5 0 48 21.5 48 48s-21.5 48-48 48z"]
  6315. };
  6316. var faMusic = {
  6317. prefix: 'fas',
  6318. iconName: 'music',
  6319. icon: [512, 512, [], "f001", "M470.38 1.51L150.41 96A32 32 0 0 0 128 126.51v261.41A139 139 0 0 0 96 384c-53 0-96 28.66-96 64s43 64 96 64 96-28.66 96-64V214.32l256-75v184.61a138.4 138.4 0 0 0-32-3.93c-53 0-96 28.66-96 64s43 64 96 64 96-28.65 96-64V32a32 32 0 0 0-41.62-30.49z"]
  6320. };
  6321. var faNetworkWired = {
  6322. prefix: 'fas',
  6323. iconName: 'network-wired',
  6324. 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"]
  6325. };
  6326. var faNeuter = {
  6327. prefix: 'fas',
  6328. iconName: 'neuter',
  6329. 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"]
  6330. };
  6331. var faNewspaper = {
  6332. prefix: 'fas',
  6333. iconName: 'newspaper',
  6334. 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"]
  6335. };
  6336. var faNotEqual = {
  6337. prefix: 'fas',
  6338. iconName: 'not-equal',
  6339. 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"]
  6340. };
  6341. var faNotesMedical = {
  6342. prefix: 'fas',
  6343. iconName: 'notes-medical',
  6344. 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"]
  6345. };
  6346. var faObjectGroup = {
  6347. prefix: 'fas',
  6348. iconName: 'object-group',
  6349. 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"]
  6350. };
  6351. var faObjectUngroup = {
  6352. prefix: 'fas',
  6353. iconName: 'object-ungroup',
  6354. 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"]
  6355. };
  6356. var faOilCan = {
  6357. prefix: 'fas',
  6358. iconName: 'oil-can',
  6359. 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"]
  6360. };
  6361. var faOm = {
  6362. prefix: 'fas',
  6363. iconName: 'om',
  6364. 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"]
  6365. };
  6366. var faOtter = {
  6367. prefix: 'fas',
  6368. iconName: 'otter',
  6369. 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"]
  6370. };
  6371. var faOutdent = {
  6372. prefix: 'fas',
  6373. iconName: 'outdent',
  6374. icon: [448, 512, [], "f03b", "M100.69 363.29c10 10 27.31 2.93 27.31-11.31V160c0-14.32-17.33-21.31-27.31-11.31l-96 96a16 16 0 0 0 0 22.62zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  6375. };
  6376. var faPager = {
  6377. prefix: 'fas',
  6378. iconName: 'pager',
  6379. icon: [512, 512, [], "f815", "M448 64H64a64 64 0 0 0-64 64v256a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V128a64 64 0 0 0-64-64zM160 368H80a16 16 0 0 1-16-16v-16a16 16 0 0 1 16-16h80zm128-16a16 16 0 0 1-16 16h-80v-48h80a16 16 0 0 1 16 16zm160-128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32v-64a32 32 0 0 1 32-32h320a32 32 0 0 1 32 32z"]
  6380. };
  6381. var faPaintBrush = {
  6382. prefix: 'fas',
  6383. iconName: 'paint-brush',
  6384. 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"]
  6385. };
  6386. var faPaintRoller = {
  6387. prefix: 'fas',
  6388. iconName: 'paint-roller',
  6389. 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"]
  6390. };
  6391. var faPalette = {
  6392. prefix: 'fas',
  6393. iconName: 'palette',
  6394. 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"]
  6395. };
  6396. var faPallet = {
  6397. prefix: 'fas',
  6398. iconName: 'pallet',
  6399. 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"]
  6400. };
  6401. var faPaperPlane = {
  6402. prefix: 'fas',
  6403. iconName: 'paper-plane',
  6404. 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"]
  6405. };
  6406. var faPaperclip = {
  6407. prefix: 'fas',
  6408. iconName: 'paperclip',
  6409. 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"]
  6410. };
  6411. var faParachuteBox = {
  6412. prefix: 'fas',
  6413. iconName: 'parachute-box',
  6414. 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"]
  6415. };
  6416. var faParagraph = {
  6417. prefix: 'fas',
  6418. iconName: 'paragraph',
  6419. icon: [448, 512, [], "f1dd", "M448 48v32a16 16 0 0 1-16 16h-48v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V96h-32v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V352h-32a160 160 0 0 1 0-320h240a16 16 0 0 1 16 16z"]
  6420. };
  6421. var faParking = {
  6422. prefix: 'fas',
  6423. iconName: 'parking',
  6424. 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"]
  6425. };
  6426. var faPassport = {
  6427. prefix: 'fas',
  6428. iconName: 'passport',
  6429. 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"]
  6430. };
  6431. var faPastafarianism = {
  6432. prefix: 'fas',
  6433. iconName: 'pastafarianism',
  6434. 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"]
  6435. };
  6436. var faPaste = {
  6437. prefix: 'fas',
  6438. iconName: 'paste',
  6439. 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"]
  6440. };
  6441. var faPause = {
  6442. prefix: 'fas',
  6443. iconName: 'pause',
  6444. 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"]
  6445. };
  6446. var faPauseCircle = {
  6447. prefix: 'fas',
  6448. iconName: 'pause-circle',
  6449. 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"]
  6450. };
  6451. var faPaw = {
  6452. prefix: 'fas',
  6453. iconName: 'paw',
  6454. 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"]
  6455. };
  6456. var faPeace = {
  6457. prefix: 'fas',
  6458. iconName: 'peace',
  6459. 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"]
  6460. };
  6461. var faPen = {
  6462. prefix: 'fas',
  6463. iconName: 'pen',
  6464. 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"]
  6465. };
  6466. var faPenAlt = {
  6467. prefix: 'fas',
  6468. iconName: 'pen-alt',
  6469. 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"]
  6470. };
  6471. var faPenFancy = {
  6472. prefix: 'fas',
  6473. iconName: 'pen-fancy',
  6474. 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"]
  6475. };
  6476. var faPenNib = {
  6477. prefix: 'fas',
  6478. iconName: 'pen-nib',
  6479. 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"]
  6480. };
  6481. var faPenSquare = {
  6482. prefix: 'fas',
  6483. iconName: 'pen-square',
  6484. 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"]
  6485. };
  6486. var faPencilAlt = {
  6487. prefix: 'fas',
  6488. iconName: 'pencil-alt',
  6489. 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"]
  6490. };
  6491. var faPencilRuler = {
  6492. prefix: 'fas',
  6493. iconName: 'pencil-ruler',
  6494. 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"]
  6495. };
  6496. var faPeopleArrows = {
  6497. prefix: 'fas',
  6498. iconName: 'people-arrows',
  6499. icon: [576, 512, [], "f968", "M96,128A64,64,0,1,0,32,64,64,64,0,0,0,96,128Zm0,176.08a44.11,44.11,0,0,1,13.64-32L181.77,204c1.65-1.55,3.77-2.31,5.61-3.57A63.91,63.91,0,0,0,128,160H64A64,64,0,0,0,0,224v96a32,32,0,0,0,32,32V480a32,32,0,0,0,32,32h64a32,32,0,0,0,32-32V383.61l-50.36-47.53A44.08,44.08,0,0,1,96,304.08ZM480,128a64,64,0,1,0-64-64A64,64,0,0,0,480,128Zm32,32H448a63.91,63.91,0,0,0-59.38,40.42c1.84,1.27,4,2,5.62,3.59l72.12,68.06a44.37,44.37,0,0,1,0,64L416,383.62V480a32,32,0,0,0,32,32h64a32,32,0,0,0,32-32V352a32,32,0,0,0,32-32V224A64,64,0,0,0,512,160ZM444.4,295.34l-72.12-68.06A12,12,0,0,0,352,236v36H224V236a12,12,0,0,0-20.28-8.73L131.6,295.34a12.4,12.4,0,0,0,0,17.47l72.12,68.07A12,12,0,0,0,224,372.14V336H352v36.14a12,12,0,0,0,20.28,8.74l72.12-68.07A12.4,12.4,0,0,0,444.4,295.34Z"]
  6500. };
  6501. var faPeopleCarry = {
  6502. prefix: 'fas',
  6503. iconName: 'people-carry',
  6504. 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"]
  6505. };
  6506. var faPepperHot = {
  6507. prefix: 'fas',
  6508. iconName: 'pepper-hot',
  6509. icon: [512, 512, [], "f816", "M330.67 263.12V173.4l-52.75-24.22C219.44 218.76 197.58 400 56 400a56 56 0 0 0 0 112c212.64 0 370.65-122.87 419.18-210.34l-37.05-38.54zm131.09-128.37C493.92 74.91 477.18 26.48 458.62 3a8 8 0 0 0-11.93-.59l-22.9 23a8.06 8.06 0 0 0-.89 10.23c6.86 10.36 17.05 35.1-1.4 72.32A142.85 142.85 0 0 0 364.34 96c-28 0-54 8.54-76.34 22.59l74.67 34.29v78.24h89.09L506.44 288c3.26-12.62 5.56-25.63 5.56-39.31a154 154 0 0 0-50.24-113.94z"]
  6510. };
  6511. var faPercent = {
  6512. prefix: 'fas',
  6513. iconName: 'percent',
  6514. 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"]
  6515. };
  6516. var faPercentage = {
  6517. prefix: 'fas',
  6518. iconName: 'percentage',
  6519. 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"]
  6520. };
  6521. var faPersonBooth = {
  6522. prefix: 'fas',
  6523. iconName: 'person-booth',
  6524. icon: [576, 512, [], "f756", "M192 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320h-64v176zm32-272h-50.9l-45.2-45.3C115.8 166.6 99.7 160 82.7 160H64c-17.1 0-33.2 6.7-45.3 18.8C6.7 190.9 0 207 0 224.1L.2 320 0 480c0 17.7 14.3 32 31.9 32 17.6 0 32-14.3 32-32l.1-100.7c.9.5 1.6 1.3 2.5 1.7l29.1 43v56c0 17.7 14.3 32 32 32s32-14.3 32-32v-56.5c0-9.9-2.3-19.8-6.7-28.6l-41.2-61.3V253l20.9 20.9c9.1 9.1 21.1 14.1 33.9 14.1H224c17.7 0 32-14.3 32-32s-14.3-32-32-32zM64 128c26.5 0 48-21.5 48-48S90.5 32 64 32 16 53.5 16 80s21.5 48 48 48zm224-96l31.5 223.1-30.9 154.6c-4.3 21.6 13 38.3 31.4 38.3 15.2 0 28-9.1 32.3-30.4.9 16.9 14.6 30.4 31.7 30.4 17.7 0 32-14.3 32-32 0 17.7 14.3 32 32 32s32-14.3 32-32V0H288v32zm-96 0v160h64V0h-32c-17.7 0-32 14.3-32 32zM544 0h-32v496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V32c0-17.7-14.3-32-32-32z"]
  6525. };
  6526. var faPhone = {
  6527. prefix: 'fas',
  6528. iconName: 'phone',
  6529. 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"]
  6530. };
  6531. var faPhoneAlt = {
  6532. prefix: 'fas',
  6533. iconName: 'phone-alt',
  6534. icon: [512, 512, [], "f879", "M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"]
  6535. };
  6536. var faPhoneSlash = {
  6537. prefix: 'fas',
  6538. iconName: 'phone-slash',
  6539. 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"]
  6540. };
  6541. var faPhoneSquare = {
  6542. prefix: 'fas',
  6543. iconName: 'phone-square',
  6544. 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"]
  6545. };
  6546. var faPhoneSquareAlt = {
  6547. prefix: 'fas',
  6548. iconName: 'phone-square-alt',
  6549. icon: [448, 512, [], "f87b", "M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h352a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48zm-16.39 307.37l-15 65A15 15 0 0 1 354 416C194 416 64 286.29 64 126a15.7 15.7 0 0 1 11.63-14.61l65-15A18.23 18.23 0 0 1 144 96a16.27 16.27 0 0 1 13.79 9.09l30 70A17.9 17.9 0 0 1 189 181a17 17 0 0 1-5.5 11.61l-37.89 31a231.91 231.91 0 0 0 110.78 110.78l31-37.89A17 17 0 0 1 299 291a17.85 17.85 0 0 1 5.91 1.21l70 30A16.25 16.25 0 0 1 384 336a17.41 17.41 0 0 1-.39 3.37z"]
  6550. };
  6551. var faPhoneVolume = {
  6552. prefix: 'fas',
  6553. iconName: 'phone-volume',
  6554. 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"]
  6555. };
  6556. var faPhotoVideo = {
  6557. prefix: 'fas',
  6558. iconName: 'photo-video',
  6559. icon: [640, 512, [], "f87c", "M608 0H160a32 32 0 0 0-32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0-32-32zM232 103a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM96 224a32 32 0 1 1-32 32 32 32 0 0 1 32-32zm288 224H64v-32l64-64 32 32 128-128 96 96z"]
  6560. };
  6561. var faPiggyBank = {
  6562. prefix: 'fas',
  6563. iconName: 'piggy-bank',
  6564. 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"]
  6565. };
  6566. var faPills = {
  6567. prefix: 'fas',
  6568. iconName: 'pills',
  6569. 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"]
  6570. };
  6571. var faPizzaSlice = {
  6572. prefix: 'fas',
  6573. iconName: 'pizza-slice',
  6574. icon: [512, 512, [], "f818", "M158.87.15c-16.16-1.52-31.2 8.42-35.33 24.12l-14.81 56.27c187.62 5.49 314.54 130.61 322.48 317l56.94-15.78c15.72-4.36 25.49-19.68 23.62-35.9C490.89 165.08 340.78 17.32 158.87.15zm-58.47 112L.55 491.64a16.21 16.21 0 0 0 20 19.75l379-105.1c-4.27-174.89-123.08-292.14-299.15-294.1zM128 416a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm48-152a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm104 104a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"]
  6575. };
  6576. var faPlaceOfWorship = {
  6577. prefix: 'fas',
  6578. iconName: 'place-of-worship',
  6579. 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"]
  6580. };
  6581. var faPlane = {
  6582. prefix: 'fas',
  6583. iconName: 'plane',
  6584. 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"]
  6585. };
  6586. var faPlaneArrival = {
  6587. prefix: 'fas',
  6588. iconName: 'plane-arrival',
  6589. 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"]
  6590. };
  6591. var faPlaneDeparture = {
  6592. prefix: 'fas',
  6593. iconName: 'plane-departure',
  6594. 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"]
  6595. };
  6596. var faPlaneSlash = {
  6597. prefix: 'fas',
  6598. iconName: 'plane-slash',
  6599. icon: [640, 512, [], "f969", "M32.48,147.88,64,256,32.48,364.13A16,16,0,0,0,48,384H88a16,16,0,0,0,12.8-6.41L144,320H246.85l-49,171.59A16,16,0,0,0,213.2,512h65.5a16,16,0,0,0,13.89-8.06l66.6-116.54L34.35,136.34A15.47,15.47,0,0,0,32.48,147.88ZM633.82,458.09,455.14,320H512c35.34,0,96-28.66,96-64s-60.66-64-96-64H397.7L292.61,8.06C290.06,3.61,283.84,0,278.71,0H213.2a16,16,0,0,0-15.38,20.39l36.94,129.29L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09Z"]
  6600. };
  6601. var faPlay = {
  6602. prefix: 'fas',
  6603. iconName: 'play',
  6604. 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"]
  6605. };
  6606. var faPlayCircle = {
  6607. prefix: 'fas',
  6608. iconName: 'play-circle',
  6609. 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"]
  6610. };
  6611. var faPlug = {
  6612. prefix: 'fas',
  6613. iconName: 'plug',
  6614. icon: [384, 512, [], "f1e6", "M320,32a32,32,0,0,0-64,0v96h64Zm48,128H16A16,16,0,0,0,0,176v32a16,16,0,0,0,16,16H32v32A160.07,160.07,0,0,0,160,412.8V512h64V412.8A160.07,160.07,0,0,0,352,256V224h16a16,16,0,0,0,16-16V176A16,16,0,0,0,368,160ZM128,32a32,32,0,0,0-64,0v96h64Z"]
  6615. };
  6616. var faPlus = {
  6617. prefix: 'fas',
  6618. iconName: 'plus',
  6619. 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"]
  6620. };
  6621. var faPlusCircle = {
  6622. prefix: 'fas',
  6623. iconName: 'plus-circle',
  6624. 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"]
  6625. };
  6626. var faPlusSquare = {
  6627. prefix: 'fas',
  6628. iconName: 'plus-square',
  6629. 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"]
  6630. };
  6631. var faPodcast = {
  6632. prefix: 'fas',
  6633. iconName: 'podcast',
  6634. 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"]
  6635. };
  6636. var faPoll = {
  6637. prefix: 'fas',
  6638. iconName: 'poll',
  6639. 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"]
  6640. };
  6641. var faPollH = {
  6642. prefix: 'fas',
  6643. iconName: 'poll-h',
  6644. 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"]
  6645. };
  6646. var faPoo = {
  6647. prefix: 'fas',
  6648. iconName: 'poo',
  6649. 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"]
  6650. };
  6651. var faPooStorm = {
  6652. prefix: 'fas',
  6653. iconName: 'poo-storm',
  6654. icon: [448, 512, [], "f75a", "M308 336h-57.7l17.3-64.9c2-7.6-3.7-15.1-11.6-15.1h-68c-6 0-11.1 4.5-11.9 10.4l-16 120c-1 7.2 4.6 13.6 11.9 13.6h59.3l-23 97.2c-1.8 7.6 4 14.8 11.7 14.8 4.2 0 8.2-2.2 10.4-6l88-152c4.6-8-1.2-18-10.4-18zm66.4-111.3c5.9-9.6 9.6-20.6 9.6-32.7 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.5C218.3 14.6 224 30.6 224 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 12.1 3.7 23.1 9.6 32.7C32.6 228 0 262.2 0 304c0 44 36 80 80 80h48.3c.1-.6 0-1.2 0-1.8l16-120c3-21.8 21.7-38.2 43.7-38.2h68c13.8 0 26.5 6.3 34.9 17.2s11.2 24.8 7.6 38.1l-6.6 24.7h16c15.7 0 30.3 8.4 38.1 22 7.8 13.6 7.8 30.5 0 44l-8.1 14h30c44 0 80-36 80-80 .1-41.8-32.5-76-73.5-79.3z"]
  6655. };
  6656. var faPoop = {
  6657. prefix: 'fas',
  6658. iconName: 'poop',
  6659. 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"]
  6660. };
  6661. var faPortrait = {
  6662. prefix: 'fas',
  6663. iconName: 'portrait',
  6664. 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"]
  6665. };
  6666. var faPoundSign = {
  6667. prefix: 'fas',
  6668. iconName: 'pound-sign',
  6669. 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"]
  6670. };
  6671. var faPowerOff = {
  6672. prefix: 'fas',
  6673. iconName: 'power-off',
  6674. 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"]
  6675. };
  6676. var faPray = {
  6677. prefix: 'fas',
  6678. iconName: 'pray',
  6679. 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"]
  6680. };
  6681. var faPrayingHands = {
  6682. prefix: 'fas',
  6683. iconName: 'praying-hands',
  6684. 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"]
  6685. };
  6686. var faPrescription = {
  6687. prefix: 'fas',
  6688. iconName: 'prescription',
  6689. 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"]
  6690. };
  6691. var faPrescriptionBottle = {
  6692. prefix: 'fas',
  6693. iconName: 'prescription-bottle',
  6694. 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"]
  6695. };
  6696. var faPrescriptionBottleAlt = {
  6697. prefix: 'fas',
  6698. iconName: 'prescription-bottle-alt',
  6699. 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"]
  6700. };
  6701. var faPrint = {
  6702. prefix: 'fas',
  6703. iconName: 'print',
  6704. 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"]
  6705. };
  6706. var faProcedures = {
  6707. prefix: 'fas',
  6708. iconName: 'procedures',
  6709. 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"]
  6710. };
  6711. var faProjectDiagram = {
  6712. prefix: 'fas',
  6713. iconName: 'project-diagram',
  6714. 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"]
  6715. };
  6716. var faPumpMedical = {
  6717. prefix: 'fas',
  6718. iconName: 'pump-medical',
  6719. icon: [384, 512, [], "f96a", "M235.51,159.82H84.24A64,64,0,0,0,20.51,218L.14,442a64,64,0,0,0,63.74,69.8h192A64,64,0,0,0,319.61,442L299.24,218A64,64,0,0,0,235.51,159.82Zm4.37,173.33a13.35,13.35,0,0,1-13.34,13.34h-40v40a13.33,13.33,0,0,1-13.33,13.33H146.54a13.33,13.33,0,0,1-13.33-13.33v-40h-40a13.34,13.34,0,0,1-13.33-13.34V306.49a13.33,13.33,0,0,1,13.33-13.34h40v-40a13.33,13.33,0,0,1,13.33-13.33h26.67a13.33,13.33,0,0,1,13.33,13.33v40h40a13.34,13.34,0,0,1,13.34,13.34ZM379.19,93.88,335.87,50.56a64,64,0,0,0-45.24-18.74H223.88a32,32,0,0,0-32-32h-64a32,32,0,0,0-32,32v96h128v-32h66.75l43.31,43.31a16,16,0,0,0,22.63,0l22.62-22.62A16,16,0,0,0,379.19,93.88Z"]
  6720. };
  6721. var faPumpSoap = {
  6722. prefix: 'fas',
  6723. iconName: 'pump-soap',
  6724. icon: [384, 512, [], "f96b", "M235.63,160H84.37a64,64,0,0,0-63.74,58.21L.27,442.21A64,64,0,0,0,64,512H256a64,64,0,0,0,63.74-69.79l-20.36-224A64,64,0,0,0,235.63,160ZM160,416c-33.12,0-60-26.33-60-58.75,0-25,35.7-75.47,52-97.27A10,10,0,0,1,168,260c16.33,21.8,52,72.27,52,97.27C220,389.67,193.12,416,160,416ZM379.31,94.06,336,50.74A64,64,0,0,0,290.75,32H224A32,32,0,0,0,192,0H128A32,32,0,0,0,96,32v96H224V96h66.75l43.31,43.31a16,16,0,0,0,22.63,0l22.62-22.62A16,16,0,0,0,379.31,94.06Z"]
  6725. };
  6726. var faPuzzlePiece = {
  6727. prefix: 'fas',
  6728. iconName: 'puzzle-piece',
  6729. 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"]
  6730. };
  6731. var faQrcode = {
  6732. prefix: 'fas',
  6733. iconName: 'qrcode',
  6734. 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"]
  6735. };
  6736. var faQuestion = {
  6737. prefix: 'fas',
  6738. iconName: 'question',
  6739. 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"]
  6740. };
  6741. var faQuestionCircle = {
  6742. prefix: 'fas',
  6743. iconName: 'question-circle',
  6744. 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"]
  6745. };
  6746. var faQuidditch = {
  6747. prefix: 'fas',
  6748. iconName: 'quidditch',
  6749. 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"]
  6750. };
  6751. var faQuoteLeft = {
  6752. prefix: 'fas',
  6753. iconName: 'quote-left',
  6754. 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"]
  6755. };
  6756. var faQuoteRight = {
  6757. prefix: 'fas',
  6758. iconName: 'quote-right',
  6759. 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"]
  6760. };
  6761. var faQuran = {
  6762. prefix: 'fas',
  6763. iconName: 'quran',
  6764. 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"]
  6765. };
  6766. var faRadiation = {
  6767. prefix: 'fas',
  6768. iconName: 'radiation',
  6769. icon: [496, 512, [], "f7b9", "M328.2 255.8h151.6c9.1 0 16.8-7.7 16.2-16.8-5.1-75.8-44.4-142.2-102.5-184.2-7.4-5.3-17.9-2.9-22.7 4.8L290.4 188c22.6 14.3 37.8 39.2 37.8 67.8zm-37.8 67.7c-12.3 7.7-26.8 12.4-42.4 12.4-15.6 0-30-4.7-42.4-12.4L125.2 452c-4.8 7.7-2.4 18.1 5.6 22.4C165.7 493.2 205.6 504 248 504s82.3-10.8 117.2-29.6c8-4.3 10.4-14.8 5.6-22.4l-80.4-128.5zM248 303.8c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48zm-231.8-48h151.6c0-28.6 15.2-53.5 37.8-67.7L125.2 59.7c-4.8-7.7-15.3-10.2-22.7-4.8C44.4 96.9 5.1 163.3 0 239.1c-.6 9 7.1 16.7 16.2 16.7z"]
  6770. };
  6771. var faRadiationAlt = {
  6772. prefix: 'fas',
  6773. iconName: 'radiation-alt',
  6774. icon: [496, 512, [], "f7ba", "M312 256h79.1c9.2 0 16.9-7.7 16-16.8-4.6-43.6-27-81.8-59.5-107.8-7.6-6.1-18.8-4.5-24 3.8L281.9 202c18 11.2 30.1 31.2 30.1 54zm-97.8 54.1L172.4 377c-4.9 7.8-2.4 18.4 5.8 22.5 21.1 10.4 44.7 16.5 69.8 16.5s48.7-6.1 69.9-16.5c8.2-4.1 10.6-14.7 5.8-22.5l-41.8-66.9c-9.8 6.2-21.4 9.9-33.8 9.9s-24.1-3.7-33.9-9.9zM104.9 256H184c0-22.8 12.1-42.8 30.2-54.1l-41.7-66.8c-5.2-8.3-16.4-9.9-24-3.8-32.6 26-54.9 64.2-59.5 107.8-1.1 9.2 6.7 16.9 15.9 16.9zM248 504c137 0 248-111 248-248S385 8 248 8 0 119 0 256s111 248 248 248zm0-432c101.5 0 184 82.5 184 184s-82.5 184-184 184S64 357.5 64 256 146.5 72 248 72zm0 216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"]
  6775. };
  6776. var faRainbow = {
  6777. prefix: 'fas',
  6778. iconName: 'rainbow',
  6779. icon: [576, 512, [], "f75b", "M268.3 32.7C115.4 42.9 0 176.9 0 330.2V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C64 186.8 180.9 80.3 317.5 97.9 430.4 112.4 512 214 512 327.8V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-165.3-140-298.6-307.7-287.3zm-5.6 96.9C166 142 96 229.1 96 326.7V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-74.8 64.5-134.8 140.8-127.4 66.5 6.5 115.2 66.2 115.2 133.1V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-114.2-100.2-205.4-217.3-190.4zm6.2 96.3c-45.6 8.9-76.9 51.5-76.9 97.9V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-17.6 14.3-32 32-32s32 14.4 32 32v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-59.2-53.8-106-115.1-94.1z"]
  6780. };
  6781. var faRandom = {
  6782. prefix: 'fas',
  6783. iconName: 'random',
  6784. 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"]
  6785. };
  6786. var faReceipt = {
  6787. prefix: 'fas',
  6788. iconName: 'receipt',
  6789. 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"]
  6790. };
  6791. var faRecordVinyl = {
  6792. prefix: 'fas',
  6793. iconName: 'record-vinyl',
  6794. icon: [512, 512, [], "f8d9", "M256 152a104 104 0 1 0 104 104 104 104 0 0 0-104-104zm0 128a24 24 0 1 1 24-24 24 24 0 0 1-24 24zm0-272C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 376a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"]
  6795. };
  6796. var faRecycle = {
  6797. prefix: 'fas',
  6798. iconName: 'recycle',
  6799. 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"]
  6800. };
  6801. var faRedo = {
  6802. prefix: 'fas',
  6803. iconName: 'redo',
  6804. icon: [512, 512, [], "f01e", "M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"]
  6805. };
  6806. var faRedoAlt = {
  6807. prefix: 'fas',
  6808. iconName: 'redo-alt',
  6809. 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"]
  6810. };
  6811. var faRegistered = {
  6812. prefix: 'fas',
  6813. iconName: 'registered',
  6814. 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"]
  6815. };
  6816. var faRemoveFormat = {
  6817. prefix: 'fas',
  6818. iconName: 'remove-format',
  6819. icon: [640, 512, [], "f87d", "M336 416h-11.17l9.26-27.77L267 336.4 240.49 416H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm297.82 42.1L377 259.59 426.17 112H544v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16H176a16 16 0 0 0-16 16v43.9L45.46 3.38A16 16 0 0 0 23 6.19L3.37 31.46a16 16 0 0 0 2.81 22.45l588.36 454.72a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zM309.91 207.76L224 141.36V112h117.83z"]
  6820. };
  6821. var faReply = {
  6822. prefix: 'fas',
  6823. iconName: 'reply',
  6824. 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"]
  6825. };
  6826. var faReplyAll = {
  6827. prefix: 'fas',
  6828. iconName: 'reply-all',
  6829. 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"]
  6830. };
  6831. var faRepublican = {
  6832. prefix: 'fas',
  6833. iconName: 'republican',
  6834. icon: [640, 512, [], "f75e", "M544 192c0-88.4-71.6-160-160-160H160C71.6 32 0 103.6 0 192v64h544v-64zm-367.7-21.6l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L128 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zm144 0l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L272 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zm144 0l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L416 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zM624 320h-32c-8.8 0-16 7.2-16 16v64c0 8.8-7.2 16-16 16s-16-7.2-16-16V288H0v176c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16v-80h192v80c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16V352h32v43.3c0 41.8 30 80.1 71.6 84.3 47.8 4.9 88.4-32.7 88.4-79.6v-64c0-8.8-7.2-16-16-16z"]
  6835. };
  6836. var faRestroom = {
  6837. prefix: 'fas',
  6838. iconName: 'restroom',
  6839. icon: [640, 512, [], "f7bd", "M128 128c35.3 0 64-28.7 64-64S163.3 0 128 0 64 28.7 64 64s28.7 64 64 64zm384 0c35.3 0 64-28.7 64-64S547.3 0 512 0s-64 28.7-64 64 28.7 64 64 64zm127.3 226.5l-45.6-185.8c-3.3-13.5-15.5-23-29.8-24.2-15 9.7-32.8 15.5-52 15.5-19.2 0-37-5.8-52-15.5-14.3 1.2-26.5 10.7-29.8 24.2l-45.6 185.8C381 369.6 393 384 409.2 384H464v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V384h54.8c16.2 0 28.2-14.4 24.5-29.5zM336 0h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zM180.1 144.4c-15 9.8-32.9 15.6-52.1 15.6-19.2 0-37.1-5.8-52.1-15.6C51.3 146.5 32 166.9 32 192v136c0 13.3 10.7 24 24 24h8v136c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V352h8c13.3 0 24-10.7 24-24V192c0-25.1-19.3-45.5-43.9-47.6z"]
  6840. };
  6841. var faRetweet = {
  6842. prefix: 'fas',
  6843. iconName: 'retweet',
  6844. 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"]
  6845. };
  6846. var faRibbon = {
  6847. prefix: 'fas',
  6848. iconName: 'ribbon',
  6849. 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"]
  6850. };
  6851. var faRing = {
  6852. prefix: 'fas',
  6853. iconName: 'ring',
  6854. 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"]
  6855. };
  6856. var faRoad = {
  6857. prefix: 'fas',
  6858. iconName: 'road',
  6859. 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"]
  6860. };
  6861. var faRobot = {
  6862. prefix: 'fas',
  6863. iconName: 'robot',
  6864. icon: [640, 512, [], "f544", "M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"]
  6865. };
  6866. var faRocket = {
  6867. prefix: 'fas',
  6868. iconName: 'rocket',
  6869. icon: [512, 512, [], "f135", "M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"]
  6870. };
  6871. var faRoute = {
  6872. prefix: 'fas',
  6873. iconName: 'route',
  6874. 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"]
  6875. };
  6876. var faRss = {
  6877. prefix: 'fas',
  6878. iconName: 'rss',
  6879. 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"]
  6880. };
  6881. var faRssSquare = {
  6882. prefix: 'fas',
  6883. iconName: 'rss-square',
  6884. 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"]
  6885. };
  6886. var faRubleSign = {
  6887. prefix: 'fas',
  6888. iconName: 'ruble-sign',
  6889. 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"]
  6890. };
  6891. var faRuler = {
  6892. prefix: 'fas',
  6893. iconName: 'ruler',
  6894. 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"]
  6895. };
  6896. var faRulerCombined = {
  6897. prefix: 'fas',
  6898. iconName: 'ruler-combined',
  6899. 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"]
  6900. };
  6901. var faRulerHorizontal = {
  6902. prefix: 'fas',
  6903. iconName: 'ruler-horizontal',
  6904. 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"]
  6905. };
  6906. var faRulerVertical = {
  6907. prefix: 'fas',
  6908. iconName: 'ruler-vertical',
  6909. 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"]
  6910. };
  6911. var faRunning = {
  6912. prefix: 'fas',
  6913. iconName: 'running',
  6914. 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"]
  6915. };
  6916. var faRupeeSign = {
  6917. prefix: 'fas',
  6918. iconName: 'rupee-sign',
  6919. 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"]
  6920. };
  6921. var faSadCry = {
  6922. prefix: 'fas',
  6923. iconName: 'sad-cry',
  6924. 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"]
  6925. };
  6926. var faSadTear = {
  6927. prefix: 'fas',
  6928. iconName: 'sad-tear',
  6929. 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"]
  6930. };
  6931. var faSatellite = {
  6932. prefix: 'fas',
  6933. iconName: 'satellite',
  6934. icon: [512, 512, [], "f7bf", "M502.60969,310.04206l-96.70393,96.71625a31.88151,31.88151,0,0,1-45.00765,0L280.572,326.34115l-9.89231,9.90759a190.56343,190.56343,0,0,1-5.40716,168.52287c-4.50077,8.50115-16.39342,9.59505-23.20707,2.79725L134.54715,400.05428l-17.7999,17.79929c.70324,2.60972,1.60965,5.00067,1.60965,7.79793a32.00544,32.00544,0,1,1-32.00544-32.00434c2.79735,0,5.18838.90637,7.7982,1.60959l17.7999-17.79929L4.43129,269.94287c-6.798-6.81342-5.70409-18.6119,2.79735-23.20627a190.58161,190.58161,0,0,1,168.52864-5.407l9.79854-9.79821-80.31053-80.41716a32.002,32.002,0,0,1,0-45.09987L201.96474,9.29814A31.62639,31.62639,0,0,1,224.46868,0a31.99951,31.99951,0,0,1,22.59759,9.29814l80.32615,80.30777,47.805-47.89713a33.6075,33.6075,0,0,1,47.50808,0l47.50807,47.50645a33.63308,33.63308,0,0,1,0,47.50644l-47.805,47.89713L502.71908,265.036A31.78938,31.78938,0,0,1,502.60969,310.04206ZM219.56159,197.433l73.82505-73.82252-68.918-68.9-73.80942,73.80689Zm237.74352,90.106-68.90233-68.9156-73.825,73.82252,68.918,68.9Z"]
  6935. };
  6936. var faSatelliteDish = {
  6937. prefix: 'fas',
  6938. iconName: 'satellite-dish',
  6939. icon: [512, 512, [], "f7c0", "M305.44954,462.59c7.39157,7.29792,6.18829,20.09661-3.00038,25.00356-77.713,41.80281-176.72559,29.9105-242.34331-35.7082C-5.49624,386.28227-17.404,287.362,24.41381,209.554c4.89125-9.095,17.68975-10.29834,25.00318-3.00043L166.22872,323.36708l27.39411-27.39452c-.68759-2.60974-1.594-5.00071-1.594-7.81361a32.00407,32.00407,0,1,1,32.00407,32.00455c-2.79723,0-5.20378-.89075-7.79786-1.594l-27.40974,27.41015ZM511.9758,303.06732a16.10336,16.10336,0,0,1-16.002,17.00242H463.86031a15.96956,15.96956,0,0,1-15.89265-15.00213C440.46671,175.5492,336.45348,70.53427,207.03078,63.53328a15.84486,15.84486,0,0,1-15.00191-15.90852V16.02652A16.09389,16.09389,0,0,1,209.031.02425C372.25491,8.61922,503.47472,139.841,511.9758,303.06732Zm-96.01221-.29692a16.21093,16.21093,0,0,1-16.11142,17.29934H367.645a16.06862,16.06862,0,0,1-15.89265-14.70522c-6.90712-77.01094-68.118-138.91037-144.92467-145.22376a15.94,15.94,0,0,1-14.79876-15.89289V112.13393a16.134,16.134,0,0,1,17.29908-16.096C319.45132,104.5391,407.55627,192.64538,415.96359,302.7704Z"]
  6940. };
  6941. var faSave = {
  6942. prefix: 'fas',
  6943. iconName: 'save',
  6944. 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"]
  6945. };
  6946. var faSchool = {
  6947. prefix: 'fas',
  6948. iconName: 'school',
  6949. 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"]
  6950. };
  6951. var faScrewdriver = {
  6952. prefix: 'fas',
  6953. iconName: 'screwdriver',
  6954. 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"]
  6955. };
  6956. var faScroll = {
  6957. prefix: 'fas',
  6958. iconName: 'scroll',
  6959. 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"]
  6960. };
  6961. var faSdCard = {
  6962. prefix: 'fas',
  6963. iconName: 'sd-card',
  6964. icon: [384, 512, [], "f7c2", "M320 0H128L0 128v320c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zM160 160h-48V64h48v96zm80 0h-48V64h48v96zm80 0h-48V64h48v96z"]
  6965. };
  6966. var faSearch = {
  6967. prefix: 'fas',
  6968. iconName: 'search',
  6969. 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"]
  6970. };
  6971. var faSearchDollar = {
  6972. prefix: 'fas',
  6973. iconName: 'search-dollar',
  6974. 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"]
  6975. };
  6976. var faSearchLocation = {
  6977. prefix: 'fas',
  6978. iconName: 'search-location',
  6979. 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"]
  6980. };
  6981. var faSearchMinus = {
  6982. prefix: 'fas',
  6983. iconName: 'search-minus',
  6984. 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"]
  6985. };
  6986. var faSearchPlus = {
  6987. prefix: 'fas',
  6988. iconName: 'search-plus',
  6989. 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"]
  6990. };
  6991. var faSeedling = {
  6992. prefix: 'fas',
  6993. iconName: 'seedling',
  6994. 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"]
  6995. };
  6996. var faServer = {
  6997. prefix: 'fas',
  6998. iconName: 'server',
  6999. 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"]
  7000. };
  7001. var faShapes = {
  7002. prefix: 'fas',
  7003. iconName: 'shapes',
  7004. icon: [512, 512, [], "f61f", "M128,256A128,128,0,1,0,256,384,128,128,0,0,0,128,256Zm379-54.86L400.07,18.29a37.26,37.26,0,0,0-64.14,0L229,201.14C214.76,225.52,232.58,256,261.09,256H474.91C503.42,256,521.24,225.52,507,201.14ZM480,288H320a32,32,0,0,0-32,32V480a32,32,0,0,0,32,32H480a32,32,0,0,0,32-32V320A32,32,0,0,0,480,288Z"]
  7005. };
  7006. var faShare = {
  7007. prefix: 'fas',
  7008. iconName: 'share',
  7009. 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"]
  7010. };
  7011. var faShareAlt = {
  7012. prefix: 'fas',
  7013. iconName: 'share-alt',
  7014. 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"]
  7015. };
  7016. var faShareAltSquare = {
  7017. prefix: 'fas',
  7018. iconName: 'share-alt-square',
  7019. 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"]
  7020. };
  7021. var faShareSquare = {
  7022. prefix: 'fas',
  7023. iconName: 'share-square',
  7024. 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"]
  7025. };
  7026. var faShekelSign = {
  7027. prefix: 'fas',
  7028. iconName: 'shekel-sign',
  7029. 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"]
  7030. };
  7031. var faShieldAlt = {
  7032. prefix: 'fas',
  7033. iconName: 'shield-alt',
  7034. icon: [512, 512, [], "f3ed", "M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"]
  7035. };
  7036. var faShieldVirus = {
  7037. prefix: 'fas',
  7038. iconName: 'shield-virus',
  7039. icon: [512, 512, [], "f96c", "M224,192a16,16,0,1,0,16,16A16,16,0,0,0,224,192ZM466.5,83.68l-192-80A57.4,57.4,0,0,0,256.05,0a57.4,57.4,0,0,0-18.46,3.67l-192,80A47.93,47.93,0,0,0,16,128C16,326.5,130.5,463.72,237.5,508.32a48.09,48.09,0,0,0,36.91,0C360.09,472.61,496,349.3,496,128A48,48,0,0,0,466.5,83.68ZM384,256H371.88c-28.51,0-42.79,34.47-22.63,54.63l8.58,8.57a16,16,0,1,1-22.63,22.63l-8.57-8.58C306.47,313.09,272,327.37,272,355.88V368a16,16,0,0,1-32,0V355.88c0-28.51-34.47-42.79-54.63-22.63l-8.57,8.58a16,16,0,0,1-22.63-22.63l8.58-8.57c20.16-20.16,5.88-54.63-22.63-54.63H128a16,16,0,0,1,0-32h12.12c28.51,0,42.79-34.47,22.63-54.63l-8.58-8.57a16,16,0,0,1,22.63-22.63l8.57,8.58c20.16,20.16,54.63,5.88,54.63-22.63V112a16,16,0,0,1,32,0v12.12c0,28.51,34.47,42.79,54.63,22.63l8.57-8.58a16,16,0,0,1,22.63,22.63l-8.58,8.57C329.09,189.53,343.37,224,371.88,224H384a16,16,0,0,1,0,32Zm-96,0a16,16,0,1,0,16,16A16,16,0,0,0,288,256Z"]
  7040. };
  7041. var faShip = {
  7042. prefix: 'fas',
  7043. iconName: 'ship',
  7044. 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"]
  7045. };
  7046. var faShippingFast = {
  7047. prefix: 'fas',
  7048. iconName: 'shipping-fast',
  7049. 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"]
  7050. };
  7051. var faShoePrints = {
  7052. prefix: 'fas',
  7053. iconName: 'shoe-prints',
  7054. 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"]
  7055. };
  7056. var faShoppingBag = {
  7057. prefix: 'fas',
  7058. iconName: 'shopping-bag',
  7059. 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"]
  7060. };
  7061. var faShoppingBasket = {
  7062. prefix: 'fas',
  7063. iconName: 'shopping-basket',
  7064. 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"]
  7065. };
  7066. var faShoppingCart = {
  7067. prefix: 'fas',
  7068. iconName: 'shopping-cart',
  7069. 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"]
  7070. };
  7071. var faShower = {
  7072. prefix: 'fas',
  7073. iconName: 'shower',
  7074. icon: [512, 512, [], "f2cc", "M304,320a16,16,0,1,0,16,16A16,16,0,0,0,304,320Zm32-96a16,16,0,1,0,16,16A16,16,0,0,0,336,224Zm32,64a16,16,0,1,0-16-16A16,16,0,0,0,368,288Zm-32,32a16,16,0,1,0-16-16A16,16,0,0,0,336,320Zm-32-64a16,16,0,1,0,16,16A16,16,0,0,0,304,256Zm128-32a16,16,0,1,0-16-16A16,16,0,0,0,432,224Zm-48,16a16,16,0,1,0,16-16A16,16,0,0,0,384,240Zm-16-48a16,16,0,1,0,16,16A16,16,0,0,0,368,192Zm96,32a16,16,0,1,0,16,16A16,16,0,0,0,464,224Zm32-32a16,16,0,1,0,16,16A16,16,0,0,0,496,192Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,432,256Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,400,288Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,336,352Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,304,384Zm64-64a16,16,0,1,0,16,16A16,16,0,0,0,368,320Zm21.65-218.35-11.3-11.31a16,16,0,0,0-22.63,0L350.05,96A111.19,111.19,0,0,0,272,64c-19.24,0-37.08,5.3-52.9,13.85l-10-10A121.72,121.72,0,0,0,123.44,32C55.49,31.5,0,92.91,0,160.85V464a16,16,0,0,0,16,16H48a16,16,0,0,0,16-16V158.4c0-30.15,21-58.2,51-61.93a58.38,58.38,0,0,1,48.93,16.67l10,10C165.3,138.92,160,156.76,160,176a111.23,111.23,0,0,0,32,78.05l-5.66,5.67a16,16,0,0,0,0,22.62l11.3,11.31a16,16,0,0,0,22.63,0L389.65,124.28A16,16,0,0,0,389.65,101.65Z"]
  7075. };
  7076. var faShuttleVan = {
  7077. prefix: 'fas',
  7078. iconName: 'shuttle-van',
  7079. 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"]
  7080. };
  7081. var faSign = {
  7082. prefix: 'fas',
  7083. iconName: 'sign',
  7084. 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"]
  7085. };
  7086. var faSignInAlt = {
  7087. prefix: 'fas',
  7088. iconName: 'sign-in-alt',
  7089. 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"]
  7090. };
  7091. var faSignLanguage = {
  7092. prefix: 'fas',
  7093. iconName: 'sign-language',
  7094. 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"]
  7095. };
  7096. var faSignOutAlt = {
  7097. prefix: 'fas',
  7098. iconName: 'sign-out-alt',
  7099. 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"]
  7100. };
  7101. var faSignal = {
  7102. prefix: 'fas',
  7103. iconName: 'signal',
  7104. 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"]
  7105. };
  7106. var faSignature = {
  7107. prefix: 'fas',
  7108. iconName: 'signature',
  7109. icon: [640, 512, [], "f5b7", "M623.2 192c-51.8 3.5-125.7 54.7-163.1 71.5-29.1 13.1-54.2 24.4-76.1 24.4-22.6 0-26-16.2-21.3-51.9 1.1-8 11.7-79.2-42.7-76.1-25.1 1.5-64.3 24.8-169.5 126L192 182.2c30.4-75.9-53.2-151.5-129.7-102.8L7.4 116.3C0 121-2.2 130.9 2.5 138.4l17.2 27c4.7 7.5 14.6 9.7 22.1 4.9l58-38.9c18.4-11.7 40.7 7.2 32.7 27.1L34.3 404.1C27.5 421 37 448 64 448c8.3 0 16.5-3.2 22.6-9.4 42.2-42.2 154.7-150.7 211.2-195.8-2.2 28.5-2.1 58.9 20.6 83.8 15.3 16.8 37.3 25.3 65.5 25.3 35.6 0 68-14.6 102.3-30 33-14.8 99-62.6 138.4-65.8 8.5-.7 15.2-7.3 15.2-15.8v-32.1c.2-9.1-7.5-16.8-16.6-16.2z"]
  7110. };
  7111. var faSimCard = {
  7112. prefix: 'fas',
  7113. iconName: 'sim-card',
  7114. icon: [384, 512, [], "f7c4", "M0 64v384c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V128L256 0H64C28.7 0 0 28.7 0 64zm224 192h-64v-64h64v64zm96 0h-64v-64h32c17.7 0 32 14.3 32 32v32zm-64 128h64v32c0 17.7-14.3 32-32 32h-32v-64zm-96 0h64v64h-64v-64zm-96 0h64v64H96c-17.7 0-32-14.3-32-32v-32zm0-96h256v64H64v-64zm0-64c0-17.7 14.3-32 32-32h32v64H64v-32z"]
  7115. };
  7116. var faSink = {
  7117. prefix: 'fas',
  7118. iconName: 'sink',
  7119. icon: [512, 512, [], "f96d", "M32,416a96,96,0,0,0,96,96H384a96,96,0,0,0,96-96V384H32ZM496,288H400V256h64a16,16,0,0,0,16-16V224a16,16,0,0,0-16-16H384a32,32,0,0,0-32,32v48H288V96a32,32,0,0,1,64,0v16a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V96A96.16,96.16,0,0,0,300.87,1.86C255.29,10.71,224,53.36,224,99.79V288H160V240a32,32,0,0,0-32-32H48a16,16,0,0,0-16,16v16a16,16,0,0,0,16,16h64v32H16A16,16,0,0,0,0,304v32a16,16,0,0,0,16,16H496a16,16,0,0,0,16-16V304A16,16,0,0,0,496,288Z"]
  7120. };
  7121. var faSitemap = {
  7122. prefix: 'fas',
  7123. iconName: 'sitemap',
  7124. 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"]
  7125. };
  7126. var faSkating = {
  7127. prefix: 'fas',
  7128. iconName: 'skating',
  7129. icon: [448, 512, [], "f7c5", "M400 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 448c-8.8 0-16 7.2-16 16s-7.2 16-16 16h-96c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c26.5 0 48-21.5 48-48 0-8.8-7.2-16-16-16zm-282.2 8.6c-6.2 6.2-16.4 6.3-22.6 0l-67.9-67.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l67.9 67.9c9.4 9.4 21.7 14 34 14s24.6-4.7 33.9-14c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.3-22.7 0zm56.1-179.8l-93.7 93.7c-12.5 12.5-12.5 32.8 0 45.2 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4l91.9-91.9-30.2-30.2c-5-5-9.4-10.7-13.2-16.8zM128 160h105.5l-20.1 17.2c-13.5 11.5-21.6 28.4-22.3 46.1-.7 17.8 6.1 35.2 18.7 47.7l78.2 78.2V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-89.4c0-12.6-5.1-25-14.1-33.9l-61-61c.5-.4 1.2-.6 1.7-1.1l82.3-82.3c11.5-11.5 14.9-28.6 8.7-43.6-6.2-15-20.7-24.7-37-24.7H128c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]
  7130. };
  7131. var faSkiing = {
  7132. prefix: 'fas',
  7133. iconName: 'skiing',
  7134. icon: [512, 512, [], "f7c9", "M432 96c26.5 0 48-21.5 48-48S458.5 0 432 0s-48 21.5-48 48 21.5 48 48 48zm73 356.1c-9.4-9.4-24.6-9.4-33.9 0-12.1 12.1-30.5 15.4-45.1 8.7l-135.8-70.2 49.2-73.8c12.7-19 10.2-44.5-6-60.6L293 215.7l-107-53.1c-2.9 19.9 3.4 40 17.7 54.4l75.1 75.2-45.9 68.8L35 258.7c-11.7-6-26.2-1.5-32.3 10.3-6.1 11.8-1.5 26.3 10.3 32.3l391.9 202.5c11.9 5.5 24.5 8.1 37.1 8.1 23.2 0 46-9 63-26 9.3-9.3 9.3-24.5 0-33.8zM120 91.6l-11.5 22.5c14.4 7.3 31.2 4.9 42.8-4.8l47.2 23.4c-.1.1-.1.2-.2.3l114.5 56.8 32.4-13 6.4 19.1c4 12.1 12.6 22 24 27.7l58.1 29c15.9 7.9 35 1.5 42.9-14.3 7.9-15.8 1.5-35-14.3-42.9l-52.1-26.1-17.1-51.2c-8.1-24.2-40.9-56.6-84.5-39.2l-81.2 32.5-62.5-31c.3-14.5-7.2-28.6-20.9-35.6l-11.1 21.7h-.2l-34.4-7c-1.8-.4-3.7.2-5 1.7-1.9 2.2-1.7 5.5.5 7.4l26.2 23z"]
  7135. };
  7136. var faSkiingNordic = {
  7137. prefix: 'fas',
  7138. iconName: 'skiing-nordic',
  7139. icon: [576, 512, [], "f7ca", "M336 96c26.5 0 48-21.5 48-48S362.5 0 336 0s-48 21.5-48 48 21.5 48 48 48zm216 320c-13.2 0-24 10.7-24 24 0 13.2-10.8 24-24 24h-69.5L460 285.6c11.7-4.7 20.1-16.2 20.1-29.6 0-17.7-14.3-32-32-32h-44L378 170.8c-12.5-25.5-35.5-44.2-61.8-50.9L245 98.7c-28.3-6.8-57.8-.5-80.8 17.1l-39.7 30.4c-14 10.7-16.7 30.8-5.9 44.9.7.9 1.7 1.3 2.4 2.1L66.9 464H24c-13.2 0-24 10.7-24 24s10.8 24 24 24h480c39.7 0 72-32.3 72-72 0-13.2-10.8-24-24-24zm-260.5 48h-96.9l43.1-91-22-13c-12.1-7.2-21.9-16.9-29.5-27.8L123.7 464H99.5l52.3-261.4c4.1-1 8.1-2.9 11.7-5.6l39.7-30.4c7.7-5.9 17.4-8 25.3-6.1l14.7 4.4-37.5 87.4c-12.6 29.5-1.3 64 26.3 80.3l85 50.2-25.5 81.2zm110.6 0h-43.6l23.6-75.5c5.9-20.8-2.9-43.1-21.6-54.4L299.3 298l31.3-78.3 20.3 41.4c8 16.3 24.9 26.9 43.1 26.9h33.3l-25.2 176z"]
  7140. };
  7141. var faSkull = {
  7142. prefix: 'fas',
  7143. iconName: 'skull',
  7144. 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"]
  7145. };
  7146. var faSkullCrossbones = {
  7147. prefix: 'fas',
  7148. iconName: 'skull-crossbones',
  7149. 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"]
  7150. };
  7151. var faSlash = {
  7152. prefix: 'fas',
  7153. iconName: 'slash',
  7154. 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"]
  7155. };
  7156. var faSleigh = {
  7157. prefix: 'fas',
  7158. iconName: 'sleigh',
  7159. icon: [640, 512, [], "f7cc", "M612.7 350.7l-9.3-7.4c-6.9-5.5-17-4.4-22.5 2.5l-10 12.5c-5.5 6.9-4.4 17 2.5 22.5l9.3 7.4c5.9 4.7 9.2 11.7 9.2 19.2 0 13.6-11 24.6-24.6 24.6H48c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h516c39 0 73.7-29.3 75.9-68.3 1.4-23.8-8.7-46.3-27.2-61zM32 224c0 59.6 40.9 109.2 96 123.5V400h64v-48h192v48h64v-48c53 0 96-43 96-96v-96c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96v64c0 35.3-28.7 64-64 64h-20.7c-65.8 0-125.9-37.2-155.3-96-29.4-58.8-89.6-96-155.3-96H32C14.3 32 0 46.3 0 64s14.3 32 32 32v128z"]
  7160. };
  7161. var faSlidersH = {
  7162. prefix: 'fas',
  7163. iconName: 'sliders-h',
  7164. 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"]
  7165. };
  7166. var faSmile = {
  7167. prefix: 'fas',
  7168. iconName: 'smile',
  7169. 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"]
  7170. };
  7171. var faSmileBeam = {
  7172. prefix: 'fas',
  7173. iconName: 'smile-beam',
  7174. 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"]
  7175. };
  7176. var faSmileWink = {
  7177. prefix: 'fas',
  7178. iconName: 'smile-wink',
  7179. 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"]
  7180. };
  7181. var faSmog = {
  7182. prefix: 'fas',
  7183. iconName: 'smog',
  7184. icon: [640, 512, [], "f75f", "M624 368H80c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm-480 96H16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm416 0H224c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h336c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zM144 288h156.1c22.5 19.7 51.6 32 83.9 32s61.3-12.3 83.9-32H528c61.9 0 112-50.1 112-112S589.9 64 528 64c-18 0-34.7 4.6-49.7 12.1C454 31 406.8 0 352 0c-41 0-77.8 17.3-104 44.8C221.8 17.3 185 0 144 0 64.5 0 0 64.5 0 144s64.5 144 144 144z"]
  7185. };
  7186. var faSmoking = {
  7187. prefix: 'fas',
  7188. iconName: 'smoking',
  7189. 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"]
  7190. };
  7191. var faSmokingBan = {
  7192. prefix: 'fas',
  7193. iconName: 'smoking-ban',
  7194. 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"]
  7195. };
  7196. var faSms = {
  7197. prefix: 'fas',
  7198. iconName: 'sms',
  7199. icon: [512, 512, [], "f7cd", "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.7 1.3 3 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 141.4 0 256-93.1 256-208S397.4 32 256 32zM128.2 304H116c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H156c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-19 38.6-42.4 38.6zm191.8-8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-68.2l-24.8 55.8c-2.9 5.9-11.4 5.9-14.3 0L224 227.8V296c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V192c0-8.8 7.2-16 16-16h16c6.1 0 11.6 3.4 14.3 8.8l17.7 35.4 17.7-35.4c2.7-5.4 8.3-8.8 14.3-8.8h16c8.8 0 16 7.2 16 16v104zm48.3 8H356c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H396c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-18.9 38.6-42.3 38.6z"]
  7200. };
  7201. var faSnowboarding = {
  7202. prefix: 'fas',
  7203. iconName: 'snowboarding',
  7204. icon: [512, 512, [], "f7ce", "M432 96c26.5 0 48-21.5 48-48S458.5 0 432 0s-48 21.5-48 48 21.5 48 48 48zm28.8 153.6c5.8 4.3 12.5 6.4 19.2 6.4 9.7 0 19.3-4.4 25.6-12.8 10.6-14.1 7.8-34.2-6.4-44.8l-111.4-83.5c-13.8-10.3-29.1-18.4-45.4-23.8l-63.7-21.2-26.1-52.1C244.7 2 225.5-4.4 209.7 3.5c-15.8 7.9-22.2 27.1-14.3 42.9l29.1 58.1c5.7 11.4 15.6 19.9 27.7 24l16.4 5.5-41.2 20.6c-21.8 10.9-35.4 32.8-35.4 57.2v53.1l-74.1 24.7c-16.8 5.6-25.8 23.7-20.2 40.5 1.7 5.2 4.9 9.4 8.7 12.9l-38.7-14.1c-9.7-3.5-17.4-10.6-21.8-20-5.6-12-19.9-17.2-31.9-11.6s-17.2 19.9-11.6 31.9c9.8 21 27.1 36.9 48.9 44.8l364.8 132.7c9.7 3.5 19.7 5.3 29.7 5.3 12.5 0 24.9-2.7 36.5-8.2 12-5.6 17.2-19.9 11.6-31.9S474 454.7 462 460.3c-9.3 4.4-19.8 4.8-29.5 1.3l-90.8-33.1c8.7-4.1 15.6-11.8 17.8-21.9l21.9-102c3.9-18.2-3.2-37.2-18.1-48.4l-52-39 66-30.5 83.5 62.9zm-144.4 51.7l-19.7 92c-1.5 7.1-.1 13.9 2.8 20l-169.4-61.6c2.7-.2 5.4-.4 8-1.3l85-28.4c19.6-6.5 32.8-24.8 32.8-45.5V256l60.5 45.3z"]
  7205. };
  7206. var faSnowflake = {
  7207. prefix: 'fas',
  7208. iconName: 'snowflake',
  7209. icon: [448, 512, [], "f2dc", "M440.3 345.2l-33.8-19.5 26-7c8.2-2.2 13.1-10.7 10.9-18.9l-4-14.9c-2.2-8.2-10.7-13.1-18.9-10.9l-70.8 19-63.9-37 63.8-36.9 70.8 19c8.2 2.2 16.7-2.7 18.9-10.9l4-14.9c2.2-8.2-2.7-16.7-10.9-18.9l-26-7 33.8-19.5c7.4-4.3 9.9-13.7 5.7-21.1L430.4 119c-4.3-7.4-13.7-9.9-21.1-5.7l-33.8 19.5 7-26c2.2-8.2-2.7-16.7-10.9-18.9l-14.9-4c-8.2-2.2-16.7 2.7-18.9 10.9l-19 70.8-62.8 36.2v-77.5l53.7-53.7c6.2-6.2 6.2-16.4 0-22.6l-11.3-11.3c-6.2-6.2-16.4-6.2-22.6 0L256 56.4V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v40.4l-19.7-19.7c-6.2-6.2-16.4-6.2-22.6 0L138.3 48c-6.3 6.2-6.3 16.4 0 22.6l53.7 53.7v77.5l-62.8-36.2-19-70.8c-2.2-8.2-10.7-13.1-18.9-10.9l-14.9 4c-8.2 2.2-13.1 10.7-10.9 18.9l7 26-33.8-19.5c-7.4-4.3-16.8-1.7-21.1 5.7L2.1 145.7c-4.3 7.4-1.7 16.8 5.7 21.1l33.8 19.5-26 7c-8.3 2.2-13.2 10.7-11 19l4 14.9c2.2 8.2 10.7 13.1 18.9 10.9l70.8-19 63.8 36.9-63.8 36.9-70.8-19c-8.2-2.2-16.7 2.7-18.9 10.9l-4 14.9c-2.2 8.2 2.7 16.7 10.9 18.9l26 7-33.8 19.6c-7.4 4.3-9.9 13.7-5.7 21.1l15.5 26.8c4.3 7.4 13.7 9.9 21.1 5.7l33.8-19.5-7 26c-2.2 8.2 2.7 16.7 10.9 18.9l14.9 4c8.2 2.2 16.7-2.7 18.9-10.9l19-70.8 62.8-36.2v77.5l-53.7 53.7c-6.3 6.2-6.3 16.4 0 22.6l11.3 11.3c6.2 6.2 16.4 6.2 22.6 0l19.7-19.7V496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-40.4l19.7 19.7c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6L256 387.7v-77.5l62.8 36.2 19 70.8c2.2 8.2 10.7 13.1 18.9 10.9l14.9-4c8.2-2.2 13.1-10.7 10.9-18.9l-7-26 33.8 19.5c7.4 4.3 16.8 1.7 21.1-5.7l15.5-26.8c4.3-7.3 1.8-16.8-5.6-21z"]
  7210. };
  7211. var faSnowman = {
  7212. prefix: 'fas',
  7213. iconName: 'snowman',
  7214. icon: [512, 512, [], "f7d0", "M510.9 152.3l-5.9-14.5c-3.3-8-12.6-11.9-20.8-8.7L456 140.6v-29c0-8.6-7.2-15.6-16-15.6h-16c-8.8 0-16 7-16 15.6v46.9c0 .5.3 1 .3 1.5l-56.4 23c-5.9-10-13.3-18.9-22-26.6 13.6-16.6 22-37.4 22-60.5 0-53-43-96-96-96s-96 43-96 96c0 23.1 8.5 43.9 22 60.5-8.7 7.7-16 16.6-22 26.6l-56.4-23c.1-.5.3-1 .3-1.5v-46.9C104 103 96.8 96 88 96H72c-8.8 0-16 7-16 15.6v29l-28.1-11.5c-8.2-3.2-17.5.7-20.8 8.7l-5.9 14.5c-3.3 8 .7 17.1 8.9 20.3l135.2 55.2c-.4 4-1.2 8-1.2 12.2 0 10.1 1.7 19.6 4.2 28.9C120.9 296.4 104 334.2 104 376c0 54 28.4 100.9 70.8 127.8 9.3 5.9 20.3 8.2 31.3 8.2h99.2c13.3 0 26.3-4.1 37.2-11.7 46.5-32.3 74.4-89.4 62.9-152.6-5.5-30.2-20.5-57.6-41.6-79 2.5-9.2 4.2-18.7 4.2-28.7 0-4.2-.8-8.1-1.2-12.2L502 172.6c8.1-3.1 12.1-12.2 8.9-20.3zM224 96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 272c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-88s-16-23.2-16-32 7.2-16 16-16 16 7.2 16 16-16 32-16 32zm32-56c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
  7215. };
  7216. var faSnowplow = {
  7217. prefix: 'fas',
  7218. iconName: 'snowplow',
  7219. icon: [640, 512, [], "f7d2", "M120 376c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm238.6 49.4c-14.5-14.5-22.6-34.1-22.6-54.6V269.2c0-20.5 8.1-40.1 22.6-54.6l36.7-36.7c6.2-6.2 6.2-16.4 0-22.6l-22.6-22.6c-6.2-6.2-16.4-6.2-22.6 0l-36.7 36.7c-26.5 26.5-41.4 62.4-41.4 99.9V288h-64v-50.9c0-8.7-1.8-17.2-5.2-25.2L364.5 29.1C356.9 11.4 339.6 0 320.3 0H176c-26.5 0-48 21.5-48 48v112h-16c-26.5 0-48 21.5-48 48v91.2C26.3 317.2 0 355.4 0 400c0 61.9 50.1 112 112 112h256c61.9 0 112-50.1 112-112 0-17.3-4.2-33.4-11.2-48H512v18.7c0 37.5 14.9 73.4 41.4 99.9l36.7 36.7c6.2 6.2 16.4 6.2 22.6 0l22.6-22.6c6.2-6.2 6.2-16.4 0-22.6l-36.7-36.7zM192 64h117.8l68.6 160H256l-64-64V64zm176 384H112c-26.5 0-48-21.5-48-48s21.5-48 48-48h256c26.5 0 48 21.5 48 48s-21.5 48-48 48z"]
  7220. };
  7221. var faSoap = {
  7222. prefix: 'fas',
  7223. iconName: 'soap',
  7224. icon: [512, 512, [], "f96e", "M416,192a95.42,95.42,0,0,1-30.94,70.21A95.8,95.8,0,0,1,352,448H160a96,96,0,0,1,0-192h88.91A95.3,95.3,0,0,1,224,192H96A96,96,0,0,0,0,288V416a96,96,0,0,0,96,96H416a96,96,0,0,0,96-96V288A96,96,0,0,0,416,192Zm-96,64a64,64,0,1,0-64-64A64,64,0,0,0,320,256ZM208,96a48,48,0,1,0-48-48A48,48,0,0,0,208,96ZM384,64a32,32,0,1,0-32-32A32,32,0,0,0,384,64ZM160,288a64,64,0,0,0,0,128H352a64,64,0,0,0,0-128Z"]
  7225. };
  7226. var faSocks = {
  7227. prefix: 'fas',
  7228. iconName: 'socks',
  7229. 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"]
  7230. };
  7231. var faSolarPanel = {
  7232. prefix: 'fas',
  7233. iconName: 'solar-panel',
  7234. 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"]
  7235. };
  7236. var faSort = {
  7237. prefix: 'fas',
  7238. iconName: 'sort',
  7239. 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"]
  7240. };
  7241. var faSortAlphaDown = {
  7242. prefix: 'fas',
  7243. iconName: 'sort-alpha-down',
  7244. icon: [448, 512, [], "f15d", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm240-64H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 446.37V464a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 321.63V304a16 16 0 0 0-16-16zm31.06-85.38l-59.27-160A16 16 0 0 0 372.72 32h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 224h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 224H432a16 16 0 0 0 15.06-21.38zM335.61 144L352 96l16.39 48z"]
  7245. };
  7246. var faSortAlphaDownAlt = {
  7247. prefix: 'fas',
  7248. iconName: 'sort-alpha-down-alt',
  7249. icon: [448, 512, [], "f881", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm112-128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 65.63V48a16 16 0 0 0-16-16H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 190.37V208a16 16 0 0 0 16 16zm159.06 234.62l-59.27-160A16 16 0 0 0 372.72 288h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 480h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 480H432a16 16 0 0 0 15.06-21.38zM335.61 400L352 352l16.39 48z"]
  7250. };
  7251. var faSortAlphaUp = {
  7252. prefix: 'fas',
  7253. iconName: 'sort-alpha-up',
  7254. icon: [448, 512, [], "f15e", "M16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160zm400 128H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 446.37V464a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 321.63V304a16 16 0 0 0-16-16zm31.06-85.38l-59.27-160A16 16 0 0 0 372.72 32h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 224h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 224H432a16 16 0 0 0 15.06-21.38zM335.61 144L352 96l16.39 48z"]
  7255. };
  7256. var faSortAlphaUpAlt = {
  7257. prefix: 'fas',
  7258. iconName: 'sort-alpha-up-alt',
  7259. icon: [448, 512, [], "f882", "M16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160zm272 64h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 65.63V48a16 16 0 0 0-16-16H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 190.37V208a16 16 0 0 0 16 16zm159.06 234.62l-59.27-160A16 16 0 0 0 372.72 288h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 480h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 480H432a16 16 0 0 0 15.06-21.38zM335.61 400L352 352l16.39 48z"]
  7260. };
  7261. var faSortAmountDown = {
  7262. prefix: 'fas',
  7263. iconName: 'sort-amount-down',
  7264. icon: [512, 512, [], "f160", "M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-128-64h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm256-192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  7265. };
  7266. var faSortAmountDownAlt = {
  7267. prefix: 'fas',
  7268. iconName: 'sort-amount-down-alt',
  7269. icon: [512, 512, [], "f884", "M240 96h64a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm0 128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm256 192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-256-64h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm-64 0h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352z"]
  7270. };
  7271. var faSortAmountUp = {
  7272. prefix: 'fas',
  7273. iconName: 'sort-amount-up',
  7274. icon: [512, 512, [], "f161", "M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.77 160 16 160zm416 0H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  7275. };
  7276. var faSortAmountUpAlt = {
  7277. prefix: 'fas',
  7278. iconName: 'sort-amount-up-alt',
  7279. icon: [512, 512, [], "f885", "M240 96h64a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm0 128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm256 192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-256-64h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.39-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160z"]
  7280. };
  7281. var faSortDown = {
  7282. prefix: 'fas',
  7283. iconName: 'sort-down',
  7284. 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"]
  7285. };
  7286. var faSortNumericDown = {
  7287. prefix: 'fas',
  7288. iconName: 'sort-numeric-down',
  7289. icon: [448, 512, [], "f162", "M304 96h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-16V48a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 96zm26.15 162.91a79 79 0 0 0-55 54.17c-14.25 51.05 21.21 97.77 68.85 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.76 86.25-61.61 86.25-132V336c-.02-51.21-48.4-91.34-101.85-77.09zM352 356a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm-176-4h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352z"]
  7290. };
  7291. var faSortNumericDownAlt = {
  7292. prefix: 'fas',
  7293. iconName: 'sort-numeric-down-alt',
  7294. icon: [448, 512, [], "f886", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm224 64h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 352h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM330.17 34.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.77 86.25-61.61 86.25-132V112c-.02-51.21-48.4-91.34-101.85-77.09zM352 132a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"]
  7295. };
  7296. var faSortNumericUp = {
  7297. prefix: 'fas',
  7298. iconName: 'sort-numeric-up',
  7299. icon: [448, 512, [], "f163", "M330.17 258.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.76 86.25-61.61 86.25-132V336c-.02-51.21-48.4-91.34-101.85-77.09zM352 356a20 20 0 1 1 20-20 20 20 0 0 1-20 20zM304 96h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-16V48a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 96zM107.31 36.69a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31z"]
  7300. };
  7301. var faSortNumericUpAlt = {
  7302. prefix: 'fas',
  7303. iconName: 'sort-numeric-up-alt',
  7304. icon: [448, 512, [], "f887", "M107.31 36.69a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31zM400 416h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 352h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM330.17 34.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.77 86.25-61.61 86.25-132V112c-.02-51.21-48.4-91.34-101.85-77.09zM352 132a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"]
  7305. };
  7306. var faSortUp = {
  7307. prefix: 'fas',
  7308. iconName: 'sort-up',
  7309. 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"]
  7310. };
  7311. var faSpa = {
  7312. prefix: 'fas',
  7313. iconName: 'spa',
  7314. 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"]
  7315. };
  7316. var faSpaceShuttle = {
  7317. prefix: 'fas',
  7318. iconName: 'space-shuttle',
  7319. 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"]
  7320. };
  7321. var faSpellCheck = {
  7322. prefix: 'fas',
  7323. iconName: 'spell-check',
  7324. icon: [576, 512, [], "f891", "M272 256h91.36c43.2 0 82-32.2 84.51-75.34a79.82 79.82 0 0 0-25.26-63.07 79.81 79.81 0 0 0 9.06-44.91C427.9 30.57 389.3 0 347 0h-75a16 16 0 0 0-16 16v224a16 16 0 0 0 16 16zm40-200h40a24 24 0 0 1 0 48h-40zm0 96h56a24 24 0 0 1 0 48h-56zM155.12 22.25A32 32 0 0 0 124.64 0H99.36a32 32 0 0 0-30.48 22.25L.59 235.73A16 16 0 0 0 16 256h24.93a16 16 0 0 0 15.42-11.73L68.29 208h87.42l11.94 36.27A16 16 0 0 0 183.07 256H208a16 16 0 0 0 15.42-20.27zM89.37 144L112 75.3l22.63 68.7zm482 132.48l-45.21-45.3a15.88 15.88 0 0 0-22.59 0l-151.5 151.5-55.41-55.5a15.88 15.88 0 0 0-22.59 0l-45.3 45.3a16 16 0 0 0 0 22.59l112 112.21a15.89 15.89 0 0 0 22.6 0l208-208.21a16 16 0 0 0-.02-22.59z"]
  7325. };
  7326. var faSpider = {
  7327. prefix: 'fas',
  7328. iconName: 'spider',
  7329. 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"]
  7330. };
  7331. var faSpinner = {
  7332. prefix: 'fas',
  7333. iconName: 'spinner',
  7334. 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"]
  7335. };
  7336. var faSplotch = {
  7337. prefix: 'fas',
  7338. iconName: 'splotch',
  7339. 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"]
  7340. };
  7341. var faSprayCan = {
  7342. prefix: 'fas',
  7343. iconName: 'spray-can',
  7344. 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"]
  7345. };
  7346. var faSquare = {
  7347. prefix: 'fas',
  7348. iconName: 'square',
  7349. 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"]
  7350. };
  7351. var faSquareFull = {
  7352. prefix: 'fas',
  7353. iconName: 'square-full',
  7354. icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"]
  7355. };
  7356. var faSquareRootAlt = {
  7357. prefix: 'fas',
  7358. iconName: 'square-root-alt',
  7359. 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"]
  7360. };
  7361. var faStamp = {
  7362. prefix: 'fas',
  7363. iconName: 'stamp',
  7364. 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"]
  7365. };
  7366. var faStar = {
  7367. prefix: 'fas',
  7368. iconName: 'star',
  7369. 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"]
  7370. };
  7371. var faStarAndCrescent = {
  7372. prefix: 'fas',
  7373. iconName: 'star-and-crescent',
  7374. 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"]
  7375. };
  7376. var faStarHalf = {
  7377. prefix: 'fas',
  7378. iconName: 'star-half',
  7379. 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"]
  7380. };
  7381. var faStarHalfAlt = {
  7382. prefix: 'fas',
  7383. iconName: 'star-half-alt',
  7384. 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"]
  7385. };
  7386. var faStarOfDavid = {
  7387. prefix: 'fas',
  7388. iconName: 'star-of-david',
  7389. 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"]
  7390. };
  7391. var faStarOfLife = {
  7392. prefix: 'fas',
  7393. iconName: 'star-of-life',
  7394. 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"]
  7395. };
  7396. var faStepBackward = {
  7397. prefix: 'fas',
  7398. iconName: 'step-backward',
  7399. 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"]
  7400. };
  7401. var faStepForward = {
  7402. prefix: 'fas',
  7403. iconName: 'step-forward',
  7404. 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"]
  7405. };
  7406. var faStethoscope = {
  7407. prefix: 'fas',
  7408. iconName: 'stethoscope',
  7409. 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"]
  7410. };
  7411. var faStickyNote = {
  7412. prefix: 'fas',
  7413. iconName: 'sticky-note',
  7414. 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"]
  7415. };
  7416. var faStop = {
  7417. prefix: 'fas',
  7418. iconName: 'stop',
  7419. 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"]
  7420. };
  7421. var faStopCircle = {
  7422. prefix: 'fas',
  7423. iconName: 'stop-circle',
  7424. 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"]
  7425. };
  7426. var faStopwatch = {
  7427. prefix: 'fas',
  7428. iconName: 'stopwatch',
  7429. 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"]
  7430. };
  7431. var faStopwatch20 = {
  7432. prefix: 'fas',
  7433. iconName: 'stopwatch-20',
  7434. icon: [448, 512, [], "f96f", "M398.5,190.91l.59-.61,26.59-26.58a16,16,0,0,0,0-22.63L403,118.41a16,16,0,0,0-22.63,0l-24.68,24.68A206.68,206.68,0,0,0,256,98.5V64h32a16,16,0,0,0,16-16V16A16,16,0,0,0,288,0H160a16.05,16.05,0,0,0-16,16V48a16.05,16.05,0,0,0,16,16h32V98.5A207.92,207.92,0,0,0,16.09,297.57C12.64,411.5,106.76,510.22,220.72,512,337.13,513.77,432,420,432,304A206,206,0,0,0,398.5,190.91ZM204.37,377.55a8.2,8.2,0,0,1,8.32,8.07v22.31a8.2,8.2,0,0,1-8.32,8.07H121.52a16.46,16.46,0,0,1-16.61-17.62c2.78-35.22,14.67-57.41,38.45-91.37,20.42-29.19,27.1-37.32,27.1-62.34,0-16.92-1.79-24.27-12.21-24.27-9.39,0-12.69,7.4-12.69,22.68v5.23a8.2,8.2,0,0,1-8.33,8.07h-24.9a8.2,8.2,0,0,1-8.33-8.07v-4.07c0-27.3,8.48-60.24,56.43-60.24,43,0,55.57,25.85,55.57,61,0,35.58-12.44,51.21-34.35,81.31-11.56,15-24.61,35.57-26.41,51.2ZM344,352.32c0,35.16-12.3,63.68-57.23,63.68C243.19,416,232,386.48,232,352.55V247.22c0-40.73,19.58-63.22,56.2-63.22C325,184,344,206.64,344,245.3ZM287.87,221.73c-9.41,0-13.23,7.5-13.23,20V357.68c0,13.11,3.59,20.59,13.23,20.59s13-8,13-21.27V241.06C300.89,229.79,297.88,221.73,287.87,221.73Z"]
  7435. };
  7436. var faStore = {
  7437. prefix: 'fas',
  7438. iconName: 'store',
  7439. 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"]
  7440. };
  7441. var faStoreAlt = {
  7442. prefix: 'fas',
  7443. iconName: 'store-alt',
  7444. 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"]
  7445. };
  7446. var faStoreAltSlash = {
  7447. prefix: 'fas',
  7448. iconName: 'store-alt-slash',
  7449. icon: [640, 512, [], "f970", "M17.89,123.62,5.51,142.2c-14.2,21.3,1,49.8,26.59,49.8h74.26ZM576,413.42V224H512V364L384,265V224H330.92l-41.4-32H608c25.5,0,40.7-28.5,26.59-49.8l-85.29-128A32.18,32.18,0,0,0,522.6,0H117.42A31.87,31.87,0,0,0,90.81,14.2l-10.66,16L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.81l19.64-25.26a16,16,0,0,0-2.81-22.45ZM320,384H128V224H64V480a32,32,0,0,0,32,32H352a32,32,0,0,0,32-32V406.59l-64-49.47Z"]
  7450. };
  7451. var faStoreSlash = {
  7452. prefix: 'fas',
  7453. iconName: 'store-slash',
  7454. icon: [640, 512, [], "f971", "M121.51,384V284.2a119.43,119.43,0,0,1-28,3.8,123.46,123.46,0,0,1-17.1-1.2,114.88,114.88,0,0,1-15.58-3.6V480c0,17.7,13.59,32,30.4,32H505.75L348.42,384Zm-28-128.09c25.1,0,47.29-10.72,64-27.24L24,120.05c-30.52,53.39-2.45,126.53,56.49,135A95.68,95.68,0,0,0,93.48,255.91ZM602.13,458.09,547.2,413.41V283.2a93.5,93.5,0,0,1-15.57,3.6,127.31,127.31,0,0,1-17.29,1.2,114.89,114.89,0,0,1-28-3.8v79.68L348.52,251.77a88.06,88.06,0,0,0,25.41,4.14c28.11,0,53-13,70.11-33.11,17.19,20.11,42.08,33.11,70.11,33.11a94.31,94.31,0,0,0,13-.91c59.66-8.41,88-82.8,56.06-136.4L521.55,15A30.1,30.1,0,0,0,495.81,0H112A30.11,30.11,0,0,0,86.27,15L76.88,30.78,43.19,3.38A14.68,14.68,0,0,0,21.86,6.19L3.2,31.45A16.58,16.58,0,0,0,5.87,53.91L564.81,508.63a14.69,14.69,0,0,0,21.33-2.82l18.66-25.26A16.58,16.58,0,0,0,602.13,458.09Z"]
  7455. };
  7456. var faStream = {
  7457. prefix: 'fas',
  7458. iconName: 'stream',
  7459. 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"]
  7460. };
  7461. var faStreetView = {
  7462. prefix: 'fas',
  7463. iconName: 'street-view',
  7464. 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"]
  7465. };
  7466. var faStrikethrough = {
  7467. prefix: 'fas',
  7468. iconName: 'strikethrough',
  7469. icon: [512, 512, [], "f0cc", "M496 224H293.9l-87.17-26.83A43.55 43.55 0 0 1 219.55 112h66.79A49.89 49.89 0 0 1 331 139.58a16 16 0 0 0 21.46 7.15l42.94-21.47a16 16 0 0 0 7.16-21.46l-.53-1A128 128 0 0 0 287.51 32h-68a123.68 123.68 0 0 0-123 135.64c2 20.89 10.1 39.83 21.78 56.36H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-180.24 96A43 43 0 0 1 336 356.45 43.59 43.59 0 0 1 292.45 400h-66.79A49.89 49.89 0 0 1 181 372.42a16 16 0 0 0-21.46-7.15l-42.94 21.47a16 16 0 0 0-7.16 21.46l.53 1A128 128 0 0 0 224.49 480h68a123.68 123.68 0 0 0 123-135.64 114.25 114.25 0 0 0-5.34-24.36z"]
  7470. };
  7471. var faStroopwafel = {
  7472. prefix: 'fas',
  7473. iconName: 'stroopwafel',
  7474. 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"]
  7475. };
  7476. var faSubscript = {
  7477. prefix: 'fas',
  7478. iconName: 'subscript',
  7479. icon: [512, 512, [], "f12c", "M496 448h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 400 352h16v96h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM336 64h-67a16 16 0 0 0-13.14 6.87l-79.9 115-79.9-115A16 16 0 0 0 83 64H16A16 16 0 0 0 0 80v48a16 16 0 0 0 16 16h33.48l77.81 112-77.81 112H16a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h67a16 16 0 0 0 13.14-6.87l79.9-115 79.9 115A16 16 0 0 0 269 448h67a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16h-33.48l-77.81-112 77.81-112H336a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16z"]
  7480. };
  7481. var faSubway = {
  7482. prefix: 'fas',
  7483. iconName: 'subway',
  7484. 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"]
  7485. };
  7486. var faSuitcase = {
  7487. prefix: 'fas',
  7488. iconName: 'suitcase',
  7489. 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"]
  7490. };
  7491. var faSuitcaseRolling = {
  7492. prefix: 'fas',
  7493. iconName: 'suitcase-rolling',
  7494. 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"]
  7495. };
  7496. var faSun = {
  7497. prefix: 'fas',
  7498. iconName: 'sun',
  7499. icon: [512, 512, [], "f185", "M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"]
  7500. };
  7501. var faSuperscript = {
  7502. prefix: 'fas',
  7503. iconName: 'superscript',
  7504. icon: [512, 512, [], "f12b", "M496 160h-16V16a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 400 64h16v96h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM336 64h-67a16 16 0 0 0-13.14 6.87l-79.9 115-79.9-115A16 16 0 0 0 83 64H16A16 16 0 0 0 0 80v48a16 16 0 0 0 16 16h33.48l77.81 112-77.81 112H16a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h67a16 16 0 0 0 13.14-6.87l79.9-115 79.9 115A16 16 0 0 0 269 448h67a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16h-33.48l-77.81-112 77.81-112H336a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16z"]
  7505. };
  7506. var faSurprise = {
  7507. prefix: 'fas',
  7508. iconName: 'surprise',
  7509. 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"]
  7510. };
  7511. var faSwatchbook = {
  7512. prefix: 'fas',
  7513. iconName: 'swatchbook',
  7514. icon: [512, 512, [], "f5c3", "M434.66,167.71h0L344.5,77.36a31.83,31.83,0,0,0-45-.07h0l-.07.07L224,152.88V424L434.66,212.9A32,32,0,0,0,434.66,167.71ZM480,320H373.09L186.68,506.51c-2.06,2.07-4.5,3.58-6.68,5.49H480a32,32,0,0,0,32-32V352A32,32,0,0,0,480,320ZM192,32A32,32,0,0,0,160,0H32A32,32,0,0,0,0,32V416a96,96,0,0,0,192,0ZM96,440a24,24,0,1,1,24-24A24,24,0,0,1,96,440Zm32-184H64V192h64Zm0-128H64V64h64Z"]
  7515. };
  7516. var faSwimmer = {
  7517. prefix: 'fas',
  7518. iconName: 'swimmer',
  7519. 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"]
  7520. };
  7521. var faSwimmingPool = {
  7522. prefix: 'fas',
  7523. iconName: 'swimming-pool',
  7524. 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"]
  7525. };
  7526. var faSynagogue = {
  7527. prefix: 'fas',
  7528. iconName: 'synagogue',
  7529. 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"]
  7530. };
  7531. var faSync = {
  7532. prefix: 'fas',
  7533. iconName: 'sync',
  7534. icon: [512, 512, [], "f021", "M440.65 12.57l4 82.77A247.16 247.16 0 0 0 255.83 8C134.73 8 33.91 94.92 12.29 209.82A12 12 0 0 0 24.09 224h49.05a12 12 0 0 0 11.67-9.26 175.91 175.91 0 0 1 317-56.94l-101.46-4.86a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12H500a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12h-47.37a12 12 0 0 0-11.98 12.57zM255.83 432a175.61 175.61 0 0 1-146-77.8l101.8 4.87a12 12 0 0 0 12.57-12v-47.4a12 12 0 0 0-12-12H12a12 12 0 0 0-12 12V500a12 12 0 0 0 12 12h47.35a12 12 0 0 0 12-12.6l-4.15-82.57A247.17 247.17 0 0 0 255.83 504c121.11 0 221.93-86.92 243.55-201.82a12 12 0 0 0-11.8-14.18h-49.05a12 12 0 0 0-11.67 9.26A175.86 175.86 0 0 1 255.83 432z"]
  7535. };
  7536. var faSyncAlt = {
  7537. prefix: 'fas',
  7538. iconName: 'sync-alt',
  7539. 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"]
  7540. };
  7541. var faSyringe = {
  7542. prefix: 'fas',
  7543. iconName: 'syringe',
  7544. 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"]
  7545. };
  7546. var faTable = {
  7547. prefix: 'fas',
  7548. iconName: 'table',
  7549. 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"]
  7550. };
  7551. var faTableTennis = {
  7552. prefix: 'fas',
  7553. iconName: 'table-tennis',
  7554. 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"]
  7555. };
  7556. var faTablet = {
  7557. prefix: 'fas',
  7558. iconName: 'tablet',
  7559. 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"]
  7560. };
  7561. var faTabletAlt = {
  7562. prefix: 'fas',
  7563. iconName: 'tablet-alt',
  7564. 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"]
  7565. };
  7566. var faTablets = {
  7567. prefix: 'fas',
  7568. iconName: 'tablets',
  7569. 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"]
  7570. };
  7571. var faTachometerAlt = {
  7572. prefix: 'fas',
  7573. iconName: 'tachometer-alt',
  7574. 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"]
  7575. };
  7576. var faTag = {
  7577. prefix: 'fas',
  7578. iconName: 'tag',
  7579. 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"]
  7580. };
  7581. var faTags = {
  7582. prefix: 'fas',
  7583. iconName: 'tags',
  7584. 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"]
  7585. };
  7586. var faTape = {
  7587. prefix: 'fas',
  7588. iconName: 'tape',
  7589. 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"]
  7590. };
  7591. var faTasks = {
  7592. prefix: 'fas',
  7593. iconName: 'tasks',
  7594. icon: [512, 512, [], "f0ae", "M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  7595. };
  7596. var faTaxi = {
  7597. prefix: 'fas',
  7598. iconName: 'taxi',
  7599. 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"]
  7600. };
  7601. var faTeeth = {
  7602. prefix: 'fas',
  7603. iconName: 'teeth',
  7604. 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"]
  7605. };
  7606. var faTeethOpen = {
  7607. prefix: 'fas',
  7608. iconName: 'teeth-open',
  7609. 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"]
  7610. };
  7611. var faTemperatureHigh = {
  7612. prefix: 'fas',
  7613. iconName: 'temperature-high',
  7614. icon: [512, 512, [], "f769", "M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-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 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V112c0-8.8-7.2-16-16-16s-16 7.2-16 16v210.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"]
  7615. };
  7616. var faTemperatureLow = {
  7617. prefix: 'fas',
  7618. iconName: 'temperature-low',
  7619. icon: [512, 512, [], "f76b", "M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-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 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V304c0-8.8-7.2-16-16-16s-16 7.2-16 16v18.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"]
  7620. };
  7621. var faTenge = {
  7622. prefix: 'fas',
  7623. iconName: 'tenge',
  7624. icon: [384, 512, [], "f7d7", "M372 160H12c-6.6 0-12 5.4-12 12v56c0 6.6 5.4 12 12 12h140v228c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12V240h140c6.6 0 12-5.4 12-12v-56c0-6.6-5.4-12-12-12zm0-128H12C5.4 32 0 37.4 0 44v56c0 6.6 5.4 12 12 12h360c6.6 0 12-5.4 12-12V44c0-6.6-5.4-12-12-12z"]
  7625. };
  7626. var faTerminal = {
  7627. prefix: 'fas',
  7628. iconName: 'terminal',
  7629. 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"]
  7630. };
  7631. var faTextHeight = {
  7632. prefix: 'fas',
  7633. iconName: 'text-height',
  7634. icon: [576, 512, [], "f034", "M304 32H16A16 16 0 0 0 0 48v96a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32h56v304H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-40V112h56v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm256 336h-48V144h48c14.31 0 21.33-17.31 11.31-27.31l-80-80a16 16 0 0 0-22.62 0l-80 80C379.36 126 384.36 144 400 144h48v224h-48c-14.31 0-21.32 17.31-11.31 27.31l80 80a16 16 0 0 0 22.62 0l80-80C580.64 386 575.64 368 560 368z"]
  7635. };
  7636. var faTextWidth = {
  7637. prefix: 'fas',
  7638. iconName: 'text-width',
  7639. icon: [448, 512, [], "f035", "M432 32H16A16 16 0 0 0 0 48v80a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-16h120v112h-24a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-24V112h120v16a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm-68.69 260.69C354 283.36 336 288.36 336 304v48H112v-48c0-14.31-17.31-21.32-27.31-11.31l-80 80a16 16 0 0 0 0 22.62l80 80C94 484.64 112 479.64 112 464v-48h224v48c0 14.31 17.31 21.33 27.31 11.31l80-80a16 16 0 0 0 0-22.62z"]
  7640. };
  7641. var faTh = {
  7642. prefix: 'fas',
  7643. iconName: 'th',
  7644. 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"]
  7645. };
  7646. var faThLarge = {
  7647. prefix: 'fas',
  7648. iconName: 'th-large',
  7649. 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"]
  7650. };
  7651. var faThList = {
  7652. prefix: 'fas',
  7653. iconName: 'th-list',
  7654. 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"]
  7655. };
  7656. var faTheaterMasks = {
  7657. prefix: 'fas',
  7658. iconName: 'theater-masks',
  7659. 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"]
  7660. };
  7661. var faThermometer = {
  7662. prefix: 'fas',
  7663. iconName: 'thermometer',
  7664. 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"]
  7665. };
  7666. var faThermometerEmpty = {
  7667. prefix: 'fas',
  7668. iconName: 'thermometer-empty',
  7669. 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"]
  7670. };
  7671. var faThermometerFull = {
  7672. prefix: 'fas',
  7673. iconName: 'thermometer-full',
  7674. 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"]
  7675. };
  7676. var faThermometerHalf = {
  7677. prefix: 'fas',
  7678. iconName: 'thermometer-half',
  7679. 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"]
  7680. };
  7681. var faThermometerQuarter = {
  7682. prefix: 'fas',
  7683. iconName: 'thermometer-quarter',
  7684. 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"]
  7685. };
  7686. var faThermometerThreeQuarters = {
  7687. prefix: 'fas',
  7688. iconName: 'thermometer-three-quarters',
  7689. 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"]
  7690. };
  7691. var faThumbsDown = {
  7692. prefix: 'fas',
  7693. iconName: 'thumbs-down',
  7694. 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"]
  7695. };
  7696. var faThumbsUp = {
  7697. prefix: 'fas',
  7698. iconName: 'thumbs-up',
  7699. 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"]
  7700. };
  7701. var faThumbtack = {
  7702. prefix: 'fas',
  7703. iconName: 'thumbtack',
  7704. 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"]
  7705. };
  7706. var faTicketAlt = {
  7707. prefix: 'fas',
  7708. iconName: 'ticket-alt',
  7709. 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"]
  7710. };
  7711. var faTimes = {
  7712. prefix: 'fas',
  7713. iconName: 'times',
  7714. 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"]
  7715. };
  7716. var faTimesCircle = {
  7717. prefix: 'fas',
  7718. iconName: 'times-circle',
  7719. 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"]
  7720. };
  7721. var faTint = {
  7722. prefix: 'fas',
  7723. iconName: 'tint',
  7724. 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"]
  7725. };
  7726. var faTintSlash = {
  7727. prefix: 'fas',
  7728. iconName: 'tint-slash',
  7729. 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"]
  7730. };
  7731. var faTired = {
  7732. prefix: 'fas',
  7733. iconName: 'tired',
  7734. 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"]
  7735. };
  7736. var faToggleOff = {
  7737. prefix: 'fas',
  7738. iconName: 'toggle-off',
  7739. 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"]
  7740. };
  7741. var faToggleOn = {
  7742. prefix: 'fas',
  7743. iconName: 'toggle-on',
  7744. icon: [576, 512, [], "f205", "M384 64H192C86 64 0 150 0 256s86 192 192 192h192c106 0 192-86 192-192S490 64 384 64zm0 320c-70.8 0-128-57.3-128-128 0-70.8 57.3-128 128-128 70.8 0 128 57.3 128 128 0 70.8-57.3 128-128 128z"]
  7745. };
  7746. var faToilet = {
  7747. prefix: 'fas',
  7748. iconName: 'toilet',
  7749. icon: [384, 512, [], "f7d8", "M368 48c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v16c0 8.8 7.2 16 16 16h16v156.7C11.8 214.8 0 226.9 0 240c0 67.2 34.6 126.2 86.8 160.5l-21.4 70.2C59.1 491.2 74.5 512 96 512h192c21.5 0 36.9-20.8 30.6-41.3l-21.4-70.2C349.4 366.2 384 307.2 384 240c0-13.1-11.8-25.2-32-35.3V48h16zM80 72c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V72zm112 200c-77.1 0-139.6-14.3-139.6-32s62.5-32 139.6-32 139.6 14.3 139.6 32-62.5 32-139.6 32z"]
  7750. };
  7751. var faToiletPaper = {
  7752. prefix: 'fas',
  7753. iconName: 'toilet-paper',
  7754. 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"]
  7755. };
  7756. var faToiletPaperSlash = {
  7757. prefix: 'fas',
  7758. iconName: 'toilet-paper-slash',
  7759. icon: [640, 512, [], "f972", "M64,192V364.13c0,41.12-9.75,62.75-31.12,126.87A16,16,0,0,0,48,512H328.86a31.87,31.87,0,0,0,30.38-21.87c9.31-27.83,18-53.35,22.18-85.55l-316-244.25C64.53,170.66,64,181.19,64,192ZM633.82,458.09l-102-78.81C575.28,360.91,608,284.32,608,192,608,86,565,0,512,0s-96,86-96,192c0,42,7,80.4,18.43,112L384,265V192c0-83.62,23.63-153.5,60.5-192H160c-23.33,0-44.63,16.83-61.26,44.53L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09ZM512,256c-17.63,0-32-28.62-32-64s14.37-64,32-64,32,28.63,32,64S529.62,256,512,256Z"]
  7760. };
  7761. var faToolbox = {
  7762. prefix: 'fas',
  7763. iconName: 'toolbox',
  7764. 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"]
  7765. };
  7766. var faTools = {
  7767. prefix: 'fas',
  7768. iconName: 'tools',
  7769. icon: [512, 512, [], "f7d9", "M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]
  7770. };
  7771. var faTooth = {
  7772. prefix: 'fas',
  7773. iconName: 'tooth',
  7774. 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"]
  7775. };
  7776. var faTorah = {
  7777. prefix: 'fas',
  7778. iconName: 'torah',
  7779. icon: [640, 512, [], "f6a0", "M320.05 366.48l17.72-29.64h-35.46zm99.21-166H382.4l18.46 30.82zM48 0C21.49 0 0 14.33 0 32v448c0 17.67 21.49 32 48 32s48-14.33 48-32V32C96 14.33 74.51 0 48 0zm172.74 311.5h36.85l-18.46-30.82zm161.71 0h36.86l-18.45-30.8zM128 464h384V48H128zm66.77-278.13a21.22 21.22 0 0 1 18.48-10.71h59.45l29.13-48.71a21.13 21.13 0 0 1 18.22-10.37A20.76 20.76 0 0 1 338 126.29l29.25 48.86h59.52a21.12 21.12 0 0 1 18.1 32L415.63 256 445 305a20.69 20.69 0 0 1 .24 21.12 21.25 21.25 0 0 1-18.48 10.72h-59.47l-29.13 48.7a21.13 21.13 0 0 1-18.16 10.4 20.79 20.79 0 0 1-18-10.22l-29.25-48.88h-59.5a21.11 21.11 0 0 1-18.1-32L224.36 256 195 207a20.7 20.7 0 0 1-.23-21.13zM592 0c-26.51 0-48 14.33-48 32v448c0 17.67 21.49 32 48 32s48-14.33 48-32V32c0-17.67-21.49-32-48-32zM320 145.53l-17.78 29.62h35.46zm-62.45 55h-36.81l18.44 30.8zm29.58 111h65.79L386.09 256l-33.23-55.52h-65.79L253.9 256z"]
  7780. };
  7781. var faToriiGate = {
  7782. prefix: 'fas',
  7783. iconName: 'torii-gate',
  7784. 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"]
  7785. };
  7786. var faTractor = {
  7787. prefix: 'fas',
  7788. iconName: 'tractor',
  7789. 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"]
  7790. };
  7791. var faTrademark = {
  7792. prefix: 'fas',
  7793. iconName: 'trademark',
  7794. icon: [640, 512, [], "f25c", "M260.6 96H12c-6.6 0-12 5.4-12 12v43.1c0 6.6 5.4 12 12 12h85.1V404c0 6.6 5.4 12 12 12h54.3c6.6 0 12-5.4 12-12V163.1h85.1c6.6 0 12-5.4 12-12V108c.1-6.6-5.3-12-11.9-12zM640 403l-24-296c-.5-6.2-5.7-11-12-11h-65.4c-5.1 0-9.7 3.3-11.3 8.1l-43.8 127.1c-7.2 20.6-16.1 52.8-16.1 52.8h-.9s-8.9-32.2-16.1-52.8l-43.8-127.1c-1.7-4.8-6.2-8.1-11.3-8.1h-65.4c-6.2 0-11.4 4.8-12 11l-24.4 296c-.6 7 4.9 13 12 13H360c6.3 0 11.5-4.9 12-11.2l9.1-132.9c1.8-24.2 0-53.7 0-53.7h.9s10.7 33.6 17.9 53.7l30.7 84.7c1.7 4.7 6.2 7.9 11.3 7.9h50.3c5.1 0 9.6-3.2 11.3-7.9l30.7-84.7c7.2-20.1 17.9-53.7 17.9-53.7h.9s-1.8 29.5 0 53.7l9.1 132.9c.4 6.3 5.7 11.2 12 11.2H628c7 0 12.5-6 12-13z"]
  7795. };
  7796. var faTrafficLight = {
  7797. prefix: 'fas',
  7798. iconName: 'traffic-light',
  7799. 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"]
  7800. };
  7801. var faTrailer = {
  7802. prefix: 'fas',
  7803. iconName: 'trailer',
  7804. icon: [640, 512, [], "f941", "M624,320H544V80a16,16,0,0,0-16-16H16A16,16,0,0,0,0,80V368a16,16,0,0,0,16,16H65.61c7.83-54.21,54-96,110.39-96s102.56,41.79,110.39,96H624a16,16,0,0,0,16-16V336A16,16,0,0,0,624,320ZM96,243.68a176.29,176.29,0,0,0-32,20.71V136a8,8,0,0,1,8-8H88a8,8,0,0,1,8,8Zm96-18.54c-5.31-.49-10.57-1.14-16-1.14s-10.69.65-16,1.14V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm96,39.25a176.29,176.29,0,0,0-32-20.71V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8ZM384,320H352V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm96,0H448V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm-304,0a80,80,0,1,0,80,80A80,80,0,0,0,176,320Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,176,432Z"]
  7805. };
  7806. var faTrain = {
  7807. prefix: 'fas',
  7808. iconName: 'train',
  7809. 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"]
  7810. };
  7811. var faTram = {
  7812. prefix: 'fas',
  7813. iconName: 'tram',
  7814. icon: [512, 512, [], "f7da", "M288 64c17.7 0 32-14.3 32-32S305.7 0 288 0s-32 14.3-32 32 14.3 32 32 32zm223.5-12.1c-2.3-8.6-11-13.6-19.6-11.3l-480 128c-8.5 2.3-13.6 11-11.3 19.6C2.5 195.3 8.9 200 16 200c1.4 0 2.8-.2 4.1-.5L240 140.8V224H64c-17.7 0-32 14.3-32 32v224c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32H272v-91.7l228.1-60.8c8.6-2.3 13.6-11.1 11.4-19.6zM176 384H80v-96h96v96zm160-96h96v96h-96v-96zm-32 0v96h-96v-96h96zM192 96c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"]
  7815. };
  7816. var faTransgender = {
  7817. prefix: 'fas',
  7818. iconName: 'transgender',
  7819. 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"]
  7820. };
  7821. var faTransgenderAlt = {
  7822. prefix: 'fas',
  7823. iconName: 'transgender-alt',
  7824. 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"]
  7825. };
  7826. var faTrash = {
  7827. prefix: 'fas',
  7828. iconName: 'trash',
  7829. icon: [448, 512, [], "f1f8", "M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"]
  7830. };
  7831. var faTrashAlt = {
  7832. prefix: 'fas',
  7833. iconName: 'trash-alt',
  7834. icon: [448, 512, [], "f2ed", "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  7835. };
  7836. var faTrashRestore = {
  7837. prefix: 'fas',
  7838. iconName: 'trash-restore',
  7839. icon: [448, 512, [], "f829", "M53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32zm70.11-175.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  7840. };
  7841. var faTrashRestoreAlt = {
  7842. prefix: 'fas',
  7843. iconName: 'trash-restore-alt',
  7844. icon: [448, 512, [], "f82a", "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm91.31-172.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  7845. };
  7846. var faTree = {
  7847. prefix: 'fas',
  7848. iconName: 'tree',
  7849. 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"]
  7850. };
  7851. var faTrophy = {
  7852. prefix: 'fas',
  7853. iconName: 'trophy',
  7854. 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"]
  7855. };
  7856. var faTruck = {
  7857. prefix: 'fas',
  7858. iconName: 'truck',
  7859. 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"]
  7860. };
  7861. var faTruckLoading = {
  7862. prefix: 'fas',
  7863. iconName: 'truck-loading',
  7864. 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"]
  7865. };
  7866. var faTruckMonster = {
  7867. prefix: 'fas',
  7868. iconName: 'truck-monster',
  7869. 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"]
  7870. };
  7871. var faTruckMoving = {
  7872. prefix: 'fas',
  7873. iconName: 'truck-moving',
  7874. 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"]
  7875. };
  7876. var faTruckPickup = {
  7877. prefix: 'fas',
  7878. iconName: 'truck-pickup',
  7879. 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"]
  7880. };
  7881. var faTshirt = {
  7882. prefix: 'fas',
  7883. iconName: 'tshirt',
  7884. 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"]
  7885. };
  7886. var faTty = {
  7887. prefix: 'fas',
  7888. iconName: 'tty',
  7889. 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"]
  7890. };
  7891. var faTv = {
  7892. prefix: 'fas',
  7893. iconName: 'tv',
  7894. icon: [640, 512, [], "f26c", "M592 0H48A48 48 0 0 0 0 48v320a48 48 0 0 0 48 48h240v32H112a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H352v-32h240a48 48 0 0 0 48-48V48a48 48 0 0 0-48-48zm-16 352H64V64h512z"]
  7895. };
  7896. var faUmbrella = {
  7897. prefix: 'fas',
  7898. iconName: 'umbrella',
  7899. icon: [576, 512, [], "f0e9", "M575.7 280.8C547.1 144.5 437.3 62.6 320 49.9V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v17.9C138.3 62.6 29.5 144.5.3 280.8c-2.2 10.1 8.5 21.3 18.7 11.4 52-55 107.7-52.4 158.6 37 5.3 9.5 14.9 8.6 19.7 0 20.2-35.4 44.9-73.2 90.7-73.2 58.5 0 88.2 68.8 90.7 73.2 4.8 8.6 14.4 9.5 19.7 0 51-89.5 107.1-91.4 158.6-37 10.3 10 20.9-1.3 18.7-11.4zM256 301.7V432c0 8.8-7.2 16-16 16-7.8 0-13.2-5.3-15.1-10.7-5.9-16.7-24.1-25.4-40.8-19.5-16.7 5.9-25.4 24.2-19.5 40.8 11.2 31.9 41.6 53.3 75.4 53.3 44.1 0 80-35.9 80-80V301.6c-9.1-7.9-19.8-13.6-32-13.6-12.3.1-22.4 4.8-32 13.7z"]
  7900. };
  7901. var faUmbrellaBeach = {
  7902. prefix: 'fas',
  7903. iconName: 'umbrella-beach',
  7904. 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"]
  7905. };
  7906. var faUnderline = {
  7907. prefix: 'fas',
  7908. iconName: 'underline',
  7909. icon: [448, 512, [], "f0cd", "M32 64h32v160c0 88.22 71.78 160 160 160s160-71.78 160-160V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H272a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32v160a80 80 0 0 1-160 0V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm400 384H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  7910. };
  7911. var faUndo = {
  7912. prefix: 'fas',
  7913. iconName: 'undo',
  7914. 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"]
  7915. };
  7916. var faUndoAlt = {
  7917. prefix: 'fas',
  7918. iconName: 'undo-alt',
  7919. 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"]
  7920. };
  7921. var faUniversalAccess = {
  7922. prefix: 'fas',
  7923. iconName: 'universal-access',
  7924. 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"]
  7925. };
  7926. var faUniversity = {
  7927. prefix: 'fas',
  7928. iconName: 'university',
  7929. 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"]
  7930. };
  7931. var faUnlink = {
  7932. prefix: 'fas',
  7933. iconName: 'unlink',
  7934. 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"]
  7935. };
  7936. var faUnlock = {
  7937. prefix: 'fas',
  7938. iconName: 'unlock',
  7939. 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"]
  7940. };
  7941. var faUnlockAlt = {
  7942. prefix: 'fas',
  7943. iconName: 'unlock-alt',
  7944. 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"]
  7945. };
  7946. var faUpload = {
  7947. prefix: 'fas',
  7948. iconName: 'upload',
  7949. 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"]
  7950. };
  7951. var faUser = {
  7952. prefix: 'fas',
  7953. iconName: 'user',
  7954. 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"]
  7955. };
  7956. var faUserAlt = {
  7957. prefix: 'fas',
  7958. iconName: 'user-alt',
  7959. 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"]
  7960. };
  7961. var faUserAltSlash = {
  7962. prefix: 'fas',
  7963. iconName: 'user-alt-slash',
  7964. 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"]
  7965. };
  7966. var faUserAstronaut = {
  7967. prefix: 'fas',
  7968. iconName: 'user-astronaut',
  7969. 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"]
  7970. };
  7971. var faUserCheck = {
  7972. prefix: 'fas',
  7973. iconName: 'user-check',
  7974. 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"]
  7975. };
  7976. var faUserCircle = {
  7977. prefix: 'fas',
  7978. iconName: 'user-circle',
  7979. 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"]
  7980. };
  7981. var faUserClock = {
  7982. prefix: 'fas',
  7983. iconName: 'user-clock',
  7984. 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"]
  7985. };
  7986. var faUserCog = {
  7987. prefix: 'fas',
  7988. iconName: 'user-cog',
  7989. 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"]
  7990. };
  7991. var faUserEdit = {
  7992. prefix: 'fas',
  7993. iconName: 'user-edit',
  7994. 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"]
  7995. };
  7996. var faUserFriends = {
  7997. prefix: 'fas',
  7998. iconName: 'user-friends',
  7999. 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"]
  8000. };
  8001. var faUserGraduate = {
  8002. prefix: 'fas',
  8003. iconName: 'user-graduate',
  8004. 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"]
  8005. };
  8006. var faUserInjured = {
  8007. prefix: 'fas',
  8008. iconName: 'user-injured',
  8009. 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"]
  8010. };
  8011. var faUserLock = {
  8012. prefix: 'fas',
  8013. iconName: 'user-lock',
  8014. icon: [640, 512, [], "f502", "M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]
  8015. };
  8016. var faUserMd = {
  8017. prefix: 'fas',
  8018. iconName: 'user-md',
  8019. 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"]
  8020. };
  8021. var faUserMinus = {
  8022. prefix: 'fas',
  8023. iconName: 'user-minus',
  8024. 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"]
  8025. };
  8026. var faUserNinja = {
  8027. prefix: 'fas',
  8028. iconName: 'user-ninja',
  8029. 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"]
  8030. };
  8031. var faUserNurse = {
  8032. prefix: 'fas',
  8033. iconName: 'user-nurse',
  8034. icon: [448, 512, [], "f82f", "M319.41,320,224,415.39,128.59,320C57.1,323.1,0,381.6,0,453.79A58.21,58.21,0,0,0,58.21,512H389.79A58.21,58.21,0,0,0,448,453.79C448,381.6,390.9,323.1,319.41,320ZM224,304A128,128,0,0,0,352,176V65.82a32,32,0,0,0-20.76-30L246.47,4.07a64,64,0,0,0-44.94,0L116.76,35.86A32,32,0,0,0,96,65.82V176A128,128,0,0,0,224,304ZM184,71.67a5,5,0,0,1,5-5h21.67V45a5,5,0,0,1,5-5h16.66a5,5,0,0,1,5,5V66.67H259a5,5,0,0,1,5,5V88.33a5,5,0,0,1-5,5H237.33V115a5,5,0,0,1-5,5H215.67a5,5,0,0,1-5-5V93.33H189a5,5,0,0,1-5-5ZM144,160H304v16a80,80,0,0,1-160,0Z"]
  8035. };
  8036. var faUserPlus = {
  8037. prefix: 'fas',
  8038. iconName: 'user-plus',
  8039. 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"]
  8040. };
  8041. var faUserSecret = {
  8042. prefix: 'fas',
  8043. iconName: 'user-secret',
  8044. 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"]
  8045. };
  8046. var faUserShield = {
  8047. prefix: 'fas',
  8048. iconName: 'user-shield',
  8049. 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"]
  8050. };
  8051. var faUserSlash = {
  8052. prefix: 'fas',
  8053. iconName: 'user-slash',
  8054. 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"]
  8055. };
  8056. var faUserTag = {
  8057. prefix: 'fas',
  8058. iconName: 'user-tag',
  8059. 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"]
  8060. };
  8061. var faUserTie = {
  8062. prefix: 'fas',
  8063. iconName: 'user-tie',
  8064. 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"]
  8065. };
  8066. var faUserTimes = {
  8067. prefix: 'fas',
  8068. iconName: 'user-times',
  8069. 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"]
  8070. };
  8071. var faUsers = {
  8072. prefix: 'fas',
  8073. iconName: 'users',
  8074. 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"]
  8075. };
  8076. var faUsersCog = {
  8077. prefix: 'fas',
  8078. iconName: 'users-cog',
  8079. 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"]
  8080. };
  8081. var faUsersSlash = {
  8082. prefix: 'fas',
  8083. iconName: 'users-slash',
  8084. icon: [640, 512, [], "f973", "M132.65,212.32,36.21,137.78A63.4,63.4,0,0,0,32,160a63.84,63.84,0,0,0,100.65,52.32Zm40.44,62.28A63.79,63.79,0,0,0,128,256H64A64.06,64.06,0,0,0,0,320v32a32,32,0,0,0,32,32H97.91A146.62,146.62,0,0,1,173.09,274.6ZM544,224a64,64,0,1,0-64-64A64.06,64.06,0,0,0,544,224ZM500.56,355.11a114.24,114.24,0,0,0-84.47-65.28L361,247.23c41.46-16.3,71-55.92,71-103.23A111.93,111.93,0,0,0,320,32c-57.14,0-103.69,42.83-110.6,98.08L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45ZM128,403.21V432a48,48,0,0,0,48,48H464a47.45,47.45,0,0,0,12.57-1.87L232,289.13C173.74,294.83,128,343.42,128,403.21ZM576,256H512a63.79,63.79,0,0,0-45.09,18.6A146.29,146.29,0,0,1,542,384h66a32,32,0,0,0,32-32V320A64.06,64.06,0,0,0,576,256Z"]
  8085. };
  8086. var faUtensilSpoon = {
  8087. prefix: 'fas',
  8088. iconName: 'utensil-spoon',
  8089. 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"]
  8090. };
  8091. var faUtensils = {
  8092. prefix: 'fas',
  8093. iconName: 'utensils',
  8094. 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"]
  8095. };
  8096. var faVectorSquare = {
  8097. prefix: 'fas',
  8098. iconName: 'vector-square',
  8099. 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"]
  8100. };
  8101. var faVenus = {
  8102. prefix: 'fas',
  8103. iconName: 'venus',
  8104. 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"]
  8105. };
  8106. var faVenusDouble = {
  8107. prefix: 'fas',
  8108. iconName: 'venus-double',
  8109. 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"]
  8110. };
  8111. var faVenusMars = {
  8112. prefix: 'fas',
  8113. iconName: 'venus-mars',
  8114. 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"]
  8115. };
  8116. var faVial = {
  8117. prefix: 'fas',
  8118. iconName: 'vial',
  8119. 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"]
  8120. };
  8121. var faVials = {
  8122. prefix: 'fas',
  8123. iconName: 'vials',
  8124. 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"]
  8125. };
  8126. var faVideo = {
  8127. prefix: 'fas',
  8128. iconName: 'video',
  8129. 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"]
  8130. };
  8131. var faVideoSlash = {
  8132. prefix: 'fas',
  8133. iconName: 'video-slash',
  8134. 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"]
  8135. };
  8136. var faVihara = {
  8137. prefix: 'fas',
  8138. iconName: 'vihara',
  8139. 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"]
  8140. };
  8141. var faVirus = {
  8142. prefix: 'fas',
  8143. iconName: 'virus',
  8144. icon: [512, 512, [], "f974", "M483.55,227.55H462c-50.68,0-76.07-61.27-40.23-97.11L437,115.19A28.44,28.44,0,0,0,396.8,75L381.56,90.22c-35.84,35.83-97.11,10.45-97.11-40.23V28.44a28.45,28.45,0,0,0-56.9,0V50c0,50.68-61.27,76.06-97.11,40.23L115.2,75A28.44,28.44,0,0,0,75,115.19l15.25,15.25c35.84,35.84,10.45,97.11-40.23,97.11H28.45a28.45,28.45,0,1,0,0,56.89H50c50.68,0,76.07,61.28,40.23,97.12L75,396.8A28.45,28.45,0,0,0,115.2,437l15.24-15.25c35.84-35.84,97.11-10.45,97.11,40.23v21.54a28.45,28.45,0,0,0,56.9,0V462c0-50.68,61.27-76.07,97.11-40.23L396.8,437A28.45,28.45,0,0,0,437,396.8l-15.25-15.24c-35.84-35.84-10.45-97.12,40.23-97.12h21.54a28.45,28.45,0,1,0,0-56.89ZM224,272a48,48,0,1,1,48-48A48,48,0,0,1,224,272Zm80,56a24,24,0,1,1,24-24A24,24,0,0,1,304,328Z"]
  8145. };
  8146. var faVirusSlash = {
  8147. prefix: 'fas',
  8148. iconName: 'virus-slash',
  8149. icon: [640, 512, [], "f975", "M114,227.56H92.44a28.44,28.44,0,0,0,0,56.88H114c50.68,0,76.06,61.28,40.23,97.12L139,396.81A28.44,28.44,0,1,0,179.19,437l15.25-15.25c35.84-35.84,97.11-10.45,97.11,40.23v21.54a28.45,28.45,0,0,0,56.9,0V462c0-26.61,17-45.91,38.22-53.37l-244.5-189A55.58,55.58,0,0,1,114,227.56ZM633.82,458.09,470.62,332c4.17-25.39,24.91-47.52,55.39-47.52h21.55a28.44,28.44,0,1,0,0-56.88H526c-50.68,0-76.06-61.28-40.23-97.12L501,115.19A28.44,28.44,0,0,0,460.81,75L445.56,90.22c-35.84,35.84-97.11,10.46-97.11-40.23V28.45a28.45,28.45,0,0,0-56.9,0V50c0,50.69-61.27,76.07-97.11,40.23L179.19,75A28.43,28.43,0,0,0,139,75c-.13.14-.15.32-.28.46L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09ZM335.43,227.48l-62.87-48.59A46.55,46.55,0,0,1,288,176a48,48,0,0,1,48,48C336,225.22,335.52,226.29,335.43,227.48Z"]
  8150. };
  8151. var faViruses = {
  8152. prefix: 'fas',
  8153. iconName: 'viruses',
  8154. icon: [640, 512, [], "f976", "M624,352H611.88c-28.51,0-42.79-34.47-22.63-54.63l8.58-8.57a16,16,0,1,0-22.63-22.63l-8.57,8.58C546.47,294.91,512,280.63,512,252.12V240a16,16,0,0,0-32,0v12.12c0,28.51-34.47,42.79-54.63,22.63l-8.57-8.58a16,16,0,0,0-22.63,22.63l8.58,8.57c20.16,20.16,5.88,54.63-22.63,54.63H368a16,16,0,0,0,0,32h12.12c28.51,0,42.79,34.47,22.63,54.63l-8.58,8.57a16,16,0,1,0,22.63,22.63l8.57-8.58c20.16-20.16,54.63-5.88,54.63,22.63V496a16,16,0,0,0,32,0V483.88c0-28.51,34.47-42.79,54.63-22.63l8.57,8.58a16,16,0,1,0,22.63-22.63l-8.58-8.57C569.09,418.47,583.37,384,611.88,384H624a16,16,0,0,0,0-32ZM480,384a32,32,0,1,1,32-32A32,32,0,0,1,480,384ZM346.51,213.33h16.16a21.33,21.33,0,0,0,0-42.66H346.51c-38,0-57.05-46-30.17-72.84l11.43-11.44A21.33,21.33,0,0,0,297.6,56.23L286.17,67.66c-26.88,26.88-72.84,7.85-72.84-30.17V21.33a21.33,21.33,0,0,0-42.66,0V37.49c0,38-46,57.05-72.84,30.17L86.4,56.23A21.33,21.33,0,0,0,56.23,86.39L67.66,97.83c26.88,26.88,7.85,72.84-30.17,72.84H21.33a21.33,21.33,0,0,0,0,42.66H37.49c38,0,57.05,46,30.17,72.84L56.23,297.6A21.33,21.33,0,1,0,86.4,327.77l11.43-11.43c26.88-26.88,72.84-7.85,72.84,30.17v16.16a21.33,21.33,0,0,0,42.66,0V346.51c0-38,46-57.05,72.84-30.17l11.43,11.43a21.33,21.33,0,0,0,30.17-30.17l-11.43-11.43C289.46,259.29,308.49,213.33,346.51,213.33ZM160,192a32,32,0,1,1,32-32A32,32,0,0,1,160,192Zm80,32a16,16,0,1,1,16-16A16,16,0,0,1,240,224Z"]
  8155. };
  8156. var faVoicemail = {
  8157. prefix: 'fas',
  8158. iconName: 'voicemail',
  8159. icon: [640, 512, [], "f897", "M496 128a144 144 0 0 0-119.74 224H263.74A144 144 0 1 0 144 416h352a144 144 0 0 0 0-288zM64 272a80 80 0 1 1 80 80 80 80 0 0 1-80-80zm432 80a80 80 0 1 1 80-80 80 80 0 0 1-80 80z"]
  8160. };
  8161. var faVolleyballBall = {
  8162. prefix: 'fas',
  8163. iconName: 'volleyball-ball',
  8164. icon: [512, 512, [], "f45f", "M231.39 243.48a285.56 285.56 0 0 0-22.7-105.7c-90.8 42.4-157.5 122.4-180.3 216.8a249 249 0 0 0 56.9 81.1 333.87 333.87 0 0 1 146.1-192.2zm-36.9-134.4a284.23 284.23 0 0 0-57.4-70.7c-91 49.8-144.8 152.9-125 262.2 33.4-83.1 98.4-152 182.4-191.5zm187.6 165.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5A333.87 333.87 0 0 1 279.19 241a285 285 0 0 0 102.9 33.18zm-124.7 9.5a286.33 286.33 0 0 0-80.2 72.6c82 57.3 184.5 75.1 277.5 47.8a247.15 247.15 0 0 0 42.2-89.9 336.1 336.1 0 0 1-80.9 10.4c-54.6-.1-108.9-14.1-158.6-40.9zm-98.3 99.7c-15.2 26-25.7 54.4-32.1 84.2a247.07 247.07 0 0 0 289-22.1c-112.9 16.1-203.3-24.8-256.9-62.1zm180.3-360.6c55.3 70.4 82.5 161.2 74.6 253.6a286.59 286.59 0 0 0 89.7-14.2c0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"]
  8165. };
  8166. var faVolumeDown = {
  8167. prefix: 'fas',
  8168. iconName: 'volume-down',
  8169. 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"]
  8170. };
  8171. var faVolumeMute = {
  8172. prefix: 'fas',
  8173. iconName: 'volume-mute',
  8174. 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"]
  8175. };
  8176. var faVolumeOff = {
  8177. prefix: 'fas',
  8178. iconName: 'volume-off',
  8179. icon: [256, 512, [], "f026", "M215 71l-89 89H24a24 24 0 0 0-24 24v144a24 24 0 0 0 24 24h102.06L215 441c15 15 41 4.47 41-17V88c0-21.47-26-32-41-17z"]
  8180. };
  8181. var faVolumeUp = {
  8182. prefix: 'fas',
  8183. iconName: 'volume-up',
  8184. 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"]
  8185. };
  8186. var faVoteYea = {
  8187. prefix: 'fas',
  8188. iconName: 'vote-yea',
  8189. icon: [640, 512, [], "f772", "M608 320h-64v64h22.4c5.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-8H96v-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h576c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32zm-96 64V64.3c0-17.9-14.5-32.3-32.3-32.3H160.4C142.5 32 128 46.5 128 64.3V384h384zM211.2 202l25.5-25.3c4.2-4.2 11-4.2 15.2.1l41.3 41.6 95.2-94.4c4.2-4.2 11-4.2 15.2.1l25.3 25.5c4.2 4.2 4.2 11-.1 15.2L300.5 292c-4.2 4.2-11 4.2-15.2-.1l-74.1-74.7c-4.3-4.2-4.2-11 0-15.2z"]
  8190. };
  8191. var faVrCardboard = {
  8192. prefix: 'fas',
  8193. iconName: 'vr-cardboard',
  8194. 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"]
  8195. };
  8196. var faWalking = {
  8197. prefix: 'fas',
  8198. iconName: 'walking',
  8199. 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"]
  8200. };
  8201. var faWallet = {
  8202. prefix: 'fas',
  8203. iconName: 'wallet',
  8204. 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"]
  8205. };
  8206. var faWarehouse = {
  8207. prefix: 'fas',
  8208. iconName: 'warehouse',
  8209. 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"]
  8210. };
  8211. var faWater = {
  8212. prefix: 'fas',
  8213. iconName: 'water',
  8214. icon: [576, 512, [], "f773", "M562.1 383.9c-21.5-2.4-42.1-10.5-57.9-22.9-14.1-11.1-34.2-11.3-48.2 0-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3zm0-144c-21.5-2.4-42.1-10.5-57.9-22.9-14.1-11.1-34.2-11.3-48.2 0-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3zm0-144C540.6 93.4 520 85.4 504.2 73 490.1 61.9 470 61.7 456 73c-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3z"]
  8215. };
  8216. var faWaveSquare = {
  8217. prefix: 'fas',
  8218. iconName: 'wave-square',
  8219. icon: [640, 512, [], "f83e", "M476 480H324a36 36 0 0 1-36-36V96h-96v156a36 36 0 0 1-36 36H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h112V68a36 36 0 0 1 36-36h152a36 36 0 0 1 36 36v348h96V260a36 36 0 0 1 36-36h140a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H512v156a36 36 0 0 1-36 36z"]
  8220. };
  8221. var faWeight = {
  8222. prefix: 'fas',
  8223. iconName: 'weight',
  8224. 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"]
  8225. };
  8226. var faWeightHanging = {
  8227. prefix: 'fas',
  8228. iconName: 'weight-hanging',
  8229. 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"]
  8230. };
  8231. var faWheelchair = {
  8232. prefix: 'fas',
  8233. iconName: 'wheelchair',
  8234. 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"]
  8235. };
  8236. var faWifi = {
  8237. prefix: 'fas',
  8238. iconName: 'wifi',
  8239. 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"]
  8240. };
  8241. var faWind = {
  8242. prefix: 'fas',
  8243. iconName: 'wind',
  8244. icon: [512, 512, [], "f72e", "M156.7 256H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h142.2c15.9 0 30.8 10.9 33.4 26.6 3.3 20-12.1 37.4-31.6 37.4-14.1 0-26.1-9.2-30.4-21.9-2.1-6.3-8.6-10.1-15.2-10.1H81.6c-9.8 0-17.7 8.8-15.9 18.4 8.6 44.1 47.6 77.6 94.2 77.6 57.1 0 102.7-50.1 95.2-108.6C249 291 205.4 256 156.7 256zM16 224h336c59.7 0 106.8-54.8 93.8-116.7-7.6-36.2-36.9-65.5-73.1-73.1-55.4-11.6-105.1 24.9-114.9 75.5-1.9 9.6 6.1 18.3 15.8 18.3h32.8c6.7 0 13.1-3.8 15.2-10.1C325.9 105.2 337.9 96 352 96c19.4 0 34.9 17.4 31.6 37.4-2.6 15.7-17.4 26.6-33.4 26.6H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm384 32H243.7c19.3 16.6 33.2 38.8 39.8 64H400c26.5 0 48 21.5 48 48s-21.5 48-48 48c-17.9 0-33.3-9.9-41.6-24.4-2.9-5-8.7-7.6-14.5-7.6h-33.8c-10.9 0-19 10.8-15.3 21.1 17.8 50.6 70.5 84.8 129.4 72.3 41.2-8.7 75.1-41.6 84.7-82.7C526 321.5 470.5 256 400 256z"]
  8245. };
  8246. var faWindowClose = {
  8247. prefix: 'fas',
  8248. iconName: 'window-close',
  8249. 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"]
  8250. };
  8251. var faWindowMaximize = {
  8252. prefix: 'fas',
  8253. iconName: 'window-maximize',
  8254. 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"]
  8255. };
  8256. var faWindowMinimize = {
  8257. prefix: 'fas',
  8258. iconName: 'window-minimize',
  8259. 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"]
  8260. };
  8261. var faWindowRestore = {
  8262. prefix: 'fas',
  8263. iconName: 'window-restore',
  8264. 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"]
  8265. };
  8266. var faWineBottle = {
  8267. prefix: 'fas',
  8268. iconName: 'wine-bottle',
  8269. 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"]
  8270. };
  8271. var faWineGlass = {
  8272. prefix: 'fas',
  8273. iconName: 'wine-glass',
  8274. 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"]
  8275. };
  8276. var faWineGlassAlt = {
  8277. prefix: 'fas',
  8278. iconName: 'wine-glass-alt',
  8279. 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"]
  8280. };
  8281. var faWonSign = {
  8282. prefix: 'fas',
  8283. iconName: 'won-sign',
  8284. icon: [576, 512, [], "f159", "M564 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-48l18.6-80.6c1.7-7.5-4-14.7-11.7-14.7h-46.1c-5.7 0-10.6 4-11.7 9.5L450.7 128H340.8l-19.7-86c-1.3-5.5-6.1-9.3-11.7-9.3h-44c-5.6 0-10.4 3.8-11.7 9.3l-20 86H125l-17.5-85.7c-1.1-5.6-6.1-9.6-11.8-9.6H53.6c-7.7 0-13.4 7.1-11.7 14.6L60 128H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h62.3l7.2 32H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h83.9l40.9 182.6c1.2 5.5 6.1 9.4 11.7 9.4h56.8c5.6 0 10.4-3.9 11.7-9.3L259.3 288h55.1l42.4 182.7c1.3 5.4 6.1 9.3 11.7 9.3h56.8c5.6 0 10.4-3.9 11.7-9.3L479.1 288H564c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-70.1l7.4-32zM183.8 342c-6.2 25.8-6.8 47.2-7.3 47.2h-1.1s-1.7-22-6.8-47.2l-11-54h38.8zm27.5-118h-66.8l-6.5-32h80.8zm62.9 0l2-8.6c1.9-8 3.5-16 4.8-23.4h11.8c1.3 7.4 2.9 15.4 4.8 23.4l2 8.6zm130.9 118c-5.1 25.2-6.8 47.2-6.8 47.2h-1.1c-.6 0-1.1-21.4-7.3-47.2l-12.4-54h39.1zm25.2-118h-67.4l-7.3-32h81.6z"]
  8285. };
  8286. var faWrench = {
  8287. prefix: 'fas',
  8288. iconName: 'wrench',
  8289. 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"]
  8290. };
  8291. var faXRay = {
  8292. prefix: 'fas',
  8293. iconName: 'x-ray',
  8294. 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"]
  8295. };
  8296. var faYenSign = {
  8297. prefix: 'fas',
  8298. iconName: 'yen-sign',
  8299. icon: [384, 512, [], "f157", "M351.2 32h-65.3c-4.6 0-8.8 2.6-10.8 6.7l-55.4 113.2c-14.5 34.7-27.1 71.9-27.1 71.9h-1.3s-12.6-37.2-27.1-71.9L108.8 38.7c-2-4.1-6.2-6.7-10.8-6.7H32.8c-9.1 0-14.8 9.7-10.6 17.6L102.3 200H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h88.2l19.8 37.2V320H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h108v92c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12v-92h108c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12H232v-26.8l19.8-37.2H340c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12h-58.3l80.1-150.4c4.3-7.9-1.5-17.6-10.6-17.6z"]
  8300. };
  8301. var faYinYang = {
  8302. prefix: 'fas',
  8303. iconName: 'yin-yang',
  8304. 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"]
  8305. };
  8306. var _iconsCache = {
  8307. faAd: faAd,
  8308. faAddressBook: faAddressBook,
  8309. faAddressCard: faAddressCard,
  8310. faAdjust: faAdjust,
  8311. faAirFreshener: faAirFreshener,
  8312. faAlignCenter: faAlignCenter,
  8313. faAlignJustify: faAlignJustify,
  8314. faAlignLeft: faAlignLeft,
  8315. faAlignRight: faAlignRight,
  8316. faAllergies: faAllergies,
  8317. faAmbulance: faAmbulance,
  8318. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  8319. faAnchor: faAnchor,
  8320. faAngleDoubleDown: faAngleDoubleDown,
  8321. faAngleDoubleLeft: faAngleDoubleLeft,
  8322. faAngleDoubleRight: faAngleDoubleRight,
  8323. faAngleDoubleUp: faAngleDoubleUp,
  8324. faAngleDown: faAngleDown,
  8325. faAngleLeft: faAngleLeft,
  8326. faAngleRight: faAngleRight,
  8327. faAngleUp: faAngleUp,
  8328. faAngry: faAngry,
  8329. faAnkh: faAnkh,
  8330. faAppleAlt: faAppleAlt,
  8331. faArchive: faArchive,
  8332. faArchway: faArchway,
  8333. faArrowAltCircleDown: faArrowAltCircleDown,
  8334. faArrowAltCircleLeft: faArrowAltCircleLeft,
  8335. faArrowAltCircleRight: faArrowAltCircleRight,
  8336. faArrowAltCircleUp: faArrowAltCircleUp,
  8337. faArrowCircleDown: faArrowCircleDown,
  8338. faArrowCircleLeft: faArrowCircleLeft,
  8339. faArrowCircleRight: faArrowCircleRight,
  8340. faArrowCircleUp: faArrowCircleUp,
  8341. faArrowDown: faArrowDown,
  8342. faArrowLeft: faArrowLeft,
  8343. faArrowRight: faArrowRight,
  8344. faArrowUp: faArrowUp,
  8345. faArrowsAlt: faArrowsAlt,
  8346. faArrowsAltH: faArrowsAltH,
  8347. faArrowsAltV: faArrowsAltV,
  8348. faAssistiveListeningSystems: faAssistiveListeningSystems,
  8349. faAsterisk: faAsterisk,
  8350. faAt: faAt,
  8351. faAtlas: faAtlas,
  8352. faAtom: faAtom,
  8353. faAudioDescription: faAudioDescription,
  8354. faAward: faAward,
  8355. faBaby: faBaby,
  8356. faBabyCarriage: faBabyCarriage,
  8357. faBackspace: faBackspace,
  8358. faBackward: faBackward,
  8359. faBacon: faBacon,
  8360. faBacteria: faBacteria,
  8361. faBacterium: faBacterium,
  8362. faBahai: faBahai,
  8363. faBalanceScale: faBalanceScale,
  8364. faBalanceScaleLeft: faBalanceScaleLeft,
  8365. faBalanceScaleRight: faBalanceScaleRight,
  8366. faBan: faBan,
  8367. faBandAid: faBandAid,
  8368. faBarcode: faBarcode,
  8369. faBars: faBars,
  8370. faBaseballBall: faBaseballBall,
  8371. faBasketballBall: faBasketballBall,
  8372. faBath: faBath,
  8373. faBatteryEmpty: faBatteryEmpty,
  8374. faBatteryFull: faBatteryFull,
  8375. faBatteryHalf: faBatteryHalf,
  8376. faBatteryQuarter: faBatteryQuarter,
  8377. faBatteryThreeQuarters: faBatteryThreeQuarters,
  8378. faBed: faBed,
  8379. faBeer: faBeer,
  8380. faBell: faBell,
  8381. faBellSlash: faBellSlash,
  8382. faBezierCurve: faBezierCurve,
  8383. faBible: faBible,
  8384. faBicycle: faBicycle,
  8385. faBiking: faBiking,
  8386. faBinoculars: faBinoculars,
  8387. faBiohazard: faBiohazard,
  8388. faBirthdayCake: faBirthdayCake,
  8389. faBlender: faBlender,
  8390. faBlenderPhone: faBlenderPhone,
  8391. faBlind: faBlind,
  8392. faBlog: faBlog,
  8393. faBold: faBold,
  8394. faBolt: faBolt,
  8395. faBomb: faBomb,
  8396. faBone: faBone,
  8397. faBong: faBong,
  8398. faBook: faBook,
  8399. faBookDead: faBookDead,
  8400. faBookMedical: faBookMedical,
  8401. faBookOpen: faBookOpen,
  8402. faBookReader: faBookReader,
  8403. faBookmark: faBookmark,
  8404. faBorderAll: faBorderAll,
  8405. faBorderNone: faBorderNone,
  8406. faBorderStyle: faBorderStyle,
  8407. faBowlingBall: faBowlingBall,
  8408. faBox: faBox,
  8409. faBoxOpen: faBoxOpen,
  8410. faBoxTissue: faBoxTissue,
  8411. faBoxes: faBoxes,
  8412. faBraille: faBraille,
  8413. faBrain: faBrain,
  8414. faBreadSlice: faBreadSlice,
  8415. faBriefcase: faBriefcase,
  8416. faBriefcaseMedical: faBriefcaseMedical,
  8417. faBroadcastTower: faBroadcastTower,
  8418. faBroom: faBroom,
  8419. faBrush: faBrush,
  8420. faBug: faBug,
  8421. faBuilding: faBuilding,
  8422. faBullhorn: faBullhorn,
  8423. faBullseye: faBullseye,
  8424. faBurn: faBurn,
  8425. faBus: faBus,
  8426. faBusAlt: faBusAlt,
  8427. faBusinessTime: faBusinessTime,
  8428. faCalculator: faCalculator,
  8429. faCalendar: faCalendar,
  8430. faCalendarAlt: faCalendarAlt,
  8431. faCalendarCheck: faCalendarCheck,
  8432. faCalendarDay: faCalendarDay,
  8433. faCalendarMinus: faCalendarMinus,
  8434. faCalendarPlus: faCalendarPlus,
  8435. faCalendarTimes: faCalendarTimes,
  8436. faCalendarWeek: faCalendarWeek,
  8437. faCamera: faCamera,
  8438. faCameraRetro: faCameraRetro,
  8439. faCampground: faCampground,
  8440. faCandyCane: faCandyCane,
  8441. faCannabis: faCannabis,
  8442. faCapsules: faCapsules,
  8443. faCar: faCar,
  8444. faCarAlt: faCarAlt,
  8445. faCarBattery: faCarBattery,
  8446. faCarCrash: faCarCrash,
  8447. faCarSide: faCarSide,
  8448. faCaravan: faCaravan,
  8449. faCaretDown: faCaretDown,
  8450. faCaretLeft: faCaretLeft,
  8451. faCaretRight: faCaretRight,
  8452. faCaretSquareDown: faCaretSquareDown,
  8453. faCaretSquareLeft: faCaretSquareLeft,
  8454. faCaretSquareRight: faCaretSquareRight,
  8455. faCaretSquareUp: faCaretSquareUp,
  8456. faCaretUp: faCaretUp,
  8457. faCarrot: faCarrot,
  8458. faCartArrowDown: faCartArrowDown,
  8459. faCartPlus: faCartPlus,
  8460. faCashRegister: faCashRegister,
  8461. faCat: faCat,
  8462. faCertificate: faCertificate,
  8463. faChair: faChair,
  8464. faChalkboard: faChalkboard,
  8465. faChalkboardTeacher: faChalkboardTeacher,
  8466. faChargingStation: faChargingStation,
  8467. faChartArea: faChartArea,
  8468. faChartBar: faChartBar,
  8469. faChartLine: faChartLine,
  8470. faChartPie: faChartPie,
  8471. faCheck: faCheck,
  8472. faCheckCircle: faCheckCircle,
  8473. faCheckDouble: faCheckDouble,
  8474. faCheckSquare: faCheckSquare,
  8475. faCheese: faCheese,
  8476. faChess: faChess,
  8477. faChessBishop: faChessBishop,
  8478. faChessBoard: faChessBoard,
  8479. faChessKing: faChessKing,
  8480. faChessKnight: faChessKnight,
  8481. faChessPawn: faChessPawn,
  8482. faChessQueen: faChessQueen,
  8483. faChessRook: faChessRook,
  8484. faChevronCircleDown: faChevronCircleDown,
  8485. faChevronCircleLeft: faChevronCircleLeft,
  8486. faChevronCircleRight: faChevronCircleRight,
  8487. faChevronCircleUp: faChevronCircleUp,
  8488. faChevronDown: faChevronDown,
  8489. faChevronLeft: faChevronLeft,
  8490. faChevronRight: faChevronRight,
  8491. faChevronUp: faChevronUp,
  8492. faChild: faChild,
  8493. faChurch: faChurch,
  8494. faCircle: faCircle,
  8495. faCircleNotch: faCircleNotch,
  8496. faCity: faCity,
  8497. faClinicMedical: faClinicMedical,
  8498. faClipboard: faClipboard,
  8499. faClipboardCheck: faClipboardCheck,
  8500. faClipboardList: faClipboardList,
  8501. faClock: faClock,
  8502. faClone: faClone,
  8503. faClosedCaptioning: faClosedCaptioning,
  8504. faCloud: faCloud,
  8505. faCloudDownloadAlt: faCloudDownloadAlt,
  8506. faCloudMeatball: faCloudMeatball,
  8507. faCloudMoon: faCloudMoon,
  8508. faCloudMoonRain: faCloudMoonRain,
  8509. faCloudRain: faCloudRain,
  8510. faCloudShowersHeavy: faCloudShowersHeavy,
  8511. faCloudSun: faCloudSun,
  8512. faCloudSunRain: faCloudSunRain,
  8513. faCloudUploadAlt: faCloudUploadAlt,
  8514. faCocktail: faCocktail,
  8515. faCode: faCode,
  8516. faCodeBranch: faCodeBranch,
  8517. faCoffee: faCoffee,
  8518. faCog: faCog,
  8519. faCogs: faCogs,
  8520. faCoins: faCoins,
  8521. faColumns: faColumns,
  8522. faComment: faComment,
  8523. faCommentAlt: faCommentAlt,
  8524. faCommentDollar: faCommentDollar,
  8525. faCommentDots: faCommentDots,
  8526. faCommentMedical: faCommentMedical,
  8527. faCommentSlash: faCommentSlash,
  8528. faComments: faComments,
  8529. faCommentsDollar: faCommentsDollar,
  8530. faCompactDisc: faCompactDisc,
  8531. faCompass: faCompass,
  8532. faCompress: faCompress,
  8533. faCompressAlt: faCompressAlt,
  8534. faCompressArrowsAlt: faCompressArrowsAlt,
  8535. faConciergeBell: faConciergeBell,
  8536. faCookie: faCookie,
  8537. faCookieBite: faCookieBite,
  8538. faCopy: faCopy,
  8539. faCopyright: faCopyright,
  8540. faCouch: faCouch,
  8541. faCreditCard: faCreditCard,
  8542. faCrop: faCrop,
  8543. faCropAlt: faCropAlt,
  8544. faCross: faCross,
  8545. faCrosshairs: faCrosshairs,
  8546. faCrow: faCrow,
  8547. faCrown: faCrown,
  8548. faCrutch: faCrutch,
  8549. faCube: faCube,
  8550. faCubes: faCubes,
  8551. faCut: faCut,
  8552. faDatabase: faDatabase,
  8553. faDeaf: faDeaf,
  8554. faDemocrat: faDemocrat,
  8555. faDesktop: faDesktop,
  8556. faDharmachakra: faDharmachakra,
  8557. faDiagnoses: faDiagnoses,
  8558. faDice: faDice,
  8559. faDiceD20: faDiceD20,
  8560. faDiceD6: faDiceD6,
  8561. faDiceFive: faDiceFive,
  8562. faDiceFour: faDiceFour,
  8563. faDiceOne: faDiceOne,
  8564. faDiceSix: faDiceSix,
  8565. faDiceThree: faDiceThree,
  8566. faDiceTwo: faDiceTwo,
  8567. faDigitalTachograph: faDigitalTachograph,
  8568. faDirections: faDirections,
  8569. faDisease: faDisease,
  8570. faDivide: faDivide,
  8571. faDizzy: faDizzy,
  8572. faDna: faDna,
  8573. faDog: faDog,
  8574. faDollarSign: faDollarSign,
  8575. faDolly: faDolly,
  8576. faDollyFlatbed: faDollyFlatbed,
  8577. faDonate: faDonate,
  8578. faDoorClosed: faDoorClosed,
  8579. faDoorOpen: faDoorOpen,
  8580. faDotCircle: faDotCircle,
  8581. faDove: faDove,
  8582. faDownload: faDownload,
  8583. faDraftingCompass: faDraftingCompass,
  8584. faDragon: faDragon,
  8585. faDrawPolygon: faDrawPolygon,
  8586. faDrum: faDrum,
  8587. faDrumSteelpan: faDrumSteelpan,
  8588. faDrumstickBite: faDrumstickBite,
  8589. faDumbbell: faDumbbell,
  8590. faDumpster: faDumpster,
  8591. faDumpsterFire: faDumpsterFire,
  8592. faDungeon: faDungeon,
  8593. faEdit: faEdit,
  8594. faEgg: faEgg,
  8595. faEject: faEject,
  8596. faEllipsisH: faEllipsisH,
  8597. faEllipsisV: faEllipsisV,
  8598. faEnvelope: faEnvelope,
  8599. faEnvelopeOpen: faEnvelopeOpen,
  8600. faEnvelopeOpenText: faEnvelopeOpenText,
  8601. faEnvelopeSquare: faEnvelopeSquare,
  8602. faEquals: faEquals,
  8603. faEraser: faEraser,
  8604. faEthernet: faEthernet,
  8605. faEuroSign: faEuroSign,
  8606. faExchangeAlt: faExchangeAlt,
  8607. faExclamation: faExclamation,
  8608. faExclamationCircle: faExclamationCircle,
  8609. faExclamationTriangle: faExclamationTriangle,
  8610. faExpand: faExpand,
  8611. faExpandAlt: faExpandAlt,
  8612. faExpandArrowsAlt: faExpandArrowsAlt,
  8613. faExternalLinkAlt: faExternalLinkAlt,
  8614. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  8615. faEye: faEye,
  8616. faEyeDropper: faEyeDropper,
  8617. faEyeSlash: faEyeSlash,
  8618. faFan: faFan,
  8619. faFastBackward: faFastBackward,
  8620. faFastForward: faFastForward,
  8621. faFaucet: faFaucet,
  8622. faFax: faFax,
  8623. faFeather: faFeather,
  8624. faFeatherAlt: faFeatherAlt,
  8625. faFemale: faFemale,
  8626. faFighterJet: faFighterJet,
  8627. faFile: faFile,
  8628. faFileAlt: faFileAlt,
  8629. faFileArchive: faFileArchive,
  8630. faFileAudio: faFileAudio,
  8631. faFileCode: faFileCode,
  8632. faFileContract: faFileContract,
  8633. faFileCsv: faFileCsv,
  8634. faFileDownload: faFileDownload,
  8635. faFileExcel: faFileExcel,
  8636. faFileExport: faFileExport,
  8637. faFileImage: faFileImage,
  8638. faFileImport: faFileImport,
  8639. faFileInvoice: faFileInvoice,
  8640. faFileInvoiceDollar: faFileInvoiceDollar,
  8641. faFileMedical: faFileMedical,
  8642. faFileMedicalAlt: faFileMedicalAlt,
  8643. faFilePdf: faFilePdf,
  8644. faFilePowerpoint: faFilePowerpoint,
  8645. faFilePrescription: faFilePrescription,
  8646. faFileSignature: faFileSignature,
  8647. faFileUpload: faFileUpload,
  8648. faFileVideo: faFileVideo,
  8649. faFileWord: faFileWord,
  8650. faFill: faFill,
  8651. faFillDrip: faFillDrip,
  8652. faFilm: faFilm,
  8653. faFilter: faFilter,
  8654. faFingerprint: faFingerprint,
  8655. faFire: faFire,
  8656. faFireAlt: faFireAlt,
  8657. faFireExtinguisher: faFireExtinguisher,
  8658. faFirstAid: faFirstAid,
  8659. faFish: faFish,
  8660. faFistRaised: faFistRaised,
  8661. faFlag: faFlag,
  8662. faFlagCheckered: faFlagCheckered,
  8663. faFlagUsa: faFlagUsa,
  8664. faFlask: faFlask,
  8665. faFlushed: faFlushed,
  8666. faFolder: faFolder,
  8667. faFolderMinus: faFolderMinus,
  8668. faFolderOpen: faFolderOpen,
  8669. faFolderPlus: faFolderPlus,
  8670. faFont: faFont,
  8671. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  8672. faFootballBall: faFootballBall,
  8673. faForward: faForward,
  8674. faFrog: faFrog,
  8675. faFrown: faFrown,
  8676. faFrownOpen: faFrownOpen,
  8677. faFunnelDollar: faFunnelDollar,
  8678. faFutbol: faFutbol,
  8679. faGamepad: faGamepad,
  8680. faGasPump: faGasPump,
  8681. faGavel: faGavel,
  8682. faGem: faGem,
  8683. faGenderless: faGenderless,
  8684. faGhost: faGhost,
  8685. faGift: faGift,
  8686. faGifts: faGifts,
  8687. faGlassCheers: faGlassCheers,
  8688. faGlassMartini: faGlassMartini,
  8689. faGlassMartiniAlt: faGlassMartiniAlt,
  8690. faGlassWhiskey: faGlassWhiskey,
  8691. faGlasses: faGlasses,
  8692. faGlobe: faGlobe,
  8693. faGlobeAfrica: faGlobeAfrica,
  8694. faGlobeAmericas: faGlobeAmericas,
  8695. faGlobeAsia: faGlobeAsia,
  8696. faGlobeEurope: faGlobeEurope,
  8697. faGolfBall: faGolfBall,
  8698. faGopuram: faGopuram,
  8699. faGraduationCap: faGraduationCap,
  8700. faGreaterThan: faGreaterThan,
  8701. faGreaterThanEqual: faGreaterThanEqual,
  8702. faGrimace: faGrimace,
  8703. faGrin: faGrin,
  8704. faGrinAlt: faGrinAlt,
  8705. faGrinBeam: faGrinBeam,
  8706. faGrinBeamSweat: faGrinBeamSweat,
  8707. faGrinHearts: faGrinHearts,
  8708. faGrinSquint: faGrinSquint,
  8709. faGrinSquintTears: faGrinSquintTears,
  8710. faGrinStars: faGrinStars,
  8711. faGrinTears: faGrinTears,
  8712. faGrinTongue: faGrinTongue,
  8713. faGrinTongueSquint: faGrinTongueSquint,
  8714. faGrinTongueWink: faGrinTongueWink,
  8715. faGrinWink: faGrinWink,
  8716. faGripHorizontal: faGripHorizontal,
  8717. faGripLines: faGripLines,
  8718. faGripLinesVertical: faGripLinesVertical,
  8719. faGripVertical: faGripVertical,
  8720. faGuitar: faGuitar,
  8721. faHSquare: faHSquare,
  8722. faHamburger: faHamburger,
  8723. faHammer: faHammer,
  8724. faHamsa: faHamsa,
  8725. faHandHolding: faHandHolding,
  8726. faHandHoldingHeart: faHandHoldingHeart,
  8727. faHandHoldingMedical: faHandHoldingMedical,
  8728. faHandHoldingUsd: faHandHoldingUsd,
  8729. faHandHoldingWater: faHandHoldingWater,
  8730. faHandLizard: faHandLizard,
  8731. faHandMiddleFinger: faHandMiddleFinger,
  8732. faHandPaper: faHandPaper,
  8733. faHandPeace: faHandPeace,
  8734. faHandPointDown: faHandPointDown,
  8735. faHandPointLeft: faHandPointLeft,
  8736. faHandPointRight: faHandPointRight,
  8737. faHandPointUp: faHandPointUp,
  8738. faHandPointer: faHandPointer,
  8739. faHandRock: faHandRock,
  8740. faHandScissors: faHandScissors,
  8741. faHandSparkles: faHandSparkles,
  8742. faHandSpock: faHandSpock,
  8743. faHands: faHands,
  8744. faHandsHelping: faHandsHelping,
  8745. faHandsWash: faHandsWash,
  8746. faHandshake: faHandshake,
  8747. faHandshakeAltSlash: faHandshakeAltSlash,
  8748. faHandshakeSlash: faHandshakeSlash,
  8749. faHanukiah: faHanukiah,
  8750. faHardHat: faHardHat,
  8751. faHashtag: faHashtag,
  8752. faHatCowboy: faHatCowboy,
  8753. faHatCowboySide: faHatCowboySide,
  8754. faHatWizard: faHatWizard,
  8755. faHdd: faHdd,
  8756. faHeadSideCough: faHeadSideCough,
  8757. faHeadSideCoughSlash: faHeadSideCoughSlash,
  8758. faHeadSideMask: faHeadSideMask,
  8759. faHeadSideVirus: faHeadSideVirus,
  8760. faHeading: faHeading,
  8761. faHeadphones: faHeadphones,
  8762. faHeadphonesAlt: faHeadphonesAlt,
  8763. faHeadset: faHeadset,
  8764. faHeart: faHeart,
  8765. faHeartBroken: faHeartBroken,
  8766. faHeartbeat: faHeartbeat,
  8767. faHelicopter: faHelicopter,
  8768. faHighlighter: faHighlighter,
  8769. faHiking: faHiking,
  8770. faHippo: faHippo,
  8771. faHistory: faHistory,
  8772. faHockeyPuck: faHockeyPuck,
  8773. faHollyBerry: faHollyBerry,
  8774. faHome: faHome,
  8775. faHorse: faHorse,
  8776. faHorseHead: faHorseHead,
  8777. faHospital: faHospital,
  8778. faHospitalAlt: faHospitalAlt,
  8779. faHospitalSymbol: faHospitalSymbol,
  8780. faHospitalUser: faHospitalUser,
  8781. faHotTub: faHotTub,
  8782. faHotdog: faHotdog,
  8783. faHotel: faHotel,
  8784. faHourglass: faHourglass,
  8785. faHourglassEnd: faHourglassEnd,
  8786. faHourglassHalf: faHourglassHalf,
  8787. faHourglassStart: faHourglassStart,
  8788. faHouseDamage: faHouseDamage,
  8789. faHouseUser: faHouseUser,
  8790. faHryvnia: faHryvnia,
  8791. faICursor: faICursor,
  8792. faIceCream: faIceCream,
  8793. faIcicles: faIcicles,
  8794. faIcons: faIcons,
  8795. faIdBadge: faIdBadge,
  8796. faIdCard: faIdCard,
  8797. faIdCardAlt: faIdCardAlt,
  8798. faIgloo: faIgloo,
  8799. faImage: faImage,
  8800. faImages: faImages,
  8801. faInbox: faInbox,
  8802. faIndent: faIndent,
  8803. faIndustry: faIndustry,
  8804. faInfinity: faInfinity,
  8805. faInfo: faInfo,
  8806. faInfoCircle: faInfoCircle,
  8807. faItalic: faItalic,
  8808. faJedi: faJedi,
  8809. faJoint: faJoint,
  8810. faJournalWhills: faJournalWhills,
  8811. faKaaba: faKaaba,
  8812. faKey: faKey,
  8813. faKeyboard: faKeyboard,
  8814. faKhanda: faKhanda,
  8815. faKiss: faKiss,
  8816. faKissBeam: faKissBeam,
  8817. faKissWinkHeart: faKissWinkHeart,
  8818. faKiwiBird: faKiwiBird,
  8819. faLandmark: faLandmark,
  8820. faLanguage: faLanguage,
  8821. faLaptop: faLaptop,
  8822. faLaptopCode: faLaptopCode,
  8823. faLaptopHouse: faLaptopHouse,
  8824. faLaptopMedical: faLaptopMedical,
  8825. faLaugh: faLaugh,
  8826. faLaughBeam: faLaughBeam,
  8827. faLaughSquint: faLaughSquint,
  8828. faLaughWink: faLaughWink,
  8829. faLayerGroup: faLayerGroup,
  8830. faLeaf: faLeaf,
  8831. faLemon: faLemon,
  8832. faLessThan: faLessThan,
  8833. faLessThanEqual: faLessThanEqual,
  8834. faLevelDownAlt: faLevelDownAlt,
  8835. faLevelUpAlt: faLevelUpAlt,
  8836. faLifeRing: faLifeRing,
  8837. faLightbulb: faLightbulb,
  8838. faLink: faLink,
  8839. faLiraSign: faLiraSign,
  8840. faList: faList,
  8841. faListAlt: faListAlt,
  8842. faListOl: faListOl,
  8843. faListUl: faListUl,
  8844. faLocationArrow: faLocationArrow,
  8845. faLock: faLock,
  8846. faLockOpen: faLockOpen,
  8847. faLongArrowAltDown: faLongArrowAltDown,
  8848. faLongArrowAltLeft: faLongArrowAltLeft,
  8849. faLongArrowAltRight: faLongArrowAltRight,
  8850. faLongArrowAltUp: faLongArrowAltUp,
  8851. faLowVision: faLowVision,
  8852. faLuggageCart: faLuggageCart,
  8853. faLungs: faLungs,
  8854. faLungsVirus: faLungsVirus,
  8855. faMagic: faMagic,
  8856. faMagnet: faMagnet,
  8857. faMailBulk: faMailBulk,
  8858. faMale: faMale,
  8859. faMap: faMap,
  8860. faMapMarked: faMapMarked,
  8861. faMapMarkedAlt: faMapMarkedAlt,
  8862. faMapMarker: faMapMarker,
  8863. faMapMarkerAlt: faMapMarkerAlt,
  8864. faMapPin: faMapPin,
  8865. faMapSigns: faMapSigns,
  8866. faMarker: faMarker,
  8867. faMars: faMars,
  8868. faMarsDouble: faMarsDouble,
  8869. faMarsStroke: faMarsStroke,
  8870. faMarsStrokeH: faMarsStrokeH,
  8871. faMarsStrokeV: faMarsStrokeV,
  8872. faMask: faMask,
  8873. faMedal: faMedal,
  8874. faMedkit: faMedkit,
  8875. faMeh: faMeh,
  8876. faMehBlank: faMehBlank,
  8877. faMehRollingEyes: faMehRollingEyes,
  8878. faMemory: faMemory,
  8879. faMenorah: faMenorah,
  8880. faMercury: faMercury,
  8881. faMeteor: faMeteor,
  8882. faMicrochip: faMicrochip,
  8883. faMicrophone: faMicrophone,
  8884. faMicrophoneAlt: faMicrophoneAlt,
  8885. faMicrophoneAltSlash: faMicrophoneAltSlash,
  8886. faMicrophoneSlash: faMicrophoneSlash,
  8887. faMicroscope: faMicroscope,
  8888. faMinus: faMinus,
  8889. faMinusCircle: faMinusCircle,
  8890. faMinusSquare: faMinusSquare,
  8891. faMitten: faMitten,
  8892. faMobile: faMobile,
  8893. faMobileAlt: faMobileAlt,
  8894. faMoneyBill: faMoneyBill,
  8895. faMoneyBillAlt: faMoneyBillAlt,
  8896. faMoneyBillWave: faMoneyBillWave,
  8897. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  8898. faMoneyCheck: faMoneyCheck,
  8899. faMoneyCheckAlt: faMoneyCheckAlt,
  8900. faMonument: faMonument,
  8901. faMoon: faMoon,
  8902. faMortarPestle: faMortarPestle,
  8903. faMosque: faMosque,
  8904. faMotorcycle: faMotorcycle,
  8905. faMountain: faMountain,
  8906. faMouse: faMouse,
  8907. faMousePointer: faMousePointer,
  8908. faMugHot: faMugHot,
  8909. faMusic: faMusic,
  8910. faNetworkWired: faNetworkWired,
  8911. faNeuter: faNeuter,
  8912. faNewspaper: faNewspaper,
  8913. faNotEqual: faNotEqual,
  8914. faNotesMedical: faNotesMedical,
  8915. faObjectGroup: faObjectGroup,
  8916. faObjectUngroup: faObjectUngroup,
  8917. faOilCan: faOilCan,
  8918. faOm: faOm,
  8919. faOtter: faOtter,
  8920. faOutdent: faOutdent,
  8921. faPager: faPager,
  8922. faPaintBrush: faPaintBrush,
  8923. faPaintRoller: faPaintRoller,
  8924. faPalette: faPalette,
  8925. faPallet: faPallet,
  8926. faPaperPlane: faPaperPlane,
  8927. faPaperclip: faPaperclip,
  8928. faParachuteBox: faParachuteBox,
  8929. faParagraph: faParagraph,
  8930. faParking: faParking,
  8931. faPassport: faPassport,
  8932. faPastafarianism: faPastafarianism,
  8933. faPaste: faPaste,
  8934. faPause: faPause,
  8935. faPauseCircle: faPauseCircle,
  8936. faPaw: faPaw,
  8937. faPeace: faPeace,
  8938. faPen: faPen,
  8939. faPenAlt: faPenAlt,
  8940. faPenFancy: faPenFancy,
  8941. faPenNib: faPenNib,
  8942. faPenSquare: faPenSquare,
  8943. faPencilAlt: faPencilAlt,
  8944. faPencilRuler: faPencilRuler,
  8945. faPeopleArrows: faPeopleArrows,
  8946. faPeopleCarry: faPeopleCarry,
  8947. faPepperHot: faPepperHot,
  8948. faPercent: faPercent,
  8949. faPercentage: faPercentage,
  8950. faPersonBooth: faPersonBooth,
  8951. faPhone: faPhone,
  8952. faPhoneAlt: faPhoneAlt,
  8953. faPhoneSlash: faPhoneSlash,
  8954. faPhoneSquare: faPhoneSquare,
  8955. faPhoneSquareAlt: faPhoneSquareAlt,
  8956. faPhoneVolume: faPhoneVolume,
  8957. faPhotoVideo: faPhotoVideo,
  8958. faPiggyBank: faPiggyBank,
  8959. faPills: faPills,
  8960. faPizzaSlice: faPizzaSlice,
  8961. faPlaceOfWorship: faPlaceOfWorship,
  8962. faPlane: faPlane,
  8963. faPlaneArrival: faPlaneArrival,
  8964. faPlaneDeparture: faPlaneDeparture,
  8965. faPlaneSlash: faPlaneSlash,
  8966. faPlay: faPlay,
  8967. faPlayCircle: faPlayCircle,
  8968. faPlug: faPlug,
  8969. faPlus: faPlus,
  8970. faPlusCircle: faPlusCircle,
  8971. faPlusSquare: faPlusSquare,
  8972. faPodcast: faPodcast,
  8973. faPoll: faPoll,
  8974. faPollH: faPollH,
  8975. faPoo: faPoo,
  8976. faPooStorm: faPooStorm,
  8977. faPoop: faPoop,
  8978. faPortrait: faPortrait,
  8979. faPoundSign: faPoundSign,
  8980. faPowerOff: faPowerOff,
  8981. faPray: faPray,
  8982. faPrayingHands: faPrayingHands,
  8983. faPrescription: faPrescription,
  8984. faPrescriptionBottle: faPrescriptionBottle,
  8985. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  8986. faPrint: faPrint,
  8987. faProcedures: faProcedures,
  8988. faProjectDiagram: faProjectDiagram,
  8989. faPumpMedical: faPumpMedical,
  8990. faPumpSoap: faPumpSoap,
  8991. faPuzzlePiece: faPuzzlePiece,
  8992. faQrcode: faQrcode,
  8993. faQuestion: faQuestion,
  8994. faQuestionCircle: faQuestionCircle,
  8995. faQuidditch: faQuidditch,
  8996. faQuoteLeft: faQuoteLeft,
  8997. faQuoteRight: faQuoteRight,
  8998. faQuran: faQuran,
  8999. faRadiation: faRadiation,
  9000. faRadiationAlt: faRadiationAlt,
  9001. faRainbow: faRainbow,
  9002. faRandom: faRandom,
  9003. faReceipt: faReceipt,
  9004. faRecordVinyl: faRecordVinyl,
  9005. faRecycle: faRecycle,
  9006. faRedo: faRedo,
  9007. faRedoAlt: faRedoAlt,
  9008. faRegistered: faRegistered,
  9009. faRemoveFormat: faRemoveFormat,
  9010. faReply: faReply,
  9011. faReplyAll: faReplyAll,
  9012. faRepublican: faRepublican,
  9013. faRestroom: faRestroom,
  9014. faRetweet: faRetweet,
  9015. faRibbon: faRibbon,
  9016. faRing: faRing,
  9017. faRoad: faRoad,
  9018. faRobot: faRobot,
  9019. faRocket: faRocket,
  9020. faRoute: faRoute,
  9021. faRss: faRss,
  9022. faRssSquare: faRssSquare,
  9023. faRubleSign: faRubleSign,
  9024. faRuler: faRuler,
  9025. faRulerCombined: faRulerCombined,
  9026. faRulerHorizontal: faRulerHorizontal,
  9027. faRulerVertical: faRulerVertical,
  9028. faRunning: faRunning,
  9029. faRupeeSign: faRupeeSign,
  9030. faSadCry: faSadCry,
  9031. faSadTear: faSadTear,
  9032. faSatellite: faSatellite,
  9033. faSatelliteDish: faSatelliteDish,
  9034. faSave: faSave,
  9035. faSchool: faSchool,
  9036. faScrewdriver: faScrewdriver,
  9037. faScroll: faScroll,
  9038. faSdCard: faSdCard,
  9039. faSearch: faSearch,
  9040. faSearchDollar: faSearchDollar,
  9041. faSearchLocation: faSearchLocation,
  9042. faSearchMinus: faSearchMinus,
  9043. faSearchPlus: faSearchPlus,
  9044. faSeedling: faSeedling,
  9045. faServer: faServer,
  9046. faShapes: faShapes,
  9047. faShare: faShare,
  9048. faShareAlt: faShareAlt,
  9049. faShareAltSquare: faShareAltSquare,
  9050. faShareSquare: faShareSquare,
  9051. faShekelSign: faShekelSign,
  9052. faShieldAlt: faShieldAlt,
  9053. faShieldVirus: faShieldVirus,
  9054. faShip: faShip,
  9055. faShippingFast: faShippingFast,
  9056. faShoePrints: faShoePrints,
  9057. faShoppingBag: faShoppingBag,
  9058. faShoppingBasket: faShoppingBasket,
  9059. faShoppingCart: faShoppingCart,
  9060. faShower: faShower,
  9061. faShuttleVan: faShuttleVan,
  9062. faSign: faSign,
  9063. faSignInAlt: faSignInAlt,
  9064. faSignLanguage: faSignLanguage,
  9065. faSignOutAlt: faSignOutAlt,
  9066. faSignal: faSignal,
  9067. faSignature: faSignature,
  9068. faSimCard: faSimCard,
  9069. faSink: faSink,
  9070. faSitemap: faSitemap,
  9071. faSkating: faSkating,
  9072. faSkiing: faSkiing,
  9073. faSkiingNordic: faSkiingNordic,
  9074. faSkull: faSkull,
  9075. faSkullCrossbones: faSkullCrossbones,
  9076. faSlash: faSlash,
  9077. faSleigh: faSleigh,
  9078. faSlidersH: faSlidersH,
  9079. faSmile: faSmile,
  9080. faSmileBeam: faSmileBeam,
  9081. faSmileWink: faSmileWink,
  9082. faSmog: faSmog,
  9083. faSmoking: faSmoking,
  9084. faSmokingBan: faSmokingBan,
  9085. faSms: faSms,
  9086. faSnowboarding: faSnowboarding,
  9087. faSnowflake: faSnowflake,
  9088. faSnowman: faSnowman,
  9089. faSnowplow: faSnowplow,
  9090. faSoap: faSoap,
  9091. faSocks: faSocks,
  9092. faSolarPanel: faSolarPanel,
  9093. faSort: faSort,
  9094. faSortAlphaDown: faSortAlphaDown,
  9095. faSortAlphaDownAlt: faSortAlphaDownAlt,
  9096. faSortAlphaUp: faSortAlphaUp,
  9097. faSortAlphaUpAlt: faSortAlphaUpAlt,
  9098. faSortAmountDown: faSortAmountDown,
  9099. faSortAmountDownAlt: faSortAmountDownAlt,
  9100. faSortAmountUp: faSortAmountUp,
  9101. faSortAmountUpAlt: faSortAmountUpAlt,
  9102. faSortDown: faSortDown,
  9103. faSortNumericDown: faSortNumericDown,
  9104. faSortNumericDownAlt: faSortNumericDownAlt,
  9105. faSortNumericUp: faSortNumericUp,
  9106. faSortNumericUpAlt: faSortNumericUpAlt,
  9107. faSortUp: faSortUp,
  9108. faSpa: faSpa,
  9109. faSpaceShuttle: faSpaceShuttle,
  9110. faSpellCheck: faSpellCheck,
  9111. faSpider: faSpider,
  9112. faSpinner: faSpinner,
  9113. faSplotch: faSplotch,
  9114. faSprayCan: faSprayCan,
  9115. faSquare: faSquare,
  9116. faSquareFull: faSquareFull,
  9117. faSquareRootAlt: faSquareRootAlt,
  9118. faStamp: faStamp,
  9119. faStar: faStar,
  9120. faStarAndCrescent: faStarAndCrescent,
  9121. faStarHalf: faStarHalf,
  9122. faStarHalfAlt: faStarHalfAlt,
  9123. faStarOfDavid: faStarOfDavid,
  9124. faStarOfLife: faStarOfLife,
  9125. faStepBackward: faStepBackward,
  9126. faStepForward: faStepForward,
  9127. faStethoscope: faStethoscope,
  9128. faStickyNote: faStickyNote,
  9129. faStop: faStop,
  9130. faStopCircle: faStopCircle,
  9131. faStopwatch: faStopwatch,
  9132. faStopwatch20: faStopwatch20,
  9133. faStore: faStore,
  9134. faStoreAlt: faStoreAlt,
  9135. faStoreAltSlash: faStoreAltSlash,
  9136. faStoreSlash: faStoreSlash,
  9137. faStream: faStream,
  9138. faStreetView: faStreetView,
  9139. faStrikethrough: faStrikethrough,
  9140. faStroopwafel: faStroopwafel,
  9141. faSubscript: faSubscript,
  9142. faSubway: faSubway,
  9143. faSuitcase: faSuitcase,
  9144. faSuitcaseRolling: faSuitcaseRolling,
  9145. faSun: faSun,
  9146. faSuperscript: faSuperscript,
  9147. faSurprise: faSurprise,
  9148. faSwatchbook: faSwatchbook,
  9149. faSwimmer: faSwimmer,
  9150. faSwimmingPool: faSwimmingPool,
  9151. faSynagogue: faSynagogue,
  9152. faSync: faSync,
  9153. faSyncAlt: faSyncAlt,
  9154. faSyringe: faSyringe,
  9155. faTable: faTable,
  9156. faTableTennis: faTableTennis,
  9157. faTablet: faTablet,
  9158. faTabletAlt: faTabletAlt,
  9159. faTablets: faTablets,
  9160. faTachometerAlt: faTachometerAlt,
  9161. faTag: faTag,
  9162. faTags: faTags,
  9163. faTape: faTape,
  9164. faTasks: faTasks,
  9165. faTaxi: faTaxi,
  9166. faTeeth: faTeeth,
  9167. faTeethOpen: faTeethOpen,
  9168. faTemperatureHigh: faTemperatureHigh,
  9169. faTemperatureLow: faTemperatureLow,
  9170. faTenge: faTenge,
  9171. faTerminal: faTerminal,
  9172. faTextHeight: faTextHeight,
  9173. faTextWidth: faTextWidth,
  9174. faTh: faTh,
  9175. faThLarge: faThLarge,
  9176. faThList: faThList,
  9177. faTheaterMasks: faTheaterMasks,
  9178. faThermometer: faThermometer,
  9179. faThermometerEmpty: faThermometerEmpty,
  9180. faThermometerFull: faThermometerFull,
  9181. faThermometerHalf: faThermometerHalf,
  9182. faThermometerQuarter: faThermometerQuarter,
  9183. faThermometerThreeQuarters: faThermometerThreeQuarters,
  9184. faThumbsDown: faThumbsDown,
  9185. faThumbsUp: faThumbsUp,
  9186. faThumbtack: faThumbtack,
  9187. faTicketAlt: faTicketAlt,
  9188. faTimes: faTimes,
  9189. faTimesCircle: faTimesCircle,
  9190. faTint: faTint,
  9191. faTintSlash: faTintSlash,
  9192. faTired: faTired,
  9193. faToggleOff: faToggleOff,
  9194. faToggleOn: faToggleOn,
  9195. faToilet: faToilet,
  9196. faToiletPaper: faToiletPaper,
  9197. faToiletPaperSlash: faToiletPaperSlash,
  9198. faToolbox: faToolbox,
  9199. faTools: faTools,
  9200. faTooth: faTooth,
  9201. faTorah: faTorah,
  9202. faToriiGate: faToriiGate,
  9203. faTractor: faTractor,
  9204. faTrademark: faTrademark,
  9205. faTrafficLight: faTrafficLight,
  9206. faTrailer: faTrailer,
  9207. faTrain: faTrain,
  9208. faTram: faTram,
  9209. faTransgender: faTransgender,
  9210. faTransgenderAlt: faTransgenderAlt,
  9211. faTrash: faTrash,
  9212. faTrashAlt: faTrashAlt,
  9213. faTrashRestore: faTrashRestore,
  9214. faTrashRestoreAlt: faTrashRestoreAlt,
  9215. faTree: faTree,
  9216. faTrophy: faTrophy,
  9217. faTruck: faTruck,
  9218. faTruckLoading: faTruckLoading,
  9219. faTruckMonster: faTruckMonster,
  9220. faTruckMoving: faTruckMoving,
  9221. faTruckPickup: faTruckPickup,
  9222. faTshirt: faTshirt,
  9223. faTty: faTty,
  9224. faTv: faTv,
  9225. faUmbrella: faUmbrella,
  9226. faUmbrellaBeach: faUmbrellaBeach,
  9227. faUnderline: faUnderline,
  9228. faUndo: faUndo,
  9229. faUndoAlt: faUndoAlt,
  9230. faUniversalAccess: faUniversalAccess,
  9231. faUniversity: faUniversity,
  9232. faUnlink: faUnlink,
  9233. faUnlock: faUnlock,
  9234. faUnlockAlt: faUnlockAlt,
  9235. faUpload: faUpload,
  9236. faUser: faUser,
  9237. faUserAlt: faUserAlt,
  9238. faUserAltSlash: faUserAltSlash,
  9239. faUserAstronaut: faUserAstronaut,
  9240. faUserCheck: faUserCheck,
  9241. faUserCircle: faUserCircle,
  9242. faUserClock: faUserClock,
  9243. faUserCog: faUserCog,
  9244. faUserEdit: faUserEdit,
  9245. faUserFriends: faUserFriends,
  9246. faUserGraduate: faUserGraduate,
  9247. faUserInjured: faUserInjured,
  9248. faUserLock: faUserLock,
  9249. faUserMd: faUserMd,
  9250. faUserMinus: faUserMinus,
  9251. faUserNinja: faUserNinja,
  9252. faUserNurse: faUserNurse,
  9253. faUserPlus: faUserPlus,
  9254. faUserSecret: faUserSecret,
  9255. faUserShield: faUserShield,
  9256. faUserSlash: faUserSlash,
  9257. faUserTag: faUserTag,
  9258. faUserTie: faUserTie,
  9259. faUserTimes: faUserTimes,
  9260. faUsers: faUsers,
  9261. faUsersCog: faUsersCog,
  9262. faUsersSlash: faUsersSlash,
  9263. faUtensilSpoon: faUtensilSpoon,
  9264. faUtensils: faUtensils,
  9265. faVectorSquare: faVectorSquare,
  9266. faVenus: faVenus,
  9267. faVenusDouble: faVenusDouble,
  9268. faVenusMars: faVenusMars,
  9269. faVial: faVial,
  9270. faVials: faVials,
  9271. faVideo: faVideo,
  9272. faVideoSlash: faVideoSlash,
  9273. faVihara: faVihara,
  9274. faVirus: faVirus,
  9275. faVirusSlash: faVirusSlash,
  9276. faViruses: faViruses,
  9277. faVoicemail: faVoicemail,
  9278. faVolleyballBall: faVolleyballBall,
  9279. faVolumeDown: faVolumeDown,
  9280. faVolumeMute: faVolumeMute,
  9281. faVolumeOff: faVolumeOff,
  9282. faVolumeUp: faVolumeUp,
  9283. faVoteYea: faVoteYea,
  9284. faVrCardboard: faVrCardboard,
  9285. faWalking: faWalking,
  9286. faWallet: faWallet,
  9287. faWarehouse: faWarehouse,
  9288. faWater: faWater,
  9289. faWaveSquare: faWaveSquare,
  9290. faWeight: faWeight,
  9291. faWeightHanging: faWeightHanging,
  9292. faWheelchair: faWheelchair,
  9293. faWifi: faWifi,
  9294. faWind: faWind,
  9295. faWindowClose: faWindowClose,
  9296. faWindowMaximize: faWindowMaximize,
  9297. faWindowMinimize: faWindowMinimize,
  9298. faWindowRestore: faWindowRestore,
  9299. faWineBottle: faWineBottle,
  9300. faWineGlass: faWineGlass,
  9301. faWineGlassAlt: faWineGlassAlt,
  9302. faWonSign: faWonSign,
  9303. faWrench: faWrench,
  9304. faXRay: faXRay,
  9305. faYenSign: faYenSign,
  9306. faYinYang: faYinYang
  9307. };
  9308. /***/ }),
  9309. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  9310. /*!***********************************************************************************!*\
  9311. !*** C:/Repos/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  9312. \***********************************************************************************/
  9313. /*! exports provided: FontAwesomeIcon */
  9314. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9315. "use strict";
  9316. __webpack_require__.r(__webpack_exports__);
  9317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  9318. /* 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");
  9319. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  9320. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  9321. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  9322. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  9323. function _typeof(obj) {
  9324. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  9325. _typeof = function (obj) {
  9326. return typeof obj;
  9327. };
  9328. } else {
  9329. _typeof = function (obj) {
  9330. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  9331. };
  9332. }
  9333. return _typeof(obj);
  9334. }
  9335. function _defineProperty(obj, key, value) {
  9336. if (key in obj) {
  9337. Object.defineProperty(obj, key, {
  9338. value: value,
  9339. enumerable: true,
  9340. configurable: true,
  9341. writable: true
  9342. });
  9343. } else {
  9344. obj[key] = value;
  9345. }
  9346. return obj;
  9347. }
  9348. function ownKeys(object, enumerableOnly) {
  9349. var keys = Object.keys(object);
  9350. if (Object.getOwnPropertySymbols) {
  9351. var symbols = Object.getOwnPropertySymbols(object);
  9352. if (enumerableOnly) symbols = symbols.filter(function (sym) {
  9353. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  9354. });
  9355. keys.push.apply(keys, symbols);
  9356. }
  9357. return keys;
  9358. }
  9359. function _objectSpread2(target) {
  9360. for (var i = 1; i < arguments.length; i++) {
  9361. var source = arguments[i] != null ? arguments[i] : {};
  9362. if (i % 2) {
  9363. ownKeys(Object(source), true).forEach(function (key) {
  9364. _defineProperty(target, key, source[key]);
  9365. });
  9366. } else if (Object.getOwnPropertyDescriptors) {
  9367. Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
  9368. } else {
  9369. ownKeys(Object(source)).forEach(function (key) {
  9370. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  9371. });
  9372. }
  9373. }
  9374. return target;
  9375. }
  9376. function _objectWithoutPropertiesLoose(source, excluded) {
  9377. if (source == null) return {};
  9378. var target = {};
  9379. var sourceKeys = Object.keys(source);
  9380. var key, i;
  9381. for (i = 0; i < sourceKeys.length; i++) {
  9382. key = sourceKeys[i];
  9383. if (excluded.indexOf(key) >= 0) continue;
  9384. target[key] = source[key];
  9385. }
  9386. return target;
  9387. }
  9388. function _objectWithoutProperties(source, excluded) {
  9389. if (source == null) return {};
  9390. var target = _objectWithoutPropertiesLoose(source, excluded);
  9391. var key, i;
  9392. if (Object.getOwnPropertySymbols) {
  9393. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  9394. for (i = 0; i < sourceSymbolKeys.length; i++) {
  9395. key = sourceSymbolKeys[i];
  9396. if (excluded.indexOf(key) >= 0) continue;
  9397. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  9398. target[key] = source[key];
  9399. }
  9400. }
  9401. return target;
  9402. }
  9403. function _toConsumableArray(arr) {
  9404. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  9405. }
  9406. function _arrayWithoutHoles(arr) {
  9407. if (Array.isArray(arr)) {
  9408. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  9409. return arr2;
  9410. }
  9411. }
  9412. function _iterableToArray(iter) {
  9413. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  9414. }
  9415. function _nonIterableSpread() {
  9416. throw new TypeError("Invalid attempt to spread non-iterable instance");
  9417. }
  9418. // Get CSS class list from a props object
  9419. function classList(props) {
  9420. var _classes;
  9421. var spin = props.spin,
  9422. pulse = props.pulse,
  9423. fixedWidth = props.fixedWidth,
  9424. inverse = props.inverse,
  9425. border = props.border,
  9426. listItem = props.listItem,
  9427. flip = props.flip,
  9428. size = props.size,
  9429. rotation = props.rotation,
  9430. pull = props.pull; // map of CSS class names to properties
  9431. var classes = (_classes = {
  9432. 'fa-spin': spin,
  9433. 'fa-pulse': pulse,
  9434. 'fa-fw': fixedWidth,
  9435. 'fa-inverse': inverse,
  9436. 'fa-border': border,
  9437. 'fa-li': listItem,
  9438. 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
  9439. 'fa-flip-vertical': flip === 'vertical' || flip === 'both'
  9440. }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null && rotation !== 0), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined' && pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object
  9441. // return an array of the keys where the value for the key is not null
  9442. return Object.keys(classes).map(function (key) {
  9443. return classes[key] ? key : null;
  9444. }).filter(function (key) {
  9445. return key;
  9446. });
  9447. }
  9448. // Camelize taken from humps
  9449. // humps is copyright © 2012+ Dom Christie
  9450. // Released under the MIT license.
  9451. // Performant way to determine if object coerces to a number
  9452. function _isNumerical(obj) {
  9453. obj = obj - 0; // eslint-disable-next-line no-self-compare
  9454. return obj === obj;
  9455. }
  9456. function camelize(string) {
  9457. if (_isNumerical(string)) {
  9458. return string;
  9459. } // eslint-disable-next-line no-useless-escape
  9460. string = string.replace(/[\-_\s]+(.)?/g, function (match, chr) {
  9461. return chr ? chr.toUpperCase() : '';
  9462. }); // Ensure 1st char is always lowercase
  9463. return string.substr(0, 1).toLowerCase() + string.substr(1);
  9464. }
  9465. function capitalize(val) {
  9466. return val.charAt(0).toUpperCase() + val.slice(1);
  9467. }
  9468. function styleToObject(style) {
  9469. return style.split(';').map(function (s) {
  9470. return s.trim();
  9471. }).filter(function (s) {
  9472. return s;
  9473. }).reduce(function (acc, pair) {
  9474. var i = pair.indexOf(':');
  9475. var prop = camelize(pair.slice(0, i));
  9476. var value = pair.slice(i + 1).trim();
  9477. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  9478. return acc;
  9479. }, {});
  9480. }
  9481. function convert(createElement, element) {
  9482. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9483. if (typeof element === 'string') {
  9484. return element;
  9485. }
  9486. var children = (element.children || []).map(function (child) {
  9487. return convert(createElement, child);
  9488. });
  9489. /* eslint-disable dot-notation */
  9490. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  9491. var val = element.attributes[key];
  9492. switch (key) {
  9493. case 'class':
  9494. acc.attrs['className'] = val;
  9495. delete element.attributes['class'];
  9496. break;
  9497. case 'style':
  9498. acc.attrs['style'] = styleToObject(val);
  9499. break;
  9500. default:
  9501. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  9502. acc.attrs[key.toLowerCase()] = val;
  9503. } else {
  9504. acc.attrs[camelize(key)] = val;
  9505. }
  9506. }
  9507. return acc;
  9508. }, {
  9509. attrs: {}
  9510. });
  9511. var _extraProps$style = extraProps.style,
  9512. existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
  9513. remaining = _objectWithoutProperties(extraProps, ["style"]);
  9514. mixins.attrs['style'] = _objectSpread2({}, mixins.attrs['style'], {}, existingStyle);
  9515. /* eslint-enable */
  9516. return createElement.apply(void 0, [element.tag, _objectSpread2({}, mixins.attrs, {}, remaining)].concat(_toConsumableArray(children)));
  9517. }
  9518. var PRODUCTION = false;
  9519. try {
  9520. PRODUCTION = "development" === 'production';
  9521. } catch (e) {}
  9522. function log () {
  9523. if (!PRODUCTION && console && typeof console.error === 'function') {
  9524. var _console;
  9525. (_console = console).error.apply(_console, arguments);
  9526. }
  9527. }
  9528. // Normalize icon arguments
  9529. function normalizeIconArgs(icon) {
  9530. // if the icon is null, there's nothing to do
  9531. if (icon === null) {
  9532. return null;
  9533. } // if the icon is an object and has a prefix and an icon name, return it
  9534. if (_typeof(icon) === 'object' && icon.prefix && icon.iconName) {
  9535. return icon;
  9536. } // if it's an array with length of two
  9537. if (Array.isArray(icon) && icon.length === 2) {
  9538. // use the first item as prefix, second as icon name
  9539. return {
  9540. prefix: icon[0],
  9541. iconName: icon[1]
  9542. };
  9543. } // if it's a string, use it as the icon name
  9544. if (typeof icon === 'string') {
  9545. return {
  9546. prefix: 'fas',
  9547. iconName: icon
  9548. };
  9549. }
  9550. }
  9551. // creates an object with a key of key
  9552. // and a value of value
  9553. // if certain conditions are met
  9554. function objectWithKey(key, value) {
  9555. // if the value is a non-empty array
  9556. // or it's not an array but it is truthy
  9557. // then create the object with the key and the value
  9558. // if not, return an empty array
  9559. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
  9560. }
  9561. function FontAwesomeIcon(_ref) {
  9562. var forwardedRef = _ref.forwardedRef,
  9563. props = _objectWithoutProperties(_ref, ["forwardedRef"]);
  9564. var iconArgs = props.icon,
  9565. maskArgs = props.mask,
  9566. symbol = props.symbol,
  9567. className = props.className,
  9568. title = props.title;
  9569. var iconLookup = normalizeIconArgs(iconArgs);
  9570. var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
  9571. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  9572. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  9573. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _objectSpread2({}, classes, {}, transform, {}, mask, {
  9574. symbol: symbol,
  9575. title: title
  9576. }));
  9577. if (!renderedIcon) {
  9578. log('Could not find icon', iconLookup);
  9579. return null;
  9580. }
  9581. var abstract = renderedIcon.abstract;
  9582. var extraProps = {
  9583. ref: forwardedRef
  9584. };
  9585. Object.keys(props).forEach(function (key) {
  9586. // eslint-disable-next-line no-prototype-builtins
  9587. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  9588. extraProps[key] = props[key];
  9589. }
  9590. });
  9591. return convertCurry(abstract[0], extraProps);
  9592. }
  9593. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  9594. FontAwesomeIcon.propTypes = {
  9595. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  9596. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  9597. 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]),
  9598. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  9599. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  9600. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  9601. 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]),
  9602. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  9603. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  9604. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  9605. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([0, 90, 180, 270]),
  9606. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  9607. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  9608. 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]),
  9609. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  9610. 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]),
  9611. swapOpacity: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
  9612. };
  9613. FontAwesomeIcon.defaultProps = {
  9614. border: false,
  9615. className: '',
  9616. mask: null,
  9617. fixedWidth: false,
  9618. inverse: false,
  9619. flip: null,
  9620. icon: null,
  9621. listItem: false,
  9622. pull: null,
  9623. pulse: false,
  9624. rotation: null,
  9625. size: null,
  9626. spin: false,
  9627. symbol: false,
  9628. title: '',
  9629. transform: null,
  9630. swapOpacity: false
  9631. };
  9632. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  9633. /***/ }),
  9634. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/log/log.scss":
  9635. /*!**************************************************************************************************************************************************!*\
  9636. !*** C:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!C:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/log/log.scss ***!
  9637. \**************************************************************************************************************************************************/
  9638. /*! no static exports found */
  9639. /***/ (function(module, exports, __webpack_require__) {
  9640. // Imports
  9641. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9642. exports = ___CSS_LOADER_API_IMPORT___(false);
  9643. // Module
  9644. 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", ""]);
  9645. // Exports
  9646. module.exports = exports;
  9647. /***/ }),
  9648. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/nodeList/nodeList.scss":
  9649. /*!************************************************************************************************************************************************************!*\
  9650. !*** C:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!C:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/nodeList/nodeList.scss ***!
  9651. \************************************************************************************************************************************************************/
  9652. /*! no static exports found */
  9653. /***/ (function(module, exports, __webpack_require__) {
  9654. // Imports
  9655. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9656. exports = ___CSS_LOADER_API_IMPORT___(false);
  9657. // Module
  9658. 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 .nonDraggableLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n background: #222222;\n text-align: center;\n margin: 0;\n box-sizing: border-box; }\n #nodeList .panes .pane .list-container .withButton {\n height: 30px;\n position: relative; }\n #nodeList .panes .pane .list-container .withButton .icon {\n position: absolute;\n right: 4px;\n top: 5px; }\n #nodeList .panes .pane .list-container .withButton .icon:hover {\n cursor: pointer; }\n #nodeList .panes .pane .list-container .withButton .icon .img {\n height: 17px;\n width: 17px; }\n #nodeList .panes .pane .list-container .withButton .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n padding-bottom: 5px;\n position: absolute;\n right: 0px;\n top: 2px; }\n #nodeList .panes .pane .list-container .withButton .buttonLine input[type=\"file\"] {\n display: none; }\n #nodeList .panes .pane .list-container .withButton .buttonLine .file-upload {\n background: transparent;\n border: transparent;\n padding: 15px 200px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #nodeList .panes .pane .list-container .withButton .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #nodeList .panes .pane .list-container .withButton .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #nodeList .panes .pane .list-container .withButton .buttonLine button {\n background: transparent;\n border: transparent;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #nodeList .panes .pane .list-container .withButton .buttonLine button:hover {\n opacity: 0.0; }\n #nodeList .panes .pane .list-container .withButton .buttonLine button:active {\n background: transparent; }\n #nodeList .panes .pane .list-container .withButton .buttonLine button:focus {\n border: transparent;\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", ""]);
  9659. // Exports
  9660. module.exports = exports;
  9661. /***/ }),
  9662. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/propertyTab/propertyTab.scss":
  9663. /*!******************************************************************************************************************************************************************!*\
  9664. !*** C:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!C:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./components/propertyTab/propertyTab.scss ***!
  9665. \******************************************************************************************************************************************************************/
  9666. /*! no static exports found */
  9667. /***/ (function(module, exports, __webpack_require__) {
  9668. // Imports
  9669. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9670. exports = ___CSS_LOADER_API_IMPORT___(false);
  9671. // Module
  9672. 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-rows: 100%;\n grid-template-columns: 1fr 50px auto; }\n #propertyTab .sliderLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .sliderLine .slider {\n grid-column: 3;\n grid-row: 1;\n margin-right: 5px;\n width: 90%;\n display: flex;\n align-items: center; }\n #propertyTab .sliderLine .floatLine {\n grid-column: 2;\n padding-left: 5px; }\n #propertyTab .sliderLine .floatLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .sliderLine .floatLine .short {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .sliderLine .floatLine .short input {\n width: 35px; }\n #propertyTab .sliderLine .floatLine .short input::-webkit-outer-spin-button,\n #propertyTab .sliderLine .floatLine .short input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0; }\n #propertyTab .sliderLine .floatLine .short input[type=number] {\n -moz-appearance: textfield; }\n #propertyTab .textInputLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px auto; }\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 .textInputArea {\n padding-left: 5px;\n height: 50px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .textInputArea .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textInputArea .value {\n display: flex;\n align-items: center;\n grid-column: 2; }\n #propertyTab .textInputArea .value textarea {\n width: calc(150% - 5px);\n margin-left: -50%;\n height: 40px; }\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 .color-picker {\n height: calc(100% - 8px);\n margin: 4px;\n width: calc(100% - 8px); }\n #propertyTab .color-picker .color-rect {\n height: calc(100% - 4px);\n border: 2px white solid;\n cursor: pointer;\n min-height: 18px; }\n #propertyTab .color-picker .color-picker-cover {\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px; }\n #propertyTab .color-picker .color-picker-float {\n z-index: 2;\n position: absolute; }\n #propertyTab .gradient-step {\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 20px 30px 40px auto 20px 30px;\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 padding-left: 12px; }\n #propertyTab .gradient-step .step-slider input {\n width: 90%; }\n #propertyTab .gradient-step .gradient-copy {\n grid-row: 1;\n grid-column: 5;\n display: grid;\n align-content: center;\n justify-content: center; }\n #propertyTab .gradient-step .gradient-copy .img {\n height: 20px;\n width: 20px; }\n #propertyTab .gradient-step .gradient-copy .img:hover {\n cursor: pointer; }\n #propertyTab .gradient-step .gradient-delete {\n grid-row: 1;\n grid-column: 6;\n display: grid;\n align-content: center;\n justify-content: center; }\n #propertyTab .gradient-step .gradient-delete .img {\n height: 20px;\n width: 20px; }\n #propertyTab .gradient-step .gradient-delete .img:hover {\n cursor: pointer; }\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 .floatLine .short {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .short input {\n width: 27px; }\n #propertyTab .floatLine .short input::-webkit-outer-spin-button,\n #propertyTab .floatLine .short input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0; }\n #propertyTab .floatLine .short input[type=number] {\n -moz-appearance: textfield; }\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 .cbx:checked ~ label.disabled {\n background: #164975;\n cursor: pointer; }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label.disabled:after {\n left: 20px;\n background: #555555;\n cursor: pointer; }\n #propertyTab .checkBoxLine .checkBox .cbx ~ label.disabled {\n background: #555555;\n cursor: pointer; }\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 width: 50px;\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 .copy img {\n height: 100%;\n width: 20px; }\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 .firstLine .expand img {\n height: 100%;\n width: 20px; }\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", ""]);
  9673. // Exports
  9674. module.exports = exports;
  9675. /***/ }),
  9676. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./diagram/graphCanvas.scss":
  9677. /*!***************************************************************************************************************************************************!*\
  9678. !*** C:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!C:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./diagram/graphCanvas.scss ***!
  9679. \***************************************************************************************************************************************************/
  9680. /*! no static exports found */
  9681. /***/ (function(module, exports, __webpack_require__) {
  9682. // Imports
  9683. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9684. exports = ___CSS_LOADER_API_IMPORT___(false);
  9685. // Module
  9686. 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 img.selected {\n box-shadow: 0 0 0 2px;\n border-radius: 50%; }\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 z-index: 3; }\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.collapsed .frame-comments.has-comments .frame-comment-span {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\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 .frame-comments.has-comments {\n display: grid;\n grid-row: 2;\n grid-column: 1;\n padding: 0 10px;\n font-style: italic;\n word-wrap: break-word; }\n #graph-canvas #graph-container .frame-box.selected .frame-box-border {\n border-color: white; }\n #graph-canvas #graph-container .frame-box .right-handle {\n grid-area: 1 / 2 / 3 / 2;\n width: 4px;\n background-color: transparent;\n cursor: ew-resize; }\n #graph-canvas #graph-container .frame-box .right-handle::after {\n content: \"\";\n width: 8px;\n position: absolute;\n top: 0;\n bottom: 0;\n margin-left: -4px;\n cursor: ew-resize; }\n #graph-canvas #graph-container .frame-box .right-handle.collapsed {\n cursor: pointer; }\n #graph-canvas #graph-container .frame-box .top-right-corner-handle {\n background-color: transparent;\n height: 4px;\n z-index: 21;\n cursor: ne-resize;\n width: 4px;\n margin-left: -6px; }\n #graph-canvas #graph-container .frame-box .top-right-corner-handle::after {\n background-color: transparent;\n cursor: ne-resize;\n margin-left: unset;\n top: -4px;\n height: 10px;\n width: 10px; }\n #graph-canvas #graph-container .frame-box .bottom-right-corner-handle {\n background-color: transparent;\n height: 0px;\n z-index: 21;\n cursor: nw-resize;\n grid-area: 4 / 2 / 4 / 2;\n margin-left: -2px; }\n #graph-canvas #graph-container .frame-box .bottom-right-corner-handle::after {\n background-color: transparent;\n height: 10px;\n cursor: nw-resize;\n top: unset;\n bottom: -4px;\n width: 10px; }\n #graph-canvas #graph-container .frame-box .left-handle {\n grid-area: 1 / 1 / 3 / 1;\n width: 4px;\n background-color: transparent;\n cursor: ew-resize; }\n #graph-canvas #graph-container .frame-box .left-handle::before {\n content: \"\";\n width: 8px;\n position: absolute;\n top: 0;\n bottom: 0;\n margin-left: -4px; }\n #graph-canvas #graph-container .frame-box .top-left-corner-handle {\n background-color: transparent;\n height: 4px;\n z-index: 21;\n cursor: nw-resize;\n width: 4px;\n margin-left: -4px; }\n #graph-canvas #graph-container .frame-box .top-left-corner-handle::before {\n background-color: transparent;\n cursor: nw-resize;\n margin-left: unset;\n top: -4px;\n height: 10px;\n width: 10px; }\n #graph-canvas #graph-container .frame-box .bottom-left-corner-handle {\n background-color: transparent;\n height: 0px;\n z-index: 21;\n cursor: sw-resize;\n grid-area: 4 / 1 / 4 / 1; }\n #graph-canvas #graph-container .frame-box .bottom-left-corner-handle::before {\n background-color: transparent;\n height: 10px;\n cursor: sw-resize;\n top: unset;\n bottom: -4px;\n width: 10px; }\n #graph-canvas #graph-container .frame-box .top-handle {\n grid-area: 1 / 1 / 1 / 1;\n background-color: transparent;\n height: 4px;\n cursor: ns-resize; }\n #graph-canvas #graph-container .frame-box .top-handle::before {\n content: \"\";\n width: 100%;\n position: absolute;\n top: -4px;\n bottom: 100%;\n right: 0;\n left: 0;\n margin-bottom: -8px;\n cursor: ns-resize;\n height: 8px; }\n #graph-canvas #graph-container .frame-box .bottom-handle {\n grid-area: 3 / 1 / 3 / 1;\n background-color: transparent;\n height: 4px;\n cursor: ns-resize; }\n #graph-canvas #graph-container .frame-box .bottom-handle::after {\n content: \"\";\n width: 100%;\n position: absolute;\n top: 100%;\n bottom: 0;\n right: 0;\n left: 0;\n margin-top: -8px;\n cursor: ns-resize;\n height: 12px; }\n #graph-canvas #graph-container .frame-box.collapsed .top-handle, #graph-canvas #graph-container .frame-box.collapsed .top-right-corner-handle, #graph-canvas #graph-container .frame-box.collapsed .right-handle, #graph-canvas #graph-container .frame-box.collapsed .bottom-right-corner-handle, #graph-canvas #graph-container .frame-box.collapsed .bottom-handle, #graph-canvas #graph-container .frame-box.collapsed .bottom-left-corner-handle, #graph-canvas #graph-container .frame-box.collapsed .left-handle, #graph-canvas #graph-container .frame-box.collapsed .top-left-corner-handle {\n cursor: default; }\n #graph-canvas #graph-container .frame-box.collapsed .right-handle::after, #graph-canvas #graph-container .frame-box.collapsed .bottom-handle::after, #graph-canvas #graph-container .frame-box.collapsed .top-right-corner-handle::after, #graph-canvas #graph-container .frame-box.collapsed .bottom-right-corner-handle::after {\n cursor: default; }\n #graph-canvas #graph-container .frame-box.collapsed .left-handle::before, #graph-canvas #graph-container .frame-box.collapsed .top-handle::before, #graph-canvas #graph-container .frame-box.collapsed .top-left-corner-handle::before, #graph-canvas #graph-container .frame-box.collapsed .bottom-left-corner-handle::before {\n cursor: default; }\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: 2; }\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: 4;\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: #464348;\n background: #464348; }\n #graph-canvas #graph-container #graph-canvas-container .visual .header.inspector {\n border-color: #66491b;\n background: #66491b; }\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 min-height: 34px;\n text-align: center;\n font-size: 18px;\n font-weight: bold;\n margin: 0 10px 5px;\n display: grid;\n align-content: center; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.input-block.small-font {\n font-size: 17px; }\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 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.regular-texture-block {\n margin-top: -115px; }\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", ""]);
  9687. // Exports
  9688. module.exports = exports;
  9689. /***/ }),
  9690. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./main.scss":
  9691. /*!************************************************************************************************************************************!*\
  9692. !*** C:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!C:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./main.scss ***!
  9693. \************************************************************************************************************************************/
  9694. /*! no static exports found */
  9695. /***/ (function(module, exports, __webpack_require__) {
  9696. // Imports
  9697. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9698. exports = ___CSS_LOADER_API_IMPORT___(false);
  9699. // Module
  9700. 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.wait-screen {\n display: grid;\n justify-content: center;\n align-content: center;\n height: 100%;\n width: 100%;\n background: #464646;\n opacity: 0.95;\n color: white;\n font: 24px \"acumin-pro\";\n position: absolute;\n top: 0;\n left: 0; }\n .wait-screen.hidden {\n visibility: hidden; }\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 40px auto 40px;\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: auto;\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: grid;\n grid-template-columns: auto 1fr 40px 40px 40px;\n align-items: center;\n font-size: 18px;\n background-color: #555555; }\n .right-panel #preview-mesh-bar #file-picker {\n display: none; }\n .right-panel #preview-mesh-bar .listLine {\n grid-column: 1;\n height: 40px;\n display: grid;\n grid-template-columns: 0px 1fr; }\n .right-panel #preview-mesh-bar .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center;\n font-size: 14px; }\n .right-panel #preview-mesh-bar .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-left: 5px; }\n .right-panel #preview-mesh-bar .listLine .options select {\n width: 115px; }\n .right-panel #preview-mesh-bar .button {\n color: #ffffff;\n width: 40px;\n height: 40px;\n transform-origin: 50% 50%; }\n .right-panel #preview-mesh-bar .button:active {\n transform: scale(0.9); }\n .right-panel #preview-mesh-bar .button:hover {\n background: #3f3461; }\n .right-panel #preview-mesh-bar .button.selected {\n background: #9379e6; }\n .right-panel #preview-mesh-bar .button img {\n height: 40px;\n width: 100%; }\n .right-panel #preview-mesh-bar #play-button {\n grid-column: 3; }\n .right-panel #preview-mesh-bar #color-picker-button {\n grid-column: 4;\n display: grid;\n grid-template-columns: 100%;\n grid-template-rows: 100%; }\n .right-panel #preview-mesh-bar #color-picker-button img {\n height: 40px;\n width: 30px; }\n .right-panel #preview-mesh-bar #color-picker-button #color-picker-image {\n padding-left: 5px;\n padding-bottom: 38px; }\n .right-panel #preview-mesh-bar #color-picker-button #color-picker {\n transform: scale(0);\n grid-column: 1;\n grid-row: 1; }\n .right-panel #preview-mesh-bar #color-picker-button #color-picker-label {\n width: 100%;\n background: transparent;\n cursor: pointer; }\n .right-panel #preview-mesh-bar #preview-new-window {\n grid-column: 5; }\n .right-panel #preview-mesh-bar select {\n background-color: #a3a3a3;\n color: #333333; }\n .right-panel #preview-config-bar {\n grid-row: 4;\n grid-column: 1;\n display: grid;\n grid-template-columns: 40px 40px 40px 1fr 40px 40px;\n color: white;\n align-items: center;\n font-size: 18px; }\n .right-panel #preview-config-bar .button {\n width: 40px;\n grid-row: 1;\n height: 40px;\n transform-origin: 50% 50%; }\n .right-panel #preview-config-bar .button:hover {\n background: #3f3461; }\n .right-panel #preview-config-bar .button.selected {\n background: #9379e6; }\n .right-panel #preview-config-bar .button:active {\n transform: scale(0.9); }\n .right-panel #preview-config-bar .button img {\n height: auto;\n width: 100%; }\n .right-panel #preview-config-bar .button.back-face {\n grid-column: 6; }\n .right-panel #preview-config-bar .button.depth-pass {\n grid-column: 5 / 6; }\n .right-panel #preview-config-bar .button.hemispheric-light {\n grid-column: 3 / 4; }\n .right-panel #preview-config-bar .button.direction-light-1 {\n grid-column: 2 / 3; }\n .right-panel #preview-config-bar .button.direction-light-0 {\n grid-column: 1 / 2; }\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", ""]);
  9701. // Exports
  9702. module.exports = exports;
  9703. /***/ }),
  9704. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./sharedComponents/colorPicker/colorPicker.scss":
  9705. /*!************************************************************************************************************************************************************************!*\
  9706. !*** C:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!C:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./sharedComponents/colorPicker/colorPicker.scss ***!
  9707. \************************************************************************************************************************************************************************/
  9708. /*! no static exports found */
  9709. /***/ (function(module, exports, __webpack_require__) {
  9710. // Imports
  9711. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9712. exports = ___CSS_LOADER_API_IMPORT___(false);
  9713. // Module
  9714. exports.push([module.i, ".color-picker-container {\n width: 320px;\n height: 300px;\n background-color: white;\n display: grid;\n grid-template-columns: 100%;\n grid-template-rows: 50% 50px 60px 40px 1fr;\n font-family: \"acumin-pro-condensed\";\n font-weight: normal;\n font-size: 14px; }\n .color-picker-container .color-picker-saturation {\n grid-row: 1;\n grid-column: 1;\n display: grid;\n grid-template-columns: 100%;\n grid-template-rows: 100%;\n position: relative;\n cursor: pointer; }\n .color-picker-container .color-picker-saturation .color-picker-saturation-white {\n grid-row: 1;\n grid-column: 1;\n background: -webkit-linear-gradient(to right, #fff, rgba(255, 255, 255, 0));\n background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }\n .color-picker-container .color-picker-saturation .color-picker-saturation-black {\n grid-row: 1;\n grid-column: 1;\n background: -webkit-linear-gradient(to top, #000, rgba(0, 0, 0, 0));\n background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)); }\n .color-picker-container .color-picker-saturation .color-picker-saturation-cursor {\n pointer-events: none;\n width: 4px;\n height: 4px;\n box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4);\n border-radius: 50%;\n transform: translate(-2px, -2px);\n position: absolute; }\n .color-picker-container .color-picker-hue {\n grid-row: 2;\n grid-column: 1;\n display: grid;\n margin: 10px;\n grid-template-columns: 24% 76%;\n grid-template-rows: 100%; }\n .color-picker-container .color-picker-hue .color-picker-hue-color {\n grid-row: 1;\n grid-column: 1;\n align-self: center;\n justify-self: center;\n width: 30px;\n height: 30px;\n border-radius: 15px;\n border: 1px solid black; }\n .color-picker-container .color-picker-hue .color-picker-hue-slider {\n grid-row: 1;\n grid-column: 2;\n align-self: center;\n height: 16px;\n position: relative;\n cursor: pointer;\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); }\n .color-picker-container .color-picker-hue .color-picker-hue-slider .color-picker-hue-cursor {\n pointer-events: none;\n width: 8px;\n height: 18px;\n transform: translate(-4px, -2px);\n background-color: #f8f8f8;\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n position: absolute; }\n .color-picker-container .color-picker-component {\n display: grid;\n margin: 5px;\n grid-template-columns: 100%;\n grid-template-rows: 50% 50%; }\n .color-picker-container .color-picker-component .color-picker-component-value {\n justify-self: center;\n align-self: center;\n grid-row: 1;\n grid-column: 1;\n margin-bottom: 4px; }\n .color-picker-container .color-picker-component .color-picker-component-value input {\n width: 50px; }\n .color-picker-container .color-picker-component .color-picker-component-label {\n justify-self: center;\n align-self: center;\n grid-row: 2;\n grid-column: 1;\n color: black; }\n .color-picker-container .color-picker-rgb {\n grid-row: 3;\n grid-column: 1;\n display: grid;\n margin: 10px;\n grid-template-columns: 20% 6.66% 20% 6.66% 20% 6.66% 20%;\n grid-template-rows: 100%; }\n .color-picker-container .red {\n grid-row: 1;\n grid-column: 1; }\n .color-picker-container .green {\n grid-row: 1;\n grid-column: 3; }\n .color-picker-container .blue {\n grid-row: 1;\n grid-column: 5; }\n .color-picker-container .alpha {\n grid-row: 1;\n grid-column: 7; }\n .color-picker-container .alpha.grayed {\n opacity: 0.5; }\n .color-picker-container .color-picker-hex {\n grid-row: 4;\n grid-column: 1;\n display: grid;\n grid-template-columns: 20% 80%;\n grid-template-rows: 100%; }\n .color-picker-container .color-picker-hex .color-picker-hex-label {\n justify-self: center;\n align-self: center;\n grid-row: 1;\n grid-column: 1;\n margin-left: 10px;\n color: black; }\n .color-picker-container .color-picker-hex .color-picker-hex-value {\n justify-self: left;\n align-self: center;\n grid-row: 1;\n grid-column: 2;\n margin-left: 10px;\n margin-right: 10px; }\n .color-picker-container .color-picker-hex .color-picker-hex-value input {\n width: 70px; }\n", ""]);
  9715. // Exports
  9716. module.exports = exports;
  9717. /***/ }),
  9718. /***/ "../../node_modules/css-loader/dist/runtime/api.js":
  9719. /*!***********************************************************************!*\
  9720. !*** C:/Repos/Babylon.js/node_modules/css-loader/dist/runtime/api.js ***!
  9721. \***********************************************************************/
  9722. /*! no static exports found */
  9723. /***/ (function(module, exports, __webpack_require__) {
  9724. "use strict";
  9725. /*
  9726. MIT License http://www.opensource.org/licenses/mit-license.php
  9727. Author Tobias Koppers @sokra
  9728. */
  9729. // css base code, injected by the css-loader
  9730. // eslint-disable-next-line func-names
  9731. module.exports = function (useSourceMap) {
  9732. var list = []; // return the list of modules as css string
  9733. list.toString = function toString() {
  9734. return this.map(function (item) {
  9735. var content = cssWithMappingToString(item, useSourceMap);
  9736. if (item[2]) {
  9737. return "@media ".concat(item[2], " {").concat(content, "}");
  9738. }
  9739. return content;
  9740. }).join('');
  9741. }; // import a list of modules into the list
  9742. // eslint-disable-next-line func-names
  9743. list.i = function (modules, mediaQuery, dedupe) {
  9744. if (typeof modules === 'string') {
  9745. // eslint-disable-next-line no-param-reassign
  9746. modules = [[null, modules, '']];
  9747. }
  9748. var alreadyImportedModules = {};
  9749. if (dedupe) {
  9750. for (var i = 0; i < this.length; i++) {
  9751. // eslint-disable-next-line prefer-destructuring
  9752. var id = this[i][0];
  9753. if (id != null) {
  9754. alreadyImportedModules[id] = true;
  9755. }
  9756. }
  9757. }
  9758. for (var _i = 0; _i < modules.length; _i++) {
  9759. var item = [].concat(modules[_i]);
  9760. if (dedupe && alreadyImportedModules[item[0]]) {
  9761. // eslint-disable-next-line no-continue
  9762. continue;
  9763. }
  9764. if (mediaQuery) {
  9765. if (!item[2]) {
  9766. item[2] = mediaQuery;
  9767. } else {
  9768. item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
  9769. }
  9770. }
  9771. list.push(item);
  9772. }
  9773. };
  9774. return list;
  9775. };
  9776. function cssWithMappingToString(item, useSourceMap) {
  9777. var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
  9778. var cssMapping = item[3];
  9779. if (!cssMapping) {
  9780. return content;
  9781. }
  9782. if (useSourceMap && typeof btoa === 'function') {
  9783. var sourceMapping = toComment(cssMapping);
  9784. var sourceURLs = cssMapping.sources.map(function (source) {
  9785. return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
  9786. });
  9787. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  9788. }
  9789. return [content].join('\n');
  9790. } // Adapted from convert-source-map (MIT)
  9791. function toComment(sourceMap) {
  9792. // eslint-disable-next-line no-undef
  9793. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  9794. var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
  9795. return "/*# ".concat(data, " */");
  9796. }
  9797. /***/ }),
  9798. /***/ "../../node_modules/dagre/index.js":
  9799. /*!*******************************************************!*\
  9800. !*** C:/Repos/Babylon.js/node_modules/dagre/index.js ***!
  9801. \*******************************************************/
  9802. /*! no static exports found */
  9803. /***/ (function(module, exports, __webpack_require__) {
  9804. /*
  9805. Copyright (c) 2012-2014 Chris Pettitt
  9806. Permission is hereby granted, free of charge, to any person obtaining a copy
  9807. of this software and associated documentation files (the "Software"), to deal
  9808. in the Software without restriction, including without limitation the rights
  9809. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9810. copies of the Software, and to permit persons to whom the Software is
  9811. furnished to do so, subject to the following conditions:
  9812. The above copyright notice and this permission notice shall be included in
  9813. all copies or substantial portions of the Software.
  9814. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  9815. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  9816. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  9817. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  9818. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  9819. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  9820. THE SOFTWARE.
  9821. */
  9822. module.exports = {
  9823. graphlib: __webpack_require__(/*! ./lib/graphlib */ "../../node_modules/dagre/lib/graphlib.js"),
  9824. layout: __webpack_require__(/*! ./lib/layout */ "../../node_modules/dagre/lib/layout.js"),
  9825. debug: __webpack_require__(/*! ./lib/debug */ "../../node_modules/dagre/lib/debug.js"),
  9826. util: {
  9827. time: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").time,
  9828. notime: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").notime
  9829. },
  9830. version: __webpack_require__(/*! ./lib/version */ "../../node_modules/dagre/lib/version.js")
  9831. };
  9832. /***/ }),
  9833. /***/ "../../node_modules/dagre/lib/acyclic.js":
  9834. /*!*************************************************************!*\
  9835. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/acyclic.js ***!
  9836. \*************************************************************/
  9837. /*! no static exports found */
  9838. /***/ (function(module, exports, __webpack_require__) {
  9839. "use strict";
  9840. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  9841. var greedyFAS = __webpack_require__(/*! ./greedy-fas */ "../../node_modules/dagre/lib/greedy-fas.js");
  9842. module.exports = {
  9843. run: run,
  9844. undo: undo
  9845. };
  9846. function run(g) {
  9847. var fas = (g.graph().acyclicer === "greedy"
  9848. ? greedyFAS(g, weightFn(g))
  9849. : dfsFAS(g));
  9850. _.forEach(fas, function(e) {
  9851. var label = g.edge(e);
  9852. g.removeEdge(e);
  9853. label.forwardName = e.name;
  9854. label.reversed = true;
  9855. g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
  9856. });
  9857. function weightFn(g) {
  9858. return function(e) {
  9859. return g.edge(e).weight;
  9860. };
  9861. }
  9862. }
  9863. function dfsFAS(g) {
  9864. var fas = [];
  9865. var stack = {};
  9866. var visited = {};
  9867. function dfs(v) {
  9868. if (_.has(visited, v)) {
  9869. return;
  9870. }
  9871. visited[v] = true;
  9872. stack[v] = true;
  9873. _.forEach(g.outEdges(v), function(e) {
  9874. if (_.has(stack, e.w)) {
  9875. fas.push(e);
  9876. } else {
  9877. dfs(e.w);
  9878. }
  9879. });
  9880. delete stack[v];
  9881. }
  9882. _.forEach(g.nodes(), dfs);
  9883. return fas;
  9884. }
  9885. function undo(g) {
  9886. _.forEach(g.edges(), function(e) {
  9887. var label = g.edge(e);
  9888. if (label.reversed) {
  9889. g.removeEdge(e);
  9890. var forwardName = label.forwardName;
  9891. delete label.reversed;
  9892. delete label.forwardName;
  9893. g.setEdge(e.w, e.v, label, forwardName);
  9894. }
  9895. });
  9896. }
  9897. /***/ }),
  9898. /***/ "../../node_modules/dagre/lib/add-border-segments.js":
  9899. /*!*************************************************************************!*\
  9900. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/add-border-segments.js ***!
  9901. \*************************************************************************/
  9902. /*! no static exports found */
  9903. /***/ (function(module, exports, __webpack_require__) {
  9904. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  9905. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  9906. module.exports = addBorderSegments;
  9907. function addBorderSegments(g) {
  9908. function dfs(v) {
  9909. var children = g.children(v);
  9910. var node = g.node(v);
  9911. if (children.length) {
  9912. _.forEach(children, dfs);
  9913. }
  9914. if (_.has(node, "minRank")) {
  9915. node.borderLeft = [];
  9916. node.borderRight = [];
  9917. for (var rank = node.minRank, maxRank = node.maxRank + 1;
  9918. rank < maxRank;
  9919. ++rank) {
  9920. addBorderNode(g, "borderLeft", "_bl", v, node, rank);
  9921. addBorderNode(g, "borderRight", "_br", v, node, rank);
  9922. }
  9923. }
  9924. }
  9925. _.forEach(g.children(), dfs);
  9926. }
  9927. function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
  9928. var label = { width: 0, height: 0, rank: rank, borderType: prop };
  9929. var prev = sgNode[prop][rank - 1];
  9930. var curr = util.addDummyNode(g, "border", label, prefix);
  9931. sgNode[prop][rank] = curr;
  9932. g.setParent(curr, sg);
  9933. if (prev) {
  9934. g.setEdge(prev, curr, { weight: 1 });
  9935. }
  9936. }
  9937. /***/ }),
  9938. /***/ "../../node_modules/dagre/lib/coordinate-system.js":
  9939. /*!***********************************************************************!*\
  9940. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/coordinate-system.js ***!
  9941. \***********************************************************************/
  9942. /*! no static exports found */
  9943. /***/ (function(module, exports, __webpack_require__) {
  9944. "use strict";
  9945. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  9946. module.exports = {
  9947. adjust: adjust,
  9948. undo: undo
  9949. };
  9950. function adjust(g) {
  9951. var rankDir = g.graph().rankdir.toLowerCase();
  9952. if (rankDir === "lr" || rankDir === "rl") {
  9953. swapWidthHeight(g);
  9954. }
  9955. }
  9956. function undo(g) {
  9957. var rankDir = g.graph().rankdir.toLowerCase();
  9958. if (rankDir === "bt" || rankDir === "rl") {
  9959. reverseY(g);
  9960. }
  9961. if (rankDir === "lr" || rankDir === "rl") {
  9962. swapXY(g);
  9963. swapWidthHeight(g);
  9964. }
  9965. }
  9966. function swapWidthHeight(g) {
  9967. _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
  9968. _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
  9969. }
  9970. function swapWidthHeightOne(attrs) {
  9971. var w = attrs.width;
  9972. attrs.width = attrs.height;
  9973. attrs.height = w;
  9974. }
  9975. function reverseY(g) {
  9976. _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
  9977. _.forEach(g.edges(), function(e) {
  9978. var edge = g.edge(e);
  9979. _.forEach(edge.points, reverseYOne);
  9980. if (_.has(edge, "y")) {
  9981. reverseYOne(edge);
  9982. }
  9983. });
  9984. }
  9985. function reverseYOne(attrs) {
  9986. attrs.y = -attrs.y;
  9987. }
  9988. function swapXY(g) {
  9989. _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
  9990. _.forEach(g.edges(), function(e) {
  9991. var edge = g.edge(e);
  9992. _.forEach(edge.points, swapXYOne);
  9993. if (_.has(edge, "x")) {
  9994. swapXYOne(edge);
  9995. }
  9996. });
  9997. }
  9998. function swapXYOne(attrs) {
  9999. var x = attrs.x;
  10000. attrs.x = attrs.y;
  10001. attrs.y = x;
  10002. }
  10003. /***/ }),
  10004. /***/ "../../node_modules/dagre/lib/data/list.js":
  10005. /*!***************************************************************!*\
  10006. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/data/list.js ***!
  10007. \***************************************************************/
  10008. /*! no static exports found */
  10009. /***/ (function(module, exports) {
  10010. /*
  10011. * Simple doubly linked list implementation derived from Cormen, et al.,
  10012. * "Introduction to Algorithms".
  10013. */
  10014. module.exports = List;
  10015. function List() {
  10016. var sentinel = {};
  10017. sentinel._next = sentinel._prev = sentinel;
  10018. this._sentinel = sentinel;
  10019. }
  10020. List.prototype.dequeue = function() {
  10021. var sentinel = this._sentinel;
  10022. var entry = sentinel._prev;
  10023. if (entry !== sentinel) {
  10024. unlink(entry);
  10025. return entry;
  10026. }
  10027. };
  10028. List.prototype.enqueue = function(entry) {
  10029. var sentinel = this._sentinel;
  10030. if (entry._prev && entry._next) {
  10031. unlink(entry);
  10032. }
  10033. entry._next = sentinel._next;
  10034. sentinel._next._prev = entry;
  10035. sentinel._next = entry;
  10036. entry._prev = sentinel;
  10037. };
  10038. List.prototype.toString = function() {
  10039. var strs = [];
  10040. var sentinel = this._sentinel;
  10041. var curr = sentinel._prev;
  10042. while (curr !== sentinel) {
  10043. strs.push(JSON.stringify(curr, filterOutLinks));
  10044. curr = curr._prev;
  10045. }
  10046. return "[" + strs.join(", ") + "]";
  10047. };
  10048. function unlink(entry) {
  10049. entry._prev._next = entry._next;
  10050. entry._next._prev = entry._prev;
  10051. delete entry._next;
  10052. delete entry._prev;
  10053. }
  10054. function filterOutLinks(k, v) {
  10055. if (k !== "_next" && k !== "_prev") {
  10056. return v;
  10057. }
  10058. }
  10059. /***/ }),
  10060. /***/ "../../node_modules/dagre/lib/debug.js":
  10061. /*!***********************************************************!*\
  10062. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/debug.js ***!
  10063. \***********************************************************/
  10064. /*! no static exports found */
  10065. /***/ (function(module, exports, __webpack_require__) {
  10066. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10067. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  10068. var Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  10069. module.exports = {
  10070. debugOrdering: debugOrdering
  10071. };
  10072. /* istanbul ignore next */
  10073. function debugOrdering(g) {
  10074. var layerMatrix = util.buildLayerMatrix(g);
  10075. var h = new Graph({ compound: true, multigraph: true }).setGraph({});
  10076. _.forEach(g.nodes(), function(v) {
  10077. h.setNode(v, { label: v });
  10078. h.setParent(v, "layer" + g.node(v).rank);
  10079. });
  10080. _.forEach(g.edges(), function(e) {
  10081. h.setEdge(e.v, e.w, {}, e.name);
  10082. });
  10083. _.forEach(layerMatrix, function(layer, i) {
  10084. var layerV = "layer" + i;
  10085. h.setNode(layerV, { rank: "same" });
  10086. _.reduce(layer, function(u, v) {
  10087. h.setEdge(u, v, { style: "invis" });
  10088. return v;
  10089. });
  10090. });
  10091. return h;
  10092. }
  10093. /***/ }),
  10094. /***/ "../../node_modules/dagre/lib/graphlib.js":
  10095. /*!**************************************************************!*\
  10096. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/graphlib.js ***!
  10097. \**************************************************************/
  10098. /*! no static exports found */
  10099. /***/ (function(module, exports, __webpack_require__) {
  10100. /* global window */
  10101. var graphlib;
  10102. if (true) {
  10103. try {
  10104. graphlib = __webpack_require__(/*! graphlib */ "../../node_modules/graphlib/index.js");
  10105. } catch (e) {
  10106. // continue regardless of error
  10107. }
  10108. }
  10109. if (!graphlib) {
  10110. graphlib = window.graphlib;
  10111. }
  10112. module.exports = graphlib;
  10113. /***/ }),
  10114. /***/ "../../node_modules/dagre/lib/greedy-fas.js":
  10115. /*!****************************************************************!*\
  10116. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/greedy-fas.js ***!
  10117. \****************************************************************/
  10118. /*! no static exports found */
  10119. /***/ (function(module, exports, __webpack_require__) {
  10120. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10121. var Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  10122. var List = __webpack_require__(/*! ./data/list */ "../../node_modules/dagre/lib/data/list.js");
  10123. /*
  10124. * A greedy heuristic for finding a feedback arc set for a graph. A feedback
  10125. * arc set is a set of edges that can be removed to make a graph acyclic.
  10126. * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
  10127. * effective heuristic for the feedback arc set problem." This implementation
  10128. * adjusts that from the paper to allow for weighted edges.
  10129. */
  10130. module.exports = greedyFAS;
  10131. var DEFAULT_WEIGHT_FN = _.constant(1);
  10132. function greedyFAS(g, weightFn) {
  10133. if (g.nodeCount() <= 1) {
  10134. return [];
  10135. }
  10136. var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
  10137. var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
  10138. // Expand multi-edges
  10139. return _.flatten(_.map(results, function(e) {
  10140. return g.outEdges(e.v, e.w);
  10141. }), true);
  10142. }
  10143. function doGreedyFAS(g, buckets, zeroIdx) {
  10144. var results = [];
  10145. var sources = buckets[buckets.length - 1];
  10146. var sinks = buckets[0];
  10147. var entry;
  10148. while (g.nodeCount()) {
  10149. while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  10150. while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  10151. if (g.nodeCount()) {
  10152. for (var i = buckets.length - 2; i > 0; --i) {
  10153. entry = buckets[i].dequeue();
  10154. if (entry) {
  10155. results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
  10156. break;
  10157. }
  10158. }
  10159. }
  10160. }
  10161. return results;
  10162. }
  10163. function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
  10164. var results = collectPredecessors ? [] : undefined;
  10165. _.forEach(g.inEdges(entry.v), function(edge) {
  10166. var weight = g.edge(edge);
  10167. var uEntry = g.node(edge.v);
  10168. if (collectPredecessors) {
  10169. results.push({ v: edge.v, w: edge.w });
  10170. }
  10171. uEntry.out -= weight;
  10172. assignBucket(buckets, zeroIdx, uEntry);
  10173. });
  10174. _.forEach(g.outEdges(entry.v), function(edge) {
  10175. var weight = g.edge(edge);
  10176. var w = edge.w;
  10177. var wEntry = g.node(w);
  10178. wEntry["in"] -= weight;
  10179. assignBucket(buckets, zeroIdx, wEntry);
  10180. });
  10181. g.removeNode(entry.v);
  10182. return results;
  10183. }
  10184. function buildState(g, weightFn) {
  10185. var fasGraph = new Graph();
  10186. var maxIn = 0;
  10187. var maxOut = 0;
  10188. _.forEach(g.nodes(), function(v) {
  10189. fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
  10190. });
  10191. // Aggregate weights on nodes, but also sum the weights across multi-edges
  10192. // into a single edge for the fasGraph.
  10193. _.forEach(g.edges(), function(e) {
  10194. var prevWeight = fasGraph.edge(e.v, e.w) || 0;
  10195. var weight = weightFn(e);
  10196. var edgeWeight = prevWeight + weight;
  10197. fasGraph.setEdge(e.v, e.w, edgeWeight);
  10198. maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
  10199. maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
  10200. });
  10201. var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
  10202. var zeroIdx = maxIn + 1;
  10203. _.forEach(fasGraph.nodes(), function(v) {
  10204. assignBucket(buckets, zeroIdx, fasGraph.node(v));
  10205. });
  10206. return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
  10207. }
  10208. function assignBucket(buckets, zeroIdx, entry) {
  10209. if (!entry.out) {
  10210. buckets[0].enqueue(entry);
  10211. } else if (!entry["in"]) {
  10212. buckets[buckets.length - 1].enqueue(entry);
  10213. } else {
  10214. buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
  10215. }
  10216. }
  10217. /***/ }),
  10218. /***/ "../../node_modules/dagre/lib/layout.js":
  10219. /*!************************************************************!*\
  10220. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/layout.js ***!
  10221. \************************************************************/
  10222. /*! no static exports found */
  10223. /***/ (function(module, exports, __webpack_require__) {
  10224. "use strict";
  10225. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10226. var acyclic = __webpack_require__(/*! ./acyclic */ "../../node_modules/dagre/lib/acyclic.js");
  10227. var normalize = __webpack_require__(/*! ./normalize */ "../../node_modules/dagre/lib/normalize.js");
  10228. var rank = __webpack_require__(/*! ./rank */ "../../node_modules/dagre/lib/rank/index.js");
  10229. var normalizeRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").normalizeRanks;
  10230. var parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "../../node_modules/dagre/lib/parent-dummy-chains.js");
  10231. var removeEmptyRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").removeEmptyRanks;
  10232. var nestingGraph = __webpack_require__(/*! ./nesting-graph */ "../../node_modules/dagre/lib/nesting-graph.js");
  10233. var addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "../../node_modules/dagre/lib/add-border-segments.js");
  10234. var coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "../../node_modules/dagre/lib/coordinate-system.js");
  10235. var order = __webpack_require__(/*! ./order */ "../../node_modules/dagre/lib/order/index.js");
  10236. var position = __webpack_require__(/*! ./position */ "../../node_modules/dagre/lib/position/index.js");
  10237. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  10238. var Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  10239. module.exports = layout;
  10240. function layout(g, opts) {
  10241. var time = opts && opts.debugTiming ? util.time : util.notime;
  10242. time("layout", function() {
  10243. var layoutGraph =
  10244. time(" buildLayoutGraph", function() { return buildLayoutGraph(g); });
  10245. time(" runLayout", function() { runLayout(layoutGraph, time); });
  10246. time(" updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
  10247. });
  10248. }
  10249. function runLayout(g, time) {
  10250. time(" makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
  10251. time(" removeSelfEdges", function() { removeSelfEdges(g); });
  10252. time(" acyclic", function() { acyclic.run(g); });
  10253. time(" nestingGraph.run", function() { nestingGraph.run(g); });
  10254. time(" rank", function() { rank(util.asNonCompoundGraph(g)); });
  10255. time(" injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
  10256. time(" removeEmptyRanks", function() { removeEmptyRanks(g); });
  10257. time(" nestingGraph.cleanup", function() { nestingGraph.cleanup(g); });
  10258. time(" normalizeRanks", function() { normalizeRanks(g); });
  10259. time(" assignRankMinMax", function() { assignRankMinMax(g); });
  10260. time(" removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
  10261. time(" normalize.run", function() { normalize.run(g); });
  10262. time(" parentDummyChains", function() { parentDummyChains(g); });
  10263. time(" addBorderSegments", function() { addBorderSegments(g); });
  10264. time(" order", function() { order(g); });
  10265. time(" insertSelfEdges", function() { insertSelfEdges(g); });
  10266. time(" adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
  10267. time(" position", function() { position(g); });
  10268. time(" positionSelfEdges", function() { positionSelfEdges(g); });
  10269. time(" removeBorderNodes", function() { removeBorderNodes(g); });
  10270. time(" normalize.undo", function() { normalize.undo(g); });
  10271. time(" fixupEdgeLabelCoords", function() { fixupEdgeLabelCoords(g); });
  10272. time(" undoCoordinateSystem", function() { coordinateSystem.undo(g); });
  10273. time(" translateGraph", function() { translateGraph(g); });
  10274. time(" assignNodeIntersects", function() { assignNodeIntersects(g); });
  10275. time(" reversePoints", function() { reversePointsForReversedEdges(g); });
  10276. time(" acyclic.undo", function() { acyclic.undo(g); });
  10277. }
  10278. /*
  10279. * Copies final layout information from the layout graph back to the input
  10280. * graph. This process only copies whitelisted attributes from the layout graph
  10281. * to the input graph, so it serves as a good place to determine what
  10282. * attributes can influence layout.
  10283. */
  10284. function updateInputGraph(inputGraph, layoutGraph) {
  10285. _.forEach(inputGraph.nodes(), function(v) {
  10286. var inputLabel = inputGraph.node(v);
  10287. var layoutLabel = layoutGraph.node(v);
  10288. if (inputLabel) {
  10289. inputLabel.x = layoutLabel.x;
  10290. inputLabel.y = layoutLabel.y;
  10291. if (layoutGraph.children(v).length) {
  10292. inputLabel.width = layoutLabel.width;
  10293. inputLabel.height = layoutLabel.height;
  10294. }
  10295. }
  10296. });
  10297. _.forEach(inputGraph.edges(), function(e) {
  10298. var inputLabel = inputGraph.edge(e);
  10299. var layoutLabel = layoutGraph.edge(e);
  10300. inputLabel.points = layoutLabel.points;
  10301. if (_.has(layoutLabel, "x")) {
  10302. inputLabel.x = layoutLabel.x;
  10303. inputLabel.y = layoutLabel.y;
  10304. }
  10305. });
  10306. inputGraph.graph().width = layoutGraph.graph().width;
  10307. inputGraph.graph().height = layoutGraph.graph().height;
  10308. }
  10309. var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"];
  10310. var graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" };
  10311. var graphAttrs = ["acyclicer", "ranker", "rankdir", "align"];
  10312. var nodeNumAttrs = ["width", "height"];
  10313. var nodeDefaults = { width: 0, height: 0 };
  10314. var edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"];
  10315. var edgeDefaults = {
  10316. minlen: 1, weight: 1, width: 0, height: 0,
  10317. labeloffset: 10, labelpos: "r"
  10318. };
  10319. var edgeAttrs = ["labelpos"];
  10320. /*
  10321. * Constructs a new graph from the input graph, which can be used for layout.
  10322. * This process copies only whitelisted attributes from the input graph to the
  10323. * layout graph. Thus this function serves as a good place to determine what
  10324. * attributes can influence layout.
  10325. */
  10326. function buildLayoutGraph(inputGraph) {
  10327. var g = new Graph({ multigraph: true, compound: true });
  10328. var graph = canonicalize(inputGraph.graph());
  10329. g.setGraph(_.merge({},
  10330. graphDefaults,
  10331. selectNumberAttrs(graph, graphNumAttrs),
  10332. _.pick(graph, graphAttrs)));
  10333. _.forEach(inputGraph.nodes(), function(v) {
  10334. var node = canonicalize(inputGraph.node(v));
  10335. g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
  10336. g.setParent(v, inputGraph.parent(v));
  10337. });
  10338. _.forEach(inputGraph.edges(), function(e) {
  10339. var edge = canonicalize(inputGraph.edge(e));
  10340. g.setEdge(e, _.merge({},
  10341. edgeDefaults,
  10342. selectNumberAttrs(edge, edgeNumAttrs),
  10343. _.pick(edge, edgeAttrs)));
  10344. });
  10345. return g;
  10346. }
  10347. /*
  10348. * This idea comes from the Gansner paper: to account for edge labels in our
  10349. * layout we split each rank in half by doubling minlen and halving ranksep.
  10350. * Then we can place labels at these mid-points between nodes.
  10351. *
  10352. * We also add some minimal padding to the width to push the label for the edge
  10353. * away from the edge itself a bit.
  10354. */
  10355. function makeSpaceForEdgeLabels(g) {
  10356. var graph = g.graph();
  10357. graph.ranksep /= 2;
  10358. _.forEach(g.edges(), function(e) {
  10359. var edge = g.edge(e);
  10360. edge.minlen *= 2;
  10361. if (edge.labelpos.toLowerCase() !== "c") {
  10362. if (graph.rankdir === "TB" || graph.rankdir === "BT") {
  10363. edge.width += edge.labeloffset;
  10364. } else {
  10365. edge.height += edge.labeloffset;
  10366. }
  10367. }
  10368. });
  10369. }
  10370. /*
  10371. * Creates temporary dummy nodes that capture the rank in which each edge's
  10372. * label is going to, if it has one of non-zero width and height. We do this
  10373. * so that we can safely remove empty ranks while preserving balance for the
  10374. * label's position.
  10375. */
  10376. function injectEdgeLabelProxies(g) {
  10377. _.forEach(g.edges(), function(e) {
  10378. var edge = g.edge(e);
  10379. if (edge.width && edge.height) {
  10380. var v = g.node(e.v);
  10381. var w = g.node(e.w);
  10382. var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
  10383. util.addDummyNode(g, "edge-proxy", label, "_ep");
  10384. }
  10385. });
  10386. }
  10387. function assignRankMinMax(g) {
  10388. var maxRank = 0;
  10389. _.forEach(g.nodes(), function(v) {
  10390. var node = g.node(v);
  10391. if (node.borderTop) {
  10392. node.minRank = g.node(node.borderTop).rank;
  10393. node.maxRank = g.node(node.borderBottom).rank;
  10394. maxRank = _.max(maxRank, node.maxRank);
  10395. }
  10396. });
  10397. g.graph().maxRank = maxRank;
  10398. }
  10399. function removeEdgeLabelProxies(g) {
  10400. _.forEach(g.nodes(), function(v) {
  10401. var node = g.node(v);
  10402. if (node.dummy === "edge-proxy") {
  10403. g.edge(node.e).labelRank = node.rank;
  10404. g.removeNode(v);
  10405. }
  10406. });
  10407. }
  10408. function translateGraph(g) {
  10409. var minX = Number.POSITIVE_INFINITY;
  10410. var maxX = 0;
  10411. var minY = Number.POSITIVE_INFINITY;
  10412. var maxY = 0;
  10413. var graphLabel = g.graph();
  10414. var marginX = graphLabel.marginx || 0;
  10415. var marginY = graphLabel.marginy || 0;
  10416. function getExtremes(attrs) {
  10417. var x = attrs.x;
  10418. var y = attrs.y;
  10419. var w = attrs.width;
  10420. var h = attrs.height;
  10421. minX = Math.min(minX, x - w / 2);
  10422. maxX = Math.max(maxX, x + w / 2);
  10423. minY = Math.min(minY, y - h / 2);
  10424. maxY = Math.max(maxY, y + h / 2);
  10425. }
  10426. _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
  10427. _.forEach(g.edges(), function(e) {
  10428. var edge = g.edge(e);
  10429. if (_.has(edge, "x")) {
  10430. getExtremes(edge);
  10431. }
  10432. });
  10433. minX -= marginX;
  10434. minY -= marginY;
  10435. _.forEach(g.nodes(), function(v) {
  10436. var node = g.node(v);
  10437. node.x -= minX;
  10438. node.y -= minY;
  10439. });
  10440. _.forEach(g.edges(), function(e) {
  10441. var edge = g.edge(e);
  10442. _.forEach(edge.points, function(p) {
  10443. p.x -= minX;
  10444. p.y -= minY;
  10445. });
  10446. if (_.has(edge, "x")) { edge.x -= minX; }
  10447. if (_.has(edge, "y")) { edge.y -= minY; }
  10448. });
  10449. graphLabel.width = maxX - minX + marginX;
  10450. graphLabel.height = maxY - minY + marginY;
  10451. }
  10452. function assignNodeIntersects(g) {
  10453. _.forEach(g.edges(), function(e) {
  10454. var edge = g.edge(e);
  10455. var nodeV = g.node(e.v);
  10456. var nodeW = g.node(e.w);
  10457. var p1, p2;
  10458. if (!edge.points) {
  10459. edge.points = [];
  10460. p1 = nodeW;
  10461. p2 = nodeV;
  10462. } else {
  10463. p1 = edge.points[0];
  10464. p2 = edge.points[edge.points.length - 1];
  10465. }
  10466. edge.points.unshift(util.intersectRect(nodeV, p1));
  10467. edge.points.push(util.intersectRect(nodeW, p2));
  10468. });
  10469. }
  10470. function fixupEdgeLabelCoords(g) {
  10471. _.forEach(g.edges(), function(e) {
  10472. var edge = g.edge(e);
  10473. if (_.has(edge, "x")) {
  10474. if (edge.labelpos === "l" || edge.labelpos === "r") {
  10475. edge.width -= edge.labeloffset;
  10476. }
  10477. switch (edge.labelpos) {
  10478. case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
  10479. case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
  10480. }
  10481. }
  10482. });
  10483. }
  10484. function reversePointsForReversedEdges(g) {
  10485. _.forEach(g.edges(), function(e) {
  10486. var edge = g.edge(e);
  10487. if (edge.reversed) {
  10488. edge.points.reverse();
  10489. }
  10490. });
  10491. }
  10492. function removeBorderNodes(g) {
  10493. _.forEach(g.nodes(), function(v) {
  10494. if (g.children(v).length) {
  10495. var node = g.node(v);
  10496. var t = g.node(node.borderTop);
  10497. var b = g.node(node.borderBottom);
  10498. var l = g.node(_.last(node.borderLeft));
  10499. var r = g.node(_.last(node.borderRight));
  10500. node.width = Math.abs(r.x - l.x);
  10501. node.height = Math.abs(b.y - t.y);
  10502. node.x = l.x + node.width / 2;
  10503. node.y = t.y + node.height / 2;
  10504. }
  10505. });
  10506. _.forEach(g.nodes(), function(v) {
  10507. if (g.node(v).dummy === "border") {
  10508. g.removeNode(v);
  10509. }
  10510. });
  10511. }
  10512. function removeSelfEdges(g) {
  10513. _.forEach(g.edges(), function(e) {
  10514. if (e.v === e.w) {
  10515. var node = g.node(e.v);
  10516. if (!node.selfEdges) {
  10517. node.selfEdges = [];
  10518. }
  10519. node.selfEdges.push({ e: e, label: g.edge(e) });
  10520. g.removeEdge(e);
  10521. }
  10522. });
  10523. }
  10524. function insertSelfEdges(g) {
  10525. var layers = util.buildLayerMatrix(g);
  10526. _.forEach(layers, function(layer) {
  10527. var orderShift = 0;
  10528. _.forEach(layer, function(v, i) {
  10529. var node = g.node(v);
  10530. node.order = i + orderShift;
  10531. _.forEach(node.selfEdges, function(selfEdge) {
  10532. util.addDummyNode(g, "selfedge", {
  10533. width: selfEdge.label.width,
  10534. height: selfEdge.label.height,
  10535. rank: node.rank,
  10536. order: i + (++orderShift),
  10537. e: selfEdge.e,
  10538. label: selfEdge.label
  10539. }, "_se");
  10540. });
  10541. delete node.selfEdges;
  10542. });
  10543. });
  10544. }
  10545. function positionSelfEdges(g) {
  10546. _.forEach(g.nodes(), function(v) {
  10547. var node = g.node(v);
  10548. if (node.dummy === "selfedge") {
  10549. var selfNode = g.node(node.e.v);
  10550. var x = selfNode.x + selfNode.width / 2;
  10551. var y = selfNode.y;
  10552. var dx = node.x - x;
  10553. var dy = selfNode.height / 2;
  10554. g.setEdge(node.e, node.label);
  10555. g.removeNode(v);
  10556. node.label.points = [
  10557. { x: x + 2 * dx / 3, y: y - dy },
  10558. { x: x + 5 * dx / 6, y: y - dy },
  10559. { x: x + dx , y: y },
  10560. { x: x + 5 * dx / 6, y: y + dy },
  10561. { x: x + 2 * dx / 3, y: y + dy }
  10562. ];
  10563. node.label.x = node.x;
  10564. node.label.y = node.y;
  10565. }
  10566. });
  10567. }
  10568. function selectNumberAttrs(obj, attrs) {
  10569. return _.mapValues(_.pick(obj, attrs), Number);
  10570. }
  10571. function canonicalize(attrs) {
  10572. var newAttrs = {};
  10573. _.forEach(attrs, function(v, k) {
  10574. newAttrs[k.toLowerCase()] = v;
  10575. });
  10576. return newAttrs;
  10577. }
  10578. /***/ }),
  10579. /***/ "../../node_modules/dagre/lib/lodash.js":
  10580. /*!************************************************************!*\
  10581. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/lodash.js ***!
  10582. \************************************************************/
  10583. /*! no static exports found */
  10584. /***/ (function(module, exports, __webpack_require__) {
  10585. /* global window */
  10586. var lodash;
  10587. if (true) {
  10588. try {
  10589. lodash = {
  10590. cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js"),
  10591. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  10592. defaults: __webpack_require__(/*! lodash/defaults */ "../../node_modules/lodash/defaults.js"),
  10593. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  10594. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  10595. find: __webpack_require__(/*! lodash/find */ "../../node_modules/lodash/find.js"),
  10596. flatten: __webpack_require__(/*! lodash/flatten */ "../../node_modules/lodash/flatten.js"),
  10597. forEach: __webpack_require__(/*! lodash/forEach */ "../../node_modules/lodash/forEach.js"),
  10598. forIn: __webpack_require__(/*! lodash/forIn */ "../../node_modules/lodash/forIn.js"),
  10599. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  10600. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  10601. last: __webpack_require__(/*! lodash/last */ "../../node_modules/lodash/last.js"),
  10602. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  10603. mapValues: __webpack_require__(/*! lodash/mapValues */ "../../node_modules/lodash/mapValues.js"),
  10604. max: __webpack_require__(/*! lodash/max */ "../../node_modules/lodash/max.js"),
  10605. merge: __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js"),
  10606. min: __webpack_require__(/*! lodash/min */ "../../node_modules/lodash/min.js"),
  10607. minBy: __webpack_require__(/*! lodash/minBy */ "../../node_modules/lodash/minBy.js"),
  10608. now: __webpack_require__(/*! lodash/now */ "../../node_modules/lodash/now.js"),
  10609. pick: __webpack_require__(/*! lodash/pick */ "../../node_modules/lodash/pick.js"),
  10610. range: __webpack_require__(/*! lodash/range */ "../../node_modules/lodash/range.js"),
  10611. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  10612. sortBy: __webpack_require__(/*! lodash/sortBy */ "../../node_modules/lodash/sortBy.js"),
  10613. uniqueId: __webpack_require__(/*! lodash/uniqueId */ "../../node_modules/lodash/uniqueId.js"),
  10614. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js"),
  10615. zipObject: __webpack_require__(/*! lodash/zipObject */ "../../node_modules/lodash/zipObject.js"),
  10616. };
  10617. } catch (e) {
  10618. // continue regardless of error
  10619. }
  10620. }
  10621. if (!lodash) {
  10622. lodash = window._;
  10623. }
  10624. module.exports = lodash;
  10625. /***/ }),
  10626. /***/ "../../node_modules/dagre/lib/nesting-graph.js":
  10627. /*!*******************************************************************!*\
  10628. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/nesting-graph.js ***!
  10629. \*******************************************************************/
  10630. /*! no static exports found */
  10631. /***/ (function(module, exports, __webpack_require__) {
  10632. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10633. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  10634. module.exports = {
  10635. run: run,
  10636. cleanup: cleanup
  10637. };
  10638. /*
  10639. * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
  10640. * adds appropriate edges to ensure that all cluster nodes are placed between
  10641. * these boundries, and ensures that the graph is connected.
  10642. *
  10643. * In addition we ensure, through the use of the minlen property, that nodes
  10644. * and subgraph border nodes to not end up on the same rank.
  10645. *
  10646. * Preconditions:
  10647. *
  10648. * 1. Input graph is a DAG
  10649. * 2. Nodes in the input graph has a minlen attribute
  10650. *
  10651. * Postconditions:
  10652. *
  10653. * 1. Input graph is connected.
  10654. * 2. Dummy nodes are added for the tops and bottoms of subgraphs.
  10655. * 3. The minlen attribute for nodes is adjusted to ensure nodes do not
  10656. * get placed on the same rank as subgraph border nodes.
  10657. *
  10658. * The nesting graph idea comes from Sander, "Layout of Compound Directed
  10659. * Graphs."
  10660. */
  10661. function run(g) {
  10662. var root = util.addDummyNode(g, "root", {}, "_root");
  10663. var depths = treeDepths(g);
  10664. var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
  10665. var nodeSep = 2 * height + 1;
  10666. g.graph().nestingRoot = root;
  10667. // Multiply minlen by nodeSep to align nodes on non-border ranks.
  10668. _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
  10669. // Calculate a weight that is sufficient to keep subgraphs vertically compact
  10670. var weight = sumWeights(g) + 1;
  10671. // Create border nodes and link them up
  10672. _.forEach(g.children(), function(child) {
  10673. dfs(g, root, nodeSep, weight, height, depths, child);
  10674. });
  10675. // Save the multiplier for node layers for later removal of empty border
  10676. // layers.
  10677. g.graph().nodeRankFactor = nodeSep;
  10678. }
  10679. function dfs(g, root, nodeSep, weight, height, depths, v) {
  10680. var children = g.children(v);
  10681. if (!children.length) {
  10682. if (v !== root) {
  10683. g.setEdge(root, v, { weight: 0, minlen: nodeSep });
  10684. }
  10685. return;
  10686. }
  10687. var top = util.addBorderNode(g, "_bt");
  10688. var bottom = util.addBorderNode(g, "_bb");
  10689. var label = g.node(v);
  10690. g.setParent(top, v);
  10691. label.borderTop = top;
  10692. g.setParent(bottom, v);
  10693. label.borderBottom = bottom;
  10694. _.forEach(children, function(child) {
  10695. dfs(g, root, nodeSep, weight, height, depths, child);
  10696. var childNode = g.node(child);
  10697. var childTop = childNode.borderTop ? childNode.borderTop : child;
  10698. var childBottom = childNode.borderBottom ? childNode.borderBottom : child;
  10699. var thisWeight = childNode.borderTop ? weight : 2 * weight;
  10700. var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
  10701. g.setEdge(top, childTop, {
  10702. weight: thisWeight,
  10703. minlen: minlen,
  10704. nestingEdge: true
  10705. });
  10706. g.setEdge(childBottom, bottom, {
  10707. weight: thisWeight,
  10708. minlen: minlen,
  10709. nestingEdge: true
  10710. });
  10711. });
  10712. if (!g.parent(v)) {
  10713. g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
  10714. }
  10715. }
  10716. function treeDepths(g) {
  10717. var depths = {};
  10718. function dfs(v, depth) {
  10719. var children = g.children(v);
  10720. if (children && children.length) {
  10721. _.forEach(children, function(child) {
  10722. dfs(child, depth + 1);
  10723. });
  10724. }
  10725. depths[v] = depth;
  10726. }
  10727. _.forEach(g.children(), function(v) { dfs(v, 1); });
  10728. return depths;
  10729. }
  10730. function sumWeights(g) {
  10731. return _.reduce(g.edges(), function(acc, e) {
  10732. return acc + g.edge(e).weight;
  10733. }, 0);
  10734. }
  10735. function cleanup(g) {
  10736. var graphLabel = g.graph();
  10737. g.removeNode(graphLabel.nestingRoot);
  10738. delete graphLabel.nestingRoot;
  10739. _.forEach(g.edges(), function(e) {
  10740. var edge = g.edge(e);
  10741. if (edge.nestingEdge) {
  10742. g.removeEdge(e);
  10743. }
  10744. });
  10745. }
  10746. /***/ }),
  10747. /***/ "../../node_modules/dagre/lib/normalize.js":
  10748. /*!***************************************************************!*\
  10749. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/normalize.js ***!
  10750. \***************************************************************/
  10751. /*! no static exports found */
  10752. /***/ (function(module, exports, __webpack_require__) {
  10753. "use strict";
  10754. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10755. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  10756. module.exports = {
  10757. run: run,
  10758. undo: undo
  10759. };
  10760. /*
  10761. * Breaks any long edges in the graph into short segments that span 1 layer
  10762. * each. This operation is undoable with the denormalize function.
  10763. *
  10764. * Pre-conditions:
  10765. *
  10766. * 1. The input graph is a DAG.
  10767. * 2. Each node in the graph has a "rank" property.
  10768. *
  10769. * Post-condition:
  10770. *
  10771. * 1. All edges in the graph have a length of 1.
  10772. * 2. Dummy nodes are added where edges have been split into segments.
  10773. * 3. The graph is augmented with a "dummyChains" attribute which contains
  10774. * the first dummy in each chain of dummy nodes produced.
  10775. */
  10776. function run(g) {
  10777. g.graph().dummyChains = [];
  10778. _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
  10779. }
  10780. function normalizeEdge(g, e) {
  10781. var v = e.v;
  10782. var vRank = g.node(v).rank;
  10783. var w = e.w;
  10784. var wRank = g.node(w).rank;
  10785. var name = e.name;
  10786. var edgeLabel = g.edge(e);
  10787. var labelRank = edgeLabel.labelRank;
  10788. if (wRank === vRank + 1) return;
  10789. g.removeEdge(e);
  10790. var dummy, attrs, i;
  10791. for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
  10792. edgeLabel.points = [];
  10793. attrs = {
  10794. width: 0, height: 0,
  10795. edgeLabel: edgeLabel, edgeObj: e,
  10796. rank: vRank
  10797. };
  10798. dummy = util.addDummyNode(g, "edge", attrs, "_d");
  10799. if (vRank === labelRank) {
  10800. attrs.width = edgeLabel.width;
  10801. attrs.height = edgeLabel.height;
  10802. attrs.dummy = "edge-label";
  10803. attrs.labelpos = edgeLabel.labelpos;
  10804. }
  10805. g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
  10806. if (i === 0) {
  10807. g.graph().dummyChains.push(dummy);
  10808. }
  10809. v = dummy;
  10810. }
  10811. g.setEdge(v, w, { weight: edgeLabel.weight }, name);
  10812. }
  10813. function undo(g) {
  10814. _.forEach(g.graph().dummyChains, function(v) {
  10815. var node = g.node(v);
  10816. var origLabel = node.edgeLabel;
  10817. var w;
  10818. g.setEdge(node.edgeObj, origLabel);
  10819. while (node.dummy) {
  10820. w = g.successors(v)[0];
  10821. g.removeNode(v);
  10822. origLabel.points.push({ x: node.x, y: node.y });
  10823. if (node.dummy === "edge-label") {
  10824. origLabel.x = node.x;
  10825. origLabel.y = node.y;
  10826. origLabel.width = node.width;
  10827. origLabel.height = node.height;
  10828. }
  10829. v = w;
  10830. node = g.node(v);
  10831. }
  10832. });
  10833. }
  10834. /***/ }),
  10835. /***/ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js":
  10836. /*!************************************************************************************!*\
  10837. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
  10838. \************************************************************************************/
  10839. /*! no static exports found */
  10840. /***/ (function(module, exports, __webpack_require__) {
  10841. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  10842. module.exports = addSubgraphConstraints;
  10843. function addSubgraphConstraints(g, cg, vs) {
  10844. var prev = {},
  10845. rootPrev;
  10846. _.forEach(vs, function(v) {
  10847. var child = g.parent(v),
  10848. parent,
  10849. prevChild;
  10850. while (child) {
  10851. parent = g.parent(child);
  10852. if (parent) {
  10853. prevChild = prev[parent];
  10854. prev[parent] = child;
  10855. } else {
  10856. prevChild = rootPrev;
  10857. rootPrev = child;
  10858. }
  10859. if (prevChild && prevChild !== child) {
  10860. cg.setEdge(prevChild, child);
  10861. return;
  10862. }
  10863. child = parent;
  10864. }
  10865. });
  10866. /*
  10867. function dfs(v) {
  10868. var children = v ? g.children(v) : g.children();
  10869. if (children.length) {
  10870. var min = Number.POSITIVE_INFINITY,
  10871. subgraphs = [];
  10872. _.each(children, function(child) {
  10873. var childMin = dfs(child);
  10874. if (g.children(child).length) {
  10875. subgraphs.push({ v: child, order: childMin });
  10876. }
  10877. min = Math.min(min, childMin);
  10878. });
  10879. _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
  10880. cg.setEdge(prev.v, curr.v);
  10881. return curr;
  10882. });
  10883. return min;
  10884. }
  10885. return g.node(v).order;
  10886. }
  10887. dfs(undefined);
  10888. */
  10889. }
  10890. /***/ }),
  10891. /***/ "../../node_modules/dagre/lib/order/barycenter.js":
  10892. /*!**********************************************************************!*\
  10893. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/barycenter.js ***!
  10894. \**********************************************************************/
  10895. /*! no static exports found */
  10896. /***/ (function(module, exports, __webpack_require__) {
  10897. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  10898. module.exports = barycenter;
  10899. function barycenter(g, movable) {
  10900. return _.map(movable, function(v) {
  10901. var inV = g.inEdges(v);
  10902. if (!inV.length) {
  10903. return { v: v };
  10904. } else {
  10905. var result = _.reduce(inV, function(acc, e) {
  10906. var edge = g.edge(e),
  10907. nodeU = g.node(e.v);
  10908. return {
  10909. sum: acc.sum + (edge.weight * nodeU.order),
  10910. weight: acc.weight + edge.weight
  10911. };
  10912. }, { sum: 0, weight: 0 });
  10913. return {
  10914. v: v,
  10915. barycenter: result.sum / result.weight,
  10916. weight: result.weight
  10917. };
  10918. }
  10919. });
  10920. }
  10921. /***/ }),
  10922. /***/ "../../node_modules/dagre/lib/order/build-layer-graph.js":
  10923. /*!*****************************************************************************!*\
  10924. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/build-layer-graph.js ***!
  10925. \*****************************************************************************/
  10926. /*! no static exports found */
  10927. /***/ (function(module, exports, __webpack_require__) {
  10928. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  10929. var Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  10930. module.exports = buildLayerGraph;
  10931. /*
  10932. * Constructs a graph that can be used to sort a layer of nodes. The graph will
  10933. * contain all base and subgraph nodes from the request layer in their original
  10934. * hierarchy and any edges that are incident on these nodes and are of the type
  10935. * requested by the "relationship" parameter.
  10936. *
  10937. * Nodes from the requested rank that do not have parents are assigned a root
  10938. * node in the output graph, which is set in the root graph attribute. This
  10939. * makes it easy to walk the hierarchy of movable nodes during ordering.
  10940. *
  10941. * Pre-conditions:
  10942. *
  10943. * 1. Input graph is a DAG
  10944. * 2. Base nodes in the input graph have a rank attribute
  10945. * 3. Subgraph nodes in the input graph has minRank and maxRank attributes
  10946. * 4. Edges have an assigned weight
  10947. *
  10948. * Post-conditions:
  10949. *
  10950. * 1. Output graph has all nodes in the movable rank with preserved
  10951. * hierarchy.
  10952. * 2. Root nodes in the movable layer are made children of the node
  10953. * indicated by the root attribute of the graph.
  10954. * 3. Non-movable nodes incident on movable nodes, selected by the
  10955. * relationship parameter, are included in the graph (without hierarchy).
  10956. * 4. Edges incident on movable nodes, selected by the relationship
  10957. * parameter, are added to the output graph.
  10958. * 5. The weights for copied edges are aggregated as need, since the output
  10959. * graph is not a multi-graph.
  10960. */
  10961. function buildLayerGraph(g, rank, relationship) {
  10962. var root = createRootNode(g),
  10963. result = new Graph({ compound: true }).setGraph({ root: root })
  10964. .setDefaultNodeLabel(function(v) { return g.node(v); });
  10965. _.forEach(g.nodes(), function(v) {
  10966. var node = g.node(v),
  10967. parent = g.parent(v);
  10968. if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
  10969. result.setNode(v);
  10970. result.setParent(v, parent || root);
  10971. // This assumes we have only short edges!
  10972. _.forEach(g[relationship](v), function(e) {
  10973. var u = e.v === v ? e.w : e.v,
  10974. edge = result.edge(u, v),
  10975. weight = !_.isUndefined(edge) ? edge.weight : 0;
  10976. result.setEdge(u, v, { weight: g.edge(e).weight + weight });
  10977. });
  10978. if (_.has(node, "minRank")) {
  10979. result.setNode(v, {
  10980. borderLeft: node.borderLeft[rank],
  10981. borderRight: node.borderRight[rank]
  10982. });
  10983. }
  10984. }
  10985. });
  10986. return result;
  10987. }
  10988. function createRootNode(g) {
  10989. var v;
  10990. while (g.hasNode((v = _.uniqueId("_root"))));
  10991. return v;
  10992. }
  10993. /***/ }),
  10994. /***/ "../../node_modules/dagre/lib/order/cross-count.js":
  10995. /*!***********************************************************************!*\
  10996. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/cross-count.js ***!
  10997. \***********************************************************************/
  10998. /*! no static exports found */
  10999. /***/ (function(module, exports, __webpack_require__) {
  11000. "use strict";
  11001. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11002. module.exports = crossCount;
  11003. /*
  11004. * A function that takes a layering (an array of layers, each with an array of
  11005. * ordererd nodes) and a graph and returns a weighted crossing count.
  11006. *
  11007. * Pre-conditions:
  11008. *
  11009. * 1. Input graph must be simple (not a multigraph), directed, and include
  11010. * only simple edges.
  11011. * 2. Edges in the input graph must have assigned weights.
  11012. *
  11013. * Post-conditions:
  11014. *
  11015. * 1. The graph and layering matrix are left unchanged.
  11016. *
  11017. * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
  11018. */
  11019. function crossCount(g, layering) {
  11020. var cc = 0;
  11021. for (var i = 1; i < layering.length; ++i) {
  11022. cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
  11023. }
  11024. return cc;
  11025. }
  11026. function twoLayerCrossCount(g, northLayer, southLayer) {
  11027. // Sort all of the edges between the north and south layers by their position
  11028. // in the north layer and then the south. Map these edges to the position of
  11029. // their head in the south layer.
  11030. var southPos = _.zipObject(southLayer,
  11031. _.map(southLayer, function (v, i) { return i; }));
  11032. var southEntries = _.flatten(_.map(northLayer, function(v) {
  11033. return _.sortBy(_.map(g.outEdges(v), function(e) {
  11034. return { pos: southPos[e.w], weight: g.edge(e).weight };
  11035. }), "pos");
  11036. }), true);
  11037. // Build the accumulator tree
  11038. var firstIndex = 1;
  11039. while (firstIndex < southLayer.length) firstIndex <<= 1;
  11040. var treeSize = 2 * firstIndex - 1;
  11041. firstIndex -= 1;
  11042. var tree = _.map(new Array(treeSize), function() { return 0; });
  11043. // Calculate the weighted crossings
  11044. var cc = 0;
  11045. _.forEach(southEntries.forEach(function(entry) {
  11046. var index = entry.pos + firstIndex;
  11047. tree[index] += entry.weight;
  11048. var weightSum = 0;
  11049. while (index > 0) {
  11050. if (index % 2) {
  11051. weightSum += tree[index + 1];
  11052. }
  11053. index = (index - 1) >> 1;
  11054. tree[index] += entry.weight;
  11055. }
  11056. cc += entry.weight * weightSum;
  11057. }));
  11058. return cc;
  11059. }
  11060. /***/ }),
  11061. /***/ "../../node_modules/dagre/lib/order/index.js":
  11062. /*!*****************************************************************!*\
  11063. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/index.js ***!
  11064. \*****************************************************************/
  11065. /*! no static exports found */
  11066. /***/ (function(module, exports, __webpack_require__) {
  11067. "use strict";
  11068. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11069. var initOrder = __webpack_require__(/*! ./init-order */ "../../node_modules/dagre/lib/order/init-order.js");
  11070. var crossCount = __webpack_require__(/*! ./cross-count */ "../../node_modules/dagre/lib/order/cross-count.js");
  11071. var sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "../../node_modules/dagre/lib/order/sort-subgraph.js");
  11072. var buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "../../node_modules/dagre/lib/order/build-layer-graph.js");
  11073. var addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js");
  11074. var Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  11075. var util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  11076. module.exports = order;
  11077. /*
  11078. * Applies heuristics to minimize edge crossings in the graph and sets the best
  11079. * order solution as an order attribute on each node.
  11080. *
  11081. * Pre-conditions:
  11082. *
  11083. * 1. Graph must be DAG
  11084. * 2. Graph nodes must be objects with a "rank" attribute
  11085. * 3. Graph edges must have the "weight" attribute
  11086. *
  11087. * Post-conditions:
  11088. *
  11089. * 1. Graph nodes will have an "order" attribute based on the results of the
  11090. * algorithm.
  11091. */
  11092. function order(g) {
  11093. var maxRank = util.maxRank(g),
  11094. downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
  11095. upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
  11096. var layering = initOrder(g);
  11097. assignOrder(g, layering);
  11098. var bestCC = Number.POSITIVE_INFINITY,
  11099. best;
  11100. for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
  11101. sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
  11102. layering = util.buildLayerMatrix(g);
  11103. var cc = crossCount(g, layering);
  11104. if (cc < bestCC) {
  11105. lastBest = 0;
  11106. best = _.cloneDeep(layering);
  11107. bestCC = cc;
  11108. }
  11109. }
  11110. assignOrder(g, best);
  11111. }
  11112. function buildLayerGraphs(g, ranks, relationship) {
  11113. return _.map(ranks, function(rank) {
  11114. return buildLayerGraph(g, rank, relationship);
  11115. });
  11116. }
  11117. function sweepLayerGraphs(layerGraphs, biasRight) {
  11118. var cg = new Graph();
  11119. _.forEach(layerGraphs, function(lg) {
  11120. var root = lg.graph().root;
  11121. var sorted = sortSubgraph(lg, root, cg, biasRight);
  11122. _.forEach(sorted.vs, function(v, i) {
  11123. lg.node(v).order = i;
  11124. });
  11125. addSubgraphConstraints(lg, cg, sorted.vs);
  11126. });
  11127. }
  11128. function assignOrder(g, layering) {
  11129. _.forEach(layering, function(layer) {
  11130. _.forEach(layer, function(v, i) {
  11131. g.node(v).order = i;
  11132. });
  11133. });
  11134. }
  11135. /***/ }),
  11136. /***/ "../../node_modules/dagre/lib/order/init-order.js":
  11137. /*!**********************************************************************!*\
  11138. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/init-order.js ***!
  11139. \**********************************************************************/
  11140. /*! no static exports found */
  11141. /***/ (function(module, exports, __webpack_require__) {
  11142. "use strict";
  11143. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11144. module.exports = initOrder;
  11145. /*
  11146. * Assigns an initial order value for each node by performing a DFS search
  11147. * starting from nodes in the first rank. Nodes are assigned an order in their
  11148. * rank as they are first visited.
  11149. *
  11150. * This approach comes from Gansner, et al., "A Technique for Drawing Directed
  11151. * Graphs."
  11152. *
  11153. * Returns a layering matrix with an array per layer and each layer sorted by
  11154. * the order of its nodes.
  11155. */
  11156. function initOrder(g) {
  11157. var visited = {};
  11158. var simpleNodes = _.filter(g.nodes(), function(v) {
  11159. return !g.children(v).length;
  11160. });
  11161. var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));
  11162. var layers = _.map(_.range(maxRank + 1), function() { return []; });
  11163. function dfs(v) {
  11164. if (_.has(visited, v)) return;
  11165. visited[v] = true;
  11166. var node = g.node(v);
  11167. layers[node.rank].push(v);
  11168. _.forEach(g.successors(v), dfs);
  11169. }
  11170. var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
  11171. _.forEach(orderedVs, dfs);
  11172. return layers;
  11173. }
  11174. /***/ }),
  11175. /***/ "../../node_modules/dagre/lib/order/resolve-conflicts.js":
  11176. /*!*****************************************************************************!*\
  11177. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/resolve-conflicts.js ***!
  11178. \*****************************************************************************/
  11179. /*! no static exports found */
  11180. /***/ (function(module, exports, __webpack_require__) {
  11181. "use strict";
  11182. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11183. module.exports = resolveConflicts;
  11184. /*
  11185. * Given a list of entries of the form {v, barycenter, weight} and a
  11186. * constraint graph this function will resolve any conflicts between the
  11187. * constraint graph and the barycenters for the entries. If the barycenters for
  11188. * an entry would violate a constraint in the constraint graph then we coalesce
  11189. * the nodes in the conflict into a new node that respects the contraint and
  11190. * aggregates barycenter and weight information.
  11191. *
  11192. * This implementation is based on the description in Forster, "A Fast and
  11193. * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
  11194. * differs in some specific details.
  11195. *
  11196. * Pre-conditions:
  11197. *
  11198. * 1. Each entry has the form {v, barycenter, weight}, or if the node has
  11199. * no barycenter, then {v}.
  11200. *
  11201. * Returns:
  11202. *
  11203. * A new list of entries of the form {vs, i, barycenter, weight}. The list
  11204. * `vs` may either be a singleton or it may be an aggregation of nodes
  11205. * ordered such that they do not violate constraints from the constraint
  11206. * graph. The property `i` is the lowest original index of any of the
  11207. * elements in `vs`.
  11208. */
  11209. function resolveConflicts(entries, cg) {
  11210. var mappedEntries = {};
  11211. _.forEach(entries, function(entry, i) {
  11212. var tmp = mappedEntries[entry.v] = {
  11213. indegree: 0,
  11214. "in": [],
  11215. out: [],
  11216. vs: [entry.v],
  11217. i: i
  11218. };
  11219. if (!_.isUndefined(entry.barycenter)) {
  11220. tmp.barycenter = entry.barycenter;
  11221. tmp.weight = entry.weight;
  11222. }
  11223. });
  11224. _.forEach(cg.edges(), function(e) {
  11225. var entryV = mappedEntries[e.v];
  11226. var entryW = mappedEntries[e.w];
  11227. if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
  11228. entryW.indegree++;
  11229. entryV.out.push(mappedEntries[e.w]);
  11230. }
  11231. });
  11232. var sourceSet = _.filter(mappedEntries, function(entry) {
  11233. return !entry.indegree;
  11234. });
  11235. return doResolveConflicts(sourceSet);
  11236. }
  11237. function doResolveConflicts(sourceSet) {
  11238. var entries = [];
  11239. function handleIn(vEntry) {
  11240. return function(uEntry) {
  11241. if (uEntry.merged) {
  11242. return;
  11243. }
  11244. if (_.isUndefined(uEntry.barycenter) ||
  11245. _.isUndefined(vEntry.barycenter) ||
  11246. uEntry.barycenter >= vEntry.barycenter) {
  11247. mergeEntries(vEntry, uEntry);
  11248. }
  11249. };
  11250. }
  11251. function handleOut(vEntry) {
  11252. return function(wEntry) {
  11253. wEntry["in"].push(vEntry);
  11254. if (--wEntry.indegree === 0) {
  11255. sourceSet.push(wEntry);
  11256. }
  11257. };
  11258. }
  11259. while (sourceSet.length) {
  11260. var entry = sourceSet.pop();
  11261. entries.push(entry);
  11262. _.forEach(entry["in"].reverse(), handleIn(entry));
  11263. _.forEach(entry.out, handleOut(entry));
  11264. }
  11265. return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
  11266. function(entry) {
  11267. return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
  11268. });
  11269. }
  11270. function mergeEntries(target, source) {
  11271. var sum = 0;
  11272. var weight = 0;
  11273. if (target.weight) {
  11274. sum += target.barycenter * target.weight;
  11275. weight += target.weight;
  11276. }
  11277. if (source.weight) {
  11278. sum += source.barycenter * source.weight;
  11279. weight += source.weight;
  11280. }
  11281. target.vs = source.vs.concat(target.vs);
  11282. target.barycenter = sum / weight;
  11283. target.weight = weight;
  11284. target.i = Math.min(source.i, target.i);
  11285. source.merged = true;
  11286. }
  11287. /***/ }),
  11288. /***/ "../../node_modules/dagre/lib/order/sort-subgraph.js":
  11289. /*!*************************************************************************!*\
  11290. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/sort-subgraph.js ***!
  11291. \*************************************************************************/
  11292. /*! no static exports found */
  11293. /***/ (function(module, exports, __webpack_require__) {
  11294. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11295. var barycenter = __webpack_require__(/*! ./barycenter */ "../../node_modules/dagre/lib/order/barycenter.js");
  11296. var resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "../../node_modules/dagre/lib/order/resolve-conflicts.js");
  11297. var sort = __webpack_require__(/*! ./sort */ "../../node_modules/dagre/lib/order/sort.js");
  11298. module.exports = sortSubgraph;
  11299. function sortSubgraph(g, v, cg, biasRight) {
  11300. var movable = g.children(v);
  11301. var node = g.node(v);
  11302. var bl = node ? node.borderLeft : undefined;
  11303. var br = node ? node.borderRight: undefined;
  11304. var subgraphs = {};
  11305. if (bl) {
  11306. movable = _.filter(movable, function(w) {
  11307. return w !== bl && w !== br;
  11308. });
  11309. }
  11310. var barycenters = barycenter(g, movable);
  11311. _.forEach(barycenters, function(entry) {
  11312. if (g.children(entry.v).length) {
  11313. var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
  11314. subgraphs[entry.v] = subgraphResult;
  11315. if (_.has(subgraphResult, "barycenter")) {
  11316. mergeBarycenters(entry, subgraphResult);
  11317. }
  11318. }
  11319. });
  11320. var entries = resolveConflicts(barycenters, cg);
  11321. expandSubgraphs(entries, subgraphs);
  11322. var result = sort(entries, biasRight);
  11323. if (bl) {
  11324. result.vs = _.flatten([bl, result.vs, br], true);
  11325. if (g.predecessors(bl).length) {
  11326. var blPred = g.node(g.predecessors(bl)[0]),
  11327. brPred = g.node(g.predecessors(br)[0]);
  11328. if (!_.has(result, "barycenter")) {
  11329. result.barycenter = 0;
  11330. result.weight = 0;
  11331. }
  11332. result.barycenter = (result.barycenter * result.weight +
  11333. blPred.order + brPred.order) / (result.weight + 2);
  11334. result.weight += 2;
  11335. }
  11336. }
  11337. return result;
  11338. }
  11339. function expandSubgraphs(entries, subgraphs) {
  11340. _.forEach(entries, function(entry) {
  11341. entry.vs = _.flatten(entry.vs.map(function(v) {
  11342. if (subgraphs[v]) {
  11343. return subgraphs[v].vs;
  11344. }
  11345. return v;
  11346. }), true);
  11347. });
  11348. }
  11349. function mergeBarycenters(target, other) {
  11350. if (!_.isUndefined(target.barycenter)) {
  11351. target.barycenter = (target.barycenter * target.weight +
  11352. other.barycenter * other.weight) /
  11353. (target.weight + other.weight);
  11354. target.weight += other.weight;
  11355. } else {
  11356. target.barycenter = other.barycenter;
  11357. target.weight = other.weight;
  11358. }
  11359. }
  11360. /***/ }),
  11361. /***/ "../../node_modules/dagre/lib/order/sort.js":
  11362. /*!****************************************************************!*\
  11363. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/sort.js ***!
  11364. \****************************************************************/
  11365. /*! no static exports found */
  11366. /***/ (function(module, exports, __webpack_require__) {
  11367. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11368. var util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  11369. module.exports = sort;
  11370. function sort(entries, biasRight) {
  11371. var parts = util.partition(entries, function(entry) {
  11372. return _.has(entry, "barycenter");
  11373. });
  11374. var sortable = parts.lhs,
  11375. unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
  11376. vs = [],
  11377. sum = 0,
  11378. weight = 0,
  11379. vsIndex = 0;
  11380. sortable.sort(compareWithBias(!!biasRight));
  11381. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  11382. _.forEach(sortable, function (entry) {
  11383. vsIndex += entry.vs.length;
  11384. vs.push(entry.vs);
  11385. sum += entry.barycenter * entry.weight;
  11386. weight += entry.weight;
  11387. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  11388. });
  11389. var result = { vs: _.flatten(vs, true) };
  11390. if (weight) {
  11391. result.barycenter = sum / weight;
  11392. result.weight = weight;
  11393. }
  11394. return result;
  11395. }
  11396. function consumeUnsortable(vs, unsortable, index) {
  11397. var last;
  11398. while (unsortable.length && (last = _.last(unsortable)).i <= index) {
  11399. unsortable.pop();
  11400. vs.push(last.vs);
  11401. index++;
  11402. }
  11403. return index;
  11404. }
  11405. function compareWithBias(bias) {
  11406. return function(entryV, entryW) {
  11407. if (entryV.barycenter < entryW.barycenter) {
  11408. return -1;
  11409. } else if (entryV.barycenter > entryW.barycenter) {
  11410. return 1;
  11411. }
  11412. return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
  11413. };
  11414. }
  11415. /***/ }),
  11416. /***/ "../../node_modules/dagre/lib/parent-dummy-chains.js":
  11417. /*!*************************************************************************!*\
  11418. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/parent-dummy-chains.js ***!
  11419. \*************************************************************************/
  11420. /*! no static exports found */
  11421. /***/ (function(module, exports, __webpack_require__) {
  11422. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  11423. module.exports = parentDummyChains;
  11424. function parentDummyChains(g) {
  11425. var postorderNums = postorder(g);
  11426. _.forEach(g.graph().dummyChains, function(v) {
  11427. var node = g.node(v);
  11428. var edgeObj = node.edgeObj;
  11429. var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);
  11430. var path = pathData.path;
  11431. var lca = pathData.lca;
  11432. var pathIdx = 0;
  11433. var pathV = path[pathIdx];
  11434. var ascending = true;
  11435. while (v !== edgeObj.w) {
  11436. node = g.node(v);
  11437. if (ascending) {
  11438. while ((pathV = path[pathIdx]) !== lca &&
  11439. g.node(pathV).maxRank < node.rank) {
  11440. pathIdx++;
  11441. }
  11442. if (pathV === lca) {
  11443. ascending = false;
  11444. }
  11445. }
  11446. if (!ascending) {
  11447. while (pathIdx < path.length - 1 &&
  11448. g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
  11449. pathIdx++;
  11450. }
  11451. pathV = path[pathIdx];
  11452. }
  11453. g.setParent(v, pathV);
  11454. v = g.successors(v)[0];
  11455. }
  11456. });
  11457. }
  11458. // Find a path from v to w through the lowest common ancestor (LCA). Return the
  11459. // full path and the LCA.
  11460. function findPath(g, postorderNums, v, w) {
  11461. var vPath = [];
  11462. var wPath = [];
  11463. var low = Math.min(postorderNums[v].low, postorderNums[w].low);
  11464. var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);
  11465. var parent;
  11466. var lca;
  11467. // Traverse up from v to find the LCA
  11468. parent = v;
  11469. do {
  11470. parent = g.parent(parent);
  11471. vPath.push(parent);
  11472. } while (parent &&
  11473. (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
  11474. lca = parent;
  11475. // Traverse from w to LCA
  11476. parent = w;
  11477. while ((parent = g.parent(parent)) !== lca) {
  11478. wPath.push(parent);
  11479. }
  11480. return { path: vPath.concat(wPath.reverse()), lca: lca };
  11481. }
  11482. function postorder(g) {
  11483. var result = {};
  11484. var lim = 0;
  11485. function dfs(v) {
  11486. var low = lim;
  11487. _.forEach(g.children(v), dfs);
  11488. result[v] = { low: low, lim: lim++ };
  11489. }
  11490. _.forEach(g.children(), dfs);
  11491. return result;
  11492. }
  11493. /***/ }),
  11494. /***/ "../../node_modules/dagre/lib/position/bk.js":
  11495. /*!*****************************************************************!*\
  11496. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/position/bk.js ***!
  11497. \*****************************************************************/
  11498. /*! no static exports found */
  11499. /***/ (function(module, exports, __webpack_require__) {
  11500. "use strict";
  11501. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11502. var Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  11503. var util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  11504. /*
  11505. * This module provides coordinate assignment based on Brandes and Köpf, "Fast
  11506. * and Simple Horizontal Coordinate Assignment."
  11507. */
  11508. module.exports = {
  11509. positionX: positionX,
  11510. findType1Conflicts: findType1Conflicts,
  11511. findType2Conflicts: findType2Conflicts,
  11512. addConflict: addConflict,
  11513. hasConflict: hasConflict,
  11514. verticalAlignment: verticalAlignment,
  11515. horizontalCompaction: horizontalCompaction,
  11516. alignCoordinates: alignCoordinates,
  11517. findSmallestWidthAlignment: findSmallestWidthAlignment,
  11518. balance: balance
  11519. };
  11520. /*
  11521. * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
  11522. * property. A type-1 conflict is one where a non-inner segment crosses an
  11523. * inner segment. An inner segment is an edge with both incident nodes marked
  11524. * with the "dummy" property.
  11525. *
  11526. * This algorithm scans layer by layer, starting with the second, for type-1
  11527. * conflicts between the current layer and the previous layer. For each layer
  11528. * it scans the nodes from left to right until it reaches one that is incident
  11529. * on an inner segment. It then scans predecessors to determine if they have
  11530. * edges that cross that inner segment. At the end a final scan is done for all
  11531. * nodes on the current rank to see if they cross the last visited inner
  11532. * segment.
  11533. *
  11534. * This algorithm (safely) assumes that a dummy node will only be incident on a
  11535. * single node in the layers being scanned.
  11536. */
  11537. function findType1Conflicts(g, layering) {
  11538. var conflicts = {};
  11539. function visitLayer(prevLayer, layer) {
  11540. var
  11541. // last visited node in the previous layer that is incident on an inner
  11542. // segment.
  11543. k0 = 0,
  11544. // Tracks the last node in this layer scanned for crossings with a type-1
  11545. // segment.
  11546. scanPos = 0,
  11547. prevLayerLength = prevLayer.length,
  11548. lastNode = _.last(layer);
  11549. _.forEach(layer, function(v, i) {
  11550. var w = findOtherInnerSegmentNode(g, v),
  11551. k1 = w ? g.node(w).order : prevLayerLength;
  11552. if (w || v === lastNode) {
  11553. _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
  11554. _.forEach(g.predecessors(scanNode), function(u) {
  11555. var uLabel = g.node(u),
  11556. uPos = uLabel.order;
  11557. if ((uPos < k0 || k1 < uPos) &&
  11558. !(uLabel.dummy && g.node(scanNode).dummy)) {
  11559. addConflict(conflicts, u, scanNode);
  11560. }
  11561. });
  11562. });
  11563. scanPos = i + 1;
  11564. k0 = k1;
  11565. }
  11566. });
  11567. return layer;
  11568. }
  11569. _.reduce(layering, visitLayer);
  11570. return conflicts;
  11571. }
  11572. function findType2Conflicts(g, layering) {
  11573. var conflicts = {};
  11574. function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
  11575. var v;
  11576. _.forEach(_.range(southPos, southEnd), function(i) {
  11577. v = south[i];
  11578. if (g.node(v).dummy) {
  11579. _.forEach(g.predecessors(v), function(u) {
  11580. var uNode = g.node(u);
  11581. if (uNode.dummy &&
  11582. (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
  11583. addConflict(conflicts, u, v);
  11584. }
  11585. });
  11586. }
  11587. });
  11588. }
  11589. function visitLayer(north, south) {
  11590. var prevNorthPos = -1,
  11591. nextNorthPos,
  11592. southPos = 0;
  11593. _.forEach(south, function(v, southLookahead) {
  11594. if (g.node(v).dummy === "border") {
  11595. var predecessors = g.predecessors(v);
  11596. if (predecessors.length) {
  11597. nextNorthPos = g.node(predecessors[0]).order;
  11598. scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
  11599. southPos = southLookahead;
  11600. prevNorthPos = nextNorthPos;
  11601. }
  11602. }
  11603. scan(south, southPos, south.length, nextNorthPos, north.length);
  11604. });
  11605. return south;
  11606. }
  11607. _.reduce(layering, visitLayer);
  11608. return conflicts;
  11609. }
  11610. function findOtherInnerSegmentNode(g, v) {
  11611. if (g.node(v).dummy) {
  11612. return _.find(g.predecessors(v), function(u) {
  11613. return g.node(u).dummy;
  11614. });
  11615. }
  11616. }
  11617. function addConflict(conflicts, v, w) {
  11618. if (v > w) {
  11619. var tmp = v;
  11620. v = w;
  11621. w = tmp;
  11622. }
  11623. var conflictsV = conflicts[v];
  11624. if (!conflictsV) {
  11625. conflicts[v] = conflictsV = {};
  11626. }
  11627. conflictsV[w] = true;
  11628. }
  11629. function hasConflict(conflicts, v, w) {
  11630. if (v > w) {
  11631. var tmp = v;
  11632. v = w;
  11633. w = tmp;
  11634. }
  11635. return _.has(conflicts[v], w);
  11636. }
  11637. /*
  11638. * Try to align nodes into vertical "blocks" where possible. This algorithm
  11639. * attempts to align a node with one of its median neighbors. If the edge
  11640. * connecting a neighbor is a type-1 conflict then we ignore that possibility.
  11641. * If a previous node has already formed a block with a node after the node
  11642. * we're trying to form a block with, we also ignore that possibility - our
  11643. * blocks would be split in that scenario.
  11644. */
  11645. function verticalAlignment(g, layering, conflicts, neighborFn) {
  11646. var root = {},
  11647. align = {},
  11648. pos = {};
  11649. // We cache the position here based on the layering because the graph and
  11650. // layering may be out of sync. The layering matrix is manipulated to
  11651. // generate different extreme alignments.
  11652. _.forEach(layering, function(layer) {
  11653. _.forEach(layer, function(v, order) {
  11654. root[v] = v;
  11655. align[v] = v;
  11656. pos[v] = order;
  11657. });
  11658. });
  11659. _.forEach(layering, function(layer) {
  11660. var prevIdx = -1;
  11661. _.forEach(layer, function(v) {
  11662. var ws = neighborFn(v);
  11663. if (ws.length) {
  11664. ws = _.sortBy(ws, function(w) { return pos[w]; });
  11665. var mp = (ws.length - 1) / 2;
  11666. for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
  11667. var w = ws[i];
  11668. if (align[v] === v &&
  11669. prevIdx < pos[w] &&
  11670. !hasConflict(conflicts, v, w)) {
  11671. align[w] = v;
  11672. align[v] = root[v] = root[w];
  11673. prevIdx = pos[w];
  11674. }
  11675. }
  11676. }
  11677. });
  11678. });
  11679. return { root: root, align: align };
  11680. }
  11681. function horizontalCompaction(g, layering, root, align, reverseSep) {
  11682. // This portion of the algorithm differs from BK due to a number of problems.
  11683. // Instead of their algorithm we construct a new block graph and do two
  11684. // sweeps. The first sweep places blocks with the smallest possible
  11685. // coordinates. The second sweep removes unused space by moving blocks to the
  11686. // greatest coordinates without violating separation.
  11687. var xs = {},
  11688. blockG = buildBlockGraph(g, layering, root, reverseSep),
  11689. borderType = reverseSep ? "borderLeft" : "borderRight";
  11690. function iterate(setXsFunc, nextNodesFunc) {
  11691. var stack = blockG.nodes();
  11692. var elem = stack.pop();
  11693. var visited = {};
  11694. while (elem) {
  11695. if (visited[elem]) {
  11696. setXsFunc(elem);
  11697. } else {
  11698. visited[elem] = true;
  11699. stack.push(elem);
  11700. stack = stack.concat(nextNodesFunc(elem));
  11701. }
  11702. elem = stack.pop();
  11703. }
  11704. }
  11705. // First pass, assign smallest coordinates
  11706. function pass1(elem) {
  11707. xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
  11708. return Math.max(acc, xs[e.v] + blockG.edge(e));
  11709. }, 0);
  11710. }
  11711. // Second pass, assign greatest coordinates
  11712. function pass2(elem) {
  11713. var min = blockG.outEdges(elem).reduce(function(acc, e) {
  11714. return Math.min(acc, xs[e.w] - blockG.edge(e));
  11715. }, Number.POSITIVE_INFINITY);
  11716. var node = g.node(elem);
  11717. if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
  11718. xs[elem] = Math.max(xs[elem], min);
  11719. }
  11720. }
  11721. iterate(pass1, blockG.predecessors.bind(blockG));
  11722. iterate(pass2, blockG.successors.bind(blockG));
  11723. // Assign x coordinates to all nodes
  11724. _.forEach(align, function(v) {
  11725. xs[v] = xs[root[v]];
  11726. });
  11727. return xs;
  11728. }
  11729. function buildBlockGraph(g, layering, root, reverseSep) {
  11730. var blockGraph = new Graph(),
  11731. graphLabel = g.graph(),
  11732. sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
  11733. _.forEach(layering, function(layer) {
  11734. var u;
  11735. _.forEach(layer, function(v) {
  11736. var vRoot = root[v];
  11737. blockGraph.setNode(vRoot);
  11738. if (u) {
  11739. var uRoot = root[u],
  11740. prevMax = blockGraph.edge(uRoot, vRoot);
  11741. blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
  11742. }
  11743. u = v;
  11744. });
  11745. });
  11746. return blockGraph;
  11747. }
  11748. /*
  11749. * Returns the alignment that has the smallest width of the given alignments.
  11750. */
  11751. function findSmallestWidthAlignment(g, xss) {
  11752. return _.minBy(_.values(xss), function (xs) {
  11753. var max = Number.NEGATIVE_INFINITY;
  11754. var min = Number.POSITIVE_INFINITY;
  11755. _.forIn(xs, function (x, v) {
  11756. var halfWidth = width(g, v) / 2;
  11757. max = Math.max(x + halfWidth, max);
  11758. min = Math.min(x - halfWidth, min);
  11759. });
  11760. return max - min;
  11761. });
  11762. }
  11763. /*
  11764. * Align the coordinates of each of the layout alignments such that
  11765. * left-biased alignments have their minimum coordinate at the same point as
  11766. * the minimum coordinate of the smallest width alignment and right-biased
  11767. * alignments have their maximum coordinate at the same point as the maximum
  11768. * coordinate of the smallest width alignment.
  11769. */
  11770. function alignCoordinates(xss, alignTo) {
  11771. var alignToVals = _.values(alignTo),
  11772. alignToMin = _.min(alignToVals),
  11773. alignToMax = _.max(alignToVals);
  11774. _.forEach(["u", "d"], function(vert) {
  11775. _.forEach(["l", "r"], function(horiz) {
  11776. var alignment = vert + horiz,
  11777. xs = xss[alignment],
  11778. delta;
  11779. if (xs === alignTo) return;
  11780. var xsVals = _.values(xs);
  11781. delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
  11782. if (delta) {
  11783. xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
  11784. }
  11785. });
  11786. });
  11787. }
  11788. function balance(xss, align) {
  11789. return _.mapValues(xss.ul, function(ignore, v) {
  11790. if (align) {
  11791. return xss[align.toLowerCase()][v];
  11792. } else {
  11793. var xs = _.sortBy(_.map(xss, v));
  11794. return (xs[1] + xs[2]) / 2;
  11795. }
  11796. });
  11797. }
  11798. function positionX(g) {
  11799. var layering = util.buildLayerMatrix(g);
  11800. var conflicts = _.merge(
  11801. findType1Conflicts(g, layering),
  11802. findType2Conflicts(g, layering));
  11803. var xss = {};
  11804. var adjustedLayering;
  11805. _.forEach(["u", "d"], function(vert) {
  11806. adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
  11807. _.forEach(["l", "r"], function(horiz) {
  11808. if (horiz === "r") {
  11809. adjustedLayering = _.map(adjustedLayering, function(inner) {
  11810. return _.values(inner).reverse();
  11811. });
  11812. }
  11813. var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
  11814. var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
  11815. var xs = horizontalCompaction(g, adjustedLayering,
  11816. align.root, align.align, horiz === "r");
  11817. if (horiz === "r") {
  11818. xs = _.mapValues(xs, function(x) { return -x; });
  11819. }
  11820. xss[vert + horiz] = xs;
  11821. });
  11822. });
  11823. var smallestWidth = findSmallestWidthAlignment(g, xss);
  11824. alignCoordinates(xss, smallestWidth);
  11825. return balance(xss, g.graph().align);
  11826. }
  11827. function sep(nodeSep, edgeSep, reverseSep) {
  11828. return function(g, v, w) {
  11829. var vLabel = g.node(v);
  11830. var wLabel = g.node(w);
  11831. var sum = 0;
  11832. var delta;
  11833. sum += vLabel.width / 2;
  11834. if (_.has(vLabel, "labelpos")) {
  11835. switch (vLabel.labelpos.toLowerCase()) {
  11836. case "l": delta = -vLabel.width / 2; break;
  11837. case "r": delta = vLabel.width / 2; break;
  11838. }
  11839. }
  11840. if (delta) {
  11841. sum += reverseSep ? delta : -delta;
  11842. }
  11843. delta = 0;
  11844. sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
  11845. sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
  11846. sum += wLabel.width / 2;
  11847. if (_.has(wLabel, "labelpos")) {
  11848. switch (wLabel.labelpos.toLowerCase()) {
  11849. case "l": delta = wLabel.width / 2; break;
  11850. case "r": delta = -wLabel.width / 2; break;
  11851. }
  11852. }
  11853. if (delta) {
  11854. sum += reverseSep ? delta : -delta;
  11855. }
  11856. delta = 0;
  11857. return sum;
  11858. };
  11859. }
  11860. function width(g, v) {
  11861. return g.node(v).width;
  11862. }
  11863. /***/ }),
  11864. /***/ "../../node_modules/dagre/lib/position/index.js":
  11865. /*!********************************************************************!*\
  11866. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/position/index.js ***!
  11867. \********************************************************************/
  11868. /*! no static exports found */
  11869. /***/ (function(module, exports, __webpack_require__) {
  11870. "use strict";
  11871. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11872. var util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  11873. var positionX = __webpack_require__(/*! ./bk */ "../../node_modules/dagre/lib/position/bk.js").positionX;
  11874. module.exports = position;
  11875. function position(g) {
  11876. g = util.asNonCompoundGraph(g);
  11877. positionY(g);
  11878. _.forEach(positionX(g), function(x, v) {
  11879. g.node(v).x = x;
  11880. });
  11881. }
  11882. function positionY(g) {
  11883. var layering = util.buildLayerMatrix(g);
  11884. var rankSep = g.graph().ranksep;
  11885. var prevY = 0;
  11886. _.forEach(layering, function(layer) {
  11887. var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
  11888. _.forEach(layer, function(v) {
  11889. g.node(v).y = prevY + maxHeight / 2;
  11890. });
  11891. prevY += maxHeight + rankSep;
  11892. });
  11893. }
  11894. /***/ }),
  11895. /***/ "../../node_modules/dagre/lib/rank/feasible-tree.js":
  11896. /*!************************************************************************!*\
  11897. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/feasible-tree.js ***!
  11898. \************************************************************************/
  11899. /*! no static exports found */
  11900. /***/ (function(module, exports, __webpack_require__) {
  11901. "use strict";
  11902. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11903. var Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  11904. var slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack;
  11905. module.exports = feasibleTree;
  11906. /*
  11907. * Constructs a spanning tree with tight edges and adjusted the input node's
  11908. * ranks to achieve this. A tight edge is one that is has a length that matches
  11909. * its "minlen" attribute.
  11910. *
  11911. * The basic structure for this function is derived from Gansner, et al., "A
  11912. * Technique for Drawing Directed Graphs."
  11913. *
  11914. * Pre-conditions:
  11915. *
  11916. * 1. Graph must be a DAG.
  11917. * 2. Graph must be connected.
  11918. * 3. Graph must have at least one node.
  11919. * 5. Graph nodes must have been previously assigned a "rank" property that
  11920. * respects the "minlen" property of incident edges.
  11921. * 6. Graph edges must have a "minlen" property.
  11922. *
  11923. * Post-conditions:
  11924. *
  11925. * - Graph nodes will have their rank adjusted to ensure that all edges are
  11926. * tight.
  11927. *
  11928. * Returns a tree (undirected graph) that is constructed using only "tight"
  11929. * edges.
  11930. */
  11931. function feasibleTree(g) {
  11932. var t = new Graph({ directed: false });
  11933. // Choose arbitrary node from which to start our tree
  11934. var start = g.nodes()[0];
  11935. var size = g.nodeCount();
  11936. t.setNode(start, {});
  11937. var edge, delta;
  11938. while (tightTree(t, g) < size) {
  11939. edge = findMinSlackEdge(t, g);
  11940. delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
  11941. shiftRanks(t, g, delta);
  11942. }
  11943. return t;
  11944. }
  11945. /*
  11946. * Finds a maximal tree of tight edges and returns the number of nodes in the
  11947. * tree.
  11948. */
  11949. function tightTree(t, g) {
  11950. function dfs(v) {
  11951. _.forEach(g.nodeEdges(v), function(e) {
  11952. var edgeV = e.v,
  11953. w = (v === edgeV) ? e.w : edgeV;
  11954. if (!t.hasNode(w) && !slack(g, e)) {
  11955. t.setNode(w, {});
  11956. t.setEdge(v, w, {});
  11957. dfs(w);
  11958. }
  11959. });
  11960. }
  11961. _.forEach(t.nodes(), dfs);
  11962. return t.nodeCount();
  11963. }
  11964. /*
  11965. * Finds the edge with the smallest slack that is incident on tree and returns
  11966. * it.
  11967. */
  11968. function findMinSlackEdge(t, g) {
  11969. return _.minBy(g.edges(), function(e) {
  11970. if (t.hasNode(e.v) !== t.hasNode(e.w)) {
  11971. return slack(g, e);
  11972. }
  11973. });
  11974. }
  11975. function shiftRanks(t, g, delta) {
  11976. _.forEach(t.nodes(), function(v) {
  11977. g.node(v).rank += delta;
  11978. });
  11979. }
  11980. /***/ }),
  11981. /***/ "../../node_modules/dagre/lib/rank/index.js":
  11982. /*!****************************************************************!*\
  11983. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/index.js ***!
  11984. \****************************************************************/
  11985. /*! no static exports found */
  11986. /***/ (function(module, exports, __webpack_require__) {
  11987. "use strict";
  11988. var rankUtil = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js");
  11989. var longestPath = rankUtil.longestPath;
  11990. var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js");
  11991. var networkSimplex = __webpack_require__(/*! ./network-simplex */ "../../node_modules/dagre/lib/rank/network-simplex.js");
  11992. module.exports = rank;
  11993. /*
  11994. * Assigns a rank to each node in the input graph that respects the "minlen"
  11995. * constraint specified on edges between nodes.
  11996. *
  11997. * This basic structure is derived from Gansner, et al., "A Technique for
  11998. * Drawing Directed Graphs."
  11999. *
  12000. * Pre-conditions:
  12001. *
  12002. * 1. Graph must be a connected DAG
  12003. * 2. Graph nodes must be objects
  12004. * 3. Graph edges must have "weight" and "minlen" attributes
  12005. *
  12006. * Post-conditions:
  12007. *
  12008. * 1. Graph nodes will have a "rank" attribute based on the results of the
  12009. * algorithm. Ranks can start at any index (including negative), we'll
  12010. * fix them up later.
  12011. */
  12012. function rank(g) {
  12013. switch(g.graph().ranker) {
  12014. case "network-simplex": networkSimplexRanker(g); break;
  12015. case "tight-tree": tightTreeRanker(g); break;
  12016. case "longest-path": longestPathRanker(g); break;
  12017. default: networkSimplexRanker(g);
  12018. }
  12019. }
  12020. // A fast and simple ranker, but results are far from optimal.
  12021. var longestPathRanker = longestPath;
  12022. function tightTreeRanker(g) {
  12023. longestPath(g);
  12024. feasibleTree(g);
  12025. }
  12026. function networkSimplexRanker(g) {
  12027. networkSimplex(g);
  12028. }
  12029. /***/ }),
  12030. /***/ "../../node_modules/dagre/lib/rank/network-simplex.js":
  12031. /*!**************************************************************************!*\
  12032. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/network-simplex.js ***!
  12033. \**************************************************************************/
  12034. /*! no static exports found */
  12035. /***/ (function(module, exports, __webpack_require__) {
  12036. "use strict";
  12037. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  12038. var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js");
  12039. var slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack;
  12040. var initRank = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").longestPath;
  12041. var preorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.preorder;
  12042. var postorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.postorder;
  12043. var simplify = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js").simplify;
  12044. module.exports = networkSimplex;
  12045. // Expose some internals for testing purposes
  12046. networkSimplex.initLowLimValues = initLowLimValues;
  12047. networkSimplex.initCutValues = initCutValues;
  12048. networkSimplex.calcCutValue = calcCutValue;
  12049. networkSimplex.leaveEdge = leaveEdge;
  12050. networkSimplex.enterEdge = enterEdge;
  12051. networkSimplex.exchangeEdges = exchangeEdges;
  12052. /*
  12053. * The network simplex algorithm assigns ranks to each node in the input graph
  12054. * and iteratively improves the ranking to reduce the length of edges.
  12055. *
  12056. * Preconditions:
  12057. *
  12058. * 1. The input graph must be a DAG.
  12059. * 2. All nodes in the graph must have an object value.
  12060. * 3. All edges in the graph must have "minlen" and "weight" attributes.
  12061. *
  12062. * Postconditions:
  12063. *
  12064. * 1. All nodes in the graph will have an assigned "rank" attribute that has
  12065. * been optimized by the network simplex algorithm. Ranks start at 0.
  12066. *
  12067. *
  12068. * A rough sketch of the algorithm is as follows:
  12069. *
  12070. * 1. Assign initial ranks to each node. We use the longest path algorithm,
  12071. * which assigns ranks to the lowest position possible. In general this
  12072. * leads to very wide bottom ranks and unnecessarily long edges.
  12073. * 2. Construct a feasible tight tree. A tight tree is one such that all
  12074. * edges in the tree have no slack (difference between length of edge
  12075. * and minlen for the edge). This by itself greatly improves the assigned
  12076. * rankings by shorting edges.
  12077. * 3. Iteratively find edges that have negative cut values. Generally a
  12078. * negative cut value indicates that the edge could be removed and a new
  12079. * tree edge could be added to produce a more compact graph.
  12080. *
  12081. * Much of the algorithms here are derived from Gansner, et al., "A Technique
  12082. * for Drawing Directed Graphs." The structure of the file roughly follows the
  12083. * structure of the overall algorithm.
  12084. */
  12085. function networkSimplex(g) {
  12086. g = simplify(g);
  12087. initRank(g);
  12088. var t = feasibleTree(g);
  12089. initLowLimValues(t);
  12090. initCutValues(t, g);
  12091. var e, f;
  12092. while ((e = leaveEdge(t))) {
  12093. f = enterEdge(t, g, e);
  12094. exchangeEdges(t, g, e, f);
  12095. }
  12096. }
  12097. /*
  12098. * Initializes cut values for all edges in the tree.
  12099. */
  12100. function initCutValues(t, g) {
  12101. var vs = postorder(t, t.nodes());
  12102. vs = vs.slice(0, vs.length - 1);
  12103. _.forEach(vs, function(v) {
  12104. assignCutValue(t, g, v);
  12105. });
  12106. }
  12107. function assignCutValue(t, g, child) {
  12108. var childLab = t.node(child);
  12109. var parent = childLab.parent;
  12110. t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
  12111. }
  12112. /*
  12113. * Given the tight tree, its graph, and a child in the graph calculate and
  12114. * return the cut value for the edge between the child and its parent.
  12115. */
  12116. function calcCutValue(t, g, child) {
  12117. var childLab = t.node(child);
  12118. var parent = childLab.parent;
  12119. // True if the child is on the tail end of the edge in the directed graph
  12120. var childIsTail = true;
  12121. // The graph's view of the tree edge we're inspecting
  12122. var graphEdge = g.edge(child, parent);
  12123. // The accumulated cut value for the edge between this node and its parent
  12124. var cutValue = 0;
  12125. if (!graphEdge) {
  12126. childIsTail = false;
  12127. graphEdge = g.edge(parent, child);
  12128. }
  12129. cutValue = graphEdge.weight;
  12130. _.forEach(g.nodeEdges(child), function(e) {
  12131. var isOutEdge = e.v === child,
  12132. other = isOutEdge ? e.w : e.v;
  12133. if (other !== parent) {
  12134. var pointsToHead = isOutEdge === childIsTail,
  12135. otherWeight = g.edge(e).weight;
  12136. cutValue += pointsToHead ? otherWeight : -otherWeight;
  12137. if (isTreeEdge(t, child, other)) {
  12138. var otherCutValue = t.edge(child, other).cutvalue;
  12139. cutValue += pointsToHead ? -otherCutValue : otherCutValue;
  12140. }
  12141. }
  12142. });
  12143. return cutValue;
  12144. }
  12145. function initLowLimValues(tree, root) {
  12146. if (arguments.length < 2) {
  12147. root = tree.nodes()[0];
  12148. }
  12149. dfsAssignLowLim(tree, {}, 1, root);
  12150. }
  12151. function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
  12152. var low = nextLim;
  12153. var label = tree.node(v);
  12154. visited[v] = true;
  12155. _.forEach(tree.neighbors(v), function(w) {
  12156. if (!_.has(visited, w)) {
  12157. nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
  12158. }
  12159. });
  12160. label.low = low;
  12161. label.lim = nextLim++;
  12162. if (parent) {
  12163. label.parent = parent;
  12164. } else {
  12165. // TODO should be able to remove this when we incrementally update low lim
  12166. delete label.parent;
  12167. }
  12168. return nextLim;
  12169. }
  12170. function leaveEdge(tree) {
  12171. return _.find(tree.edges(), function(e) {
  12172. return tree.edge(e).cutvalue < 0;
  12173. });
  12174. }
  12175. function enterEdge(t, g, edge) {
  12176. var v = edge.v;
  12177. var w = edge.w;
  12178. // For the rest of this function we assume that v is the tail and w is the
  12179. // head, so if we don't have this edge in the graph we should flip it to
  12180. // match the correct orientation.
  12181. if (!g.hasEdge(v, w)) {
  12182. v = edge.w;
  12183. w = edge.v;
  12184. }
  12185. var vLabel = t.node(v);
  12186. var wLabel = t.node(w);
  12187. var tailLabel = vLabel;
  12188. var flip = false;
  12189. // If the root is in the tail of the edge then we need to flip the logic that
  12190. // checks for the head and tail nodes in the candidates function below.
  12191. if (vLabel.lim > wLabel.lim) {
  12192. tailLabel = wLabel;
  12193. flip = true;
  12194. }
  12195. var candidates = _.filter(g.edges(), function(edge) {
  12196. return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
  12197. flip !== isDescendant(t, t.node(edge.w), tailLabel);
  12198. });
  12199. return _.minBy(candidates, function(edge) { return slack(g, edge); });
  12200. }
  12201. function exchangeEdges(t, g, e, f) {
  12202. var v = e.v;
  12203. var w = e.w;
  12204. t.removeEdge(v, w);
  12205. t.setEdge(f.v, f.w, {});
  12206. initLowLimValues(t);
  12207. initCutValues(t, g);
  12208. updateRanks(t, g);
  12209. }
  12210. function updateRanks(t, g) {
  12211. var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });
  12212. var vs = preorder(t, root);
  12213. vs = vs.slice(1);
  12214. _.forEach(vs, function(v) {
  12215. var parent = t.node(v).parent,
  12216. edge = g.edge(v, parent),
  12217. flipped = false;
  12218. if (!edge) {
  12219. edge = g.edge(parent, v);
  12220. flipped = true;
  12221. }
  12222. g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
  12223. });
  12224. }
  12225. /*
  12226. * Returns true if the edge is in the tree.
  12227. */
  12228. function isTreeEdge(tree, u, v) {
  12229. return tree.hasEdge(u, v);
  12230. }
  12231. /*
  12232. * Returns true if the specified node is descendant of the root node per the
  12233. * assigned low and lim attributes in the tree.
  12234. */
  12235. function isDescendant(tree, vLabel, rootLabel) {
  12236. return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
  12237. }
  12238. /***/ }),
  12239. /***/ "../../node_modules/dagre/lib/rank/util.js":
  12240. /*!***************************************************************!*\
  12241. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/util.js ***!
  12242. \***************************************************************/
  12243. /*! no static exports found */
  12244. /***/ (function(module, exports, __webpack_require__) {
  12245. "use strict";
  12246. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  12247. module.exports = {
  12248. longestPath: longestPath,
  12249. slack: slack
  12250. };
  12251. /*
  12252. * Initializes ranks for the input graph using the longest path algorithm. This
  12253. * algorithm scales well and is fast in practice, it yields rather poor
  12254. * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
  12255. * ranks wide and leaving edges longer than necessary. However, due to its
  12256. * speed, this algorithm is good for getting an initial ranking that can be fed
  12257. * into other algorithms.
  12258. *
  12259. * This algorithm does not normalize layers because it will be used by other
  12260. * algorithms in most cases. If using this algorithm directly, be sure to
  12261. * run normalize at the end.
  12262. *
  12263. * Pre-conditions:
  12264. *
  12265. * 1. Input graph is a DAG.
  12266. * 2. Input graph node labels can be assigned properties.
  12267. *
  12268. * Post-conditions:
  12269. *
  12270. * 1. Each node will be assign an (unnormalized) "rank" property.
  12271. */
  12272. function longestPath(g) {
  12273. var visited = {};
  12274. function dfs(v) {
  12275. var label = g.node(v);
  12276. if (_.has(visited, v)) {
  12277. return label.rank;
  12278. }
  12279. visited[v] = true;
  12280. var rank = _.min(_.map(g.outEdges(v), function(e) {
  12281. return dfs(e.w) - g.edge(e).minlen;
  12282. }));
  12283. if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
  12284. rank === undefined || // return value of _.map([]) for Lodash 4
  12285. rank === null) { // return value of _.map([null])
  12286. rank = 0;
  12287. }
  12288. return (label.rank = rank);
  12289. }
  12290. _.forEach(g.sources(), dfs);
  12291. }
  12292. /*
  12293. * Returns the amount of slack for the given edge. The slack is defined as the
  12294. * difference between the length of the edge and its minimum length.
  12295. */
  12296. function slack(g, e) {
  12297. return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
  12298. }
  12299. /***/ }),
  12300. /***/ "../../node_modules/dagre/lib/util.js":
  12301. /*!**********************************************************!*\
  12302. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/util.js ***!
  12303. \**********************************************************/
  12304. /*! no static exports found */
  12305. /***/ (function(module, exports, __webpack_require__) {
  12306. "use strict";
  12307. /* eslint "no-console": off */
  12308. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  12309. var Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  12310. module.exports = {
  12311. addDummyNode: addDummyNode,
  12312. simplify: simplify,
  12313. asNonCompoundGraph: asNonCompoundGraph,
  12314. successorWeights: successorWeights,
  12315. predecessorWeights: predecessorWeights,
  12316. intersectRect: intersectRect,
  12317. buildLayerMatrix: buildLayerMatrix,
  12318. normalizeRanks: normalizeRanks,
  12319. removeEmptyRanks: removeEmptyRanks,
  12320. addBorderNode: addBorderNode,
  12321. maxRank: maxRank,
  12322. partition: partition,
  12323. time: time,
  12324. notime: notime
  12325. };
  12326. /*
  12327. * Adds a dummy node to the graph and return v.
  12328. */
  12329. function addDummyNode(g, type, attrs, name) {
  12330. var v;
  12331. do {
  12332. v = _.uniqueId(name);
  12333. } while (g.hasNode(v));
  12334. attrs.dummy = type;
  12335. g.setNode(v, attrs);
  12336. return v;
  12337. }
  12338. /*
  12339. * Returns a new graph with only simple edges. Handles aggregation of data
  12340. * associated with multi-edges.
  12341. */
  12342. function simplify(g) {
  12343. var simplified = new Graph().setGraph(g.graph());
  12344. _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
  12345. _.forEach(g.edges(), function(e) {
  12346. var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };
  12347. var label = g.edge(e);
  12348. simplified.setEdge(e.v, e.w, {
  12349. weight: simpleLabel.weight + label.weight,
  12350. minlen: Math.max(simpleLabel.minlen, label.minlen)
  12351. });
  12352. });
  12353. return simplified;
  12354. }
  12355. function asNonCompoundGraph(g) {
  12356. var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
  12357. _.forEach(g.nodes(), function(v) {
  12358. if (!g.children(v).length) {
  12359. simplified.setNode(v, g.node(v));
  12360. }
  12361. });
  12362. _.forEach(g.edges(), function(e) {
  12363. simplified.setEdge(e, g.edge(e));
  12364. });
  12365. return simplified;
  12366. }
  12367. function successorWeights(g) {
  12368. var weightMap = _.map(g.nodes(), function(v) {
  12369. var sucs = {};
  12370. _.forEach(g.outEdges(v), function(e) {
  12371. sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
  12372. });
  12373. return sucs;
  12374. });
  12375. return _.zipObject(g.nodes(), weightMap);
  12376. }
  12377. function predecessorWeights(g) {
  12378. var weightMap = _.map(g.nodes(), function(v) {
  12379. var preds = {};
  12380. _.forEach(g.inEdges(v), function(e) {
  12381. preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
  12382. });
  12383. return preds;
  12384. });
  12385. return _.zipObject(g.nodes(), weightMap);
  12386. }
  12387. /*
  12388. * Finds where a line starting at point ({x, y}) would intersect a rectangle
  12389. * ({x, y, width, height}) if it were pointing at the rectangle's center.
  12390. */
  12391. function intersectRect(rect, point) {
  12392. var x = rect.x;
  12393. var y = rect.y;
  12394. // Rectangle intersection algorithm from:
  12395. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  12396. var dx = point.x - x;
  12397. var dy = point.y - y;
  12398. var w = rect.width / 2;
  12399. var h = rect.height / 2;
  12400. if (!dx && !dy) {
  12401. throw new Error("Not possible to find intersection inside of the rectangle");
  12402. }
  12403. var sx, sy;
  12404. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  12405. // Intersection is top or bottom of rect.
  12406. if (dy < 0) {
  12407. h = -h;
  12408. }
  12409. sx = h * dx / dy;
  12410. sy = h;
  12411. } else {
  12412. // Intersection is left or right of rect.
  12413. if (dx < 0) {
  12414. w = -w;
  12415. }
  12416. sx = w;
  12417. sy = w * dy / dx;
  12418. }
  12419. return { x: x + sx, y: y + sy };
  12420. }
  12421. /*
  12422. * Given a DAG with each node assigned "rank" and "order" properties, this
  12423. * function will produce a matrix with the ids of each node.
  12424. */
  12425. function buildLayerMatrix(g) {
  12426. var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
  12427. _.forEach(g.nodes(), function(v) {
  12428. var node = g.node(v);
  12429. var rank = node.rank;
  12430. if (!_.isUndefined(rank)) {
  12431. layering[rank][node.order] = v;
  12432. }
  12433. });
  12434. return layering;
  12435. }
  12436. /*
  12437. * Adjusts the ranks for all nodes in the graph such that all nodes v have
  12438. * rank(v) >= 0 and at least one node w has rank(w) = 0.
  12439. */
  12440. function normalizeRanks(g) {
  12441. var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  12442. _.forEach(g.nodes(), function(v) {
  12443. var node = g.node(v);
  12444. if (_.has(node, "rank")) {
  12445. node.rank -= min;
  12446. }
  12447. });
  12448. }
  12449. function removeEmptyRanks(g) {
  12450. // Ranks may not start at 0, so we need to offset them
  12451. var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  12452. var layers = [];
  12453. _.forEach(g.nodes(), function(v) {
  12454. var rank = g.node(v).rank - offset;
  12455. if (!layers[rank]) {
  12456. layers[rank] = [];
  12457. }
  12458. layers[rank].push(v);
  12459. });
  12460. var delta = 0;
  12461. var nodeRankFactor = g.graph().nodeRankFactor;
  12462. _.forEach(layers, function(vs, i) {
  12463. if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
  12464. --delta;
  12465. } else if (delta) {
  12466. _.forEach(vs, function(v) { g.node(v).rank += delta; });
  12467. }
  12468. });
  12469. }
  12470. function addBorderNode(g, prefix, rank, order) {
  12471. var node = {
  12472. width: 0,
  12473. height: 0
  12474. };
  12475. if (arguments.length >= 4) {
  12476. node.rank = rank;
  12477. node.order = order;
  12478. }
  12479. return addDummyNode(g, "border", node, prefix);
  12480. }
  12481. function maxRank(g) {
  12482. return _.max(_.map(g.nodes(), function(v) {
  12483. var rank = g.node(v).rank;
  12484. if (!_.isUndefined(rank)) {
  12485. return rank;
  12486. }
  12487. }));
  12488. }
  12489. /*
  12490. * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
  12491. * function returns true for an entry it goes into `lhs`. Otherwise it goes
  12492. * into `rhs.
  12493. */
  12494. function partition(collection, fn) {
  12495. var result = { lhs: [], rhs: [] };
  12496. _.forEach(collection, function(value) {
  12497. if (fn(value)) {
  12498. result.lhs.push(value);
  12499. } else {
  12500. result.rhs.push(value);
  12501. }
  12502. });
  12503. return result;
  12504. }
  12505. /*
  12506. * Returns a new function that wraps `fn` with a timer. The wrapper logs the
  12507. * time it takes to execute the function.
  12508. */
  12509. function time(name, fn) {
  12510. var start = _.now();
  12511. try {
  12512. return fn();
  12513. } finally {
  12514. console.log(name + " time: " + (_.now() - start) + "ms");
  12515. }
  12516. }
  12517. function notime(name, fn) {
  12518. return fn();
  12519. }
  12520. /***/ }),
  12521. /***/ "../../node_modules/dagre/lib/version.js":
  12522. /*!*************************************************************!*\
  12523. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/version.js ***!
  12524. \*************************************************************/
  12525. /*! no static exports found */
  12526. /***/ (function(module, exports) {
  12527. module.exports = "0.8.5";
  12528. /***/ }),
  12529. /***/ "../../node_modules/graphlib/index.js":
  12530. /*!**********************************************************!*\
  12531. !*** C:/Repos/Babylon.js/node_modules/graphlib/index.js ***!
  12532. \**********************************************************/
  12533. /*! no static exports found */
  12534. /***/ (function(module, exports, __webpack_require__) {
  12535. /**
  12536. * Copyright (c) 2014, Chris Pettitt
  12537. * All rights reserved.
  12538. *
  12539. * Redistribution and use in source and binary forms, with or without
  12540. * modification, are permitted provided that the following conditions are met:
  12541. *
  12542. * 1. Redistributions of source code must retain the above copyright notice, this
  12543. * list of conditions and the following disclaimer.
  12544. *
  12545. * 2. Redistributions in binary form must reproduce the above copyright notice,
  12546. * this list of conditions and the following disclaimer in the documentation
  12547. * and/or other materials provided with the distribution.
  12548. *
  12549. * 3. Neither the name of the copyright holder nor the names of its contributors
  12550. * may be used to endorse or promote products derived from this software without
  12551. * specific prior written permission.
  12552. *
  12553. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  12554. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  12555. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  12556. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  12557. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  12558. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  12559. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  12560. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  12561. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  12562. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  12563. */
  12564. var lib = __webpack_require__(/*! ./lib */ "../../node_modules/graphlib/lib/index.js");
  12565. module.exports = {
  12566. Graph: lib.Graph,
  12567. json: __webpack_require__(/*! ./lib/json */ "../../node_modules/graphlib/lib/json.js"),
  12568. alg: __webpack_require__(/*! ./lib/alg */ "../../node_modules/graphlib/lib/alg/index.js"),
  12569. version: lib.version
  12570. };
  12571. /***/ }),
  12572. /***/ "../../node_modules/graphlib/lib/alg/components.js":
  12573. /*!***********************************************************************!*\
  12574. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/components.js ***!
  12575. \***********************************************************************/
  12576. /*! no static exports found */
  12577. /***/ (function(module, exports, __webpack_require__) {
  12578. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12579. module.exports = components;
  12580. function components(g) {
  12581. var visited = {};
  12582. var cmpts = [];
  12583. var cmpt;
  12584. function dfs(v) {
  12585. if (_.has(visited, v)) return;
  12586. visited[v] = true;
  12587. cmpt.push(v);
  12588. _.each(g.successors(v), dfs);
  12589. _.each(g.predecessors(v), dfs);
  12590. }
  12591. _.each(g.nodes(), function(v) {
  12592. cmpt = [];
  12593. dfs(v);
  12594. if (cmpt.length) {
  12595. cmpts.push(cmpt);
  12596. }
  12597. });
  12598. return cmpts;
  12599. }
  12600. /***/ }),
  12601. /***/ "../../node_modules/graphlib/lib/alg/dfs.js":
  12602. /*!****************************************************************!*\
  12603. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dfs.js ***!
  12604. \****************************************************************/
  12605. /*! no static exports found */
  12606. /***/ (function(module, exports, __webpack_require__) {
  12607. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12608. module.exports = dfs;
  12609. /*
  12610. * A helper that preforms a pre- or post-order traversal on the input graph
  12611. * and returns the nodes in the order they were visited. If the graph is
  12612. * undirected then this algorithm will navigate using neighbors. If the graph
  12613. * is directed then this algorithm will navigate using successors.
  12614. *
  12615. * Order must be one of "pre" or "post".
  12616. */
  12617. function dfs(g, vs, order) {
  12618. if (!_.isArray(vs)) {
  12619. vs = [vs];
  12620. }
  12621. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
  12622. var acc = [];
  12623. var visited = {};
  12624. _.each(vs, function(v) {
  12625. if (!g.hasNode(v)) {
  12626. throw new Error("Graph does not have node: " + v);
  12627. }
  12628. doDfs(g, v, order === "post", visited, navigation, acc);
  12629. });
  12630. return acc;
  12631. }
  12632. function doDfs(g, v, postorder, visited, navigation, acc) {
  12633. if (!_.has(visited, v)) {
  12634. visited[v] = true;
  12635. if (!postorder) { acc.push(v); }
  12636. _.each(navigation(v), function(w) {
  12637. doDfs(g, w, postorder, visited, navigation, acc);
  12638. });
  12639. if (postorder) { acc.push(v); }
  12640. }
  12641. }
  12642. /***/ }),
  12643. /***/ "../../node_modules/graphlib/lib/alg/dijkstra-all.js":
  12644. /*!*************************************************************************!*\
  12645. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra-all.js ***!
  12646. \*************************************************************************/
  12647. /*! no static exports found */
  12648. /***/ (function(module, exports, __webpack_require__) {
  12649. var dijkstra = __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js");
  12650. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12651. module.exports = dijkstraAll;
  12652. function dijkstraAll(g, weightFunc, edgeFunc) {
  12653. return _.transform(g.nodes(), function(acc, v) {
  12654. acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
  12655. }, {});
  12656. }
  12657. /***/ }),
  12658. /***/ "../../node_modules/graphlib/lib/alg/dijkstra.js":
  12659. /*!*********************************************************************!*\
  12660. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra.js ***!
  12661. \*********************************************************************/
  12662. /*! no static exports found */
  12663. /***/ (function(module, exports, __webpack_require__) {
  12664. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12665. var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  12666. module.exports = dijkstra;
  12667. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  12668. function dijkstra(g, source, weightFn, edgeFn) {
  12669. return runDijkstra(g, String(source),
  12670. weightFn || DEFAULT_WEIGHT_FUNC,
  12671. edgeFn || function(v) { return g.outEdges(v); });
  12672. }
  12673. function runDijkstra(g, source, weightFn, edgeFn) {
  12674. var results = {};
  12675. var pq = new PriorityQueue();
  12676. var v, vEntry;
  12677. var updateNeighbors = function(edge) {
  12678. var w = edge.v !== v ? edge.v : edge.w;
  12679. var wEntry = results[w];
  12680. var weight = weightFn(edge);
  12681. var distance = vEntry.distance + weight;
  12682. if (weight < 0) {
  12683. throw new Error("dijkstra does not allow negative edge weights. " +
  12684. "Bad edge: " + edge + " Weight: " + weight);
  12685. }
  12686. if (distance < wEntry.distance) {
  12687. wEntry.distance = distance;
  12688. wEntry.predecessor = v;
  12689. pq.decrease(w, distance);
  12690. }
  12691. };
  12692. g.nodes().forEach(function(v) {
  12693. var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
  12694. results[v] = { distance: distance };
  12695. pq.add(v, distance);
  12696. });
  12697. while (pq.size() > 0) {
  12698. v = pq.removeMin();
  12699. vEntry = results[v];
  12700. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  12701. break;
  12702. }
  12703. edgeFn(v).forEach(updateNeighbors);
  12704. }
  12705. return results;
  12706. }
  12707. /***/ }),
  12708. /***/ "../../node_modules/graphlib/lib/alg/find-cycles.js":
  12709. /*!************************************************************************!*\
  12710. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/find-cycles.js ***!
  12711. \************************************************************************/
  12712. /*! no static exports found */
  12713. /***/ (function(module, exports, __webpack_require__) {
  12714. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12715. var tarjan = __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js");
  12716. module.exports = findCycles;
  12717. function findCycles(g) {
  12718. return _.filter(tarjan(g), function(cmpt) {
  12719. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
  12720. });
  12721. }
  12722. /***/ }),
  12723. /***/ "../../node_modules/graphlib/lib/alg/floyd-warshall.js":
  12724. /*!***************************************************************************!*\
  12725. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/floyd-warshall.js ***!
  12726. \***************************************************************************/
  12727. /*! no static exports found */
  12728. /***/ (function(module, exports, __webpack_require__) {
  12729. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12730. module.exports = floydWarshall;
  12731. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  12732. function floydWarshall(g, weightFn, edgeFn) {
  12733. return runFloydWarshall(g,
  12734. weightFn || DEFAULT_WEIGHT_FUNC,
  12735. edgeFn || function(v) { return g.outEdges(v); });
  12736. }
  12737. function runFloydWarshall(g, weightFn, edgeFn) {
  12738. var results = {};
  12739. var nodes = g.nodes();
  12740. nodes.forEach(function(v) {
  12741. results[v] = {};
  12742. results[v][v] = { distance: 0 };
  12743. nodes.forEach(function(w) {
  12744. if (v !== w) {
  12745. results[v][w] = { distance: Number.POSITIVE_INFINITY };
  12746. }
  12747. });
  12748. edgeFn(v).forEach(function(edge) {
  12749. var w = edge.v === v ? edge.w : edge.v;
  12750. var d = weightFn(edge);
  12751. results[v][w] = { distance: d, predecessor: v };
  12752. });
  12753. });
  12754. nodes.forEach(function(k) {
  12755. var rowK = results[k];
  12756. nodes.forEach(function(i) {
  12757. var rowI = results[i];
  12758. nodes.forEach(function(j) {
  12759. var ik = rowI[k];
  12760. var kj = rowK[j];
  12761. var ij = rowI[j];
  12762. var altDistance = ik.distance + kj.distance;
  12763. if (altDistance < ij.distance) {
  12764. ij.distance = altDistance;
  12765. ij.predecessor = kj.predecessor;
  12766. }
  12767. });
  12768. });
  12769. });
  12770. return results;
  12771. }
  12772. /***/ }),
  12773. /***/ "../../node_modules/graphlib/lib/alg/index.js":
  12774. /*!******************************************************************!*\
  12775. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/index.js ***!
  12776. \******************************************************************/
  12777. /*! no static exports found */
  12778. /***/ (function(module, exports, __webpack_require__) {
  12779. module.exports = {
  12780. components: __webpack_require__(/*! ./components */ "../../node_modules/graphlib/lib/alg/components.js"),
  12781. dijkstra: __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  12782. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "../../node_modules/graphlib/lib/alg/dijkstra-all.js"),
  12783. findCycles: __webpack_require__(/*! ./find-cycles */ "../../node_modules/graphlib/lib/alg/find-cycles.js"),
  12784. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "../../node_modules/graphlib/lib/alg/floyd-warshall.js"),
  12785. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "../../node_modules/graphlib/lib/alg/is-acyclic.js"),
  12786. postorder: __webpack_require__(/*! ./postorder */ "../../node_modules/graphlib/lib/alg/postorder.js"),
  12787. preorder: __webpack_require__(/*! ./preorder */ "../../node_modules/graphlib/lib/alg/preorder.js"),
  12788. prim: __webpack_require__(/*! ./prim */ "../../node_modules/graphlib/lib/alg/prim.js"),
  12789. tarjan: __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js"),
  12790. topsort: __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js")
  12791. };
  12792. /***/ }),
  12793. /***/ "../../node_modules/graphlib/lib/alg/is-acyclic.js":
  12794. /*!***********************************************************************!*\
  12795. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/is-acyclic.js ***!
  12796. \***********************************************************************/
  12797. /*! no static exports found */
  12798. /***/ (function(module, exports, __webpack_require__) {
  12799. var topsort = __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js");
  12800. module.exports = isAcyclic;
  12801. function isAcyclic(g) {
  12802. try {
  12803. topsort(g);
  12804. } catch (e) {
  12805. if (e instanceof topsort.CycleException) {
  12806. return false;
  12807. }
  12808. throw e;
  12809. }
  12810. return true;
  12811. }
  12812. /***/ }),
  12813. /***/ "../../node_modules/graphlib/lib/alg/postorder.js":
  12814. /*!**********************************************************************!*\
  12815. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/postorder.js ***!
  12816. \**********************************************************************/
  12817. /*! no static exports found */
  12818. /***/ (function(module, exports, __webpack_require__) {
  12819. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  12820. module.exports = postorder;
  12821. function postorder(g, vs) {
  12822. return dfs(g, vs, "post");
  12823. }
  12824. /***/ }),
  12825. /***/ "../../node_modules/graphlib/lib/alg/preorder.js":
  12826. /*!*********************************************************************!*\
  12827. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/preorder.js ***!
  12828. \*********************************************************************/
  12829. /*! no static exports found */
  12830. /***/ (function(module, exports, __webpack_require__) {
  12831. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  12832. module.exports = preorder;
  12833. function preorder(g, vs) {
  12834. return dfs(g, vs, "pre");
  12835. }
  12836. /***/ }),
  12837. /***/ "../../node_modules/graphlib/lib/alg/prim.js":
  12838. /*!*****************************************************************!*\
  12839. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/prim.js ***!
  12840. \*****************************************************************/
  12841. /*! no static exports found */
  12842. /***/ (function(module, exports, __webpack_require__) {
  12843. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12844. var Graph = __webpack_require__(/*! ../graph */ "../../node_modules/graphlib/lib/graph.js");
  12845. var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  12846. module.exports = prim;
  12847. function prim(g, weightFunc) {
  12848. var result = new Graph();
  12849. var parents = {};
  12850. var pq = new PriorityQueue();
  12851. var v;
  12852. function updateNeighbors(edge) {
  12853. var w = edge.v === v ? edge.w : edge.v;
  12854. var pri = pq.priority(w);
  12855. if (pri !== undefined) {
  12856. var edgeWeight = weightFunc(edge);
  12857. if (edgeWeight < pri) {
  12858. parents[w] = v;
  12859. pq.decrease(w, edgeWeight);
  12860. }
  12861. }
  12862. }
  12863. if (g.nodeCount() === 0) {
  12864. return result;
  12865. }
  12866. _.each(g.nodes(), function(v) {
  12867. pq.add(v, Number.POSITIVE_INFINITY);
  12868. result.setNode(v);
  12869. });
  12870. // Start from an arbitrary node
  12871. pq.decrease(g.nodes()[0], 0);
  12872. var init = false;
  12873. while (pq.size() > 0) {
  12874. v = pq.removeMin();
  12875. if (_.has(parents, v)) {
  12876. result.setEdge(v, parents[v]);
  12877. } else if (init) {
  12878. throw new Error("Input graph is not connected: " + g);
  12879. } else {
  12880. init = true;
  12881. }
  12882. g.nodeEdges(v).forEach(updateNeighbors);
  12883. }
  12884. return result;
  12885. }
  12886. /***/ }),
  12887. /***/ "../../node_modules/graphlib/lib/alg/tarjan.js":
  12888. /*!*******************************************************************!*\
  12889. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/tarjan.js ***!
  12890. \*******************************************************************/
  12891. /*! no static exports found */
  12892. /***/ (function(module, exports, __webpack_require__) {
  12893. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12894. module.exports = tarjan;
  12895. function tarjan(g) {
  12896. var index = 0;
  12897. var stack = [];
  12898. var visited = {}; // node id -> { onStack, lowlink, index }
  12899. var results = [];
  12900. function dfs(v) {
  12901. var entry = visited[v] = {
  12902. onStack: true,
  12903. lowlink: index,
  12904. index: index++
  12905. };
  12906. stack.push(v);
  12907. g.successors(v).forEach(function(w) {
  12908. if (!_.has(visited, w)) {
  12909. dfs(w);
  12910. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
  12911. } else if (visited[w].onStack) {
  12912. entry.lowlink = Math.min(entry.lowlink, visited[w].index);
  12913. }
  12914. });
  12915. if (entry.lowlink === entry.index) {
  12916. var cmpt = [];
  12917. var w;
  12918. do {
  12919. w = stack.pop();
  12920. visited[w].onStack = false;
  12921. cmpt.push(w);
  12922. } while (v !== w);
  12923. results.push(cmpt);
  12924. }
  12925. }
  12926. g.nodes().forEach(function(v) {
  12927. if (!_.has(visited, v)) {
  12928. dfs(v);
  12929. }
  12930. });
  12931. return results;
  12932. }
  12933. /***/ }),
  12934. /***/ "../../node_modules/graphlib/lib/alg/topsort.js":
  12935. /*!********************************************************************!*\
  12936. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/topsort.js ***!
  12937. \********************************************************************/
  12938. /*! no static exports found */
  12939. /***/ (function(module, exports, __webpack_require__) {
  12940. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12941. module.exports = topsort;
  12942. topsort.CycleException = CycleException;
  12943. function topsort(g) {
  12944. var visited = {};
  12945. var stack = {};
  12946. var results = [];
  12947. function visit(node) {
  12948. if (_.has(stack, node)) {
  12949. throw new CycleException();
  12950. }
  12951. if (!_.has(visited, node)) {
  12952. stack[node] = true;
  12953. visited[node] = true;
  12954. _.each(g.predecessors(node), visit);
  12955. delete stack[node];
  12956. results.push(node);
  12957. }
  12958. }
  12959. _.each(g.sinks(), visit);
  12960. if (_.size(visited) !== g.nodeCount()) {
  12961. throw new CycleException();
  12962. }
  12963. return results;
  12964. }
  12965. function CycleException() {}
  12966. CycleException.prototype = new Error(); // must be an instance of Error to pass testing
  12967. /***/ }),
  12968. /***/ "../../node_modules/graphlib/lib/data/priority-queue.js":
  12969. /*!****************************************************************************!*\
  12970. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/data/priority-queue.js ***!
  12971. \****************************************************************************/
  12972. /*! no static exports found */
  12973. /***/ (function(module, exports, __webpack_require__) {
  12974. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12975. module.exports = PriorityQueue;
  12976. /**
  12977. * A min-priority queue data structure. This algorithm is derived from Cormen,
  12978. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  12979. * queue is that you can efficiently (in O(1) time) get the smallest key in
  12980. * the queue. Adding and removing elements takes O(log n) time. A key can
  12981. * have its priority decreased in O(log n) time.
  12982. */
  12983. function PriorityQueue() {
  12984. this._arr = [];
  12985. this._keyIndices = {};
  12986. }
  12987. /**
  12988. * Returns the number of elements in the queue. Takes `O(1)` time.
  12989. */
  12990. PriorityQueue.prototype.size = function() {
  12991. return this._arr.length;
  12992. };
  12993. /**
  12994. * Returns the keys that are in the queue. Takes `O(n)` time.
  12995. */
  12996. PriorityQueue.prototype.keys = function() {
  12997. return this._arr.map(function(x) { return x.key; });
  12998. };
  12999. /**
  13000. * Returns `true` if **key** is in the queue and `false` if not.
  13001. */
  13002. PriorityQueue.prototype.has = function(key) {
  13003. return _.has(this._keyIndices, key);
  13004. };
  13005. /**
  13006. * Returns the priority for **key**. If **key** is not present in the queue
  13007. * then this function returns `undefined`. Takes `O(1)` time.
  13008. *
  13009. * @param {Object} key
  13010. */
  13011. PriorityQueue.prototype.priority = function(key) {
  13012. var index = this._keyIndices[key];
  13013. if (index !== undefined) {
  13014. return this._arr[index].priority;
  13015. }
  13016. };
  13017. /**
  13018. * Returns the key for the minimum element in this queue. If the queue is
  13019. * empty this function throws an Error. Takes `O(1)` time.
  13020. */
  13021. PriorityQueue.prototype.min = function() {
  13022. if (this.size() === 0) {
  13023. throw new Error("Queue underflow");
  13024. }
  13025. return this._arr[0].key;
  13026. };
  13027. /**
  13028. * Inserts a new key into the priority queue. If the key already exists in
  13029. * the queue this function returns `false`; otherwise it will return `true`.
  13030. * Takes `O(n)` time.
  13031. *
  13032. * @param {Object} key the key to add
  13033. * @param {Number} priority the initial priority for the key
  13034. */
  13035. PriorityQueue.prototype.add = function(key, priority) {
  13036. var keyIndices = this._keyIndices;
  13037. key = String(key);
  13038. if (!_.has(keyIndices, key)) {
  13039. var arr = this._arr;
  13040. var index = arr.length;
  13041. keyIndices[key] = index;
  13042. arr.push({key: key, priority: priority});
  13043. this._decrease(index);
  13044. return true;
  13045. }
  13046. return false;
  13047. };
  13048. /**
  13049. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  13050. */
  13051. PriorityQueue.prototype.removeMin = function() {
  13052. this._swap(0, this._arr.length - 1);
  13053. var min = this._arr.pop();
  13054. delete this._keyIndices[min.key];
  13055. this._heapify(0);
  13056. return min.key;
  13057. };
  13058. /**
  13059. * Decreases the priority for **key** to **priority**. If the new priority is
  13060. * greater than the previous priority, this function will throw an Error.
  13061. *
  13062. * @param {Object} key the key for which to raise priority
  13063. * @param {Number} priority the new priority for the key
  13064. */
  13065. PriorityQueue.prototype.decrease = function(key, priority) {
  13066. var index = this._keyIndices[key];
  13067. if (priority > this._arr[index].priority) {
  13068. throw new Error("New priority is greater than current priority. " +
  13069. "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
  13070. }
  13071. this._arr[index].priority = priority;
  13072. this._decrease(index);
  13073. };
  13074. PriorityQueue.prototype._heapify = function(i) {
  13075. var arr = this._arr;
  13076. var l = 2 * i;
  13077. var r = l + 1;
  13078. var largest = i;
  13079. if (l < arr.length) {
  13080. largest = arr[l].priority < arr[largest].priority ? l : largest;
  13081. if (r < arr.length) {
  13082. largest = arr[r].priority < arr[largest].priority ? r : largest;
  13083. }
  13084. if (largest !== i) {
  13085. this._swap(i, largest);
  13086. this._heapify(largest);
  13087. }
  13088. }
  13089. };
  13090. PriorityQueue.prototype._decrease = function(index) {
  13091. var arr = this._arr;
  13092. var priority = arr[index].priority;
  13093. var parent;
  13094. while (index !== 0) {
  13095. parent = index >> 1;
  13096. if (arr[parent].priority < priority) {
  13097. break;
  13098. }
  13099. this._swap(index, parent);
  13100. index = parent;
  13101. }
  13102. };
  13103. PriorityQueue.prototype._swap = function(i, j) {
  13104. var arr = this._arr;
  13105. var keyIndices = this._keyIndices;
  13106. var origArrI = arr[i];
  13107. var origArrJ = arr[j];
  13108. arr[i] = origArrJ;
  13109. arr[j] = origArrI;
  13110. keyIndices[origArrJ.key] = i;
  13111. keyIndices[origArrI.key] = j;
  13112. };
  13113. /***/ }),
  13114. /***/ "../../node_modules/graphlib/lib/graph.js":
  13115. /*!**************************************************************!*\
  13116. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/graph.js ***!
  13117. \**************************************************************/
  13118. /*! no static exports found */
  13119. /***/ (function(module, exports, __webpack_require__) {
  13120. "use strict";
  13121. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  13122. module.exports = Graph;
  13123. var DEFAULT_EDGE_NAME = "\x00";
  13124. var GRAPH_NODE = "\x00";
  13125. var EDGE_KEY_DELIM = "\x01";
  13126. // Implementation notes:
  13127. //
  13128. // * Node id query functions should return string ids for the nodes
  13129. // * Edge id query functions should return an "edgeObj", edge object, that is
  13130. // composed of enough information to uniquely identify an edge: {v, w, name}.
  13131. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  13132. // reference edges. This is because we need a performant way to look these
  13133. // edges up and, object properties, which have string keys, are the closest
  13134. // we're going to get to a performant hashtable in JavaScript.
  13135. function Graph(opts) {
  13136. this._isDirected = _.has(opts, "directed") ? opts.directed : true;
  13137. this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
  13138. this._isCompound = _.has(opts, "compound") ? opts.compound : false;
  13139. // Label for the graph itself
  13140. this._label = undefined;
  13141. // Defaults to be set when creating a new node
  13142. this._defaultNodeLabelFn = _.constant(undefined);
  13143. // Defaults to be set when creating a new edge
  13144. this._defaultEdgeLabelFn = _.constant(undefined);
  13145. // v -> label
  13146. this._nodes = {};
  13147. if (this._isCompound) {
  13148. // v -> parent
  13149. this._parent = {};
  13150. // v -> children
  13151. this._children = {};
  13152. this._children[GRAPH_NODE] = {};
  13153. }
  13154. // v -> edgeObj
  13155. this._in = {};
  13156. // u -> v -> Number
  13157. this._preds = {};
  13158. // v -> edgeObj
  13159. this._out = {};
  13160. // v -> w -> Number
  13161. this._sucs = {};
  13162. // e -> edgeObj
  13163. this._edgeObjs = {};
  13164. // e -> label
  13165. this._edgeLabels = {};
  13166. }
  13167. /* Number of nodes in the graph. Should only be changed by the implementation. */
  13168. Graph.prototype._nodeCount = 0;
  13169. /* Number of edges in the graph. Should only be changed by the implementation. */
  13170. Graph.prototype._edgeCount = 0;
  13171. /* === Graph functions ========= */
  13172. Graph.prototype.isDirected = function() {
  13173. return this._isDirected;
  13174. };
  13175. Graph.prototype.isMultigraph = function() {
  13176. return this._isMultigraph;
  13177. };
  13178. Graph.prototype.isCompound = function() {
  13179. return this._isCompound;
  13180. };
  13181. Graph.prototype.setGraph = function(label) {
  13182. this._label = label;
  13183. return this;
  13184. };
  13185. Graph.prototype.graph = function() {
  13186. return this._label;
  13187. };
  13188. /* === Node functions ========== */
  13189. Graph.prototype.setDefaultNodeLabel = function(newDefault) {
  13190. if (!_.isFunction(newDefault)) {
  13191. newDefault = _.constant(newDefault);
  13192. }
  13193. this._defaultNodeLabelFn = newDefault;
  13194. return this;
  13195. };
  13196. Graph.prototype.nodeCount = function() {
  13197. return this._nodeCount;
  13198. };
  13199. Graph.prototype.nodes = function() {
  13200. return _.keys(this._nodes);
  13201. };
  13202. Graph.prototype.sources = function() {
  13203. var self = this;
  13204. return _.filter(this.nodes(), function(v) {
  13205. return _.isEmpty(self._in[v]);
  13206. });
  13207. };
  13208. Graph.prototype.sinks = function() {
  13209. var self = this;
  13210. return _.filter(this.nodes(), function(v) {
  13211. return _.isEmpty(self._out[v]);
  13212. });
  13213. };
  13214. Graph.prototype.setNodes = function(vs, value) {
  13215. var args = arguments;
  13216. var self = this;
  13217. _.each(vs, function(v) {
  13218. if (args.length > 1) {
  13219. self.setNode(v, value);
  13220. } else {
  13221. self.setNode(v);
  13222. }
  13223. });
  13224. return this;
  13225. };
  13226. Graph.prototype.setNode = function(v, value) {
  13227. if (_.has(this._nodes, v)) {
  13228. if (arguments.length > 1) {
  13229. this._nodes[v] = value;
  13230. }
  13231. return this;
  13232. }
  13233. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
  13234. if (this._isCompound) {
  13235. this._parent[v] = GRAPH_NODE;
  13236. this._children[v] = {};
  13237. this._children[GRAPH_NODE][v] = true;
  13238. }
  13239. this._in[v] = {};
  13240. this._preds[v] = {};
  13241. this._out[v] = {};
  13242. this._sucs[v] = {};
  13243. ++this._nodeCount;
  13244. return this;
  13245. };
  13246. Graph.prototype.node = function(v) {
  13247. return this._nodes[v];
  13248. };
  13249. Graph.prototype.hasNode = function(v) {
  13250. return _.has(this._nodes, v);
  13251. };
  13252. Graph.prototype.removeNode = function(v) {
  13253. var self = this;
  13254. if (_.has(this._nodes, v)) {
  13255. var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
  13256. delete this._nodes[v];
  13257. if (this._isCompound) {
  13258. this._removeFromParentsChildList(v);
  13259. delete this._parent[v];
  13260. _.each(this.children(v), function(child) {
  13261. self.setParent(child);
  13262. });
  13263. delete this._children[v];
  13264. }
  13265. _.each(_.keys(this._in[v]), removeEdge);
  13266. delete this._in[v];
  13267. delete this._preds[v];
  13268. _.each(_.keys(this._out[v]), removeEdge);
  13269. delete this._out[v];
  13270. delete this._sucs[v];
  13271. --this._nodeCount;
  13272. }
  13273. return this;
  13274. };
  13275. Graph.prototype.setParent = function(v, parent) {
  13276. if (!this._isCompound) {
  13277. throw new Error("Cannot set parent in a non-compound graph");
  13278. }
  13279. if (_.isUndefined(parent)) {
  13280. parent = GRAPH_NODE;
  13281. } else {
  13282. // Coerce parent to string
  13283. parent += "";
  13284. for (var ancestor = parent;
  13285. !_.isUndefined(ancestor);
  13286. ancestor = this.parent(ancestor)) {
  13287. if (ancestor === v) {
  13288. throw new Error("Setting " + parent+ " as parent of " + v +
  13289. " would create a cycle");
  13290. }
  13291. }
  13292. this.setNode(parent);
  13293. }
  13294. this.setNode(v);
  13295. this._removeFromParentsChildList(v);
  13296. this._parent[v] = parent;
  13297. this._children[parent][v] = true;
  13298. return this;
  13299. };
  13300. Graph.prototype._removeFromParentsChildList = function(v) {
  13301. delete this._children[this._parent[v]][v];
  13302. };
  13303. Graph.prototype.parent = function(v) {
  13304. if (this._isCompound) {
  13305. var parent = this._parent[v];
  13306. if (parent !== GRAPH_NODE) {
  13307. return parent;
  13308. }
  13309. }
  13310. };
  13311. Graph.prototype.children = function(v) {
  13312. if (_.isUndefined(v)) {
  13313. v = GRAPH_NODE;
  13314. }
  13315. if (this._isCompound) {
  13316. var children = this._children[v];
  13317. if (children) {
  13318. return _.keys(children);
  13319. }
  13320. } else if (v === GRAPH_NODE) {
  13321. return this.nodes();
  13322. } else if (this.hasNode(v)) {
  13323. return [];
  13324. }
  13325. };
  13326. Graph.prototype.predecessors = function(v) {
  13327. var predsV = this._preds[v];
  13328. if (predsV) {
  13329. return _.keys(predsV);
  13330. }
  13331. };
  13332. Graph.prototype.successors = function(v) {
  13333. var sucsV = this._sucs[v];
  13334. if (sucsV) {
  13335. return _.keys(sucsV);
  13336. }
  13337. };
  13338. Graph.prototype.neighbors = function(v) {
  13339. var preds = this.predecessors(v);
  13340. if (preds) {
  13341. return _.union(preds, this.successors(v));
  13342. }
  13343. };
  13344. Graph.prototype.isLeaf = function (v) {
  13345. var neighbors;
  13346. if (this.isDirected()) {
  13347. neighbors = this.successors(v);
  13348. } else {
  13349. neighbors = this.neighbors(v);
  13350. }
  13351. return neighbors.length === 0;
  13352. };
  13353. Graph.prototype.filterNodes = function(filter) {
  13354. var copy = new this.constructor({
  13355. directed: this._isDirected,
  13356. multigraph: this._isMultigraph,
  13357. compound: this._isCompound
  13358. });
  13359. copy.setGraph(this.graph());
  13360. var self = this;
  13361. _.each(this._nodes, function(value, v) {
  13362. if (filter(v)) {
  13363. copy.setNode(v, value);
  13364. }
  13365. });
  13366. _.each(this._edgeObjs, function(e) {
  13367. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  13368. copy.setEdge(e, self.edge(e));
  13369. }
  13370. });
  13371. var parents = {};
  13372. function findParent(v) {
  13373. var parent = self.parent(v);
  13374. if (parent === undefined || copy.hasNode(parent)) {
  13375. parents[v] = parent;
  13376. return parent;
  13377. } else if (parent in parents) {
  13378. return parents[parent];
  13379. } else {
  13380. return findParent(parent);
  13381. }
  13382. }
  13383. if (this._isCompound) {
  13384. _.each(copy.nodes(), function(v) {
  13385. copy.setParent(v, findParent(v));
  13386. });
  13387. }
  13388. return copy;
  13389. };
  13390. /* === Edge functions ========== */
  13391. Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
  13392. if (!_.isFunction(newDefault)) {
  13393. newDefault = _.constant(newDefault);
  13394. }
  13395. this._defaultEdgeLabelFn = newDefault;
  13396. return this;
  13397. };
  13398. Graph.prototype.edgeCount = function() {
  13399. return this._edgeCount;
  13400. };
  13401. Graph.prototype.edges = function() {
  13402. return _.values(this._edgeObjs);
  13403. };
  13404. Graph.prototype.setPath = function(vs, value) {
  13405. var self = this;
  13406. var args = arguments;
  13407. _.reduce(vs, function(v, w) {
  13408. if (args.length > 1) {
  13409. self.setEdge(v, w, value);
  13410. } else {
  13411. self.setEdge(v, w);
  13412. }
  13413. return w;
  13414. });
  13415. return this;
  13416. };
  13417. /*
  13418. * setEdge(v, w, [value, [name]])
  13419. * setEdge({ v, w, [name] }, [value])
  13420. */
  13421. Graph.prototype.setEdge = function() {
  13422. var v, w, name, value;
  13423. var valueSpecified = false;
  13424. var arg0 = arguments[0];
  13425. if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
  13426. v = arg0.v;
  13427. w = arg0.w;
  13428. name = arg0.name;
  13429. if (arguments.length === 2) {
  13430. value = arguments[1];
  13431. valueSpecified = true;
  13432. }
  13433. } else {
  13434. v = arg0;
  13435. w = arguments[1];
  13436. name = arguments[3];
  13437. if (arguments.length > 2) {
  13438. value = arguments[2];
  13439. valueSpecified = true;
  13440. }
  13441. }
  13442. v = "" + v;
  13443. w = "" + w;
  13444. if (!_.isUndefined(name)) {
  13445. name = "" + name;
  13446. }
  13447. var e = edgeArgsToId(this._isDirected, v, w, name);
  13448. if (_.has(this._edgeLabels, e)) {
  13449. if (valueSpecified) {
  13450. this._edgeLabels[e] = value;
  13451. }
  13452. return this;
  13453. }
  13454. if (!_.isUndefined(name) && !this._isMultigraph) {
  13455. throw new Error("Cannot set a named edge when isMultigraph = false");
  13456. }
  13457. // It didn't exist, so we need to create it.
  13458. // First ensure the nodes exist.
  13459. this.setNode(v);
  13460. this.setNode(w);
  13461. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
  13462. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
  13463. // Ensure we add undirected edges in a consistent way.
  13464. v = edgeObj.v;
  13465. w = edgeObj.w;
  13466. Object.freeze(edgeObj);
  13467. this._edgeObjs[e] = edgeObj;
  13468. incrementOrInitEntry(this._preds[w], v);
  13469. incrementOrInitEntry(this._sucs[v], w);
  13470. this._in[w][e] = edgeObj;
  13471. this._out[v][e] = edgeObj;
  13472. this._edgeCount++;
  13473. return this;
  13474. };
  13475. Graph.prototype.edge = function(v, w, name) {
  13476. var e = (arguments.length === 1
  13477. ? edgeObjToId(this._isDirected, arguments[0])
  13478. : edgeArgsToId(this._isDirected, v, w, name));
  13479. return this._edgeLabels[e];
  13480. };
  13481. Graph.prototype.hasEdge = function(v, w, name) {
  13482. var e = (arguments.length === 1
  13483. ? edgeObjToId(this._isDirected, arguments[0])
  13484. : edgeArgsToId(this._isDirected, v, w, name));
  13485. return _.has(this._edgeLabels, e);
  13486. };
  13487. Graph.prototype.removeEdge = function(v, w, name) {
  13488. var e = (arguments.length === 1
  13489. ? edgeObjToId(this._isDirected, arguments[0])
  13490. : edgeArgsToId(this._isDirected, v, w, name));
  13491. var edge = this._edgeObjs[e];
  13492. if (edge) {
  13493. v = edge.v;
  13494. w = edge.w;
  13495. delete this._edgeLabels[e];
  13496. delete this._edgeObjs[e];
  13497. decrementOrRemoveEntry(this._preds[w], v);
  13498. decrementOrRemoveEntry(this._sucs[v], w);
  13499. delete this._in[w][e];
  13500. delete this._out[v][e];
  13501. this._edgeCount--;
  13502. }
  13503. return this;
  13504. };
  13505. Graph.prototype.inEdges = function(v, u) {
  13506. var inV = this._in[v];
  13507. if (inV) {
  13508. var edges = _.values(inV);
  13509. if (!u) {
  13510. return edges;
  13511. }
  13512. return _.filter(edges, function(edge) { return edge.v === u; });
  13513. }
  13514. };
  13515. Graph.prototype.outEdges = function(v, w) {
  13516. var outV = this._out[v];
  13517. if (outV) {
  13518. var edges = _.values(outV);
  13519. if (!w) {
  13520. return edges;
  13521. }
  13522. return _.filter(edges, function(edge) { return edge.w === w; });
  13523. }
  13524. };
  13525. Graph.prototype.nodeEdges = function(v, w) {
  13526. var inEdges = this.inEdges(v, w);
  13527. if (inEdges) {
  13528. return inEdges.concat(this.outEdges(v, w));
  13529. }
  13530. };
  13531. function incrementOrInitEntry(map, k) {
  13532. if (map[k]) {
  13533. map[k]++;
  13534. } else {
  13535. map[k] = 1;
  13536. }
  13537. }
  13538. function decrementOrRemoveEntry(map, k) {
  13539. if (!--map[k]) { delete map[k]; }
  13540. }
  13541. function edgeArgsToId(isDirected, v_, w_, name) {
  13542. var v = "" + v_;
  13543. var w = "" + w_;
  13544. if (!isDirected && v > w) {
  13545. var tmp = v;
  13546. v = w;
  13547. w = tmp;
  13548. }
  13549. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  13550. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
  13551. }
  13552. function edgeArgsToObj(isDirected, v_, w_, name) {
  13553. var v = "" + v_;
  13554. var w = "" + w_;
  13555. if (!isDirected && v > w) {
  13556. var tmp = v;
  13557. v = w;
  13558. w = tmp;
  13559. }
  13560. var edgeObj = { v: v, w: w };
  13561. if (name) {
  13562. edgeObj.name = name;
  13563. }
  13564. return edgeObj;
  13565. }
  13566. function edgeObjToId(isDirected, edgeObj) {
  13567. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
  13568. }
  13569. /***/ }),
  13570. /***/ "../../node_modules/graphlib/lib/index.js":
  13571. /*!**************************************************************!*\
  13572. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/index.js ***!
  13573. \**************************************************************/
  13574. /*! no static exports found */
  13575. /***/ (function(module, exports, __webpack_require__) {
  13576. // Includes only the "core" of graphlib
  13577. module.exports = {
  13578. Graph: __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js"),
  13579. version: __webpack_require__(/*! ./version */ "../../node_modules/graphlib/lib/version.js")
  13580. };
  13581. /***/ }),
  13582. /***/ "../../node_modules/graphlib/lib/json.js":
  13583. /*!*************************************************************!*\
  13584. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/json.js ***!
  13585. \*************************************************************/
  13586. /*! no static exports found */
  13587. /***/ (function(module, exports, __webpack_require__) {
  13588. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  13589. var Graph = __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js");
  13590. module.exports = {
  13591. write: write,
  13592. read: read
  13593. };
  13594. function write(g) {
  13595. var json = {
  13596. options: {
  13597. directed: g.isDirected(),
  13598. multigraph: g.isMultigraph(),
  13599. compound: g.isCompound()
  13600. },
  13601. nodes: writeNodes(g),
  13602. edges: writeEdges(g)
  13603. };
  13604. if (!_.isUndefined(g.graph())) {
  13605. json.value = _.clone(g.graph());
  13606. }
  13607. return json;
  13608. }
  13609. function writeNodes(g) {
  13610. return _.map(g.nodes(), function(v) {
  13611. var nodeValue = g.node(v);
  13612. var parent = g.parent(v);
  13613. var node = { v: v };
  13614. if (!_.isUndefined(nodeValue)) {
  13615. node.value = nodeValue;
  13616. }
  13617. if (!_.isUndefined(parent)) {
  13618. node.parent = parent;
  13619. }
  13620. return node;
  13621. });
  13622. }
  13623. function writeEdges(g) {
  13624. return _.map(g.edges(), function(e) {
  13625. var edgeValue = g.edge(e);
  13626. var edge = { v: e.v, w: e.w };
  13627. if (!_.isUndefined(e.name)) {
  13628. edge.name = e.name;
  13629. }
  13630. if (!_.isUndefined(edgeValue)) {
  13631. edge.value = edgeValue;
  13632. }
  13633. return edge;
  13634. });
  13635. }
  13636. function read(json) {
  13637. var g = new Graph(json.options).setGraph(json.value);
  13638. _.each(json.nodes, function(entry) {
  13639. g.setNode(entry.v, entry.value);
  13640. if (entry.parent) {
  13641. g.setParent(entry.v, entry.parent);
  13642. }
  13643. });
  13644. _.each(json.edges, function(entry) {
  13645. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
  13646. });
  13647. return g;
  13648. }
  13649. /***/ }),
  13650. /***/ "../../node_modules/graphlib/lib/lodash.js":
  13651. /*!***************************************************************!*\
  13652. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/lodash.js ***!
  13653. \***************************************************************/
  13654. /*! no static exports found */
  13655. /***/ (function(module, exports, __webpack_require__) {
  13656. /* global window */
  13657. var lodash;
  13658. if (true) {
  13659. try {
  13660. lodash = {
  13661. clone: __webpack_require__(/*! lodash/clone */ "../../node_modules/lodash/clone.js"),
  13662. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  13663. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  13664. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  13665. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  13666. isArray: __webpack_require__(/*! lodash/isArray */ "../../node_modules/lodash/isArray.js"),
  13667. isEmpty: __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js"),
  13668. isFunction: __webpack_require__(/*! lodash/isFunction */ "../../node_modules/lodash/isFunction.js"),
  13669. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  13670. keys: __webpack_require__(/*! lodash/keys */ "../../node_modules/lodash/keys.js"),
  13671. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  13672. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  13673. size: __webpack_require__(/*! lodash/size */ "../../node_modules/lodash/size.js"),
  13674. transform: __webpack_require__(/*! lodash/transform */ "../../node_modules/lodash/transform.js"),
  13675. union: __webpack_require__(/*! lodash/union */ "../../node_modules/lodash/union.js"),
  13676. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js")
  13677. };
  13678. } catch (e) {
  13679. // continue regardless of error
  13680. }
  13681. }
  13682. if (!lodash) {
  13683. lodash = window._;
  13684. }
  13685. module.exports = lodash;
  13686. /***/ }),
  13687. /***/ "../../node_modules/graphlib/lib/version.js":
  13688. /*!****************************************************************!*\
  13689. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/version.js ***!
  13690. \****************************************************************/
  13691. /*! no static exports found */
  13692. /***/ (function(module, exports) {
  13693. module.exports = '2.1.8';
  13694. /***/ }),
  13695. /***/ "../../node_modules/lodash/_DataView.js":
  13696. /*!************************************************************!*\
  13697. !*** C:/Repos/Babylon.js/node_modules/lodash/_DataView.js ***!
  13698. \************************************************************/
  13699. /*! no static exports found */
  13700. /***/ (function(module, exports, __webpack_require__) {
  13701. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13702. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13703. /* Built-in method references that are verified to be native. */
  13704. var DataView = getNative(root, 'DataView');
  13705. module.exports = DataView;
  13706. /***/ }),
  13707. /***/ "../../node_modules/lodash/_Hash.js":
  13708. /*!********************************************************!*\
  13709. !*** C:/Repos/Babylon.js/node_modules/lodash/_Hash.js ***!
  13710. \********************************************************/
  13711. /*! no static exports found */
  13712. /***/ (function(module, exports, __webpack_require__) {
  13713. var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
  13714. hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
  13715. hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
  13716. hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
  13717. hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
  13718. /**
  13719. * Creates a hash object.
  13720. *
  13721. * @private
  13722. * @constructor
  13723. * @param {Array} [entries] The key-value pairs to cache.
  13724. */
  13725. function Hash(entries) {
  13726. var index = -1,
  13727. length = entries == null ? 0 : entries.length;
  13728. this.clear();
  13729. while (++index < length) {
  13730. var entry = entries[index];
  13731. this.set(entry[0], entry[1]);
  13732. }
  13733. }
  13734. // Add methods to `Hash`.
  13735. Hash.prototype.clear = hashClear;
  13736. Hash.prototype['delete'] = hashDelete;
  13737. Hash.prototype.get = hashGet;
  13738. Hash.prototype.has = hashHas;
  13739. Hash.prototype.set = hashSet;
  13740. module.exports = Hash;
  13741. /***/ }),
  13742. /***/ "../../node_modules/lodash/_ListCache.js":
  13743. /*!*************************************************************!*\
  13744. !*** C:/Repos/Babylon.js/node_modules/lodash/_ListCache.js ***!
  13745. \*************************************************************/
  13746. /*! no static exports found */
  13747. /***/ (function(module, exports, __webpack_require__) {
  13748. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
  13749. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
  13750. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
  13751. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
  13752. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
  13753. /**
  13754. * Creates an list cache object.
  13755. *
  13756. * @private
  13757. * @constructor
  13758. * @param {Array} [entries] The key-value pairs to cache.
  13759. */
  13760. function ListCache(entries) {
  13761. var index = -1,
  13762. length = entries == null ? 0 : entries.length;
  13763. this.clear();
  13764. while (++index < length) {
  13765. var entry = entries[index];
  13766. this.set(entry[0], entry[1]);
  13767. }
  13768. }
  13769. // Add methods to `ListCache`.
  13770. ListCache.prototype.clear = listCacheClear;
  13771. ListCache.prototype['delete'] = listCacheDelete;
  13772. ListCache.prototype.get = listCacheGet;
  13773. ListCache.prototype.has = listCacheHas;
  13774. ListCache.prototype.set = listCacheSet;
  13775. module.exports = ListCache;
  13776. /***/ }),
  13777. /***/ "../../node_modules/lodash/_Map.js":
  13778. /*!*******************************************************!*\
  13779. !*** C:/Repos/Babylon.js/node_modules/lodash/_Map.js ***!
  13780. \*******************************************************/
  13781. /*! no static exports found */
  13782. /***/ (function(module, exports, __webpack_require__) {
  13783. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13784. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13785. /* Built-in method references that are verified to be native. */
  13786. var Map = getNative(root, 'Map');
  13787. module.exports = Map;
  13788. /***/ }),
  13789. /***/ "../../node_modules/lodash/_MapCache.js":
  13790. /*!************************************************************!*\
  13791. !*** C:/Repos/Babylon.js/node_modules/lodash/_MapCache.js ***!
  13792. \************************************************************/
  13793. /*! no static exports found */
  13794. /***/ (function(module, exports, __webpack_require__) {
  13795. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
  13796. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
  13797. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
  13798. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
  13799. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
  13800. /**
  13801. * Creates a map cache object to store key-value pairs.
  13802. *
  13803. * @private
  13804. * @constructor
  13805. * @param {Array} [entries] The key-value pairs to cache.
  13806. */
  13807. function MapCache(entries) {
  13808. var index = -1,
  13809. length = entries == null ? 0 : entries.length;
  13810. this.clear();
  13811. while (++index < length) {
  13812. var entry = entries[index];
  13813. this.set(entry[0], entry[1]);
  13814. }
  13815. }
  13816. // Add methods to `MapCache`.
  13817. MapCache.prototype.clear = mapCacheClear;
  13818. MapCache.prototype['delete'] = mapCacheDelete;
  13819. MapCache.prototype.get = mapCacheGet;
  13820. MapCache.prototype.has = mapCacheHas;
  13821. MapCache.prototype.set = mapCacheSet;
  13822. module.exports = MapCache;
  13823. /***/ }),
  13824. /***/ "../../node_modules/lodash/_Promise.js":
  13825. /*!***********************************************************!*\
  13826. !*** C:/Repos/Babylon.js/node_modules/lodash/_Promise.js ***!
  13827. \***********************************************************/
  13828. /*! no static exports found */
  13829. /***/ (function(module, exports, __webpack_require__) {
  13830. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13831. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13832. /* Built-in method references that are verified to be native. */
  13833. var Promise = getNative(root, 'Promise');
  13834. module.exports = Promise;
  13835. /***/ }),
  13836. /***/ "../../node_modules/lodash/_Set.js":
  13837. /*!*******************************************************!*\
  13838. !*** C:/Repos/Babylon.js/node_modules/lodash/_Set.js ***!
  13839. \*******************************************************/
  13840. /*! no static exports found */
  13841. /***/ (function(module, exports, __webpack_require__) {
  13842. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13843. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13844. /* Built-in method references that are verified to be native. */
  13845. var Set = getNative(root, 'Set');
  13846. module.exports = Set;
  13847. /***/ }),
  13848. /***/ "../../node_modules/lodash/_SetCache.js":
  13849. /*!************************************************************!*\
  13850. !*** C:/Repos/Babylon.js/node_modules/lodash/_SetCache.js ***!
  13851. \************************************************************/
  13852. /*! no static exports found */
  13853. /***/ (function(module, exports, __webpack_require__) {
  13854. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
  13855. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
  13856. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
  13857. /**
  13858. *
  13859. * Creates an array cache object to store unique values.
  13860. *
  13861. * @private
  13862. * @constructor
  13863. * @param {Array} [values] The values to cache.
  13864. */
  13865. function SetCache(values) {
  13866. var index = -1,
  13867. length = values == null ? 0 : values.length;
  13868. this.__data__ = new MapCache;
  13869. while (++index < length) {
  13870. this.add(values[index]);
  13871. }
  13872. }
  13873. // Add methods to `SetCache`.
  13874. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  13875. SetCache.prototype.has = setCacheHas;
  13876. module.exports = SetCache;
  13877. /***/ }),
  13878. /***/ "../../node_modules/lodash/_Stack.js":
  13879. /*!*********************************************************!*\
  13880. !*** C:/Repos/Babylon.js/node_modules/lodash/_Stack.js ***!
  13881. \*********************************************************/
  13882. /*! no static exports found */
  13883. /***/ (function(module, exports, __webpack_require__) {
  13884. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  13885. stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
  13886. stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
  13887. stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
  13888. stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
  13889. stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
  13890. /**
  13891. * Creates a stack cache object to store key-value pairs.
  13892. *
  13893. * @private
  13894. * @constructor
  13895. * @param {Array} [entries] The key-value pairs to cache.
  13896. */
  13897. function Stack(entries) {
  13898. var data = this.__data__ = new ListCache(entries);
  13899. this.size = data.size;
  13900. }
  13901. // Add methods to `Stack`.
  13902. Stack.prototype.clear = stackClear;
  13903. Stack.prototype['delete'] = stackDelete;
  13904. Stack.prototype.get = stackGet;
  13905. Stack.prototype.has = stackHas;
  13906. Stack.prototype.set = stackSet;
  13907. module.exports = Stack;
  13908. /***/ }),
  13909. /***/ "../../node_modules/lodash/_Symbol.js":
  13910. /*!**********************************************************!*\
  13911. !*** C:/Repos/Babylon.js/node_modules/lodash/_Symbol.js ***!
  13912. \**********************************************************/
  13913. /*! no static exports found */
  13914. /***/ (function(module, exports, __webpack_require__) {
  13915. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13916. /** Built-in value references. */
  13917. var Symbol = root.Symbol;
  13918. module.exports = Symbol;
  13919. /***/ }),
  13920. /***/ "../../node_modules/lodash/_Uint8Array.js":
  13921. /*!**************************************************************!*\
  13922. !*** C:/Repos/Babylon.js/node_modules/lodash/_Uint8Array.js ***!
  13923. \**************************************************************/
  13924. /*! no static exports found */
  13925. /***/ (function(module, exports, __webpack_require__) {
  13926. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13927. /** Built-in value references. */
  13928. var Uint8Array = root.Uint8Array;
  13929. module.exports = Uint8Array;
  13930. /***/ }),
  13931. /***/ "../../node_modules/lodash/_WeakMap.js":
  13932. /*!***********************************************************!*\
  13933. !*** C:/Repos/Babylon.js/node_modules/lodash/_WeakMap.js ***!
  13934. \***********************************************************/
  13935. /*! no static exports found */
  13936. /***/ (function(module, exports, __webpack_require__) {
  13937. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13938. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13939. /* Built-in method references that are verified to be native. */
  13940. var WeakMap = getNative(root, 'WeakMap');
  13941. module.exports = WeakMap;
  13942. /***/ }),
  13943. /***/ "../../node_modules/lodash/_apply.js":
  13944. /*!*********************************************************!*\
  13945. !*** C:/Repos/Babylon.js/node_modules/lodash/_apply.js ***!
  13946. \*********************************************************/
  13947. /*! no static exports found */
  13948. /***/ (function(module, exports) {
  13949. /**
  13950. * A faster alternative to `Function#apply`, this function invokes `func`
  13951. * with the `this` binding of `thisArg` and the arguments of `args`.
  13952. *
  13953. * @private
  13954. * @param {Function} func The function to invoke.
  13955. * @param {*} thisArg The `this` binding of `func`.
  13956. * @param {Array} args The arguments to invoke `func` with.
  13957. * @returns {*} Returns the result of `func`.
  13958. */
  13959. function apply(func, thisArg, args) {
  13960. switch (args.length) {
  13961. case 0: return func.call(thisArg);
  13962. case 1: return func.call(thisArg, args[0]);
  13963. case 2: return func.call(thisArg, args[0], args[1]);
  13964. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  13965. }
  13966. return func.apply(thisArg, args);
  13967. }
  13968. module.exports = apply;
  13969. /***/ }),
  13970. /***/ "../../node_modules/lodash/_arrayEach.js":
  13971. /*!*************************************************************!*\
  13972. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayEach.js ***!
  13973. \*************************************************************/
  13974. /*! no static exports found */
  13975. /***/ (function(module, exports) {
  13976. /**
  13977. * A specialized version of `_.forEach` for arrays without support for
  13978. * iteratee shorthands.
  13979. *
  13980. * @private
  13981. * @param {Array} [array] The array to iterate over.
  13982. * @param {Function} iteratee The function invoked per iteration.
  13983. * @returns {Array} Returns `array`.
  13984. */
  13985. function arrayEach(array, iteratee) {
  13986. var index = -1,
  13987. length = array == null ? 0 : array.length;
  13988. while (++index < length) {
  13989. if (iteratee(array[index], index, array) === false) {
  13990. break;
  13991. }
  13992. }
  13993. return array;
  13994. }
  13995. module.exports = arrayEach;
  13996. /***/ }),
  13997. /***/ "../../node_modules/lodash/_arrayFilter.js":
  13998. /*!***************************************************************!*\
  13999. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayFilter.js ***!
  14000. \***************************************************************/
  14001. /*! no static exports found */
  14002. /***/ (function(module, exports) {
  14003. /**
  14004. * A specialized version of `_.filter` for arrays without support for
  14005. * iteratee shorthands.
  14006. *
  14007. * @private
  14008. * @param {Array} [array] The array to iterate over.
  14009. * @param {Function} predicate The function invoked per iteration.
  14010. * @returns {Array} Returns the new filtered array.
  14011. */
  14012. function arrayFilter(array, predicate) {
  14013. var index = -1,
  14014. length = array == null ? 0 : array.length,
  14015. resIndex = 0,
  14016. result = [];
  14017. while (++index < length) {
  14018. var value = array[index];
  14019. if (predicate(value, index, array)) {
  14020. result[resIndex++] = value;
  14021. }
  14022. }
  14023. return result;
  14024. }
  14025. module.exports = arrayFilter;
  14026. /***/ }),
  14027. /***/ "../../node_modules/lodash/_arrayIncludes.js":
  14028. /*!*****************************************************************!*\
  14029. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludes.js ***!
  14030. \*****************************************************************/
  14031. /*! no static exports found */
  14032. /***/ (function(module, exports, __webpack_require__) {
  14033. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../node_modules/lodash/_baseIndexOf.js");
  14034. /**
  14035. * A specialized version of `_.includes` for arrays without support for
  14036. * specifying an index to search from.
  14037. *
  14038. * @private
  14039. * @param {Array} [array] The array to inspect.
  14040. * @param {*} target The value to search for.
  14041. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  14042. */
  14043. function arrayIncludes(array, value) {
  14044. var length = array == null ? 0 : array.length;
  14045. return !!length && baseIndexOf(array, value, 0) > -1;
  14046. }
  14047. module.exports = arrayIncludes;
  14048. /***/ }),
  14049. /***/ "../../node_modules/lodash/_arrayIncludesWith.js":
  14050. /*!*********************************************************************!*\
  14051. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludesWith.js ***!
  14052. \*********************************************************************/
  14053. /*! no static exports found */
  14054. /***/ (function(module, exports) {
  14055. /**
  14056. * This function is like `arrayIncludes` except that it accepts a comparator.
  14057. *
  14058. * @private
  14059. * @param {Array} [array] The array to inspect.
  14060. * @param {*} target The value to search for.
  14061. * @param {Function} comparator The comparator invoked per element.
  14062. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  14063. */
  14064. function arrayIncludesWith(array, value, comparator) {
  14065. var index = -1,
  14066. length = array == null ? 0 : array.length;
  14067. while (++index < length) {
  14068. if (comparator(value, array[index])) {
  14069. return true;
  14070. }
  14071. }
  14072. return false;
  14073. }
  14074. module.exports = arrayIncludesWith;
  14075. /***/ }),
  14076. /***/ "../../node_modules/lodash/_arrayLikeKeys.js":
  14077. /*!*****************************************************************!*\
  14078. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayLikeKeys.js ***!
  14079. \*****************************************************************/
  14080. /*! no static exports found */
  14081. /***/ (function(module, exports, __webpack_require__) {
  14082. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
  14083. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  14084. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  14085. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  14086. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  14087. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  14088. /** Used for built-in method references. */
  14089. var objectProto = Object.prototype;
  14090. /** Used to check objects for own properties. */
  14091. var hasOwnProperty = objectProto.hasOwnProperty;
  14092. /**
  14093. * Creates an array of the enumerable property names of the array-like `value`.
  14094. *
  14095. * @private
  14096. * @param {*} value The value to query.
  14097. * @param {boolean} inherited Specify returning inherited property names.
  14098. * @returns {Array} Returns the array of property names.
  14099. */
  14100. function arrayLikeKeys(value, inherited) {
  14101. var isArr = isArray(value),
  14102. isArg = !isArr && isArguments(value),
  14103. isBuff = !isArr && !isArg && isBuffer(value),
  14104. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  14105. skipIndexes = isArr || isArg || isBuff || isType,
  14106. result = skipIndexes ? baseTimes(value.length, String) : [],
  14107. length = result.length;
  14108. for (var key in value) {
  14109. if ((inherited || hasOwnProperty.call(value, key)) &&
  14110. !(skipIndexes && (
  14111. // Safari 9 has enumerable `arguments.length` in strict mode.
  14112. key == 'length' ||
  14113. // Node.js 0.10 has enumerable non-index properties on buffers.
  14114. (isBuff && (key == 'offset' || key == 'parent')) ||
  14115. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  14116. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  14117. // Skip index properties.
  14118. isIndex(key, length)
  14119. ))) {
  14120. result.push(key);
  14121. }
  14122. }
  14123. return result;
  14124. }
  14125. module.exports = arrayLikeKeys;
  14126. /***/ }),
  14127. /***/ "../../node_modules/lodash/_arrayMap.js":
  14128. /*!************************************************************!*\
  14129. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayMap.js ***!
  14130. \************************************************************/
  14131. /*! no static exports found */
  14132. /***/ (function(module, exports) {
  14133. /**
  14134. * A specialized version of `_.map` for arrays without support for iteratee
  14135. * shorthands.
  14136. *
  14137. * @private
  14138. * @param {Array} [array] The array to iterate over.
  14139. * @param {Function} iteratee The function invoked per iteration.
  14140. * @returns {Array} Returns the new mapped array.
  14141. */
  14142. function arrayMap(array, iteratee) {
  14143. var index = -1,
  14144. length = array == null ? 0 : array.length,
  14145. result = Array(length);
  14146. while (++index < length) {
  14147. result[index] = iteratee(array[index], index, array);
  14148. }
  14149. return result;
  14150. }
  14151. module.exports = arrayMap;
  14152. /***/ }),
  14153. /***/ "../../node_modules/lodash/_arrayPush.js":
  14154. /*!*************************************************************!*\
  14155. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayPush.js ***!
  14156. \*************************************************************/
  14157. /*! no static exports found */
  14158. /***/ (function(module, exports) {
  14159. /**
  14160. * Appends the elements of `values` to `array`.
  14161. *
  14162. * @private
  14163. * @param {Array} array The array to modify.
  14164. * @param {Array} values The values to append.
  14165. * @returns {Array} Returns `array`.
  14166. */
  14167. function arrayPush(array, values) {
  14168. var index = -1,
  14169. length = values.length,
  14170. offset = array.length;
  14171. while (++index < length) {
  14172. array[offset + index] = values[index];
  14173. }
  14174. return array;
  14175. }
  14176. module.exports = arrayPush;
  14177. /***/ }),
  14178. /***/ "../../node_modules/lodash/_arrayReduce.js":
  14179. /*!***************************************************************!*\
  14180. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayReduce.js ***!
  14181. \***************************************************************/
  14182. /*! no static exports found */
  14183. /***/ (function(module, exports) {
  14184. /**
  14185. * A specialized version of `_.reduce` for arrays without support for
  14186. * iteratee shorthands.
  14187. *
  14188. * @private
  14189. * @param {Array} [array] The array to iterate over.
  14190. * @param {Function} iteratee The function invoked per iteration.
  14191. * @param {*} [accumulator] The initial value.
  14192. * @param {boolean} [initAccum] Specify using the first element of `array` as
  14193. * the initial value.
  14194. * @returns {*} Returns the accumulated value.
  14195. */
  14196. function arrayReduce(array, iteratee, accumulator, initAccum) {
  14197. var index = -1,
  14198. length = array == null ? 0 : array.length;
  14199. if (initAccum && length) {
  14200. accumulator = array[++index];
  14201. }
  14202. while (++index < length) {
  14203. accumulator = iteratee(accumulator, array[index], index, array);
  14204. }
  14205. return accumulator;
  14206. }
  14207. module.exports = arrayReduce;
  14208. /***/ }),
  14209. /***/ "../../node_modules/lodash/_arraySome.js":
  14210. /*!*************************************************************!*\
  14211. !*** C:/Repos/Babylon.js/node_modules/lodash/_arraySome.js ***!
  14212. \*************************************************************/
  14213. /*! no static exports found */
  14214. /***/ (function(module, exports) {
  14215. /**
  14216. * A specialized version of `_.some` for arrays without support for iteratee
  14217. * shorthands.
  14218. *
  14219. * @private
  14220. * @param {Array} [array] The array to iterate over.
  14221. * @param {Function} predicate The function invoked per iteration.
  14222. * @returns {boolean} Returns `true` if any element passes the predicate check,
  14223. * else `false`.
  14224. */
  14225. function arraySome(array, predicate) {
  14226. var index = -1,
  14227. length = array == null ? 0 : array.length;
  14228. while (++index < length) {
  14229. if (predicate(array[index], index, array)) {
  14230. return true;
  14231. }
  14232. }
  14233. return false;
  14234. }
  14235. module.exports = arraySome;
  14236. /***/ }),
  14237. /***/ "../../node_modules/lodash/_asciiSize.js":
  14238. /*!*************************************************************!*\
  14239. !*** C:/Repos/Babylon.js/node_modules/lodash/_asciiSize.js ***!
  14240. \*************************************************************/
  14241. /*! no static exports found */
  14242. /***/ (function(module, exports, __webpack_require__) {
  14243. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js");
  14244. /**
  14245. * Gets the size of an ASCII `string`.
  14246. *
  14247. * @private
  14248. * @param {string} string The string inspect.
  14249. * @returns {number} Returns the string size.
  14250. */
  14251. var asciiSize = baseProperty('length');
  14252. module.exports = asciiSize;
  14253. /***/ }),
  14254. /***/ "../../node_modules/lodash/_assignMergeValue.js":
  14255. /*!********************************************************************!*\
  14256. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignMergeValue.js ***!
  14257. \********************************************************************/
  14258. /*! no static exports found */
  14259. /***/ (function(module, exports, __webpack_require__) {
  14260. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  14261. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  14262. /**
  14263. * This function is like `assignValue` except that it doesn't assign
  14264. * `undefined` values.
  14265. *
  14266. * @private
  14267. * @param {Object} object The object to modify.
  14268. * @param {string} key The key of the property to assign.
  14269. * @param {*} value The value to assign.
  14270. */
  14271. function assignMergeValue(object, key, value) {
  14272. if ((value !== undefined && !eq(object[key], value)) ||
  14273. (value === undefined && !(key in object))) {
  14274. baseAssignValue(object, key, value);
  14275. }
  14276. }
  14277. module.exports = assignMergeValue;
  14278. /***/ }),
  14279. /***/ "../../node_modules/lodash/_assignValue.js":
  14280. /*!***************************************************************!*\
  14281. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignValue.js ***!
  14282. \***************************************************************/
  14283. /*! no static exports found */
  14284. /***/ (function(module, exports, __webpack_require__) {
  14285. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  14286. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  14287. /** Used for built-in method references. */
  14288. var objectProto = Object.prototype;
  14289. /** Used to check objects for own properties. */
  14290. var hasOwnProperty = objectProto.hasOwnProperty;
  14291. /**
  14292. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  14293. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  14294. * for equality comparisons.
  14295. *
  14296. * @private
  14297. * @param {Object} object The object to modify.
  14298. * @param {string} key The key of the property to assign.
  14299. * @param {*} value The value to assign.
  14300. */
  14301. function assignValue(object, key, value) {
  14302. var objValue = object[key];
  14303. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  14304. (value === undefined && !(key in object))) {
  14305. baseAssignValue(object, key, value);
  14306. }
  14307. }
  14308. module.exports = assignValue;
  14309. /***/ }),
  14310. /***/ "../../node_modules/lodash/_assocIndexOf.js":
  14311. /*!****************************************************************!*\
  14312. !*** C:/Repos/Babylon.js/node_modules/lodash/_assocIndexOf.js ***!
  14313. \****************************************************************/
  14314. /*! no static exports found */
  14315. /***/ (function(module, exports, __webpack_require__) {
  14316. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  14317. /**
  14318. * Gets the index at which the `key` is found in `array` of key-value pairs.
  14319. *
  14320. * @private
  14321. * @param {Array} array The array to inspect.
  14322. * @param {*} key The key to search for.
  14323. * @returns {number} Returns the index of the matched value, else `-1`.
  14324. */
  14325. function assocIndexOf(array, key) {
  14326. var length = array.length;
  14327. while (length--) {
  14328. if (eq(array[length][0], key)) {
  14329. return length;
  14330. }
  14331. }
  14332. return -1;
  14333. }
  14334. module.exports = assocIndexOf;
  14335. /***/ }),
  14336. /***/ "../../node_modules/lodash/_baseAssign.js":
  14337. /*!**************************************************************!*\
  14338. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssign.js ***!
  14339. \**************************************************************/
  14340. /*! no static exports found */
  14341. /***/ (function(module, exports, __webpack_require__) {
  14342. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  14343. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  14344. /**
  14345. * The base implementation of `_.assign` without support for multiple sources
  14346. * or `customizer` functions.
  14347. *
  14348. * @private
  14349. * @param {Object} object The destination object.
  14350. * @param {Object} source The source object.
  14351. * @returns {Object} Returns `object`.
  14352. */
  14353. function baseAssign(object, source) {
  14354. return object && copyObject(source, keys(source), object);
  14355. }
  14356. module.exports = baseAssign;
  14357. /***/ }),
  14358. /***/ "../../node_modules/lodash/_baseAssignIn.js":
  14359. /*!****************************************************************!*\
  14360. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignIn.js ***!
  14361. \****************************************************************/
  14362. /*! no static exports found */
  14363. /***/ (function(module, exports, __webpack_require__) {
  14364. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  14365. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14366. /**
  14367. * The base implementation of `_.assignIn` without support for multiple sources
  14368. * or `customizer` functions.
  14369. *
  14370. * @private
  14371. * @param {Object} object The destination object.
  14372. * @param {Object} source The source object.
  14373. * @returns {Object} Returns `object`.
  14374. */
  14375. function baseAssignIn(object, source) {
  14376. return object && copyObject(source, keysIn(source), object);
  14377. }
  14378. module.exports = baseAssignIn;
  14379. /***/ }),
  14380. /***/ "../../node_modules/lodash/_baseAssignValue.js":
  14381. /*!*******************************************************************!*\
  14382. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignValue.js ***!
  14383. \*******************************************************************/
  14384. /*! no static exports found */
  14385. /***/ (function(module, exports, __webpack_require__) {
  14386. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js");
  14387. /**
  14388. * The base implementation of `assignValue` and `assignMergeValue` without
  14389. * value checks.
  14390. *
  14391. * @private
  14392. * @param {Object} object The object to modify.
  14393. * @param {string} key The key of the property to assign.
  14394. * @param {*} value The value to assign.
  14395. */
  14396. function baseAssignValue(object, key, value) {
  14397. if (key == '__proto__' && defineProperty) {
  14398. defineProperty(object, key, {
  14399. 'configurable': true,
  14400. 'enumerable': true,
  14401. 'value': value,
  14402. 'writable': true
  14403. });
  14404. } else {
  14405. object[key] = value;
  14406. }
  14407. }
  14408. module.exports = baseAssignValue;
  14409. /***/ }),
  14410. /***/ "../../node_modules/lodash/_baseClone.js":
  14411. /*!*************************************************************!*\
  14412. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseClone.js ***!
  14413. \*************************************************************/
  14414. /*! no static exports found */
  14415. /***/ (function(module, exports, __webpack_require__) {
  14416. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  14417. arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  14418. assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  14419. baseAssign = __webpack_require__(/*! ./_baseAssign */ "../../node_modules/lodash/_baseAssign.js"),
  14420. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "../../node_modules/lodash/_baseAssignIn.js"),
  14421. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  14422. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  14423. copySymbols = __webpack_require__(/*! ./_copySymbols */ "../../node_modules/lodash/_copySymbols.js"),
  14424. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "../../node_modules/lodash/_copySymbolsIn.js"),
  14425. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js"),
  14426. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../node_modules/lodash/_getAllKeysIn.js"),
  14427. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  14428. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "../../node_modules/lodash/_initCloneArray.js"),
  14429. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "../../node_modules/lodash/_initCloneByTag.js"),
  14430. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  14431. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  14432. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  14433. isMap = __webpack_require__(/*! ./isMap */ "../../node_modules/lodash/isMap.js"),
  14434. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  14435. isSet = __webpack_require__(/*! ./isSet */ "../../node_modules/lodash/isSet.js"),
  14436. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js"),
  14437. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14438. /** Used to compose bitmasks for cloning. */
  14439. var CLONE_DEEP_FLAG = 1,
  14440. CLONE_FLAT_FLAG = 2,
  14441. CLONE_SYMBOLS_FLAG = 4;
  14442. /** `Object#toString` result references. */
  14443. var argsTag = '[object Arguments]',
  14444. arrayTag = '[object Array]',
  14445. boolTag = '[object Boolean]',
  14446. dateTag = '[object Date]',
  14447. errorTag = '[object Error]',
  14448. funcTag = '[object Function]',
  14449. genTag = '[object GeneratorFunction]',
  14450. mapTag = '[object Map]',
  14451. numberTag = '[object Number]',
  14452. objectTag = '[object Object]',
  14453. regexpTag = '[object RegExp]',
  14454. setTag = '[object Set]',
  14455. stringTag = '[object String]',
  14456. symbolTag = '[object Symbol]',
  14457. weakMapTag = '[object WeakMap]';
  14458. var arrayBufferTag = '[object ArrayBuffer]',
  14459. dataViewTag = '[object DataView]',
  14460. float32Tag = '[object Float32Array]',
  14461. float64Tag = '[object Float64Array]',
  14462. int8Tag = '[object Int8Array]',
  14463. int16Tag = '[object Int16Array]',
  14464. int32Tag = '[object Int32Array]',
  14465. uint8Tag = '[object Uint8Array]',
  14466. uint8ClampedTag = '[object Uint8ClampedArray]',
  14467. uint16Tag = '[object Uint16Array]',
  14468. uint32Tag = '[object Uint32Array]';
  14469. /** Used to identify `toStringTag` values supported by `_.clone`. */
  14470. var cloneableTags = {};
  14471. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  14472. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  14473. cloneableTags[boolTag] = cloneableTags[dateTag] =
  14474. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  14475. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  14476. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  14477. cloneableTags[numberTag] = cloneableTags[objectTag] =
  14478. cloneableTags[regexpTag] = cloneableTags[setTag] =
  14479. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  14480. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  14481. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  14482. cloneableTags[errorTag] = cloneableTags[funcTag] =
  14483. cloneableTags[weakMapTag] = false;
  14484. /**
  14485. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  14486. * traversed objects.
  14487. *
  14488. * @private
  14489. * @param {*} value The value to clone.
  14490. * @param {boolean} bitmask The bitmask flags.
  14491. * 1 - Deep clone
  14492. * 2 - Flatten inherited properties
  14493. * 4 - Clone symbols
  14494. * @param {Function} [customizer] The function to customize cloning.
  14495. * @param {string} [key] The key of `value`.
  14496. * @param {Object} [object] The parent object of `value`.
  14497. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  14498. * @returns {*} Returns the cloned value.
  14499. */
  14500. function baseClone(value, bitmask, customizer, key, object, stack) {
  14501. var result,
  14502. isDeep = bitmask & CLONE_DEEP_FLAG,
  14503. isFlat = bitmask & CLONE_FLAT_FLAG,
  14504. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  14505. if (customizer) {
  14506. result = object ? customizer(value, key, object, stack) : customizer(value);
  14507. }
  14508. if (result !== undefined) {
  14509. return result;
  14510. }
  14511. if (!isObject(value)) {
  14512. return value;
  14513. }
  14514. var isArr = isArray(value);
  14515. if (isArr) {
  14516. result = initCloneArray(value);
  14517. if (!isDeep) {
  14518. return copyArray(value, result);
  14519. }
  14520. } else {
  14521. var tag = getTag(value),
  14522. isFunc = tag == funcTag || tag == genTag;
  14523. if (isBuffer(value)) {
  14524. return cloneBuffer(value, isDeep);
  14525. }
  14526. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  14527. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  14528. if (!isDeep) {
  14529. return isFlat
  14530. ? copySymbolsIn(value, baseAssignIn(result, value))
  14531. : copySymbols(value, baseAssign(result, value));
  14532. }
  14533. } else {
  14534. if (!cloneableTags[tag]) {
  14535. return object ? value : {};
  14536. }
  14537. result = initCloneByTag(value, tag, isDeep);
  14538. }
  14539. }
  14540. // Check for circular references and return its corresponding clone.
  14541. stack || (stack = new Stack);
  14542. var stacked = stack.get(value);
  14543. if (stacked) {
  14544. return stacked;
  14545. }
  14546. stack.set(value, result);
  14547. if (isSet(value)) {
  14548. value.forEach(function(subValue) {
  14549. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  14550. });
  14551. } else if (isMap(value)) {
  14552. value.forEach(function(subValue, key) {
  14553. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  14554. });
  14555. }
  14556. var keysFunc = isFull
  14557. ? (isFlat ? getAllKeysIn : getAllKeys)
  14558. : (isFlat ? keysIn : keys);
  14559. var props = isArr ? undefined : keysFunc(value);
  14560. arrayEach(props || value, function(subValue, key) {
  14561. if (props) {
  14562. key = subValue;
  14563. subValue = value[key];
  14564. }
  14565. // Recursively populate clone (susceptible to call stack limits).
  14566. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  14567. });
  14568. return result;
  14569. }
  14570. module.exports = baseClone;
  14571. /***/ }),
  14572. /***/ "../../node_modules/lodash/_baseCreate.js":
  14573. /*!**************************************************************!*\
  14574. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseCreate.js ***!
  14575. \**************************************************************/
  14576. /*! no static exports found */
  14577. /***/ (function(module, exports, __webpack_require__) {
  14578. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  14579. /** Built-in value references. */
  14580. var objectCreate = Object.create;
  14581. /**
  14582. * The base implementation of `_.create` without support for assigning
  14583. * properties to the created object.
  14584. *
  14585. * @private
  14586. * @param {Object} proto The object to inherit from.
  14587. * @returns {Object} Returns the new object.
  14588. */
  14589. var baseCreate = (function() {
  14590. function object() {}
  14591. return function(proto) {
  14592. if (!isObject(proto)) {
  14593. return {};
  14594. }
  14595. if (objectCreate) {
  14596. return objectCreate(proto);
  14597. }
  14598. object.prototype = proto;
  14599. var result = new object;
  14600. object.prototype = undefined;
  14601. return result;
  14602. };
  14603. }());
  14604. module.exports = baseCreate;
  14605. /***/ }),
  14606. /***/ "../../node_modules/lodash/_baseEach.js":
  14607. /*!************************************************************!*\
  14608. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseEach.js ***!
  14609. \************************************************************/
  14610. /*! no static exports found */
  14611. /***/ (function(module, exports, __webpack_require__) {
  14612. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  14613. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "../../node_modules/lodash/_createBaseEach.js");
  14614. /**
  14615. * The base implementation of `_.forEach` without support for iteratee shorthands.
  14616. *
  14617. * @private
  14618. * @param {Array|Object} collection The collection to iterate over.
  14619. * @param {Function} iteratee The function invoked per iteration.
  14620. * @returns {Array|Object} Returns `collection`.
  14621. */
  14622. var baseEach = createBaseEach(baseForOwn);
  14623. module.exports = baseEach;
  14624. /***/ }),
  14625. /***/ "../../node_modules/lodash/_baseExtremum.js":
  14626. /*!****************************************************************!*\
  14627. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseExtremum.js ***!
  14628. \****************************************************************/
  14629. /*! no static exports found */
  14630. /***/ (function(module, exports, __webpack_require__) {
  14631. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  14632. /**
  14633. * The base implementation of methods like `_.max` and `_.min` which accepts a
  14634. * `comparator` to determine the extremum value.
  14635. *
  14636. * @private
  14637. * @param {Array} array The array to iterate over.
  14638. * @param {Function} iteratee The iteratee invoked per iteration.
  14639. * @param {Function} comparator The comparator used to compare values.
  14640. * @returns {*} Returns the extremum value.
  14641. */
  14642. function baseExtremum(array, iteratee, comparator) {
  14643. var index = -1,
  14644. length = array.length;
  14645. while (++index < length) {
  14646. var value = array[index],
  14647. current = iteratee(value);
  14648. if (current != null && (computed === undefined
  14649. ? (current === current && !isSymbol(current))
  14650. : comparator(current, computed)
  14651. )) {
  14652. var computed = current,
  14653. result = value;
  14654. }
  14655. }
  14656. return result;
  14657. }
  14658. module.exports = baseExtremum;
  14659. /***/ }),
  14660. /***/ "../../node_modules/lodash/_baseFilter.js":
  14661. /*!**************************************************************!*\
  14662. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFilter.js ***!
  14663. \**************************************************************/
  14664. /*! no static exports found */
  14665. /***/ (function(module, exports, __webpack_require__) {
  14666. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js");
  14667. /**
  14668. * The base implementation of `_.filter` without support for iteratee shorthands.
  14669. *
  14670. * @private
  14671. * @param {Array|Object} collection The collection to iterate over.
  14672. * @param {Function} predicate The function invoked per iteration.
  14673. * @returns {Array} Returns the new filtered array.
  14674. */
  14675. function baseFilter(collection, predicate) {
  14676. var result = [];
  14677. baseEach(collection, function(value, index, collection) {
  14678. if (predicate(value, index, collection)) {
  14679. result.push(value);
  14680. }
  14681. });
  14682. return result;
  14683. }
  14684. module.exports = baseFilter;
  14685. /***/ }),
  14686. /***/ "../../node_modules/lodash/_baseFindIndex.js":
  14687. /*!*****************************************************************!*\
  14688. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFindIndex.js ***!
  14689. \*****************************************************************/
  14690. /*! no static exports found */
  14691. /***/ (function(module, exports) {
  14692. /**
  14693. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  14694. * support for iteratee shorthands.
  14695. *
  14696. * @private
  14697. * @param {Array} array The array to inspect.
  14698. * @param {Function} predicate The function invoked per iteration.
  14699. * @param {number} fromIndex The index to search from.
  14700. * @param {boolean} [fromRight] Specify iterating from right to left.
  14701. * @returns {number} Returns the index of the matched value, else `-1`.
  14702. */
  14703. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  14704. var length = array.length,
  14705. index = fromIndex + (fromRight ? 1 : -1);
  14706. while ((fromRight ? index-- : ++index < length)) {
  14707. if (predicate(array[index], index, array)) {
  14708. return index;
  14709. }
  14710. }
  14711. return -1;
  14712. }
  14713. module.exports = baseFindIndex;
  14714. /***/ }),
  14715. /***/ "../../node_modules/lodash/_baseFlatten.js":
  14716. /*!***************************************************************!*\
  14717. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFlatten.js ***!
  14718. \***************************************************************/
  14719. /*! no static exports found */
  14720. /***/ (function(module, exports, __webpack_require__) {
  14721. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  14722. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../node_modules/lodash/_isFlattenable.js");
  14723. /**
  14724. * The base implementation of `_.flatten` with support for restricting flattening.
  14725. *
  14726. * @private
  14727. * @param {Array} array The array to flatten.
  14728. * @param {number} depth The maximum recursion depth.
  14729. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  14730. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  14731. * @param {Array} [result=[]] The initial result value.
  14732. * @returns {Array} Returns the new flattened array.
  14733. */
  14734. function baseFlatten(array, depth, predicate, isStrict, result) {
  14735. var index = -1,
  14736. length = array.length;
  14737. predicate || (predicate = isFlattenable);
  14738. result || (result = []);
  14739. while (++index < length) {
  14740. var value = array[index];
  14741. if (depth > 0 && predicate(value)) {
  14742. if (depth > 1) {
  14743. // Recursively flatten arrays (susceptible to call stack limits).
  14744. baseFlatten(value, depth - 1, predicate, isStrict, result);
  14745. } else {
  14746. arrayPush(result, value);
  14747. }
  14748. } else if (!isStrict) {
  14749. result[result.length] = value;
  14750. }
  14751. }
  14752. return result;
  14753. }
  14754. module.exports = baseFlatten;
  14755. /***/ }),
  14756. /***/ "../../node_modules/lodash/_baseFor.js":
  14757. /*!***********************************************************!*\
  14758. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFor.js ***!
  14759. \***********************************************************/
  14760. /*! no static exports found */
  14761. /***/ (function(module, exports, __webpack_require__) {
  14762. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../node_modules/lodash/_createBaseFor.js");
  14763. /**
  14764. * The base implementation of `baseForOwn` which iterates over `object`
  14765. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  14766. * Iteratee functions may exit iteration early by explicitly returning `false`.
  14767. *
  14768. * @private
  14769. * @param {Object} object The object to iterate over.
  14770. * @param {Function} iteratee The function invoked per iteration.
  14771. * @param {Function} keysFunc The function to get the keys of `object`.
  14772. * @returns {Object} Returns `object`.
  14773. */
  14774. var baseFor = createBaseFor();
  14775. module.exports = baseFor;
  14776. /***/ }),
  14777. /***/ "../../node_modules/lodash/_baseForOwn.js":
  14778. /*!**************************************************************!*\
  14779. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseForOwn.js ***!
  14780. \**************************************************************/
  14781. /*! no static exports found */
  14782. /***/ (function(module, exports, __webpack_require__) {
  14783. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  14784. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  14785. /**
  14786. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  14787. *
  14788. * @private
  14789. * @param {Object} object The object to iterate over.
  14790. * @param {Function} iteratee The function invoked per iteration.
  14791. * @returns {Object} Returns `object`.
  14792. */
  14793. function baseForOwn(object, iteratee) {
  14794. return object && baseFor(object, iteratee, keys);
  14795. }
  14796. module.exports = baseForOwn;
  14797. /***/ }),
  14798. /***/ "../../node_modules/lodash/_baseGet.js":
  14799. /*!***********************************************************!*\
  14800. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGet.js ***!
  14801. \***********************************************************/
  14802. /*! no static exports found */
  14803. /***/ (function(module, exports, __webpack_require__) {
  14804. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  14805. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  14806. /**
  14807. * The base implementation of `_.get` without support for default values.
  14808. *
  14809. * @private
  14810. * @param {Object} object The object to query.
  14811. * @param {Array|string} path The path of the property to get.
  14812. * @returns {*} Returns the resolved value.
  14813. */
  14814. function baseGet(object, path) {
  14815. path = castPath(path, object);
  14816. var index = 0,
  14817. length = path.length;
  14818. while (object != null && index < length) {
  14819. object = object[toKey(path[index++])];
  14820. }
  14821. return (index && index == length) ? object : undefined;
  14822. }
  14823. module.exports = baseGet;
  14824. /***/ }),
  14825. /***/ "../../node_modules/lodash/_baseGetAllKeys.js":
  14826. /*!******************************************************************!*\
  14827. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetAllKeys.js ***!
  14828. \******************************************************************/
  14829. /*! no static exports found */
  14830. /***/ (function(module, exports, __webpack_require__) {
  14831. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  14832. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14833. /**
  14834. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  14835. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  14836. * symbols of `object`.
  14837. *
  14838. * @private
  14839. * @param {Object} object The object to query.
  14840. * @param {Function} keysFunc The function to get the keys of `object`.
  14841. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  14842. * @returns {Array} Returns the array of property names and symbols.
  14843. */
  14844. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  14845. var result = keysFunc(object);
  14846. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  14847. }
  14848. module.exports = baseGetAllKeys;
  14849. /***/ }),
  14850. /***/ "../../node_modules/lodash/_baseGetTag.js":
  14851. /*!**************************************************************!*\
  14852. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetTag.js ***!
  14853. \**************************************************************/
  14854. /*! no static exports found */
  14855. /***/ (function(module, exports, __webpack_require__) {
  14856. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  14857. getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
  14858. objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
  14859. /** `Object#toString` result references. */
  14860. var nullTag = '[object Null]',
  14861. undefinedTag = '[object Undefined]';
  14862. /** Built-in value references. */
  14863. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  14864. /**
  14865. * The base implementation of `getTag` without fallbacks for buggy environments.
  14866. *
  14867. * @private
  14868. * @param {*} value The value to query.
  14869. * @returns {string} Returns the `toStringTag`.
  14870. */
  14871. function baseGetTag(value) {
  14872. if (value == null) {
  14873. return value === undefined ? undefinedTag : nullTag;
  14874. }
  14875. return (symToStringTag && symToStringTag in Object(value))
  14876. ? getRawTag(value)
  14877. : objectToString(value);
  14878. }
  14879. module.exports = baseGetTag;
  14880. /***/ }),
  14881. /***/ "../../node_modules/lodash/_baseGt.js":
  14882. /*!**********************************************************!*\
  14883. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGt.js ***!
  14884. \**********************************************************/
  14885. /*! no static exports found */
  14886. /***/ (function(module, exports) {
  14887. /**
  14888. * The base implementation of `_.gt` which doesn't coerce arguments.
  14889. *
  14890. * @private
  14891. * @param {*} value The value to compare.
  14892. * @param {*} other The other value to compare.
  14893. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  14894. * else `false`.
  14895. */
  14896. function baseGt(value, other) {
  14897. return value > other;
  14898. }
  14899. module.exports = baseGt;
  14900. /***/ }),
  14901. /***/ "../../node_modules/lodash/_baseHas.js":
  14902. /*!***********************************************************!*\
  14903. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHas.js ***!
  14904. \***********************************************************/
  14905. /*! no static exports found */
  14906. /***/ (function(module, exports) {
  14907. /** Used for built-in method references. */
  14908. var objectProto = Object.prototype;
  14909. /** Used to check objects for own properties. */
  14910. var hasOwnProperty = objectProto.hasOwnProperty;
  14911. /**
  14912. * The base implementation of `_.has` without support for deep paths.
  14913. *
  14914. * @private
  14915. * @param {Object} [object] The object to query.
  14916. * @param {Array|string} key The key to check.
  14917. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  14918. */
  14919. function baseHas(object, key) {
  14920. return object != null && hasOwnProperty.call(object, key);
  14921. }
  14922. module.exports = baseHas;
  14923. /***/ }),
  14924. /***/ "../../node_modules/lodash/_baseHasIn.js":
  14925. /*!*************************************************************!*\
  14926. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHasIn.js ***!
  14927. \*************************************************************/
  14928. /*! no static exports found */
  14929. /***/ (function(module, exports) {
  14930. /**
  14931. * The base implementation of `_.hasIn` without support for deep paths.
  14932. *
  14933. * @private
  14934. * @param {Object} [object] The object to query.
  14935. * @param {Array|string} key The key to check.
  14936. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  14937. */
  14938. function baseHasIn(object, key) {
  14939. return object != null && key in Object(object);
  14940. }
  14941. module.exports = baseHasIn;
  14942. /***/ }),
  14943. /***/ "../../node_modules/lodash/_baseIndexOf.js":
  14944. /*!***************************************************************!*\
  14945. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIndexOf.js ***!
  14946. \***************************************************************/
  14947. /*! no static exports found */
  14948. /***/ (function(module, exports, __webpack_require__) {
  14949. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  14950. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "../../node_modules/lodash/_baseIsNaN.js"),
  14951. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "../../node_modules/lodash/_strictIndexOf.js");
  14952. /**
  14953. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  14954. *
  14955. * @private
  14956. * @param {Array} array The array to inspect.
  14957. * @param {*} value The value to search for.
  14958. * @param {number} fromIndex The index to search from.
  14959. * @returns {number} Returns the index of the matched value, else `-1`.
  14960. */
  14961. function baseIndexOf(array, value, fromIndex) {
  14962. return value === value
  14963. ? strictIndexOf(array, value, fromIndex)
  14964. : baseFindIndex(array, baseIsNaN, fromIndex);
  14965. }
  14966. module.exports = baseIndexOf;
  14967. /***/ }),
  14968. /***/ "../../node_modules/lodash/_baseIsArguments.js":
  14969. /*!*******************************************************************!*\
  14970. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsArguments.js ***!
  14971. \*******************************************************************/
  14972. /*! no static exports found */
  14973. /***/ (function(module, exports, __webpack_require__) {
  14974. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  14975. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  14976. /** `Object#toString` result references. */
  14977. var argsTag = '[object Arguments]';
  14978. /**
  14979. * The base implementation of `_.isArguments`.
  14980. *
  14981. * @private
  14982. * @param {*} value The value to check.
  14983. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  14984. */
  14985. function baseIsArguments(value) {
  14986. return isObjectLike(value) && baseGetTag(value) == argsTag;
  14987. }
  14988. module.exports = baseIsArguments;
  14989. /***/ }),
  14990. /***/ "../../node_modules/lodash/_baseIsEqual.js":
  14991. /*!***************************************************************!*\
  14992. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqual.js ***!
  14993. \***************************************************************/
  14994. /*! no static exports found */
  14995. /***/ (function(module, exports, __webpack_require__) {
  14996. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
  14997. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  14998. /**
  14999. * The base implementation of `_.isEqual` which supports partial comparisons
  15000. * and tracks traversed objects.
  15001. *
  15002. * @private
  15003. * @param {*} value The value to compare.
  15004. * @param {*} other The other value to compare.
  15005. * @param {boolean} bitmask The bitmask flags.
  15006. * 1 - Unordered comparison
  15007. * 2 - Partial comparison
  15008. * @param {Function} [customizer] The function to customize comparisons.
  15009. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  15010. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  15011. */
  15012. function baseIsEqual(value, other, bitmask, customizer, stack) {
  15013. if (value === other) {
  15014. return true;
  15015. }
  15016. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  15017. return value !== value && other !== other;
  15018. }
  15019. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  15020. }
  15021. module.exports = baseIsEqual;
  15022. /***/ }),
  15023. /***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
  15024. /*!*******************************************************************!*\
  15025. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqualDeep.js ***!
  15026. \*******************************************************************/
  15027. /*! no static exports found */
  15028. /***/ (function(module, exports, __webpack_require__) {
  15029. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  15030. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  15031. equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
  15032. equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
  15033. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15034. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15035. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  15036. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  15037. /** Used to compose bitmasks for value comparisons. */
  15038. var COMPARE_PARTIAL_FLAG = 1;
  15039. /** `Object#toString` result references. */
  15040. var argsTag = '[object Arguments]',
  15041. arrayTag = '[object Array]',
  15042. objectTag = '[object Object]';
  15043. /** Used for built-in method references. */
  15044. var objectProto = Object.prototype;
  15045. /** Used to check objects for own properties. */
  15046. var hasOwnProperty = objectProto.hasOwnProperty;
  15047. /**
  15048. * A specialized version of `baseIsEqual` for arrays and objects which performs
  15049. * deep comparisons and tracks traversed objects enabling objects with circular
  15050. * references to be compared.
  15051. *
  15052. * @private
  15053. * @param {Object} object The object to compare.
  15054. * @param {Object} other The other object to compare.
  15055. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  15056. * @param {Function} customizer The function to customize comparisons.
  15057. * @param {Function} equalFunc The function to determine equivalents of values.
  15058. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  15059. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  15060. */
  15061. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  15062. var objIsArr = isArray(object),
  15063. othIsArr = isArray(other),
  15064. objTag = objIsArr ? arrayTag : getTag(object),
  15065. othTag = othIsArr ? arrayTag : getTag(other);
  15066. objTag = objTag == argsTag ? objectTag : objTag;
  15067. othTag = othTag == argsTag ? objectTag : othTag;
  15068. var objIsObj = objTag == objectTag,
  15069. othIsObj = othTag == objectTag,
  15070. isSameTag = objTag == othTag;
  15071. if (isSameTag && isBuffer(object)) {
  15072. if (!isBuffer(other)) {
  15073. return false;
  15074. }
  15075. objIsArr = true;
  15076. objIsObj = false;
  15077. }
  15078. if (isSameTag && !objIsObj) {
  15079. stack || (stack = new Stack);
  15080. return (objIsArr || isTypedArray(object))
  15081. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  15082. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  15083. }
  15084. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  15085. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  15086. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  15087. if (objIsWrapped || othIsWrapped) {
  15088. var objUnwrapped = objIsWrapped ? object.value() : object,
  15089. othUnwrapped = othIsWrapped ? other.value() : other;
  15090. stack || (stack = new Stack);
  15091. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  15092. }
  15093. }
  15094. if (!isSameTag) {
  15095. return false;
  15096. }
  15097. stack || (stack = new Stack);
  15098. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  15099. }
  15100. module.exports = baseIsEqualDeep;
  15101. /***/ }),
  15102. /***/ "../../node_modules/lodash/_baseIsMap.js":
  15103. /*!*************************************************************!*\
  15104. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMap.js ***!
  15105. \*************************************************************/
  15106. /*! no static exports found */
  15107. /***/ (function(module, exports, __webpack_require__) {
  15108. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15109. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15110. /** `Object#toString` result references. */
  15111. var mapTag = '[object Map]';
  15112. /**
  15113. * The base implementation of `_.isMap` without Node.js optimizations.
  15114. *
  15115. * @private
  15116. * @param {*} value The value to check.
  15117. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15118. */
  15119. function baseIsMap(value) {
  15120. return isObjectLike(value) && getTag(value) == mapTag;
  15121. }
  15122. module.exports = baseIsMap;
  15123. /***/ }),
  15124. /***/ "../../node_modules/lodash/_baseIsMatch.js":
  15125. /*!***************************************************************!*\
  15126. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMatch.js ***!
  15127. \***************************************************************/
  15128. /*! no static exports found */
  15129. /***/ (function(module, exports, __webpack_require__) {
  15130. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  15131. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
  15132. /** Used to compose bitmasks for value comparisons. */
  15133. var COMPARE_PARTIAL_FLAG = 1,
  15134. COMPARE_UNORDERED_FLAG = 2;
  15135. /**
  15136. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  15137. *
  15138. * @private
  15139. * @param {Object} object The object to inspect.
  15140. * @param {Object} source The object of property values to match.
  15141. * @param {Array} matchData The property names, values, and compare flags to match.
  15142. * @param {Function} [customizer] The function to customize comparisons.
  15143. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  15144. */
  15145. function baseIsMatch(object, source, matchData, customizer) {
  15146. var index = matchData.length,
  15147. length = index,
  15148. noCustomizer = !customizer;
  15149. if (object == null) {
  15150. return !length;
  15151. }
  15152. object = Object(object);
  15153. while (index--) {
  15154. var data = matchData[index];
  15155. if ((noCustomizer && data[2])
  15156. ? data[1] !== object[data[0]]
  15157. : !(data[0] in object)
  15158. ) {
  15159. return false;
  15160. }
  15161. }
  15162. while (++index < length) {
  15163. data = matchData[index];
  15164. var key = data[0],
  15165. objValue = object[key],
  15166. srcValue = data[1];
  15167. if (noCustomizer && data[2]) {
  15168. if (objValue === undefined && !(key in object)) {
  15169. return false;
  15170. }
  15171. } else {
  15172. var stack = new Stack;
  15173. if (customizer) {
  15174. var result = customizer(objValue, srcValue, key, object, source, stack);
  15175. }
  15176. if (!(result === undefined
  15177. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  15178. : result
  15179. )) {
  15180. return false;
  15181. }
  15182. }
  15183. }
  15184. return true;
  15185. }
  15186. module.exports = baseIsMatch;
  15187. /***/ }),
  15188. /***/ "../../node_modules/lodash/_baseIsNaN.js":
  15189. /*!*************************************************************!*\
  15190. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNaN.js ***!
  15191. \*************************************************************/
  15192. /*! no static exports found */
  15193. /***/ (function(module, exports) {
  15194. /**
  15195. * The base implementation of `_.isNaN` without support for number objects.
  15196. *
  15197. * @private
  15198. * @param {*} value The value to check.
  15199. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  15200. */
  15201. function baseIsNaN(value) {
  15202. return value !== value;
  15203. }
  15204. module.exports = baseIsNaN;
  15205. /***/ }),
  15206. /***/ "../../node_modules/lodash/_baseIsNative.js":
  15207. /*!****************************************************************!*\
  15208. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNative.js ***!
  15209. \****************************************************************/
  15210. /*! no static exports found */
  15211. /***/ (function(module, exports, __webpack_require__) {
  15212. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15213. isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
  15214. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15215. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  15216. /**
  15217. * Used to match `RegExp`
  15218. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  15219. */
  15220. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  15221. /** Used to detect host constructors (Safari). */
  15222. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  15223. /** Used for built-in method references. */
  15224. var funcProto = Function.prototype,
  15225. objectProto = Object.prototype;
  15226. /** Used to resolve the decompiled source of functions. */
  15227. var funcToString = funcProto.toString;
  15228. /** Used to check objects for own properties. */
  15229. var hasOwnProperty = objectProto.hasOwnProperty;
  15230. /** Used to detect if a method is native. */
  15231. var reIsNative = RegExp('^' +
  15232. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  15233. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  15234. );
  15235. /**
  15236. * The base implementation of `_.isNative` without bad shim checks.
  15237. *
  15238. * @private
  15239. * @param {*} value The value to check.
  15240. * @returns {boolean} Returns `true` if `value` is a native function,
  15241. * else `false`.
  15242. */
  15243. function baseIsNative(value) {
  15244. if (!isObject(value) || isMasked(value)) {
  15245. return false;
  15246. }
  15247. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  15248. return pattern.test(toSource(value));
  15249. }
  15250. module.exports = baseIsNative;
  15251. /***/ }),
  15252. /***/ "../../node_modules/lodash/_baseIsSet.js":
  15253. /*!*************************************************************!*\
  15254. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsSet.js ***!
  15255. \*************************************************************/
  15256. /*! no static exports found */
  15257. /***/ (function(module, exports, __webpack_require__) {
  15258. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15259. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15260. /** `Object#toString` result references. */
  15261. var setTag = '[object Set]';
  15262. /**
  15263. * The base implementation of `_.isSet` without Node.js optimizations.
  15264. *
  15265. * @private
  15266. * @param {*} value The value to check.
  15267. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  15268. */
  15269. function baseIsSet(value) {
  15270. return isObjectLike(value) && getTag(value) == setTag;
  15271. }
  15272. module.exports = baseIsSet;
  15273. /***/ }),
  15274. /***/ "../../node_modules/lodash/_baseIsTypedArray.js":
  15275. /*!********************************************************************!*\
  15276. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsTypedArray.js ***!
  15277. \********************************************************************/
  15278. /*! no static exports found */
  15279. /***/ (function(module, exports, __webpack_require__) {
  15280. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15281. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  15282. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15283. /** `Object#toString` result references. */
  15284. var argsTag = '[object Arguments]',
  15285. arrayTag = '[object Array]',
  15286. boolTag = '[object Boolean]',
  15287. dateTag = '[object Date]',
  15288. errorTag = '[object Error]',
  15289. funcTag = '[object Function]',
  15290. mapTag = '[object Map]',
  15291. numberTag = '[object Number]',
  15292. objectTag = '[object Object]',
  15293. regexpTag = '[object RegExp]',
  15294. setTag = '[object Set]',
  15295. stringTag = '[object String]',
  15296. weakMapTag = '[object WeakMap]';
  15297. var arrayBufferTag = '[object ArrayBuffer]',
  15298. dataViewTag = '[object DataView]',
  15299. float32Tag = '[object Float32Array]',
  15300. float64Tag = '[object Float64Array]',
  15301. int8Tag = '[object Int8Array]',
  15302. int16Tag = '[object Int16Array]',
  15303. int32Tag = '[object Int32Array]',
  15304. uint8Tag = '[object Uint8Array]',
  15305. uint8ClampedTag = '[object Uint8ClampedArray]',
  15306. uint16Tag = '[object Uint16Array]',
  15307. uint32Tag = '[object Uint32Array]';
  15308. /** Used to identify `toStringTag` values of typed arrays. */
  15309. var typedArrayTags = {};
  15310. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  15311. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  15312. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  15313. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  15314. typedArrayTags[uint32Tag] = true;
  15315. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  15316. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  15317. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  15318. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  15319. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  15320. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  15321. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  15322. typedArrayTags[weakMapTag] = false;
  15323. /**
  15324. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  15325. *
  15326. * @private
  15327. * @param {*} value The value to check.
  15328. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  15329. */
  15330. function baseIsTypedArray(value) {
  15331. return isObjectLike(value) &&
  15332. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  15333. }
  15334. module.exports = baseIsTypedArray;
  15335. /***/ }),
  15336. /***/ "../../node_modules/lodash/_baseIteratee.js":
  15337. /*!****************************************************************!*\
  15338. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIteratee.js ***!
  15339. \****************************************************************/
  15340. /*! no static exports found */
  15341. /***/ (function(module, exports, __webpack_require__) {
  15342. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../node_modules/lodash/_baseMatches.js"),
  15343. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../node_modules/lodash/_baseMatchesProperty.js"),
  15344. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  15345. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15346. property = __webpack_require__(/*! ./property */ "../../node_modules/lodash/property.js");
  15347. /**
  15348. * The base implementation of `_.iteratee`.
  15349. *
  15350. * @private
  15351. * @param {*} [value=_.identity] The value to convert to an iteratee.
  15352. * @returns {Function} Returns the iteratee.
  15353. */
  15354. function baseIteratee(value) {
  15355. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  15356. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  15357. if (typeof value == 'function') {
  15358. return value;
  15359. }
  15360. if (value == null) {
  15361. return identity;
  15362. }
  15363. if (typeof value == 'object') {
  15364. return isArray(value)
  15365. ? baseMatchesProperty(value[0], value[1])
  15366. : baseMatches(value);
  15367. }
  15368. return property(value);
  15369. }
  15370. module.exports = baseIteratee;
  15371. /***/ }),
  15372. /***/ "../../node_modules/lodash/_baseKeys.js":
  15373. /*!************************************************************!*\
  15374. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeys.js ***!
  15375. \************************************************************/
  15376. /*! no static exports found */
  15377. /***/ (function(module, exports, __webpack_require__) {
  15378. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  15379. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
  15380. /** Used for built-in method references. */
  15381. var objectProto = Object.prototype;
  15382. /** Used to check objects for own properties. */
  15383. var hasOwnProperty = objectProto.hasOwnProperty;
  15384. /**
  15385. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  15386. *
  15387. * @private
  15388. * @param {Object} object The object to query.
  15389. * @returns {Array} Returns the array of property names.
  15390. */
  15391. function baseKeys(object) {
  15392. if (!isPrototype(object)) {
  15393. return nativeKeys(object);
  15394. }
  15395. var result = [];
  15396. for (var key in Object(object)) {
  15397. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  15398. result.push(key);
  15399. }
  15400. }
  15401. return result;
  15402. }
  15403. module.exports = baseKeys;
  15404. /***/ }),
  15405. /***/ "../../node_modules/lodash/_baseKeysIn.js":
  15406. /*!**************************************************************!*\
  15407. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeysIn.js ***!
  15408. \**************************************************************/
  15409. /*! no static exports found */
  15410. /***/ (function(module, exports, __webpack_require__) {
  15411. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15412. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  15413. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "../../node_modules/lodash/_nativeKeysIn.js");
  15414. /** Used for built-in method references. */
  15415. var objectProto = Object.prototype;
  15416. /** Used to check objects for own properties. */
  15417. var hasOwnProperty = objectProto.hasOwnProperty;
  15418. /**
  15419. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  15420. *
  15421. * @private
  15422. * @param {Object} object The object to query.
  15423. * @returns {Array} Returns the array of property names.
  15424. */
  15425. function baseKeysIn(object) {
  15426. if (!isObject(object)) {
  15427. return nativeKeysIn(object);
  15428. }
  15429. var isProto = isPrototype(object),
  15430. result = [];
  15431. for (var key in object) {
  15432. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  15433. result.push(key);
  15434. }
  15435. }
  15436. return result;
  15437. }
  15438. module.exports = baseKeysIn;
  15439. /***/ }),
  15440. /***/ "../../node_modules/lodash/_baseLt.js":
  15441. /*!**********************************************************!*\
  15442. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseLt.js ***!
  15443. \**********************************************************/
  15444. /*! no static exports found */
  15445. /***/ (function(module, exports) {
  15446. /**
  15447. * The base implementation of `_.lt` which doesn't coerce arguments.
  15448. *
  15449. * @private
  15450. * @param {*} value The value to compare.
  15451. * @param {*} other The other value to compare.
  15452. * @returns {boolean} Returns `true` if `value` is less than `other`,
  15453. * else `false`.
  15454. */
  15455. function baseLt(value, other) {
  15456. return value < other;
  15457. }
  15458. module.exports = baseLt;
  15459. /***/ }),
  15460. /***/ "../../node_modules/lodash/_baseMap.js":
  15461. /*!***********************************************************!*\
  15462. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMap.js ***!
  15463. \***********************************************************/
  15464. /*! no static exports found */
  15465. /***/ (function(module, exports, __webpack_require__) {
  15466. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  15467. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15468. /**
  15469. * The base implementation of `_.map` without support for iteratee shorthands.
  15470. *
  15471. * @private
  15472. * @param {Array|Object} collection The collection to iterate over.
  15473. * @param {Function} iteratee The function invoked per iteration.
  15474. * @returns {Array} Returns the new mapped array.
  15475. */
  15476. function baseMap(collection, iteratee) {
  15477. var index = -1,
  15478. result = isArrayLike(collection) ? Array(collection.length) : [];
  15479. baseEach(collection, function(value, key, collection) {
  15480. result[++index] = iteratee(value, key, collection);
  15481. });
  15482. return result;
  15483. }
  15484. module.exports = baseMap;
  15485. /***/ }),
  15486. /***/ "../../node_modules/lodash/_baseMatches.js":
  15487. /*!***************************************************************!*\
  15488. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatches.js ***!
  15489. \***************************************************************/
  15490. /*! no static exports found */
  15491. /***/ (function(module, exports, __webpack_require__) {
  15492. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../node_modules/lodash/_baseIsMatch.js"),
  15493. getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../node_modules/lodash/_getMatchData.js"),
  15494. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js");
  15495. /**
  15496. * The base implementation of `_.matches` which doesn't clone `source`.
  15497. *
  15498. * @private
  15499. * @param {Object} source The object of property values to match.
  15500. * @returns {Function} Returns the new spec function.
  15501. */
  15502. function baseMatches(source) {
  15503. var matchData = getMatchData(source);
  15504. if (matchData.length == 1 && matchData[0][2]) {
  15505. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  15506. }
  15507. return function(object) {
  15508. return object === source || baseIsMatch(object, source, matchData);
  15509. };
  15510. }
  15511. module.exports = baseMatches;
  15512. /***/ }),
  15513. /***/ "../../node_modules/lodash/_baseMatchesProperty.js":
  15514. /*!***********************************************************************!*\
  15515. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatchesProperty.js ***!
  15516. \***********************************************************************/
  15517. /*! no static exports found */
  15518. /***/ (function(module, exports, __webpack_require__) {
  15519. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js"),
  15520. get = __webpack_require__(/*! ./get */ "../../node_modules/lodash/get.js"),
  15521. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js"),
  15522. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  15523. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  15524. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js"),
  15525. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  15526. /** Used to compose bitmasks for value comparisons. */
  15527. var COMPARE_PARTIAL_FLAG = 1,
  15528. COMPARE_UNORDERED_FLAG = 2;
  15529. /**
  15530. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  15531. *
  15532. * @private
  15533. * @param {string} path The path of the property to get.
  15534. * @param {*} srcValue The value to match.
  15535. * @returns {Function} Returns the new spec function.
  15536. */
  15537. function baseMatchesProperty(path, srcValue) {
  15538. if (isKey(path) && isStrictComparable(srcValue)) {
  15539. return matchesStrictComparable(toKey(path), srcValue);
  15540. }
  15541. return function(object) {
  15542. var objValue = get(object, path);
  15543. return (objValue === undefined && objValue === srcValue)
  15544. ? hasIn(object, path)
  15545. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  15546. };
  15547. }
  15548. module.exports = baseMatchesProperty;
  15549. /***/ }),
  15550. /***/ "../../node_modules/lodash/_baseMerge.js":
  15551. /*!*************************************************************!*\
  15552. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMerge.js ***!
  15553. \*************************************************************/
  15554. /*! no static exports found */
  15555. /***/ (function(module, exports, __webpack_require__) {
  15556. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  15557. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  15558. baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  15559. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "../../node_modules/lodash/_baseMergeDeep.js"),
  15560. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15561. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js"),
  15562. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js");
  15563. /**
  15564. * The base implementation of `_.merge` without support for multiple sources.
  15565. *
  15566. * @private
  15567. * @param {Object} object The destination object.
  15568. * @param {Object} source The source object.
  15569. * @param {number} srcIndex The index of `source`.
  15570. * @param {Function} [customizer] The function to customize merged values.
  15571. * @param {Object} [stack] Tracks traversed source values and their merged
  15572. * counterparts.
  15573. */
  15574. function baseMerge(object, source, srcIndex, customizer, stack) {
  15575. if (object === source) {
  15576. return;
  15577. }
  15578. baseFor(source, function(srcValue, key) {
  15579. stack || (stack = new Stack);
  15580. if (isObject(srcValue)) {
  15581. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  15582. }
  15583. else {
  15584. var newValue = customizer
  15585. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  15586. : undefined;
  15587. if (newValue === undefined) {
  15588. newValue = srcValue;
  15589. }
  15590. assignMergeValue(object, key, newValue);
  15591. }
  15592. }, keysIn);
  15593. }
  15594. module.exports = baseMerge;
  15595. /***/ }),
  15596. /***/ "../../node_modules/lodash/_baseMergeDeep.js":
  15597. /*!*****************************************************************!*\
  15598. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMergeDeep.js ***!
  15599. \*****************************************************************/
  15600. /*! no static exports found */
  15601. /***/ (function(module, exports, __webpack_require__) {
  15602. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  15603. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  15604. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js"),
  15605. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  15606. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  15607. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  15608. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15609. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js"),
  15610. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  15611. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15612. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15613. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../node_modules/lodash/isPlainObject.js"),
  15614. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js"),
  15615. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js"),
  15616. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "../../node_modules/lodash/toPlainObject.js");
  15617. /**
  15618. * A specialized version of `baseMerge` for arrays and objects which performs
  15619. * deep merges and tracks traversed objects enabling objects with circular
  15620. * references to be merged.
  15621. *
  15622. * @private
  15623. * @param {Object} object The destination object.
  15624. * @param {Object} source The source object.
  15625. * @param {string} key The key of the value to merge.
  15626. * @param {number} srcIndex The index of `source`.
  15627. * @param {Function} mergeFunc The function to merge values.
  15628. * @param {Function} [customizer] The function to customize assigned values.
  15629. * @param {Object} [stack] Tracks traversed source values and their merged
  15630. * counterparts.
  15631. */
  15632. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  15633. var objValue = safeGet(object, key),
  15634. srcValue = safeGet(source, key),
  15635. stacked = stack.get(srcValue);
  15636. if (stacked) {
  15637. assignMergeValue(object, key, stacked);
  15638. return;
  15639. }
  15640. var newValue = customizer
  15641. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  15642. : undefined;
  15643. var isCommon = newValue === undefined;
  15644. if (isCommon) {
  15645. var isArr = isArray(srcValue),
  15646. isBuff = !isArr && isBuffer(srcValue),
  15647. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  15648. newValue = srcValue;
  15649. if (isArr || isBuff || isTyped) {
  15650. if (isArray(objValue)) {
  15651. newValue = objValue;
  15652. }
  15653. else if (isArrayLikeObject(objValue)) {
  15654. newValue = copyArray(objValue);
  15655. }
  15656. else if (isBuff) {
  15657. isCommon = false;
  15658. newValue = cloneBuffer(srcValue, true);
  15659. }
  15660. else if (isTyped) {
  15661. isCommon = false;
  15662. newValue = cloneTypedArray(srcValue, true);
  15663. }
  15664. else {
  15665. newValue = [];
  15666. }
  15667. }
  15668. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  15669. newValue = objValue;
  15670. if (isArguments(objValue)) {
  15671. newValue = toPlainObject(objValue);
  15672. }
  15673. else if (!isObject(objValue) || isFunction(objValue)) {
  15674. newValue = initCloneObject(srcValue);
  15675. }
  15676. }
  15677. else {
  15678. isCommon = false;
  15679. }
  15680. }
  15681. if (isCommon) {
  15682. // Recursively merge objects and arrays (susceptible to call stack limits).
  15683. stack.set(srcValue, newValue);
  15684. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  15685. stack['delete'](srcValue);
  15686. }
  15687. assignMergeValue(object, key, newValue);
  15688. }
  15689. module.exports = baseMergeDeep;
  15690. /***/ }),
  15691. /***/ "../../node_modules/lodash/_baseOrderBy.js":
  15692. /*!***************************************************************!*\
  15693. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseOrderBy.js ***!
  15694. \***************************************************************/
  15695. /*! no static exports found */
  15696. /***/ (function(module, exports, __webpack_require__) {
  15697. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  15698. baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  15699. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  15700. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  15701. baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "../../node_modules/lodash/_baseSortBy.js"),
  15702. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15703. compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "../../node_modules/lodash/_compareMultiple.js"),
  15704. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  15705. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  15706. /**
  15707. * The base implementation of `_.orderBy` without param guards.
  15708. *
  15709. * @private
  15710. * @param {Array|Object} collection The collection to iterate over.
  15711. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  15712. * @param {string[]} orders The sort orders of `iteratees`.
  15713. * @returns {Array} Returns the new sorted array.
  15714. */
  15715. function baseOrderBy(collection, iteratees, orders) {
  15716. if (iteratees.length) {
  15717. iteratees = arrayMap(iteratees, function(iteratee) {
  15718. if (isArray(iteratee)) {
  15719. return function(value) {
  15720. return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
  15721. }
  15722. }
  15723. return iteratee;
  15724. });
  15725. } else {
  15726. iteratees = [identity];
  15727. }
  15728. var index = -1;
  15729. iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
  15730. var result = baseMap(collection, function(value, key, collection) {
  15731. var criteria = arrayMap(iteratees, function(iteratee) {
  15732. return iteratee(value);
  15733. });
  15734. return { 'criteria': criteria, 'index': ++index, 'value': value };
  15735. });
  15736. return baseSortBy(result, function(object, other) {
  15737. return compareMultiple(object, other, orders);
  15738. });
  15739. }
  15740. module.exports = baseOrderBy;
  15741. /***/ }),
  15742. /***/ "../../node_modules/lodash/_basePick.js":
  15743. /*!************************************************************!*\
  15744. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePick.js ***!
  15745. \************************************************************/
  15746. /*! no static exports found */
  15747. /***/ (function(module, exports, __webpack_require__) {
  15748. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../node_modules/lodash/_basePickBy.js"),
  15749. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js");
  15750. /**
  15751. * The base implementation of `_.pick` without support for individual
  15752. * property identifiers.
  15753. *
  15754. * @private
  15755. * @param {Object} object The source object.
  15756. * @param {string[]} paths The property paths to pick.
  15757. * @returns {Object} Returns the new object.
  15758. */
  15759. function basePick(object, paths) {
  15760. return basePickBy(object, paths, function(value, path) {
  15761. return hasIn(object, path);
  15762. });
  15763. }
  15764. module.exports = basePick;
  15765. /***/ }),
  15766. /***/ "../../node_modules/lodash/_basePickBy.js":
  15767. /*!**************************************************************!*\
  15768. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePickBy.js ***!
  15769. \**************************************************************/
  15770. /*! no static exports found */
  15771. /***/ (function(module, exports, __webpack_require__) {
  15772. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  15773. baseSet = __webpack_require__(/*! ./_baseSet */ "../../node_modules/lodash/_baseSet.js"),
  15774. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js");
  15775. /**
  15776. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  15777. *
  15778. * @private
  15779. * @param {Object} object The source object.
  15780. * @param {string[]} paths The property paths to pick.
  15781. * @param {Function} predicate The function invoked per property.
  15782. * @returns {Object} Returns the new object.
  15783. */
  15784. function basePickBy(object, paths, predicate) {
  15785. var index = -1,
  15786. length = paths.length,
  15787. result = {};
  15788. while (++index < length) {
  15789. var path = paths[index],
  15790. value = baseGet(object, path);
  15791. if (predicate(value, path)) {
  15792. baseSet(result, castPath(path, object), value);
  15793. }
  15794. }
  15795. return result;
  15796. }
  15797. module.exports = basePickBy;
  15798. /***/ }),
  15799. /***/ "../../node_modules/lodash/_baseProperty.js":
  15800. /*!****************************************************************!*\
  15801. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseProperty.js ***!
  15802. \****************************************************************/
  15803. /*! no static exports found */
  15804. /***/ (function(module, exports) {
  15805. /**
  15806. * The base implementation of `_.property` without support for deep paths.
  15807. *
  15808. * @private
  15809. * @param {string} key The key of the property to get.
  15810. * @returns {Function} Returns the new accessor function.
  15811. */
  15812. function baseProperty(key) {
  15813. return function(object) {
  15814. return object == null ? undefined : object[key];
  15815. };
  15816. }
  15817. module.exports = baseProperty;
  15818. /***/ }),
  15819. /***/ "../../node_modules/lodash/_basePropertyDeep.js":
  15820. /*!********************************************************************!*\
  15821. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePropertyDeep.js ***!
  15822. \********************************************************************/
  15823. /*! no static exports found */
  15824. /***/ (function(module, exports, __webpack_require__) {
  15825. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  15826. /**
  15827. * A specialized version of `baseProperty` which supports deep paths.
  15828. *
  15829. * @private
  15830. * @param {Array|string} path The path of the property to get.
  15831. * @returns {Function} Returns the new accessor function.
  15832. */
  15833. function basePropertyDeep(path) {
  15834. return function(object) {
  15835. return baseGet(object, path);
  15836. };
  15837. }
  15838. module.exports = basePropertyDeep;
  15839. /***/ }),
  15840. /***/ "../../node_modules/lodash/_baseRange.js":
  15841. /*!*************************************************************!*\
  15842. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRange.js ***!
  15843. \*************************************************************/
  15844. /*! no static exports found */
  15845. /***/ (function(module, exports) {
  15846. /* Built-in method references for those with the same name as other `lodash` methods. */
  15847. var nativeCeil = Math.ceil,
  15848. nativeMax = Math.max;
  15849. /**
  15850. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  15851. * coerce arguments.
  15852. *
  15853. * @private
  15854. * @param {number} start The start of the range.
  15855. * @param {number} end The end of the range.
  15856. * @param {number} step The value to increment or decrement by.
  15857. * @param {boolean} [fromRight] Specify iterating from right to left.
  15858. * @returns {Array} Returns the range of numbers.
  15859. */
  15860. function baseRange(start, end, step, fromRight) {
  15861. var index = -1,
  15862. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  15863. result = Array(length);
  15864. while (length--) {
  15865. result[fromRight ? length : ++index] = start;
  15866. start += step;
  15867. }
  15868. return result;
  15869. }
  15870. module.exports = baseRange;
  15871. /***/ }),
  15872. /***/ "../../node_modules/lodash/_baseReduce.js":
  15873. /*!**************************************************************!*\
  15874. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseReduce.js ***!
  15875. \**************************************************************/
  15876. /*! no static exports found */
  15877. /***/ (function(module, exports) {
  15878. /**
  15879. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  15880. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  15881. *
  15882. * @private
  15883. * @param {Array|Object} collection The collection to iterate over.
  15884. * @param {Function} iteratee The function invoked per iteration.
  15885. * @param {*} accumulator The initial value.
  15886. * @param {boolean} initAccum Specify using the first or last element of
  15887. * `collection` as the initial value.
  15888. * @param {Function} eachFunc The function to iterate over `collection`.
  15889. * @returns {*} Returns the accumulated value.
  15890. */
  15891. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  15892. eachFunc(collection, function(value, index, collection) {
  15893. accumulator = initAccum
  15894. ? (initAccum = false, value)
  15895. : iteratee(accumulator, value, index, collection);
  15896. });
  15897. return accumulator;
  15898. }
  15899. module.exports = baseReduce;
  15900. /***/ }),
  15901. /***/ "../../node_modules/lodash/_baseRest.js":
  15902. /*!************************************************************!*\
  15903. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRest.js ***!
  15904. \************************************************************/
  15905. /*! no static exports found */
  15906. /***/ (function(module, exports, __webpack_require__) {
  15907. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  15908. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  15909. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  15910. /**
  15911. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  15912. *
  15913. * @private
  15914. * @param {Function} func The function to apply a rest parameter to.
  15915. * @param {number} [start=func.length-1] The start position of the rest parameter.
  15916. * @returns {Function} Returns the new function.
  15917. */
  15918. function baseRest(func, start) {
  15919. return setToString(overRest(func, start, identity), func + '');
  15920. }
  15921. module.exports = baseRest;
  15922. /***/ }),
  15923. /***/ "../../node_modules/lodash/_baseSet.js":
  15924. /*!***********************************************************!*\
  15925. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSet.js ***!
  15926. \***********************************************************/
  15927. /*! no static exports found */
  15928. /***/ (function(module, exports, __webpack_require__) {
  15929. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  15930. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  15931. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  15932. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15933. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  15934. /**
  15935. * The base implementation of `_.set`.
  15936. *
  15937. * @private
  15938. * @param {Object} object The object to modify.
  15939. * @param {Array|string} path The path of the property to set.
  15940. * @param {*} value The value to set.
  15941. * @param {Function} [customizer] The function to customize path creation.
  15942. * @returns {Object} Returns `object`.
  15943. */
  15944. function baseSet(object, path, value, customizer) {
  15945. if (!isObject(object)) {
  15946. return object;
  15947. }
  15948. path = castPath(path, object);
  15949. var index = -1,
  15950. length = path.length,
  15951. lastIndex = length - 1,
  15952. nested = object;
  15953. while (nested != null && ++index < length) {
  15954. var key = toKey(path[index]),
  15955. newValue = value;
  15956. if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
  15957. return object;
  15958. }
  15959. if (index != lastIndex) {
  15960. var objValue = nested[key];
  15961. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  15962. if (newValue === undefined) {
  15963. newValue = isObject(objValue)
  15964. ? objValue
  15965. : (isIndex(path[index + 1]) ? [] : {});
  15966. }
  15967. }
  15968. assignValue(nested, key, newValue);
  15969. nested = nested[key];
  15970. }
  15971. return object;
  15972. }
  15973. module.exports = baseSet;
  15974. /***/ }),
  15975. /***/ "../../node_modules/lodash/_baseSetToString.js":
  15976. /*!*******************************************************************!*\
  15977. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSetToString.js ***!
  15978. \*******************************************************************/
  15979. /*! no static exports found */
  15980. /***/ (function(module, exports, __webpack_require__) {
  15981. var constant = __webpack_require__(/*! ./constant */ "../../node_modules/lodash/constant.js"),
  15982. defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js"),
  15983. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  15984. /**
  15985. * The base implementation of `setToString` without support for hot loop shorting.
  15986. *
  15987. * @private
  15988. * @param {Function} func The function to modify.
  15989. * @param {Function} string The `toString` result.
  15990. * @returns {Function} Returns `func`.
  15991. */
  15992. var baseSetToString = !defineProperty ? identity : function(func, string) {
  15993. return defineProperty(func, 'toString', {
  15994. 'configurable': true,
  15995. 'enumerable': false,
  15996. 'value': constant(string),
  15997. 'writable': true
  15998. });
  15999. };
  16000. module.exports = baseSetToString;
  16001. /***/ }),
  16002. /***/ "../../node_modules/lodash/_baseSortBy.js":
  16003. /*!**************************************************************!*\
  16004. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSortBy.js ***!
  16005. \**************************************************************/
  16006. /*! no static exports found */
  16007. /***/ (function(module, exports) {
  16008. /**
  16009. * The base implementation of `_.sortBy` which uses `comparer` to define the
  16010. * sort order of `array` and replaces criteria objects with their corresponding
  16011. * values.
  16012. *
  16013. * @private
  16014. * @param {Array} array The array to sort.
  16015. * @param {Function} comparer The function to define sort order.
  16016. * @returns {Array} Returns `array`.
  16017. */
  16018. function baseSortBy(array, comparer) {
  16019. var length = array.length;
  16020. array.sort(comparer);
  16021. while (length--) {
  16022. array[length] = array[length].value;
  16023. }
  16024. return array;
  16025. }
  16026. module.exports = baseSortBy;
  16027. /***/ }),
  16028. /***/ "../../node_modules/lodash/_baseTimes.js":
  16029. /*!*************************************************************!*\
  16030. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseTimes.js ***!
  16031. \*************************************************************/
  16032. /*! no static exports found */
  16033. /***/ (function(module, exports) {
  16034. /**
  16035. * The base implementation of `_.times` without support for iteratee shorthands
  16036. * or max array length checks.
  16037. *
  16038. * @private
  16039. * @param {number} n The number of times to invoke `iteratee`.
  16040. * @param {Function} iteratee The function invoked per iteration.
  16041. * @returns {Array} Returns the array of results.
  16042. */
  16043. function baseTimes(n, iteratee) {
  16044. var index = -1,
  16045. result = Array(n);
  16046. while (++index < n) {
  16047. result[index] = iteratee(index);
  16048. }
  16049. return result;
  16050. }
  16051. module.exports = baseTimes;
  16052. /***/ }),
  16053. /***/ "../../node_modules/lodash/_baseToString.js":
  16054. /*!****************************************************************!*\
  16055. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseToString.js ***!
  16056. \****************************************************************/
  16057. /*! no static exports found */
  16058. /***/ (function(module, exports, __webpack_require__) {
  16059. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  16060. arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  16061. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  16062. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  16063. /** Used as references for various `Number` constants. */
  16064. var INFINITY = 1 / 0;
  16065. /** Used to convert symbols to primitives and strings. */
  16066. var symbolProto = Symbol ? Symbol.prototype : undefined,
  16067. symbolToString = symbolProto ? symbolProto.toString : undefined;
  16068. /**
  16069. * The base implementation of `_.toString` which doesn't convert nullish
  16070. * values to empty strings.
  16071. *
  16072. * @private
  16073. * @param {*} value The value to process.
  16074. * @returns {string} Returns the string.
  16075. */
  16076. function baseToString(value) {
  16077. // Exit early for strings to avoid a performance hit in some environments.
  16078. if (typeof value == 'string') {
  16079. return value;
  16080. }
  16081. if (isArray(value)) {
  16082. // Recursively convert values (susceptible to call stack limits).
  16083. return arrayMap(value, baseToString) + '';
  16084. }
  16085. if (isSymbol(value)) {
  16086. return symbolToString ? symbolToString.call(value) : '';
  16087. }
  16088. var result = (value + '');
  16089. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  16090. }
  16091. module.exports = baseToString;
  16092. /***/ }),
  16093. /***/ "../../node_modules/lodash/_baseUnary.js":
  16094. /*!*************************************************************!*\
  16095. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUnary.js ***!
  16096. \*************************************************************/
  16097. /*! no static exports found */
  16098. /***/ (function(module, exports) {
  16099. /**
  16100. * The base implementation of `_.unary` without support for storing metadata.
  16101. *
  16102. * @private
  16103. * @param {Function} func The function to cap arguments for.
  16104. * @returns {Function} Returns the new capped function.
  16105. */
  16106. function baseUnary(func) {
  16107. return function(value) {
  16108. return func(value);
  16109. };
  16110. }
  16111. module.exports = baseUnary;
  16112. /***/ }),
  16113. /***/ "../../node_modules/lodash/_baseUniq.js":
  16114. /*!************************************************************!*\
  16115. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUniq.js ***!
  16116. \************************************************************/
  16117. /*! no static exports found */
  16118. /***/ (function(module, exports, __webpack_require__) {
  16119. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  16120. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../node_modules/lodash/_arrayIncludes.js"),
  16121. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../node_modules/lodash/_arrayIncludesWith.js"),
  16122. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js"),
  16123. createSet = __webpack_require__(/*! ./_createSet */ "../../node_modules/lodash/_createSet.js"),
  16124. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  16125. /** Used as the size to enable large array optimizations. */
  16126. var LARGE_ARRAY_SIZE = 200;
  16127. /**
  16128. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  16129. *
  16130. * @private
  16131. * @param {Array} array The array to inspect.
  16132. * @param {Function} [iteratee] The iteratee invoked per element.
  16133. * @param {Function} [comparator] The comparator invoked per element.
  16134. * @returns {Array} Returns the new duplicate free array.
  16135. */
  16136. function baseUniq(array, iteratee, comparator) {
  16137. var index = -1,
  16138. includes = arrayIncludes,
  16139. length = array.length,
  16140. isCommon = true,
  16141. result = [],
  16142. seen = result;
  16143. if (comparator) {
  16144. isCommon = false;
  16145. includes = arrayIncludesWith;
  16146. }
  16147. else if (length >= LARGE_ARRAY_SIZE) {
  16148. var set = iteratee ? null : createSet(array);
  16149. if (set) {
  16150. return setToArray(set);
  16151. }
  16152. isCommon = false;
  16153. includes = cacheHas;
  16154. seen = new SetCache;
  16155. }
  16156. else {
  16157. seen = iteratee ? [] : result;
  16158. }
  16159. outer:
  16160. while (++index < length) {
  16161. var value = array[index],
  16162. computed = iteratee ? iteratee(value) : value;
  16163. value = (comparator || value !== 0) ? value : 0;
  16164. if (isCommon && computed === computed) {
  16165. var seenIndex = seen.length;
  16166. while (seenIndex--) {
  16167. if (seen[seenIndex] === computed) {
  16168. continue outer;
  16169. }
  16170. }
  16171. if (iteratee) {
  16172. seen.push(computed);
  16173. }
  16174. result.push(value);
  16175. }
  16176. else if (!includes(seen, computed, comparator)) {
  16177. if (seen !== result) {
  16178. seen.push(computed);
  16179. }
  16180. result.push(value);
  16181. }
  16182. }
  16183. return result;
  16184. }
  16185. module.exports = baseUniq;
  16186. /***/ }),
  16187. /***/ "../../node_modules/lodash/_baseValues.js":
  16188. /*!**************************************************************!*\
  16189. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseValues.js ***!
  16190. \**************************************************************/
  16191. /*! no static exports found */
  16192. /***/ (function(module, exports, __webpack_require__) {
  16193. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js");
  16194. /**
  16195. * The base implementation of `_.values` and `_.valuesIn` which creates an
  16196. * array of `object` property values corresponding to the property names
  16197. * of `props`.
  16198. *
  16199. * @private
  16200. * @param {Object} object The object to query.
  16201. * @param {Array} props The property names to get values for.
  16202. * @returns {Object} Returns the array of property values.
  16203. */
  16204. function baseValues(object, props) {
  16205. return arrayMap(props, function(key) {
  16206. return object[key];
  16207. });
  16208. }
  16209. module.exports = baseValues;
  16210. /***/ }),
  16211. /***/ "../../node_modules/lodash/_baseZipObject.js":
  16212. /*!*****************************************************************!*\
  16213. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseZipObject.js ***!
  16214. \*****************************************************************/
  16215. /*! no static exports found */
  16216. /***/ (function(module, exports) {
  16217. /**
  16218. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  16219. *
  16220. * @private
  16221. * @param {Array} props The property identifiers.
  16222. * @param {Array} values The property values.
  16223. * @param {Function} assignFunc The function to assign values.
  16224. * @returns {Object} Returns the new object.
  16225. */
  16226. function baseZipObject(props, values, assignFunc) {
  16227. var index = -1,
  16228. length = props.length,
  16229. valsLength = values.length,
  16230. result = {};
  16231. while (++index < length) {
  16232. var value = index < valsLength ? values[index] : undefined;
  16233. assignFunc(result, props[index], value);
  16234. }
  16235. return result;
  16236. }
  16237. module.exports = baseZipObject;
  16238. /***/ }),
  16239. /***/ "../../node_modules/lodash/_cacheHas.js":
  16240. /*!************************************************************!*\
  16241. !*** C:/Repos/Babylon.js/node_modules/lodash/_cacheHas.js ***!
  16242. \************************************************************/
  16243. /*! no static exports found */
  16244. /***/ (function(module, exports) {
  16245. /**
  16246. * Checks if a `cache` value for `key` exists.
  16247. *
  16248. * @private
  16249. * @param {Object} cache The cache to query.
  16250. * @param {string} key The key of the entry to check.
  16251. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  16252. */
  16253. function cacheHas(cache, key) {
  16254. return cache.has(key);
  16255. }
  16256. module.exports = cacheHas;
  16257. /***/ }),
  16258. /***/ "../../node_modules/lodash/_castFunction.js":
  16259. /*!****************************************************************!*\
  16260. !*** C:/Repos/Babylon.js/node_modules/lodash/_castFunction.js ***!
  16261. \****************************************************************/
  16262. /*! no static exports found */
  16263. /***/ (function(module, exports, __webpack_require__) {
  16264. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  16265. /**
  16266. * Casts `value` to `identity` if it's not a function.
  16267. *
  16268. * @private
  16269. * @param {*} value The value to inspect.
  16270. * @returns {Function} Returns cast function.
  16271. */
  16272. function castFunction(value) {
  16273. return typeof value == 'function' ? value : identity;
  16274. }
  16275. module.exports = castFunction;
  16276. /***/ }),
  16277. /***/ "../../node_modules/lodash/_castPath.js":
  16278. /*!************************************************************!*\
  16279. !*** C:/Repos/Babylon.js/node_modules/lodash/_castPath.js ***!
  16280. \************************************************************/
  16281. /*! no static exports found */
  16282. /***/ (function(module, exports, __webpack_require__) {
  16283. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  16284. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  16285. stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
  16286. toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  16287. /**
  16288. * Casts `value` to a path array if it's not one.
  16289. *
  16290. * @private
  16291. * @param {*} value The value to inspect.
  16292. * @param {Object} [object] The object to query keys on.
  16293. * @returns {Array} Returns the cast property path array.
  16294. */
  16295. function castPath(value, object) {
  16296. if (isArray(value)) {
  16297. return value;
  16298. }
  16299. return isKey(value, object) ? [value] : stringToPath(toString(value));
  16300. }
  16301. module.exports = castPath;
  16302. /***/ }),
  16303. /***/ "../../node_modules/lodash/_cloneArrayBuffer.js":
  16304. /*!********************************************************************!*\
  16305. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneArrayBuffer.js ***!
  16306. \********************************************************************/
  16307. /*! no static exports found */
  16308. /***/ (function(module, exports, __webpack_require__) {
  16309. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js");
  16310. /**
  16311. * Creates a clone of `arrayBuffer`.
  16312. *
  16313. * @private
  16314. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  16315. * @returns {ArrayBuffer} Returns the cloned array buffer.
  16316. */
  16317. function cloneArrayBuffer(arrayBuffer) {
  16318. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  16319. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  16320. return result;
  16321. }
  16322. module.exports = cloneArrayBuffer;
  16323. /***/ }),
  16324. /***/ "../../node_modules/lodash/_cloneBuffer.js":
  16325. /*!***************************************************************!*\
  16326. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneBuffer.js ***!
  16327. \***************************************************************/
  16328. /*! no static exports found */
  16329. /***/ (function(module, exports, __webpack_require__) {
  16330. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  16331. /** Detect free variable `exports`. */
  16332. var freeExports = true && exports && !exports.nodeType && exports;
  16333. /** Detect free variable `module`. */
  16334. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  16335. /** Detect the popular CommonJS extension `module.exports`. */
  16336. var moduleExports = freeModule && freeModule.exports === freeExports;
  16337. /** Built-in value references. */
  16338. var Buffer = moduleExports ? root.Buffer : undefined,
  16339. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  16340. /**
  16341. * Creates a clone of `buffer`.
  16342. *
  16343. * @private
  16344. * @param {Buffer} buffer The buffer to clone.
  16345. * @param {boolean} [isDeep] Specify a deep clone.
  16346. * @returns {Buffer} Returns the cloned buffer.
  16347. */
  16348. function cloneBuffer(buffer, isDeep) {
  16349. if (isDeep) {
  16350. return buffer.slice();
  16351. }
  16352. var length = buffer.length,
  16353. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  16354. buffer.copy(result);
  16355. return result;
  16356. }
  16357. module.exports = cloneBuffer;
  16358. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  16359. /***/ }),
  16360. /***/ "../../node_modules/lodash/_cloneDataView.js":
  16361. /*!*****************************************************************!*\
  16362. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneDataView.js ***!
  16363. \*****************************************************************/
  16364. /*! no static exports found */
  16365. /***/ (function(module, exports, __webpack_require__) {
  16366. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  16367. /**
  16368. * Creates a clone of `dataView`.
  16369. *
  16370. * @private
  16371. * @param {Object} dataView The data view to clone.
  16372. * @param {boolean} [isDeep] Specify a deep clone.
  16373. * @returns {Object} Returns the cloned data view.
  16374. */
  16375. function cloneDataView(dataView, isDeep) {
  16376. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  16377. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  16378. }
  16379. module.exports = cloneDataView;
  16380. /***/ }),
  16381. /***/ "../../node_modules/lodash/_cloneRegExp.js":
  16382. /*!***************************************************************!*\
  16383. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneRegExp.js ***!
  16384. \***************************************************************/
  16385. /*! no static exports found */
  16386. /***/ (function(module, exports) {
  16387. /** Used to match `RegExp` flags from their coerced string values. */
  16388. var reFlags = /\w*$/;
  16389. /**
  16390. * Creates a clone of `regexp`.
  16391. *
  16392. * @private
  16393. * @param {Object} regexp The regexp to clone.
  16394. * @returns {Object} Returns the cloned regexp.
  16395. */
  16396. function cloneRegExp(regexp) {
  16397. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  16398. result.lastIndex = regexp.lastIndex;
  16399. return result;
  16400. }
  16401. module.exports = cloneRegExp;
  16402. /***/ }),
  16403. /***/ "../../node_modules/lodash/_cloneSymbol.js":
  16404. /*!***************************************************************!*\
  16405. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneSymbol.js ***!
  16406. \***************************************************************/
  16407. /*! no static exports found */
  16408. /***/ (function(module, exports, __webpack_require__) {
  16409. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  16410. /** Used to convert symbols to primitives and strings. */
  16411. var symbolProto = Symbol ? Symbol.prototype : undefined,
  16412. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  16413. /**
  16414. * Creates a clone of the `symbol` object.
  16415. *
  16416. * @private
  16417. * @param {Object} symbol The symbol object to clone.
  16418. * @returns {Object} Returns the cloned symbol object.
  16419. */
  16420. function cloneSymbol(symbol) {
  16421. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  16422. }
  16423. module.exports = cloneSymbol;
  16424. /***/ }),
  16425. /***/ "../../node_modules/lodash/_cloneTypedArray.js":
  16426. /*!*******************************************************************!*\
  16427. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneTypedArray.js ***!
  16428. \*******************************************************************/
  16429. /*! no static exports found */
  16430. /***/ (function(module, exports, __webpack_require__) {
  16431. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  16432. /**
  16433. * Creates a clone of `typedArray`.
  16434. *
  16435. * @private
  16436. * @param {Object} typedArray The typed array to clone.
  16437. * @param {boolean} [isDeep] Specify a deep clone.
  16438. * @returns {Object} Returns the cloned typed array.
  16439. */
  16440. function cloneTypedArray(typedArray, isDeep) {
  16441. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  16442. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  16443. }
  16444. module.exports = cloneTypedArray;
  16445. /***/ }),
  16446. /***/ "../../node_modules/lodash/_compareAscending.js":
  16447. /*!********************************************************************!*\
  16448. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareAscending.js ***!
  16449. \********************************************************************/
  16450. /*! no static exports found */
  16451. /***/ (function(module, exports, __webpack_require__) {
  16452. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  16453. /**
  16454. * Compares values to sort them in ascending order.
  16455. *
  16456. * @private
  16457. * @param {*} value The value to compare.
  16458. * @param {*} other The other value to compare.
  16459. * @returns {number} Returns the sort order indicator for `value`.
  16460. */
  16461. function compareAscending(value, other) {
  16462. if (value !== other) {
  16463. var valIsDefined = value !== undefined,
  16464. valIsNull = value === null,
  16465. valIsReflexive = value === value,
  16466. valIsSymbol = isSymbol(value);
  16467. var othIsDefined = other !== undefined,
  16468. othIsNull = other === null,
  16469. othIsReflexive = other === other,
  16470. othIsSymbol = isSymbol(other);
  16471. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  16472. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  16473. (valIsNull && othIsDefined && othIsReflexive) ||
  16474. (!valIsDefined && othIsReflexive) ||
  16475. !valIsReflexive) {
  16476. return 1;
  16477. }
  16478. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  16479. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  16480. (othIsNull && valIsDefined && valIsReflexive) ||
  16481. (!othIsDefined && valIsReflexive) ||
  16482. !othIsReflexive) {
  16483. return -1;
  16484. }
  16485. }
  16486. return 0;
  16487. }
  16488. module.exports = compareAscending;
  16489. /***/ }),
  16490. /***/ "../../node_modules/lodash/_compareMultiple.js":
  16491. /*!*******************************************************************!*\
  16492. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareMultiple.js ***!
  16493. \*******************************************************************/
  16494. /*! no static exports found */
  16495. /***/ (function(module, exports, __webpack_require__) {
  16496. var compareAscending = __webpack_require__(/*! ./_compareAscending */ "../../node_modules/lodash/_compareAscending.js");
  16497. /**
  16498. * Used by `_.orderBy` to compare multiple properties of a value to another
  16499. * and stable sort them.
  16500. *
  16501. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  16502. * specify an order of "desc" for descending or "asc" for ascending sort order
  16503. * of corresponding values.
  16504. *
  16505. * @private
  16506. * @param {Object} object The object to compare.
  16507. * @param {Object} other The other object to compare.
  16508. * @param {boolean[]|string[]} orders The order to sort by for each property.
  16509. * @returns {number} Returns the sort order indicator for `object`.
  16510. */
  16511. function compareMultiple(object, other, orders) {
  16512. var index = -1,
  16513. objCriteria = object.criteria,
  16514. othCriteria = other.criteria,
  16515. length = objCriteria.length,
  16516. ordersLength = orders.length;
  16517. while (++index < length) {
  16518. var result = compareAscending(objCriteria[index], othCriteria[index]);
  16519. if (result) {
  16520. if (index >= ordersLength) {
  16521. return result;
  16522. }
  16523. var order = orders[index];
  16524. return result * (order == 'desc' ? -1 : 1);
  16525. }
  16526. }
  16527. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  16528. // that causes it, under certain circumstances, to provide the same value for
  16529. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  16530. // for more details.
  16531. //
  16532. // This also ensures a stable sort in V8 and other engines.
  16533. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  16534. return object.index - other.index;
  16535. }
  16536. module.exports = compareMultiple;
  16537. /***/ }),
  16538. /***/ "../../node_modules/lodash/_copyArray.js":
  16539. /*!*************************************************************!*\
  16540. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyArray.js ***!
  16541. \*************************************************************/
  16542. /*! no static exports found */
  16543. /***/ (function(module, exports) {
  16544. /**
  16545. * Copies the values of `source` to `array`.
  16546. *
  16547. * @private
  16548. * @param {Array} source The array to copy values from.
  16549. * @param {Array} [array=[]] The array to copy values to.
  16550. * @returns {Array} Returns `array`.
  16551. */
  16552. function copyArray(source, array) {
  16553. var index = -1,
  16554. length = source.length;
  16555. array || (array = Array(length));
  16556. while (++index < length) {
  16557. array[index] = source[index];
  16558. }
  16559. return array;
  16560. }
  16561. module.exports = copyArray;
  16562. /***/ }),
  16563. /***/ "../../node_modules/lodash/_copyObject.js":
  16564. /*!**************************************************************!*\
  16565. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyObject.js ***!
  16566. \**************************************************************/
  16567. /*! no static exports found */
  16568. /***/ (function(module, exports, __webpack_require__) {
  16569. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  16570. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js");
  16571. /**
  16572. * Copies properties of `source` to `object`.
  16573. *
  16574. * @private
  16575. * @param {Object} source The object to copy properties from.
  16576. * @param {Array} props The property identifiers to copy.
  16577. * @param {Object} [object={}] The object to copy properties to.
  16578. * @param {Function} [customizer] The function to customize copied values.
  16579. * @returns {Object} Returns `object`.
  16580. */
  16581. function copyObject(source, props, object, customizer) {
  16582. var isNew = !object;
  16583. object || (object = {});
  16584. var index = -1,
  16585. length = props.length;
  16586. while (++index < length) {
  16587. var key = props[index];
  16588. var newValue = customizer
  16589. ? customizer(object[key], source[key], key, object, source)
  16590. : undefined;
  16591. if (newValue === undefined) {
  16592. newValue = source[key];
  16593. }
  16594. if (isNew) {
  16595. baseAssignValue(object, key, newValue);
  16596. } else {
  16597. assignValue(object, key, newValue);
  16598. }
  16599. }
  16600. return object;
  16601. }
  16602. module.exports = copyObject;
  16603. /***/ }),
  16604. /***/ "../../node_modules/lodash/_copySymbols.js":
  16605. /*!***************************************************************!*\
  16606. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbols.js ***!
  16607. \***************************************************************/
  16608. /*! no static exports found */
  16609. /***/ (function(module, exports, __webpack_require__) {
  16610. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  16611. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js");
  16612. /**
  16613. * Copies own symbols of `source` to `object`.
  16614. *
  16615. * @private
  16616. * @param {Object} source The object to copy symbols from.
  16617. * @param {Object} [object={}] The object to copy symbols to.
  16618. * @returns {Object} Returns `object`.
  16619. */
  16620. function copySymbols(source, object) {
  16621. return copyObject(source, getSymbols(source), object);
  16622. }
  16623. module.exports = copySymbols;
  16624. /***/ }),
  16625. /***/ "../../node_modules/lodash/_copySymbolsIn.js":
  16626. /*!*****************************************************************!*\
  16627. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbolsIn.js ***!
  16628. \*****************************************************************/
  16629. /*! no static exports found */
  16630. /***/ (function(module, exports, __webpack_require__) {
  16631. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  16632. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js");
  16633. /**
  16634. * Copies own and inherited symbols of `source` to `object`.
  16635. *
  16636. * @private
  16637. * @param {Object} source The object to copy symbols from.
  16638. * @param {Object} [object={}] The object to copy symbols to.
  16639. * @returns {Object} Returns `object`.
  16640. */
  16641. function copySymbolsIn(source, object) {
  16642. return copyObject(source, getSymbolsIn(source), object);
  16643. }
  16644. module.exports = copySymbolsIn;
  16645. /***/ }),
  16646. /***/ "../../node_modules/lodash/_coreJsData.js":
  16647. /*!**************************************************************!*\
  16648. !*** C:/Repos/Babylon.js/node_modules/lodash/_coreJsData.js ***!
  16649. \**************************************************************/
  16650. /*! no static exports found */
  16651. /***/ (function(module, exports, __webpack_require__) {
  16652. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  16653. /** Used to detect overreaching core-js shims. */
  16654. var coreJsData = root['__core-js_shared__'];
  16655. module.exports = coreJsData;
  16656. /***/ }),
  16657. /***/ "../../node_modules/lodash/_createAssigner.js":
  16658. /*!******************************************************************!*\
  16659. !*** C:/Repos/Babylon.js/node_modules/lodash/_createAssigner.js ***!
  16660. \******************************************************************/
  16661. /*! no static exports found */
  16662. /***/ (function(module, exports, __webpack_require__) {
  16663. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  16664. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  16665. /**
  16666. * Creates a function like `_.assign`.
  16667. *
  16668. * @private
  16669. * @param {Function} assigner The function to assign values.
  16670. * @returns {Function} Returns the new assigner function.
  16671. */
  16672. function createAssigner(assigner) {
  16673. return baseRest(function(object, sources) {
  16674. var index = -1,
  16675. length = sources.length,
  16676. customizer = length > 1 ? sources[length - 1] : undefined,
  16677. guard = length > 2 ? sources[2] : undefined;
  16678. customizer = (assigner.length > 3 && typeof customizer == 'function')
  16679. ? (length--, customizer)
  16680. : undefined;
  16681. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  16682. customizer = length < 3 ? undefined : customizer;
  16683. length = 1;
  16684. }
  16685. object = Object(object);
  16686. while (++index < length) {
  16687. var source = sources[index];
  16688. if (source) {
  16689. assigner(object, source, index, customizer);
  16690. }
  16691. }
  16692. return object;
  16693. });
  16694. }
  16695. module.exports = createAssigner;
  16696. /***/ }),
  16697. /***/ "../../node_modules/lodash/_createBaseEach.js":
  16698. /*!******************************************************************!*\
  16699. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseEach.js ***!
  16700. \******************************************************************/
  16701. /*! no static exports found */
  16702. /***/ (function(module, exports, __webpack_require__) {
  16703. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  16704. /**
  16705. * Creates a `baseEach` or `baseEachRight` function.
  16706. *
  16707. * @private
  16708. * @param {Function} eachFunc The function to iterate over a collection.
  16709. * @param {boolean} [fromRight] Specify iterating from right to left.
  16710. * @returns {Function} Returns the new base function.
  16711. */
  16712. function createBaseEach(eachFunc, fromRight) {
  16713. return function(collection, iteratee) {
  16714. if (collection == null) {
  16715. return collection;
  16716. }
  16717. if (!isArrayLike(collection)) {
  16718. return eachFunc(collection, iteratee);
  16719. }
  16720. var length = collection.length,
  16721. index = fromRight ? length : -1,
  16722. iterable = Object(collection);
  16723. while ((fromRight ? index-- : ++index < length)) {
  16724. if (iteratee(iterable[index], index, iterable) === false) {
  16725. break;
  16726. }
  16727. }
  16728. return collection;
  16729. };
  16730. }
  16731. module.exports = createBaseEach;
  16732. /***/ }),
  16733. /***/ "../../node_modules/lodash/_createBaseFor.js":
  16734. /*!*****************************************************************!*\
  16735. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseFor.js ***!
  16736. \*****************************************************************/
  16737. /*! no static exports found */
  16738. /***/ (function(module, exports) {
  16739. /**
  16740. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  16741. *
  16742. * @private
  16743. * @param {boolean} [fromRight] Specify iterating from right to left.
  16744. * @returns {Function} Returns the new base function.
  16745. */
  16746. function createBaseFor(fromRight) {
  16747. return function(object, iteratee, keysFunc) {
  16748. var index = -1,
  16749. iterable = Object(object),
  16750. props = keysFunc(object),
  16751. length = props.length;
  16752. while (length--) {
  16753. var key = props[fromRight ? length : ++index];
  16754. if (iteratee(iterable[key], key, iterable) === false) {
  16755. break;
  16756. }
  16757. }
  16758. return object;
  16759. };
  16760. }
  16761. module.exports = createBaseFor;
  16762. /***/ }),
  16763. /***/ "../../node_modules/lodash/_createFind.js":
  16764. /*!**************************************************************!*\
  16765. !*** C:/Repos/Babylon.js/node_modules/lodash/_createFind.js ***!
  16766. \**************************************************************/
  16767. /*! no static exports found */
  16768. /***/ (function(module, exports, __webpack_require__) {
  16769. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  16770. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  16771. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  16772. /**
  16773. * Creates a `_.find` or `_.findLast` function.
  16774. *
  16775. * @private
  16776. * @param {Function} findIndexFunc The function to find the collection index.
  16777. * @returns {Function} Returns the new find function.
  16778. */
  16779. function createFind(findIndexFunc) {
  16780. return function(collection, predicate, fromIndex) {
  16781. var iterable = Object(collection);
  16782. if (!isArrayLike(collection)) {
  16783. var iteratee = baseIteratee(predicate, 3);
  16784. collection = keys(collection);
  16785. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  16786. }
  16787. var index = findIndexFunc(collection, predicate, fromIndex);
  16788. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  16789. };
  16790. }
  16791. module.exports = createFind;
  16792. /***/ }),
  16793. /***/ "../../node_modules/lodash/_createRange.js":
  16794. /*!***************************************************************!*\
  16795. !*** C:/Repos/Babylon.js/node_modules/lodash/_createRange.js ***!
  16796. \***************************************************************/
  16797. /*! no static exports found */
  16798. /***/ (function(module, exports, __webpack_require__) {
  16799. var baseRange = __webpack_require__(/*! ./_baseRange */ "../../node_modules/lodash/_baseRange.js"),
  16800. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  16801. toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  16802. /**
  16803. * Creates a `_.range` or `_.rangeRight` function.
  16804. *
  16805. * @private
  16806. * @param {boolean} [fromRight] Specify iterating from right to left.
  16807. * @returns {Function} Returns the new range function.
  16808. */
  16809. function createRange(fromRight) {
  16810. return function(start, end, step) {
  16811. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  16812. end = step = undefined;
  16813. }
  16814. // Ensure the sign of `-0` is preserved.
  16815. start = toFinite(start);
  16816. if (end === undefined) {
  16817. end = start;
  16818. start = 0;
  16819. } else {
  16820. end = toFinite(end);
  16821. }
  16822. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  16823. return baseRange(start, end, step, fromRight);
  16824. };
  16825. }
  16826. module.exports = createRange;
  16827. /***/ }),
  16828. /***/ "../../node_modules/lodash/_createSet.js":
  16829. /*!*************************************************************!*\
  16830. !*** C:/Repos/Babylon.js/node_modules/lodash/_createSet.js ***!
  16831. \*************************************************************/
  16832. /*! no static exports found */
  16833. /***/ (function(module, exports, __webpack_require__) {
  16834. var Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  16835. noop = __webpack_require__(/*! ./noop */ "../../node_modules/lodash/noop.js"),
  16836. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  16837. /** Used as references for various `Number` constants. */
  16838. var INFINITY = 1 / 0;
  16839. /**
  16840. * Creates a set object of `values`.
  16841. *
  16842. * @private
  16843. * @param {Array} values The values to add to the set.
  16844. * @returns {Object} Returns the new set.
  16845. */
  16846. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  16847. return new Set(values);
  16848. };
  16849. module.exports = createSet;
  16850. /***/ }),
  16851. /***/ "../../node_modules/lodash/_defineProperty.js":
  16852. /*!******************************************************************!*\
  16853. !*** C:/Repos/Babylon.js/node_modules/lodash/_defineProperty.js ***!
  16854. \******************************************************************/
  16855. /*! no static exports found */
  16856. /***/ (function(module, exports, __webpack_require__) {
  16857. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  16858. var defineProperty = (function() {
  16859. try {
  16860. var func = getNative(Object, 'defineProperty');
  16861. func({}, '', {});
  16862. return func;
  16863. } catch (e) {}
  16864. }());
  16865. module.exports = defineProperty;
  16866. /***/ }),
  16867. /***/ "../../node_modules/lodash/_equalArrays.js":
  16868. /*!***************************************************************!*\
  16869. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalArrays.js ***!
  16870. \***************************************************************/
  16871. /*! no static exports found */
  16872. /***/ (function(module, exports, __webpack_require__) {
  16873. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  16874. arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
  16875. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
  16876. /** Used to compose bitmasks for value comparisons. */
  16877. var COMPARE_PARTIAL_FLAG = 1,
  16878. COMPARE_UNORDERED_FLAG = 2;
  16879. /**
  16880. * A specialized version of `baseIsEqualDeep` for arrays with support for
  16881. * partial deep comparisons.
  16882. *
  16883. * @private
  16884. * @param {Array} array The array to compare.
  16885. * @param {Array} other The other array to compare.
  16886. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  16887. * @param {Function} customizer The function to customize comparisons.
  16888. * @param {Function} equalFunc The function to determine equivalents of values.
  16889. * @param {Object} stack Tracks traversed `array` and `other` objects.
  16890. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  16891. */
  16892. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  16893. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  16894. arrLength = array.length,
  16895. othLength = other.length;
  16896. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  16897. return false;
  16898. }
  16899. // Check that cyclic values are equal.
  16900. var arrStacked = stack.get(array);
  16901. var othStacked = stack.get(other);
  16902. if (arrStacked && othStacked) {
  16903. return arrStacked == other && othStacked == array;
  16904. }
  16905. var index = -1,
  16906. result = true,
  16907. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  16908. stack.set(array, other);
  16909. stack.set(other, array);
  16910. // Ignore non-index properties.
  16911. while (++index < arrLength) {
  16912. var arrValue = array[index],
  16913. othValue = other[index];
  16914. if (customizer) {
  16915. var compared = isPartial
  16916. ? customizer(othValue, arrValue, index, other, array, stack)
  16917. : customizer(arrValue, othValue, index, array, other, stack);
  16918. }
  16919. if (compared !== undefined) {
  16920. if (compared) {
  16921. continue;
  16922. }
  16923. result = false;
  16924. break;
  16925. }
  16926. // Recursively compare arrays (susceptible to call stack limits).
  16927. if (seen) {
  16928. if (!arraySome(other, function(othValue, othIndex) {
  16929. if (!cacheHas(seen, othIndex) &&
  16930. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  16931. return seen.push(othIndex);
  16932. }
  16933. })) {
  16934. result = false;
  16935. break;
  16936. }
  16937. } else if (!(
  16938. arrValue === othValue ||
  16939. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  16940. )) {
  16941. result = false;
  16942. break;
  16943. }
  16944. }
  16945. stack['delete'](array);
  16946. stack['delete'](other);
  16947. return result;
  16948. }
  16949. module.exports = equalArrays;
  16950. /***/ }),
  16951. /***/ "../../node_modules/lodash/_equalByTag.js":
  16952. /*!**************************************************************!*\
  16953. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalByTag.js ***!
  16954. \**************************************************************/
  16955. /*! no static exports found */
  16956. /***/ (function(module, exports, __webpack_require__) {
  16957. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  16958. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
  16959. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  16960. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  16961. mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
  16962. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  16963. /** Used to compose bitmasks for value comparisons. */
  16964. var COMPARE_PARTIAL_FLAG = 1,
  16965. COMPARE_UNORDERED_FLAG = 2;
  16966. /** `Object#toString` result references. */
  16967. var boolTag = '[object Boolean]',
  16968. dateTag = '[object Date]',
  16969. errorTag = '[object Error]',
  16970. mapTag = '[object Map]',
  16971. numberTag = '[object Number]',
  16972. regexpTag = '[object RegExp]',
  16973. setTag = '[object Set]',
  16974. stringTag = '[object String]',
  16975. symbolTag = '[object Symbol]';
  16976. var arrayBufferTag = '[object ArrayBuffer]',
  16977. dataViewTag = '[object DataView]';
  16978. /** Used to convert symbols to primitives and strings. */
  16979. var symbolProto = Symbol ? Symbol.prototype : undefined,
  16980. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  16981. /**
  16982. * A specialized version of `baseIsEqualDeep` for comparing objects of
  16983. * the same `toStringTag`.
  16984. *
  16985. * **Note:** This function only supports comparing values with tags of
  16986. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  16987. *
  16988. * @private
  16989. * @param {Object} object The object to compare.
  16990. * @param {Object} other The other object to compare.
  16991. * @param {string} tag The `toStringTag` of the objects to compare.
  16992. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  16993. * @param {Function} customizer The function to customize comparisons.
  16994. * @param {Function} equalFunc The function to determine equivalents of values.
  16995. * @param {Object} stack Tracks traversed `object` and `other` objects.
  16996. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  16997. */
  16998. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  16999. switch (tag) {
  17000. case dataViewTag:
  17001. if ((object.byteLength != other.byteLength) ||
  17002. (object.byteOffset != other.byteOffset)) {
  17003. return false;
  17004. }
  17005. object = object.buffer;
  17006. other = other.buffer;
  17007. case arrayBufferTag:
  17008. if ((object.byteLength != other.byteLength) ||
  17009. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  17010. return false;
  17011. }
  17012. return true;
  17013. case boolTag:
  17014. case dateTag:
  17015. case numberTag:
  17016. // Coerce booleans to `1` or `0` and dates to milliseconds.
  17017. // Invalid dates are coerced to `NaN`.
  17018. return eq(+object, +other);
  17019. case errorTag:
  17020. return object.name == other.name && object.message == other.message;
  17021. case regexpTag:
  17022. case stringTag:
  17023. // Coerce regexes to strings and treat strings, primitives and objects,
  17024. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  17025. // for more details.
  17026. return object == (other + '');
  17027. case mapTag:
  17028. var convert = mapToArray;
  17029. case setTag:
  17030. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  17031. convert || (convert = setToArray);
  17032. if (object.size != other.size && !isPartial) {
  17033. return false;
  17034. }
  17035. // Assume cyclic values are equal.
  17036. var stacked = stack.get(object);
  17037. if (stacked) {
  17038. return stacked == other;
  17039. }
  17040. bitmask |= COMPARE_UNORDERED_FLAG;
  17041. // Recursively compare objects (susceptible to call stack limits).
  17042. stack.set(object, other);
  17043. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  17044. stack['delete'](object);
  17045. return result;
  17046. case symbolTag:
  17047. if (symbolValueOf) {
  17048. return symbolValueOf.call(object) == symbolValueOf.call(other);
  17049. }
  17050. }
  17051. return false;
  17052. }
  17053. module.exports = equalByTag;
  17054. /***/ }),
  17055. /***/ "../../node_modules/lodash/_equalObjects.js":
  17056. /*!****************************************************************!*\
  17057. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalObjects.js ***!
  17058. \****************************************************************/
  17059. /*! no static exports found */
  17060. /***/ (function(module, exports, __webpack_require__) {
  17061. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
  17062. /** Used to compose bitmasks for value comparisons. */
  17063. var COMPARE_PARTIAL_FLAG = 1;
  17064. /** Used for built-in method references. */
  17065. var objectProto = Object.prototype;
  17066. /** Used to check objects for own properties. */
  17067. var hasOwnProperty = objectProto.hasOwnProperty;
  17068. /**
  17069. * A specialized version of `baseIsEqualDeep` for objects with support for
  17070. * partial deep comparisons.
  17071. *
  17072. * @private
  17073. * @param {Object} object The object to compare.
  17074. * @param {Object} other The other object to compare.
  17075. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  17076. * @param {Function} customizer The function to customize comparisons.
  17077. * @param {Function} equalFunc The function to determine equivalents of values.
  17078. * @param {Object} stack Tracks traversed `object` and `other` objects.
  17079. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  17080. */
  17081. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  17082. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  17083. objProps = getAllKeys(object),
  17084. objLength = objProps.length,
  17085. othProps = getAllKeys(other),
  17086. othLength = othProps.length;
  17087. if (objLength != othLength && !isPartial) {
  17088. return false;
  17089. }
  17090. var index = objLength;
  17091. while (index--) {
  17092. var key = objProps[index];
  17093. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  17094. return false;
  17095. }
  17096. }
  17097. // Check that cyclic values are equal.
  17098. var objStacked = stack.get(object);
  17099. var othStacked = stack.get(other);
  17100. if (objStacked && othStacked) {
  17101. return objStacked == other && othStacked == object;
  17102. }
  17103. var result = true;
  17104. stack.set(object, other);
  17105. stack.set(other, object);
  17106. var skipCtor = isPartial;
  17107. while (++index < objLength) {
  17108. key = objProps[index];
  17109. var objValue = object[key],
  17110. othValue = other[key];
  17111. if (customizer) {
  17112. var compared = isPartial
  17113. ? customizer(othValue, objValue, key, other, object, stack)
  17114. : customizer(objValue, othValue, key, object, other, stack);
  17115. }
  17116. // Recursively compare objects (susceptible to call stack limits).
  17117. if (!(compared === undefined
  17118. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  17119. : compared
  17120. )) {
  17121. result = false;
  17122. break;
  17123. }
  17124. skipCtor || (skipCtor = key == 'constructor');
  17125. }
  17126. if (result && !skipCtor) {
  17127. var objCtor = object.constructor,
  17128. othCtor = other.constructor;
  17129. // Non `Object` object instances with different constructors are not equal.
  17130. if (objCtor != othCtor &&
  17131. ('constructor' in object && 'constructor' in other) &&
  17132. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  17133. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  17134. result = false;
  17135. }
  17136. }
  17137. stack['delete'](object);
  17138. stack['delete'](other);
  17139. return result;
  17140. }
  17141. module.exports = equalObjects;
  17142. /***/ }),
  17143. /***/ "../../node_modules/lodash/_flatRest.js":
  17144. /*!************************************************************!*\
  17145. !*** C:/Repos/Babylon.js/node_modules/lodash/_flatRest.js ***!
  17146. \************************************************************/
  17147. /*! no static exports found */
  17148. /***/ (function(module, exports, __webpack_require__) {
  17149. var flatten = __webpack_require__(/*! ./flatten */ "../../node_modules/lodash/flatten.js"),
  17150. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  17151. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  17152. /**
  17153. * A specialized version of `baseRest` which flattens the rest array.
  17154. *
  17155. * @private
  17156. * @param {Function} func The function to apply a rest parameter to.
  17157. * @returns {Function} Returns the new function.
  17158. */
  17159. function flatRest(func) {
  17160. return setToString(overRest(func, undefined, flatten), func + '');
  17161. }
  17162. module.exports = flatRest;
  17163. /***/ }),
  17164. /***/ "../../node_modules/lodash/_freeGlobal.js":
  17165. /*!**************************************************************!*\
  17166. !*** C:/Repos/Babylon.js/node_modules/lodash/_freeGlobal.js ***!
  17167. \**************************************************************/
  17168. /*! no static exports found */
  17169. /***/ (function(module, exports, __webpack_require__) {
  17170. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  17171. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  17172. module.exports = freeGlobal;
  17173. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  17174. /***/ }),
  17175. /***/ "../../node_modules/lodash/_getAllKeys.js":
  17176. /*!**************************************************************!*\
  17177. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeys.js ***!
  17178. \**************************************************************/
  17179. /*! no static exports found */
  17180. /***/ (function(module, exports, __webpack_require__) {
  17181. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  17182. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  17183. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  17184. /**
  17185. * Creates an array of own enumerable property names and symbols of `object`.
  17186. *
  17187. * @private
  17188. * @param {Object} object The object to query.
  17189. * @returns {Array} Returns the array of property names and symbols.
  17190. */
  17191. function getAllKeys(object) {
  17192. return baseGetAllKeys(object, keys, getSymbols);
  17193. }
  17194. module.exports = getAllKeys;
  17195. /***/ }),
  17196. /***/ "../../node_modules/lodash/_getAllKeysIn.js":
  17197. /*!****************************************************************!*\
  17198. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeysIn.js ***!
  17199. \****************************************************************/
  17200. /*! no static exports found */
  17201. /***/ (function(module, exports, __webpack_require__) {
  17202. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  17203. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js"),
  17204. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  17205. /**
  17206. * Creates an array of own and inherited enumerable property names and
  17207. * symbols of `object`.
  17208. *
  17209. * @private
  17210. * @param {Object} object The object to query.
  17211. * @returns {Array} Returns the array of property names and symbols.
  17212. */
  17213. function getAllKeysIn(object) {
  17214. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  17215. }
  17216. module.exports = getAllKeysIn;
  17217. /***/ }),
  17218. /***/ "../../node_modules/lodash/_getMapData.js":
  17219. /*!**************************************************************!*\
  17220. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMapData.js ***!
  17221. \**************************************************************/
  17222. /*! no static exports found */
  17223. /***/ (function(module, exports, __webpack_require__) {
  17224. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
  17225. /**
  17226. * Gets the data for `map`.
  17227. *
  17228. * @private
  17229. * @param {Object} map The map to query.
  17230. * @param {string} key The reference key.
  17231. * @returns {*} Returns the map data.
  17232. */
  17233. function getMapData(map, key) {
  17234. var data = map.__data__;
  17235. return isKeyable(key)
  17236. ? data[typeof key == 'string' ? 'string' : 'hash']
  17237. : data.map;
  17238. }
  17239. module.exports = getMapData;
  17240. /***/ }),
  17241. /***/ "../../node_modules/lodash/_getMatchData.js":
  17242. /*!****************************************************************!*\
  17243. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMatchData.js ***!
  17244. \****************************************************************/
  17245. /*! no static exports found */
  17246. /***/ (function(module, exports, __webpack_require__) {
  17247. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  17248. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  17249. /**
  17250. * Gets the property names, values, and compare flags of `object`.
  17251. *
  17252. * @private
  17253. * @param {Object} object The object to query.
  17254. * @returns {Array} Returns the match data of `object`.
  17255. */
  17256. function getMatchData(object) {
  17257. var result = keys(object),
  17258. length = result.length;
  17259. while (length--) {
  17260. var key = result[length],
  17261. value = object[key];
  17262. result[length] = [key, value, isStrictComparable(value)];
  17263. }
  17264. return result;
  17265. }
  17266. module.exports = getMatchData;
  17267. /***/ }),
  17268. /***/ "../../node_modules/lodash/_getNative.js":
  17269. /*!*************************************************************!*\
  17270. !*** C:/Repos/Babylon.js/node_modules/lodash/_getNative.js ***!
  17271. \*************************************************************/
  17272. /*! no static exports found */
  17273. /***/ (function(module, exports, __webpack_require__) {
  17274. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
  17275. getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
  17276. /**
  17277. * Gets the native function at `key` of `object`.
  17278. *
  17279. * @private
  17280. * @param {Object} object The object to query.
  17281. * @param {string} key The key of the method to get.
  17282. * @returns {*} Returns the function if it's native, else `undefined`.
  17283. */
  17284. function getNative(object, key) {
  17285. var value = getValue(object, key);
  17286. return baseIsNative(value) ? value : undefined;
  17287. }
  17288. module.exports = getNative;
  17289. /***/ }),
  17290. /***/ "../../node_modules/lodash/_getPrototype.js":
  17291. /*!****************************************************************!*\
  17292. !*** C:/Repos/Babylon.js/node_modules/lodash/_getPrototype.js ***!
  17293. \****************************************************************/
  17294. /*! no static exports found */
  17295. /***/ (function(module, exports, __webpack_require__) {
  17296. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  17297. /** Built-in value references. */
  17298. var getPrototype = overArg(Object.getPrototypeOf, Object);
  17299. module.exports = getPrototype;
  17300. /***/ }),
  17301. /***/ "../../node_modules/lodash/_getRawTag.js":
  17302. /*!*************************************************************!*\
  17303. !*** C:/Repos/Babylon.js/node_modules/lodash/_getRawTag.js ***!
  17304. \*************************************************************/
  17305. /*! no static exports found */
  17306. /***/ (function(module, exports, __webpack_require__) {
  17307. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  17308. /** Used for built-in method references. */
  17309. var objectProto = Object.prototype;
  17310. /** Used to check objects for own properties. */
  17311. var hasOwnProperty = objectProto.hasOwnProperty;
  17312. /**
  17313. * Used to resolve the
  17314. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  17315. * of values.
  17316. */
  17317. var nativeObjectToString = objectProto.toString;
  17318. /** Built-in value references. */
  17319. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  17320. /**
  17321. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  17322. *
  17323. * @private
  17324. * @param {*} value The value to query.
  17325. * @returns {string} Returns the raw `toStringTag`.
  17326. */
  17327. function getRawTag(value) {
  17328. var isOwn = hasOwnProperty.call(value, symToStringTag),
  17329. tag = value[symToStringTag];
  17330. try {
  17331. value[symToStringTag] = undefined;
  17332. var unmasked = true;
  17333. } catch (e) {}
  17334. var result = nativeObjectToString.call(value);
  17335. if (unmasked) {
  17336. if (isOwn) {
  17337. value[symToStringTag] = tag;
  17338. } else {
  17339. delete value[symToStringTag];
  17340. }
  17341. }
  17342. return result;
  17343. }
  17344. module.exports = getRawTag;
  17345. /***/ }),
  17346. /***/ "../../node_modules/lodash/_getSymbols.js":
  17347. /*!**************************************************************!*\
  17348. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbols.js ***!
  17349. \**************************************************************/
  17350. /*! no static exports found */
  17351. /***/ (function(module, exports, __webpack_require__) {
  17352. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  17353. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  17354. /** Used for built-in method references. */
  17355. var objectProto = Object.prototype;
  17356. /** Built-in value references. */
  17357. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  17358. /* Built-in method references for those with the same name as other `lodash` methods. */
  17359. var nativeGetSymbols = Object.getOwnPropertySymbols;
  17360. /**
  17361. * Creates an array of the own enumerable symbols of `object`.
  17362. *
  17363. * @private
  17364. * @param {Object} object The object to query.
  17365. * @returns {Array} Returns the array of symbols.
  17366. */
  17367. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  17368. if (object == null) {
  17369. return [];
  17370. }
  17371. object = Object(object);
  17372. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  17373. return propertyIsEnumerable.call(object, symbol);
  17374. });
  17375. };
  17376. module.exports = getSymbols;
  17377. /***/ }),
  17378. /***/ "../../node_modules/lodash/_getSymbolsIn.js":
  17379. /*!****************************************************************!*\
  17380. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbolsIn.js ***!
  17381. \****************************************************************/
  17382. /*! no static exports found */
  17383. /***/ (function(module, exports, __webpack_require__) {
  17384. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  17385. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  17386. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  17387. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  17388. /* Built-in method references for those with the same name as other `lodash` methods. */
  17389. var nativeGetSymbols = Object.getOwnPropertySymbols;
  17390. /**
  17391. * Creates an array of the own and inherited enumerable symbols of `object`.
  17392. *
  17393. * @private
  17394. * @param {Object} object The object to query.
  17395. * @returns {Array} Returns the array of symbols.
  17396. */
  17397. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  17398. var result = [];
  17399. while (object) {
  17400. arrayPush(result, getSymbols(object));
  17401. object = getPrototype(object);
  17402. }
  17403. return result;
  17404. };
  17405. module.exports = getSymbolsIn;
  17406. /***/ }),
  17407. /***/ "../../node_modules/lodash/_getTag.js":
  17408. /*!**********************************************************!*\
  17409. !*** C:/Repos/Babylon.js/node_modules/lodash/_getTag.js ***!
  17410. \**********************************************************/
  17411. /*! no static exports found */
  17412. /***/ (function(module, exports, __webpack_require__) {
  17413. var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
  17414. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  17415. Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
  17416. Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  17417. WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
  17418. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  17419. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  17420. /** `Object#toString` result references. */
  17421. var mapTag = '[object Map]',
  17422. objectTag = '[object Object]',
  17423. promiseTag = '[object Promise]',
  17424. setTag = '[object Set]',
  17425. weakMapTag = '[object WeakMap]';
  17426. var dataViewTag = '[object DataView]';
  17427. /** Used to detect maps, sets, and weakmaps. */
  17428. var dataViewCtorString = toSource(DataView),
  17429. mapCtorString = toSource(Map),
  17430. promiseCtorString = toSource(Promise),
  17431. setCtorString = toSource(Set),
  17432. weakMapCtorString = toSource(WeakMap);
  17433. /**
  17434. * Gets the `toStringTag` of `value`.
  17435. *
  17436. * @private
  17437. * @param {*} value The value to query.
  17438. * @returns {string} Returns the `toStringTag`.
  17439. */
  17440. var getTag = baseGetTag;
  17441. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  17442. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  17443. (Map && getTag(new Map) != mapTag) ||
  17444. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  17445. (Set && getTag(new Set) != setTag) ||
  17446. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  17447. getTag = function(value) {
  17448. var result = baseGetTag(value),
  17449. Ctor = result == objectTag ? value.constructor : undefined,
  17450. ctorString = Ctor ? toSource(Ctor) : '';
  17451. if (ctorString) {
  17452. switch (ctorString) {
  17453. case dataViewCtorString: return dataViewTag;
  17454. case mapCtorString: return mapTag;
  17455. case promiseCtorString: return promiseTag;
  17456. case setCtorString: return setTag;
  17457. case weakMapCtorString: return weakMapTag;
  17458. }
  17459. }
  17460. return result;
  17461. };
  17462. }
  17463. module.exports = getTag;
  17464. /***/ }),
  17465. /***/ "../../node_modules/lodash/_getValue.js":
  17466. /*!************************************************************!*\
  17467. !*** C:/Repos/Babylon.js/node_modules/lodash/_getValue.js ***!
  17468. \************************************************************/
  17469. /*! no static exports found */
  17470. /***/ (function(module, exports) {
  17471. /**
  17472. * Gets the value at `key` of `object`.
  17473. *
  17474. * @private
  17475. * @param {Object} [object] The object to query.
  17476. * @param {string} key The key of the property to get.
  17477. * @returns {*} Returns the property value.
  17478. */
  17479. function getValue(object, key) {
  17480. return object == null ? undefined : object[key];
  17481. }
  17482. module.exports = getValue;
  17483. /***/ }),
  17484. /***/ "../../node_modules/lodash/_hasPath.js":
  17485. /*!***********************************************************!*\
  17486. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasPath.js ***!
  17487. \***********************************************************/
  17488. /*! no static exports found */
  17489. /***/ (function(module, exports, __webpack_require__) {
  17490. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  17491. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  17492. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  17493. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  17494. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  17495. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  17496. /**
  17497. * Checks if `path` exists on `object`.
  17498. *
  17499. * @private
  17500. * @param {Object} object The object to query.
  17501. * @param {Array|string} path The path to check.
  17502. * @param {Function} hasFunc The function to check properties.
  17503. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  17504. */
  17505. function hasPath(object, path, hasFunc) {
  17506. path = castPath(path, object);
  17507. var index = -1,
  17508. length = path.length,
  17509. result = false;
  17510. while (++index < length) {
  17511. var key = toKey(path[index]);
  17512. if (!(result = object != null && hasFunc(object, key))) {
  17513. break;
  17514. }
  17515. object = object[key];
  17516. }
  17517. if (result || ++index != length) {
  17518. return result;
  17519. }
  17520. length = object == null ? 0 : object.length;
  17521. return !!length && isLength(length) && isIndex(key, length) &&
  17522. (isArray(object) || isArguments(object));
  17523. }
  17524. module.exports = hasPath;
  17525. /***/ }),
  17526. /***/ "../../node_modules/lodash/_hasUnicode.js":
  17527. /*!**************************************************************!*\
  17528. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasUnicode.js ***!
  17529. \**************************************************************/
  17530. /*! no static exports found */
  17531. /***/ (function(module, exports) {
  17532. /** Used to compose unicode character classes. */
  17533. var rsAstralRange = '\\ud800-\\udfff',
  17534. rsComboMarksRange = '\\u0300-\\u036f',
  17535. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  17536. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  17537. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  17538. rsVarRange = '\\ufe0e\\ufe0f';
  17539. /** Used to compose unicode capture groups. */
  17540. var rsZWJ = '\\u200d';
  17541. /** 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/). */
  17542. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  17543. /**
  17544. * Checks if `string` contains Unicode symbols.
  17545. *
  17546. * @private
  17547. * @param {string} string The string to inspect.
  17548. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  17549. */
  17550. function hasUnicode(string) {
  17551. return reHasUnicode.test(string);
  17552. }
  17553. module.exports = hasUnicode;
  17554. /***/ }),
  17555. /***/ "../../node_modules/lodash/_hashClear.js":
  17556. /*!*************************************************************!*\
  17557. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashClear.js ***!
  17558. \*************************************************************/
  17559. /*! no static exports found */
  17560. /***/ (function(module, exports, __webpack_require__) {
  17561. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  17562. /**
  17563. * Removes all key-value entries from the hash.
  17564. *
  17565. * @private
  17566. * @name clear
  17567. * @memberOf Hash
  17568. */
  17569. function hashClear() {
  17570. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  17571. this.size = 0;
  17572. }
  17573. module.exports = hashClear;
  17574. /***/ }),
  17575. /***/ "../../node_modules/lodash/_hashDelete.js":
  17576. /*!**************************************************************!*\
  17577. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashDelete.js ***!
  17578. \**************************************************************/
  17579. /*! no static exports found */
  17580. /***/ (function(module, exports) {
  17581. /**
  17582. * Removes `key` and its value from the hash.
  17583. *
  17584. * @private
  17585. * @name delete
  17586. * @memberOf Hash
  17587. * @param {Object} hash The hash to modify.
  17588. * @param {string} key The key of the value to remove.
  17589. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17590. */
  17591. function hashDelete(key) {
  17592. var result = this.has(key) && delete this.__data__[key];
  17593. this.size -= result ? 1 : 0;
  17594. return result;
  17595. }
  17596. module.exports = hashDelete;
  17597. /***/ }),
  17598. /***/ "../../node_modules/lodash/_hashGet.js":
  17599. /*!***********************************************************!*\
  17600. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashGet.js ***!
  17601. \***********************************************************/
  17602. /*! no static exports found */
  17603. /***/ (function(module, exports, __webpack_require__) {
  17604. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  17605. /** Used to stand-in for `undefined` hash values. */
  17606. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  17607. /** Used for built-in method references. */
  17608. var objectProto = Object.prototype;
  17609. /** Used to check objects for own properties. */
  17610. var hasOwnProperty = objectProto.hasOwnProperty;
  17611. /**
  17612. * Gets the hash value for `key`.
  17613. *
  17614. * @private
  17615. * @name get
  17616. * @memberOf Hash
  17617. * @param {string} key The key of the value to get.
  17618. * @returns {*} Returns the entry value.
  17619. */
  17620. function hashGet(key) {
  17621. var data = this.__data__;
  17622. if (nativeCreate) {
  17623. var result = data[key];
  17624. return result === HASH_UNDEFINED ? undefined : result;
  17625. }
  17626. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  17627. }
  17628. module.exports = hashGet;
  17629. /***/ }),
  17630. /***/ "../../node_modules/lodash/_hashHas.js":
  17631. /*!***********************************************************!*\
  17632. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashHas.js ***!
  17633. \***********************************************************/
  17634. /*! no static exports found */
  17635. /***/ (function(module, exports, __webpack_require__) {
  17636. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  17637. /** Used for built-in method references. */
  17638. var objectProto = Object.prototype;
  17639. /** Used to check objects for own properties. */
  17640. var hasOwnProperty = objectProto.hasOwnProperty;
  17641. /**
  17642. * Checks if a hash value for `key` exists.
  17643. *
  17644. * @private
  17645. * @name has
  17646. * @memberOf Hash
  17647. * @param {string} key The key of the entry to check.
  17648. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17649. */
  17650. function hashHas(key) {
  17651. var data = this.__data__;
  17652. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  17653. }
  17654. module.exports = hashHas;
  17655. /***/ }),
  17656. /***/ "../../node_modules/lodash/_hashSet.js":
  17657. /*!***********************************************************!*\
  17658. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashSet.js ***!
  17659. \***********************************************************/
  17660. /*! no static exports found */
  17661. /***/ (function(module, exports, __webpack_require__) {
  17662. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  17663. /** Used to stand-in for `undefined` hash values. */
  17664. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  17665. /**
  17666. * Sets the hash `key` to `value`.
  17667. *
  17668. * @private
  17669. * @name set
  17670. * @memberOf Hash
  17671. * @param {string} key The key of the value to set.
  17672. * @param {*} value The value to set.
  17673. * @returns {Object} Returns the hash instance.
  17674. */
  17675. function hashSet(key, value) {
  17676. var data = this.__data__;
  17677. this.size += this.has(key) ? 0 : 1;
  17678. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  17679. return this;
  17680. }
  17681. module.exports = hashSet;
  17682. /***/ }),
  17683. /***/ "../../node_modules/lodash/_initCloneArray.js":
  17684. /*!******************************************************************!*\
  17685. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneArray.js ***!
  17686. \******************************************************************/
  17687. /*! no static exports found */
  17688. /***/ (function(module, exports) {
  17689. /** Used for built-in method references. */
  17690. var objectProto = Object.prototype;
  17691. /** Used to check objects for own properties. */
  17692. var hasOwnProperty = objectProto.hasOwnProperty;
  17693. /**
  17694. * Initializes an array clone.
  17695. *
  17696. * @private
  17697. * @param {Array} array The array to clone.
  17698. * @returns {Array} Returns the initialized clone.
  17699. */
  17700. function initCloneArray(array) {
  17701. var length = array.length,
  17702. result = new array.constructor(length);
  17703. // Add properties assigned by `RegExp#exec`.
  17704. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  17705. result.index = array.index;
  17706. result.input = array.input;
  17707. }
  17708. return result;
  17709. }
  17710. module.exports = initCloneArray;
  17711. /***/ }),
  17712. /***/ "../../node_modules/lodash/_initCloneByTag.js":
  17713. /*!******************************************************************!*\
  17714. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneByTag.js ***!
  17715. \******************************************************************/
  17716. /*! no static exports found */
  17717. /***/ (function(module, exports, __webpack_require__) {
  17718. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js"),
  17719. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "../../node_modules/lodash/_cloneDataView.js"),
  17720. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "../../node_modules/lodash/_cloneRegExp.js"),
  17721. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "../../node_modules/lodash/_cloneSymbol.js"),
  17722. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js");
  17723. /** `Object#toString` result references. */
  17724. var boolTag = '[object Boolean]',
  17725. dateTag = '[object Date]',
  17726. mapTag = '[object Map]',
  17727. numberTag = '[object Number]',
  17728. regexpTag = '[object RegExp]',
  17729. setTag = '[object Set]',
  17730. stringTag = '[object String]',
  17731. symbolTag = '[object Symbol]';
  17732. var arrayBufferTag = '[object ArrayBuffer]',
  17733. dataViewTag = '[object DataView]',
  17734. float32Tag = '[object Float32Array]',
  17735. float64Tag = '[object Float64Array]',
  17736. int8Tag = '[object Int8Array]',
  17737. int16Tag = '[object Int16Array]',
  17738. int32Tag = '[object Int32Array]',
  17739. uint8Tag = '[object Uint8Array]',
  17740. uint8ClampedTag = '[object Uint8ClampedArray]',
  17741. uint16Tag = '[object Uint16Array]',
  17742. uint32Tag = '[object Uint32Array]';
  17743. /**
  17744. * Initializes an object clone based on its `toStringTag`.
  17745. *
  17746. * **Note:** This function only supports cloning values with tags of
  17747. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  17748. *
  17749. * @private
  17750. * @param {Object} object The object to clone.
  17751. * @param {string} tag The `toStringTag` of the object to clone.
  17752. * @param {boolean} [isDeep] Specify a deep clone.
  17753. * @returns {Object} Returns the initialized clone.
  17754. */
  17755. function initCloneByTag(object, tag, isDeep) {
  17756. var Ctor = object.constructor;
  17757. switch (tag) {
  17758. case arrayBufferTag:
  17759. return cloneArrayBuffer(object);
  17760. case boolTag:
  17761. case dateTag:
  17762. return new Ctor(+object);
  17763. case dataViewTag:
  17764. return cloneDataView(object, isDeep);
  17765. case float32Tag: case float64Tag:
  17766. case int8Tag: case int16Tag: case int32Tag:
  17767. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  17768. return cloneTypedArray(object, isDeep);
  17769. case mapTag:
  17770. return new Ctor;
  17771. case numberTag:
  17772. case stringTag:
  17773. return new Ctor(object);
  17774. case regexpTag:
  17775. return cloneRegExp(object);
  17776. case setTag:
  17777. return new Ctor;
  17778. case symbolTag:
  17779. return cloneSymbol(object);
  17780. }
  17781. }
  17782. module.exports = initCloneByTag;
  17783. /***/ }),
  17784. /***/ "../../node_modules/lodash/_initCloneObject.js":
  17785. /*!*******************************************************************!*\
  17786. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneObject.js ***!
  17787. \*******************************************************************/
  17788. /*! no static exports found */
  17789. /***/ (function(module, exports, __webpack_require__) {
  17790. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  17791. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  17792. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js");
  17793. /**
  17794. * Initializes an object clone.
  17795. *
  17796. * @private
  17797. * @param {Object} object The object to clone.
  17798. * @returns {Object} Returns the initialized clone.
  17799. */
  17800. function initCloneObject(object) {
  17801. return (typeof object.constructor == 'function' && !isPrototype(object))
  17802. ? baseCreate(getPrototype(object))
  17803. : {};
  17804. }
  17805. module.exports = initCloneObject;
  17806. /***/ }),
  17807. /***/ "../../node_modules/lodash/_isFlattenable.js":
  17808. /*!*****************************************************************!*\
  17809. !*** C:/Repos/Babylon.js/node_modules/lodash/_isFlattenable.js ***!
  17810. \*****************************************************************/
  17811. /*! no static exports found */
  17812. /***/ (function(module, exports, __webpack_require__) {
  17813. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  17814. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  17815. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  17816. /** Built-in value references. */
  17817. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  17818. /**
  17819. * Checks if `value` is a flattenable `arguments` object or array.
  17820. *
  17821. * @private
  17822. * @param {*} value The value to check.
  17823. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  17824. */
  17825. function isFlattenable(value) {
  17826. return isArray(value) || isArguments(value) ||
  17827. !!(spreadableSymbol && value && value[spreadableSymbol]);
  17828. }
  17829. module.exports = isFlattenable;
  17830. /***/ }),
  17831. /***/ "../../node_modules/lodash/_isIndex.js":
  17832. /*!***********************************************************!*\
  17833. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIndex.js ***!
  17834. \***********************************************************/
  17835. /*! no static exports found */
  17836. /***/ (function(module, exports) {
  17837. /** Used as references for various `Number` constants. */
  17838. var MAX_SAFE_INTEGER = 9007199254740991;
  17839. /** Used to detect unsigned integer values. */
  17840. var reIsUint = /^(?:0|[1-9]\d*)$/;
  17841. /**
  17842. * Checks if `value` is a valid array-like index.
  17843. *
  17844. * @private
  17845. * @param {*} value The value to check.
  17846. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  17847. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  17848. */
  17849. function isIndex(value, length) {
  17850. var type = typeof value;
  17851. length = length == null ? MAX_SAFE_INTEGER : length;
  17852. return !!length &&
  17853. (type == 'number' ||
  17854. (type != 'symbol' && reIsUint.test(value))) &&
  17855. (value > -1 && value % 1 == 0 && value < length);
  17856. }
  17857. module.exports = isIndex;
  17858. /***/ }),
  17859. /***/ "../../node_modules/lodash/_isIterateeCall.js":
  17860. /*!******************************************************************!*\
  17861. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIterateeCall.js ***!
  17862. \******************************************************************/
  17863. /*! no static exports found */
  17864. /***/ (function(module, exports, __webpack_require__) {
  17865. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  17866. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  17867. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  17868. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  17869. /**
  17870. * Checks if the given arguments are from an iteratee call.
  17871. *
  17872. * @private
  17873. * @param {*} value The potential iteratee value argument.
  17874. * @param {*} index The potential iteratee index or key argument.
  17875. * @param {*} object The potential iteratee object argument.
  17876. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  17877. * else `false`.
  17878. */
  17879. function isIterateeCall(value, index, object) {
  17880. if (!isObject(object)) {
  17881. return false;
  17882. }
  17883. var type = typeof index;
  17884. if (type == 'number'
  17885. ? (isArrayLike(object) && isIndex(index, object.length))
  17886. : (type == 'string' && index in object)
  17887. ) {
  17888. return eq(object[index], value);
  17889. }
  17890. return false;
  17891. }
  17892. module.exports = isIterateeCall;
  17893. /***/ }),
  17894. /***/ "../../node_modules/lodash/_isKey.js":
  17895. /*!*********************************************************!*\
  17896. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKey.js ***!
  17897. \*********************************************************/
  17898. /*! no static exports found */
  17899. /***/ (function(module, exports, __webpack_require__) {
  17900. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  17901. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  17902. /** Used to match property names within property paths. */
  17903. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  17904. reIsPlainProp = /^\w*$/;
  17905. /**
  17906. * Checks if `value` is a property name and not a property path.
  17907. *
  17908. * @private
  17909. * @param {*} value The value to check.
  17910. * @param {Object} [object] The object to query keys on.
  17911. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  17912. */
  17913. function isKey(value, object) {
  17914. if (isArray(value)) {
  17915. return false;
  17916. }
  17917. var type = typeof value;
  17918. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  17919. value == null || isSymbol(value)) {
  17920. return true;
  17921. }
  17922. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  17923. (object != null && value in Object(object));
  17924. }
  17925. module.exports = isKey;
  17926. /***/ }),
  17927. /***/ "../../node_modules/lodash/_isKeyable.js":
  17928. /*!*************************************************************!*\
  17929. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKeyable.js ***!
  17930. \*************************************************************/
  17931. /*! no static exports found */
  17932. /***/ (function(module, exports) {
  17933. /**
  17934. * Checks if `value` is suitable for use as unique object key.
  17935. *
  17936. * @private
  17937. * @param {*} value The value to check.
  17938. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  17939. */
  17940. function isKeyable(value) {
  17941. var type = typeof value;
  17942. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  17943. ? (value !== '__proto__')
  17944. : (value === null);
  17945. }
  17946. module.exports = isKeyable;
  17947. /***/ }),
  17948. /***/ "../../node_modules/lodash/_isMasked.js":
  17949. /*!************************************************************!*\
  17950. !*** C:/Repos/Babylon.js/node_modules/lodash/_isMasked.js ***!
  17951. \************************************************************/
  17952. /*! no static exports found */
  17953. /***/ (function(module, exports, __webpack_require__) {
  17954. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
  17955. /** Used to detect methods masquerading as native. */
  17956. var maskSrcKey = (function() {
  17957. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  17958. return uid ? ('Symbol(src)_1.' + uid) : '';
  17959. }());
  17960. /**
  17961. * Checks if `func` has its source masked.
  17962. *
  17963. * @private
  17964. * @param {Function} func The function to check.
  17965. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  17966. */
  17967. function isMasked(func) {
  17968. return !!maskSrcKey && (maskSrcKey in func);
  17969. }
  17970. module.exports = isMasked;
  17971. /***/ }),
  17972. /***/ "../../node_modules/lodash/_isPrototype.js":
  17973. /*!***************************************************************!*\
  17974. !*** C:/Repos/Babylon.js/node_modules/lodash/_isPrototype.js ***!
  17975. \***************************************************************/
  17976. /*! no static exports found */
  17977. /***/ (function(module, exports) {
  17978. /** Used for built-in method references. */
  17979. var objectProto = Object.prototype;
  17980. /**
  17981. * Checks if `value` is likely a prototype object.
  17982. *
  17983. * @private
  17984. * @param {*} value The value to check.
  17985. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  17986. */
  17987. function isPrototype(value) {
  17988. var Ctor = value && value.constructor,
  17989. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  17990. return value === proto;
  17991. }
  17992. module.exports = isPrototype;
  17993. /***/ }),
  17994. /***/ "../../node_modules/lodash/_isStrictComparable.js":
  17995. /*!**********************************************************************!*\
  17996. !*** C:/Repos/Babylon.js/node_modules/lodash/_isStrictComparable.js ***!
  17997. \**********************************************************************/
  17998. /*! no static exports found */
  17999. /***/ (function(module, exports, __webpack_require__) {
  18000. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  18001. /**
  18002. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  18003. *
  18004. * @private
  18005. * @param {*} value The value to check.
  18006. * @returns {boolean} Returns `true` if `value` if suitable for strict
  18007. * equality comparisons, else `false`.
  18008. */
  18009. function isStrictComparable(value) {
  18010. return value === value && !isObject(value);
  18011. }
  18012. module.exports = isStrictComparable;
  18013. /***/ }),
  18014. /***/ "../../node_modules/lodash/_listCacheClear.js":
  18015. /*!******************************************************************!*\
  18016. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheClear.js ***!
  18017. \******************************************************************/
  18018. /*! no static exports found */
  18019. /***/ (function(module, exports) {
  18020. /**
  18021. * Removes all key-value entries from the list cache.
  18022. *
  18023. * @private
  18024. * @name clear
  18025. * @memberOf ListCache
  18026. */
  18027. function listCacheClear() {
  18028. this.__data__ = [];
  18029. this.size = 0;
  18030. }
  18031. module.exports = listCacheClear;
  18032. /***/ }),
  18033. /***/ "../../node_modules/lodash/_listCacheDelete.js":
  18034. /*!*******************************************************************!*\
  18035. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheDelete.js ***!
  18036. \*******************************************************************/
  18037. /*! no static exports found */
  18038. /***/ (function(module, exports, __webpack_require__) {
  18039. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  18040. /** Used for built-in method references. */
  18041. var arrayProto = Array.prototype;
  18042. /** Built-in value references. */
  18043. var splice = arrayProto.splice;
  18044. /**
  18045. * Removes `key` and its value from the list cache.
  18046. *
  18047. * @private
  18048. * @name delete
  18049. * @memberOf ListCache
  18050. * @param {string} key The key of the value to remove.
  18051. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  18052. */
  18053. function listCacheDelete(key) {
  18054. var data = this.__data__,
  18055. index = assocIndexOf(data, key);
  18056. if (index < 0) {
  18057. return false;
  18058. }
  18059. var lastIndex = data.length - 1;
  18060. if (index == lastIndex) {
  18061. data.pop();
  18062. } else {
  18063. splice.call(data, index, 1);
  18064. }
  18065. --this.size;
  18066. return true;
  18067. }
  18068. module.exports = listCacheDelete;
  18069. /***/ }),
  18070. /***/ "../../node_modules/lodash/_listCacheGet.js":
  18071. /*!****************************************************************!*\
  18072. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheGet.js ***!
  18073. \****************************************************************/
  18074. /*! no static exports found */
  18075. /***/ (function(module, exports, __webpack_require__) {
  18076. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  18077. /**
  18078. * Gets the list cache value for `key`.
  18079. *
  18080. * @private
  18081. * @name get
  18082. * @memberOf ListCache
  18083. * @param {string} key The key of the value to get.
  18084. * @returns {*} Returns the entry value.
  18085. */
  18086. function listCacheGet(key) {
  18087. var data = this.__data__,
  18088. index = assocIndexOf(data, key);
  18089. return index < 0 ? undefined : data[index][1];
  18090. }
  18091. module.exports = listCacheGet;
  18092. /***/ }),
  18093. /***/ "../../node_modules/lodash/_listCacheHas.js":
  18094. /*!****************************************************************!*\
  18095. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheHas.js ***!
  18096. \****************************************************************/
  18097. /*! no static exports found */
  18098. /***/ (function(module, exports, __webpack_require__) {
  18099. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  18100. /**
  18101. * Checks if a list cache value for `key` exists.
  18102. *
  18103. * @private
  18104. * @name has
  18105. * @memberOf ListCache
  18106. * @param {string} key The key of the entry to check.
  18107. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  18108. */
  18109. function listCacheHas(key) {
  18110. return assocIndexOf(this.__data__, key) > -1;
  18111. }
  18112. module.exports = listCacheHas;
  18113. /***/ }),
  18114. /***/ "../../node_modules/lodash/_listCacheSet.js":
  18115. /*!****************************************************************!*\
  18116. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheSet.js ***!
  18117. \****************************************************************/
  18118. /*! no static exports found */
  18119. /***/ (function(module, exports, __webpack_require__) {
  18120. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  18121. /**
  18122. * Sets the list cache `key` to `value`.
  18123. *
  18124. * @private
  18125. * @name set
  18126. * @memberOf ListCache
  18127. * @param {string} key The key of the value to set.
  18128. * @param {*} value The value to set.
  18129. * @returns {Object} Returns the list cache instance.
  18130. */
  18131. function listCacheSet(key, value) {
  18132. var data = this.__data__,
  18133. index = assocIndexOf(data, key);
  18134. if (index < 0) {
  18135. ++this.size;
  18136. data.push([key, value]);
  18137. } else {
  18138. data[index][1] = value;
  18139. }
  18140. return this;
  18141. }
  18142. module.exports = listCacheSet;
  18143. /***/ }),
  18144. /***/ "../../node_modules/lodash/_mapCacheClear.js":
  18145. /*!*****************************************************************!*\
  18146. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheClear.js ***!
  18147. \*****************************************************************/
  18148. /*! no static exports found */
  18149. /***/ (function(module, exports, __webpack_require__) {
  18150. var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
  18151. ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  18152. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
  18153. /**
  18154. * Removes all key-value entries from the map.
  18155. *
  18156. * @private
  18157. * @name clear
  18158. * @memberOf MapCache
  18159. */
  18160. function mapCacheClear() {
  18161. this.size = 0;
  18162. this.__data__ = {
  18163. 'hash': new Hash,
  18164. 'map': new (Map || ListCache),
  18165. 'string': new Hash
  18166. };
  18167. }
  18168. module.exports = mapCacheClear;
  18169. /***/ }),
  18170. /***/ "../../node_modules/lodash/_mapCacheDelete.js":
  18171. /*!******************************************************************!*\
  18172. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheDelete.js ***!
  18173. \******************************************************************/
  18174. /*! no static exports found */
  18175. /***/ (function(module, exports, __webpack_require__) {
  18176. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  18177. /**
  18178. * Removes `key` and its value from the map.
  18179. *
  18180. * @private
  18181. * @name delete
  18182. * @memberOf MapCache
  18183. * @param {string} key The key of the value to remove.
  18184. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  18185. */
  18186. function mapCacheDelete(key) {
  18187. var result = getMapData(this, key)['delete'](key);
  18188. this.size -= result ? 1 : 0;
  18189. return result;
  18190. }
  18191. module.exports = mapCacheDelete;
  18192. /***/ }),
  18193. /***/ "../../node_modules/lodash/_mapCacheGet.js":
  18194. /*!***************************************************************!*\
  18195. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheGet.js ***!
  18196. \***************************************************************/
  18197. /*! no static exports found */
  18198. /***/ (function(module, exports, __webpack_require__) {
  18199. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  18200. /**
  18201. * Gets the map value for `key`.
  18202. *
  18203. * @private
  18204. * @name get
  18205. * @memberOf MapCache
  18206. * @param {string} key The key of the value to get.
  18207. * @returns {*} Returns the entry value.
  18208. */
  18209. function mapCacheGet(key) {
  18210. return getMapData(this, key).get(key);
  18211. }
  18212. module.exports = mapCacheGet;
  18213. /***/ }),
  18214. /***/ "../../node_modules/lodash/_mapCacheHas.js":
  18215. /*!***************************************************************!*\
  18216. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheHas.js ***!
  18217. \***************************************************************/
  18218. /*! no static exports found */
  18219. /***/ (function(module, exports, __webpack_require__) {
  18220. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  18221. /**
  18222. * Checks if a map value for `key` exists.
  18223. *
  18224. * @private
  18225. * @name has
  18226. * @memberOf MapCache
  18227. * @param {string} key The key of the entry to check.
  18228. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  18229. */
  18230. function mapCacheHas(key) {
  18231. return getMapData(this, key).has(key);
  18232. }
  18233. module.exports = mapCacheHas;
  18234. /***/ }),
  18235. /***/ "../../node_modules/lodash/_mapCacheSet.js":
  18236. /*!***************************************************************!*\
  18237. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheSet.js ***!
  18238. \***************************************************************/
  18239. /*! no static exports found */
  18240. /***/ (function(module, exports, __webpack_require__) {
  18241. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  18242. /**
  18243. * Sets the map `key` to `value`.
  18244. *
  18245. * @private
  18246. * @name set
  18247. * @memberOf MapCache
  18248. * @param {string} key The key of the value to set.
  18249. * @param {*} value The value to set.
  18250. * @returns {Object} Returns the map cache instance.
  18251. */
  18252. function mapCacheSet(key, value) {
  18253. var data = getMapData(this, key),
  18254. size = data.size;
  18255. data.set(key, value);
  18256. this.size += data.size == size ? 0 : 1;
  18257. return this;
  18258. }
  18259. module.exports = mapCacheSet;
  18260. /***/ }),
  18261. /***/ "../../node_modules/lodash/_mapToArray.js":
  18262. /*!**************************************************************!*\
  18263. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapToArray.js ***!
  18264. \**************************************************************/
  18265. /*! no static exports found */
  18266. /***/ (function(module, exports) {
  18267. /**
  18268. * Converts `map` to its key-value pairs.
  18269. *
  18270. * @private
  18271. * @param {Object} map The map to convert.
  18272. * @returns {Array} Returns the key-value pairs.
  18273. */
  18274. function mapToArray(map) {
  18275. var index = -1,
  18276. result = Array(map.size);
  18277. map.forEach(function(value, key) {
  18278. result[++index] = [key, value];
  18279. });
  18280. return result;
  18281. }
  18282. module.exports = mapToArray;
  18283. /***/ }),
  18284. /***/ "../../node_modules/lodash/_matchesStrictComparable.js":
  18285. /*!***************************************************************************!*\
  18286. !*** C:/Repos/Babylon.js/node_modules/lodash/_matchesStrictComparable.js ***!
  18287. \***************************************************************************/
  18288. /*! no static exports found */
  18289. /***/ (function(module, exports) {
  18290. /**
  18291. * A specialized version of `matchesProperty` for source values suitable
  18292. * for strict equality comparisons, i.e. `===`.
  18293. *
  18294. * @private
  18295. * @param {string} key The key of the property to get.
  18296. * @param {*} srcValue The value to match.
  18297. * @returns {Function} Returns the new spec function.
  18298. */
  18299. function matchesStrictComparable(key, srcValue) {
  18300. return function(object) {
  18301. if (object == null) {
  18302. return false;
  18303. }
  18304. return object[key] === srcValue &&
  18305. (srcValue !== undefined || (key in Object(object)));
  18306. };
  18307. }
  18308. module.exports = matchesStrictComparable;
  18309. /***/ }),
  18310. /***/ "../../node_modules/lodash/_memoizeCapped.js":
  18311. /*!*****************************************************************!*\
  18312. !*** C:/Repos/Babylon.js/node_modules/lodash/_memoizeCapped.js ***!
  18313. \*****************************************************************/
  18314. /*! no static exports found */
  18315. /***/ (function(module, exports, __webpack_require__) {
  18316. var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
  18317. /** Used as the maximum memoize cache size. */
  18318. var MAX_MEMOIZE_SIZE = 500;
  18319. /**
  18320. * A specialized version of `_.memoize` which clears the memoized function's
  18321. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  18322. *
  18323. * @private
  18324. * @param {Function} func The function to have its output memoized.
  18325. * @returns {Function} Returns the new memoized function.
  18326. */
  18327. function memoizeCapped(func) {
  18328. var result = memoize(func, function(key) {
  18329. if (cache.size === MAX_MEMOIZE_SIZE) {
  18330. cache.clear();
  18331. }
  18332. return key;
  18333. });
  18334. var cache = result.cache;
  18335. return result;
  18336. }
  18337. module.exports = memoizeCapped;
  18338. /***/ }),
  18339. /***/ "../../node_modules/lodash/_nativeCreate.js":
  18340. /*!****************************************************************!*\
  18341. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeCreate.js ***!
  18342. \****************************************************************/
  18343. /*! no static exports found */
  18344. /***/ (function(module, exports, __webpack_require__) {
  18345. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  18346. /* Built-in method references that are verified to be native. */
  18347. var nativeCreate = getNative(Object, 'create');
  18348. module.exports = nativeCreate;
  18349. /***/ }),
  18350. /***/ "../../node_modules/lodash/_nativeKeys.js":
  18351. /*!**************************************************************!*\
  18352. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeys.js ***!
  18353. \**************************************************************/
  18354. /*! no static exports found */
  18355. /***/ (function(module, exports, __webpack_require__) {
  18356. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  18357. /* Built-in method references for those with the same name as other `lodash` methods. */
  18358. var nativeKeys = overArg(Object.keys, Object);
  18359. module.exports = nativeKeys;
  18360. /***/ }),
  18361. /***/ "../../node_modules/lodash/_nativeKeysIn.js":
  18362. /*!****************************************************************!*\
  18363. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeysIn.js ***!
  18364. \****************************************************************/
  18365. /*! no static exports found */
  18366. /***/ (function(module, exports) {
  18367. /**
  18368. * This function is like
  18369. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  18370. * except that it includes inherited enumerable properties.
  18371. *
  18372. * @private
  18373. * @param {Object} object The object to query.
  18374. * @returns {Array} Returns the array of property names.
  18375. */
  18376. function nativeKeysIn(object) {
  18377. var result = [];
  18378. if (object != null) {
  18379. for (var key in Object(object)) {
  18380. result.push(key);
  18381. }
  18382. }
  18383. return result;
  18384. }
  18385. module.exports = nativeKeysIn;
  18386. /***/ }),
  18387. /***/ "../../node_modules/lodash/_nodeUtil.js":
  18388. /*!************************************************************!*\
  18389. !*** C:/Repos/Babylon.js/node_modules/lodash/_nodeUtil.js ***!
  18390. \************************************************************/
  18391. /*! no static exports found */
  18392. /***/ (function(module, exports, __webpack_require__) {
  18393. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  18394. /** Detect free variable `exports`. */
  18395. var freeExports = true && exports && !exports.nodeType && exports;
  18396. /** Detect free variable `module`. */
  18397. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  18398. /** Detect the popular CommonJS extension `module.exports`. */
  18399. var moduleExports = freeModule && freeModule.exports === freeExports;
  18400. /** Detect free variable `process` from Node.js. */
  18401. var freeProcess = moduleExports && freeGlobal.process;
  18402. /** Used to access faster Node.js helpers. */
  18403. var nodeUtil = (function() {
  18404. try {
  18405. // Use `util.types` for Node.js 10+.
  18406. var types = freeModule && freeModule.require && freeModule.require('util').types;
  18407. if (types) {
  18408. return types;
  18409. }
  18410. // Legacy `process.binding('util')` for Node.js < 10.
  18411. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  18412. } catch (e) {}
  18413. }());
  18414. module.exports = nodeUtil;
  18415. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  18416. /***/ }),
  18417. /***/ "../../node_modules/lodash/_objectToString.js":
  18418. /*!******************************************************************!*\
  18419. !*** C:/Repos/Babylon.js/node_modules/lodash/_objectToString.js ***!
  18420. \******************************************************************/
  18421. /*! no static exports found */
  18422. /***/ (function(module, exports) {
  18423. /** Used for built-in method references. */
  18424. var objectProto = Object.prototype;
  18425. /**
  18426. * Used to resolve the
  18427. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  18428. * of values.
  18429. */
  18430. var nativeObjectToString = objectProto.toString;
  18431. /**
  18432. * Converts `value` to a string using `Object.prototype.toString`.
  18433. *
  18434. * @private
  18435. * @param {*} value The value to convert.
  18436. * @returns {string} Returns the converted string.
  18437. */
  18438. function objectToString(value) {
  18439. return nativeObjectToString.call(value);
  18440. }
  18441. module.exports = objectToString;
  18442. /***/ }),
  18443. /***/ "../../node_modules/lodash/_overArg.js":
  18444. /*!***********************************************************!*\
  18445. !*** C:/Repos/Babylon.js/node_modules/lodash/_overArg.js ***!
  18446. \***********************************************************/
  18447. /*! no static exports found */
  18448. /***/ (function(module, exports) {
  18449. /**
  18450. * Creates a unary function that invokes `func` with its argument transformed.
  18451. *
  18452. * @private
  18453. * @param {Function} func The function to wrap.
  18454. * @param {Function} transform The argument transform.
  18455. * @returns {Function} Returns the new function.
  18456. */
  18457. function overArg(func, transform) {
  18458. return function(arg) {
  18459. return func(transform(arg));
  18460. };
  18461. }
  18462. module.exports = overArg;
  18463. /***/ }),
  18464. /***/ "../../node_modules/lodash/_overRest.js":
  18465. /*!************************************************************!*\
  18466. !*** C:/Repos/Babylon.js/node_modules/lodash/_overRest.js ***!
  18467. \************************************************************/
  18468. /*! no static exports found */
  18469. /***/ (function(module, exports, __webpack_require__) {
  18470. var apply = __webpack_require__(/*! ./_apply */ "../../node_modules/lodash/_apply.js");
  18471. /* Built-in method references for those with the same name as other `lodash` methods. */
  18472. var nativeMax = Math.max;
  18473. /**
  18474. * A specialized version of `baseRest` which transforms the rest array.
  18475. *
  18476. * @private
  18477. * @param {Function} func The function to apply a rest parameter to.
  18478. * @param {number} [start=func.length-1] The start position of the rest parameter.
  18479. * @param {Function} transform The rest array transform.
  18480. * @returns {Function} Returns the new function.
  18481. */
  18482. function overRest(func, start, transform) {
  18483. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  18484. return function() {
  18485. var args = arguments,
  18486. index = -1,
  18487. length = nativeMax(args.length - start, 0),
  18488. array = Array(length);
  18489. while (++index < length) {
  18490. array[index] = args[start + index];
  18491. }
  18492. index = -1;
  18493. var otherArgs = Array(start + 1);
  18494. while (++index < start) {
  18495. otherArgs[index] = args[index];
  18496. }
  18497. otherArgs[start] = transform(array);
  18498. return apply(func, this, otherArgs);
  18499. };
  18500. }
  18501. module.exports = overRest;
  18502. /***/ }),
  18503. /***/ "../../node_modules/lodash/_root.js":
  18504. /*!********************************************************!*\
  18505. !*** C:/Repos/Babylon.js/node_modules/lodash/_root.js ***!
  18506. \********************************************************/
  18507. /*! no static exports found */
  18508. /***/ (function(module, exports, __webpack_require__) {
  18509. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  18510. /** Detect free variable `self`. */
  18511. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  18512. /** Used as a reference to the global object. */
  18513. var root = freeGlobal || freeSelf || Function('return this')();
  18514. module.exports = root;
  18515. /***/ }),
  18516. /***/ "../../node_modules/lodash/_safeGet.js":
  18517. /*!***********************************************************!*\
  18518. !*** C:/Repos/Babylon.js/node_modules/lodash/_safeGet.js ***!
  18519. \***********************************************************/
  18520. /*! no static exports found */
  18521. /***/ (function(module, exports) {
  18522. /**
  18523. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  18524. *
  18525. * @private
  18526. * @param {Object} object The object to query.
  18527. * @param {string} key The key of the property to get.
  18528. * @returns {*} Returns the property value.
  18529. */
  18530. function safeGet(object, key) {
  18531. if (key === 'constructor' && typeof object[key] === 'function') {
  18532. return;
  18533. }
  18534. if (key == '__proto__') {
  18535. return;
  18536. }
  18537. return object[key];
  18538. }
  18539. module.exports = safeGet;
  18540. /***/ }),
  18541. /***/ "../../node_modules/lodash/_setCacheAdd.js":
  18542. /*!***************************************************************!*\
  18543. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheAdd.js ***!
  18544. \***************************************************************/
  18545. /*! no static exports found */
  18546. /***/ (function(module, exports) {
  18547. /** Used to stand-in for `undefined` hash values. */
  18548. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  18549. /**
  18550. * Adds `value` to the array cache.
  18551. *
  18552. * @private
  18553. * @name add
  18554. * @memberOf SetCache
  18555. * @alias push
  18556. * @param {*} value The value to cache.
  18557. * @returns {Object} Returns the cache instance.
  18558. */
  18559. function setCacheAdd(value) {
  18560. this.__data__.set(value, HASH_UNDEFINED);
  18561. return this;
  18562. }
  18563. module.exports = setCacheAdd;
  18564. /***/ }),
  18565. /***/ "../../node_modules/lodash/_setCacheHas.js":
  18566. /*!***************************************************************!*\
  18567. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheHas.js ***!
  18568. \***************************************************************/
  18569. /*! no static exports found */
  18570. /***/ (function(module, exports) {
  18571. /**
  18572. * Checks if `value` is in the array cache.
  18573. *
  18574. * @private
  18575. * @name has
  18576. * @memberOf SetCache
  18577. * @param {*} value The value to search for.
  18578. * @returns {number} Returns `true` if `value` is found, else `false`.
  18579. */
  18580. function setCacheHas(value) {
  18581. return this.__data__.has(value);
  18582. }
  18583. module.exports = setCacheHas;
  18584. /***/ }),
  18585. /***/ "../../node_modules/lodash/_setToArray.js":
  18586. /*!**************************************************************!*\
  18587. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToArray.js ***!
  18588. \**************************************************************/
  18589. /*! no static exports found */
  18590. /***/ (function(module, exports) {
  18591. /**
  18592. * Converts `set` to an array of its values.
  18593. *
  18594. * @private
  18595. * @param {Object} set The set to convert.
  18596. * @returns {Array} Returns the values.
  18597. */
  18598. function setToArray(set) {
  18599. var index = -1,
  18600. result = Array(set.size);
  18601. set.forEach(function(value) {
  18602. result[++index] = value;
  18603. });
  18604. return result;
  18605. }
  18606. module.exports = setToArray;
  18607. /***/ }),
  18608. /***/ "../../node_modules/lodash/_setToString.js":
  18609. /*!***************************************************************!*\
  18610. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToString.js ***!
  18611. \***************************************************************/
  18612. /*! no static exports found */
  18613. /***/ (function(module, exports, __webpack_require__) {
  18614. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "../../node_modules/lodash/_baseSetToString.js"),
  18615. shortOut = __webpack_require__(/*! ./_shortOut */ "../../node_modules/lodash/_shortOut.js");
  18616. /**
  18617. * Sets the `toString` method of `func` to return `string`.
  18618. *
  18619. * @private
  18620. * @param {Function} func The function to modify.
  18621. * @param {Function} string The `toString` result.
  18622. * @returns {Function} Returns `func`.
  18623. */
  18624. var setToString = shortOut(baseSetToString);
  18625. module.exports = setToString;
  18626. /***/ }),
  18627. /***/ "../../node_modules/lodash/_shortOut.js":
  18628. /*!************************************************************!*\
  18629. !*** C:/Repos/Babylon.js/node_modules/lodash/_shortOut.js ***!
  18630. \************************************************************/
  18631. /*! no static exports found */
  18632. /***/ (function(module, exports) {
  18633. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  18634. var HOT_COUNT = 800,
  18635. HOT_SPAN = 16;
  18636. /* Built-in method references for those with the same name as other `lodash` methods. */
  18637. var nativeNow = Date.now;
  18638. /**
  18639. * Creates a function that'll short out and invoke `identity` instead
  18640. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  18641. * milliseconds.
  18642. *
  18643. * @private
  18644. * @param {Function} func The function to restrict.
  18645. * @returns {Function} Returns the new shortable function.
  18646. */
  18647. function shortOut(func) {
  18648. var count = 0,
  18649. lastCalled = 0;
  18650. return function() {
  18651. var stamp = nativeNow(),
  18652. remaining = HOT_SPAN - (stamp - lastCalled);
  18653. lastCalled = stamp;
  18654. if (remaining > 0) {
  18655. if (++count >= HOT_COUNT) {
  18656. return arguments[0];
  18657. }
  18658. } else {
  18659. count = 0;
  18660. }
  18661. return func.apply(undefined, arguments);
  18662. };
  18663. }
  18664. module.exports = shortOut;
  18665. /***/ }),
  18666. /***/ "../../node_modules/lodash/_stackClear.js":
  18667. /*!**************************************************************!*\
  18668. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackClear.js ***!
  18669. \**************************************************************/
  18670. /*! no static exports found */
  18671. /***/ (function(module, exports, __webpack_require__) {
  18672. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
  18673. /**
  18674. * Removes all key-value entries from the stack.
  18675. *
  18676. * @private
  18677. * @name clear
  18678. * @memberOf Stack
  18679. */
  18680. function stackClear() {
  18681. this.__data__ = new ListCache;
  18682. this.size = 0;
  18683. }
  18684. module.exports = stackClear;
  18685. /***/ }),
  18686. /***/ "../../node_modules/lodash/_stackDelete.js":
  18687. /*!***************************************************************!*\
  18688. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackDelete.js ***!
  18689. \***************************************************************/
  18690. /*! no static exports found */
  18691. /***/ (function(module, exports) {
  18692. /**
  18693. * Removes `key` and its value from the stack.
  18694. *
  18695. * @private
  18696. * @name delete
  18697. * @memberOf Stack
  18698. * @param {string} key The key of the value to remove.
  18699. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  18700. */
  18701. function stackDelete(key) {
  18702. var data = this.__data__,
  18703. result = data['delete'](key);
  18704. this.size = data.size;
  18705. return result;
  18706. }
  18707. module.exports = stackDelete;
  18708. /***/ }),
  18709. /***/ "../../node_modules/lodash/_stackGet.js":
  18710. /*!************************************************************!*\
  18711. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackGet.js ***!
  18712. \************************************************************/
  18713. /*! no static exports found */
  18714. /***/ (function(module, exports) {
  18715. /**
  18716. * Gets the stack value for `key`.
  18717. *
  18718. * @private
  18719. * @name get
  18720. * @memberOf Stack
  18721. * @param {string} key The key of the value to get.
  18722. * @returns {*} Returns the entry value.
  18723. */
  18724. function stackGet(key) {
  18725. return this.__data__.get(key);
  18726. }
  18727. module.exports = stackGet;
  18728. /***/ }),
  18729. /***/ "../../node_modules/lodash/_stackHas.js":
  18730. /*!************************************************************!*\
  18731. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackHas.js ***!
  18732. \************************************************************/
  18733. /*! no static exports found */
  18734. /***/ (function(module, exports) {
  18735. /**
  18736. * Checks if a stack value for `key` exists.
  18737. *
  18738. * @private
  18739. * @name has
  18740. * @memberOf Stack
  18741. * @param {string} key The key of the entry to check.
  18742. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  18743. */
  18744. function stackHas(key) {
  18745. return this.__data__.has(key);
  18746. }
  18747. module.exports = stackHas;
  18748. /***/ }),
  18749. /***/ "../../node_modules/lodash/_stackSet.js":
  18750. /*!************************************************************!*\
  18751. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackSet.js ***!
  18752. \************************************************************/
  18753. /*! no static exports found */
  18754. /***/ (function(module, exports, __webpack_require__) {
  18755. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  18756. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  18757. MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  18758. /** Used as the size to enable large array optimizations. */
  18759. var LARGE_ARRAY_SIZE = 200;
  18760. /**
  18761. * Sets the stack `key` to `value`.
  18762. *
  18763. * @private
  18764. * @name set
  18765. * @memberOf Stack
  18766. * @param {string} key The key of the value to set.
  18767. * @param {*} value The value to set.
  18768. * @returns {Object} Returns the stack cache instance.
  18769. */
  18770. function stackSet(key, value) {
  18771. var data = this.__data__;
  18772. if (data instanceof ListCache) {
  18773. var pairs = data.__data__;
  18774. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  18775. pairs.push([key, value]);
  18776. this.size = ++data.size;
  18777. return this;
  18778. }
  18779. data = this.__data__ = new MapCache(pairs);
  18780. }
  18781. data.set(key, value);
  18782. this.size = data.size;
  18783. return this;
  18784. }
  18785. module.exports = stackSet;
  18786. /***/ }),
  18787. /***/ "../../node_modules/lodash/_strictIndexOf.js":
  18788. /*!*****************************************************************!*\
  18789. !*** C:/Repos/Babylon.js/node_modules/lodash/_strictIndexOf.js ***!
  18790. \*****************************************************************/
  18791. /*! no static exports found */
  18792. /***/ (function(module, exports) {
  18793. /**
  18794. * A specialized version of `_.indexOf` which performs strict equality
  18795. * comparisons of values, i.e. `===`.
  18796. *
  18797. * @private
  18798. * @param {Array} array The array to inspect.
  18799. * @param {*} value The value to search for.
  18800. * @param {number} fromIndex The index to search from.
  18801. * @returns {number} Returns the index of the matched value, else `-1`.
  18802. */
  18803. function strictIndexOf(array, value, fromIndex) {
  18804. var index = fromIndex - 1,
  18805. length = array.length;
  18806. while (++index < length) {
  18807. if (array[index] === value) {
  18808. return index;
  18809. }
  18810. }
  18811. return -1;
  18812. }
  18813. module.exports = strictIndexOf;
  18814. /***/ }),
  18815. /***/ "../../node_modules/lodash/_stringSize.js":
  18816. /*!**************************************************************!*\
  18817. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringSize.js ***!
  18818. \**************************************************************/
  18819. /*! no static exports found */
  18820. /***/ (function(module, exports, __webpack_require__) {
  18821. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "../../node_modules/lodash/_asciiSize.js"),
  18822. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "../../node_modules/lodash/_hasUnicode.js"),
  18823. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "../../node_modules/lodash/_unicodeSize.js");
  18824. /**
  18825. * Gets the number of symbols in `string`.
  18826. *
  18827. * @private
  18828. * @param {string} string The string to inspect.
  18829. * @returns {number} Returns the string size.
  18830. */
  18831. function stringSize(string) {
  18832. return hasUnicode(string)
  18833. ? unicodeSize(string)
  18834. : asciiSize(string);
  18835. }
  18836. module.exports = stringSize;
  18837. /***/ }),
  18838. /***/ "../../node_modules/lodash/_stringToPath.js":
  18839. /*!****************************************************************!*\
  18840. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringToPath.js ***!
  18841. \****************************************************************/
  18842. /*! no static exports found */
  18843. /***/ (function(module, exports, __webpack_require__) {
  18844. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
  18845. /** Used to match property names within property paths. */
  18846. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  18847. /** Used to match backslashes in property paths. */
  18848. var reEscapeChar = /\\(\\)?/g;
  18849. /**
  18850. * Converts `string` to a property path array.
  18851. *
  18852. * @private
  18853. * @param {string} string The string to convert.
  18854. * @returns {Array} Returns the property path array.
  18855. */
  18856. var stringToPath = memoizeCapped(function(string) {
  18857. var result = [];
  18858. if (string.charCodeAt(0) === 46 /* . */) {
  18859. result.push('');
  18860. }
  18861. string.replace(rePropName, function(match, number, quote, subString) {
  18862. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  18863. });
  18864. return result;
  18865. });
  18866. module.exports = stringToPath;
  18867. /***/ }),
  18868. /***/ "../../node_modules/lodash/_toKey.js":
  18869. /*!*********************************************************!*\
  18870. !*** C:/Repos/Babylon.js/node_modules/lodash/_toKey.js ***!
  18871. \*********************************************************/
  18872. /*! no static exports found */
  18873. /***/ (function(module, exports, __webpack_require__) {
  18874. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  18875. /** Used as references for various `Number` constants. */
  18876. var INFINITY = 1 / 0;
  18877. /**
  18878. * Converts `value` to a string key if it's not a string or symbol.
  18879. *
  18880. * @private
  18881. * @param {*} value The value to inspect.
  18882. * @returns {string|symbol} Returns the key.
  18883. */
  18884. function toKey(value) {
  18885. if (typeof value == 'string' || isSymbol(value)) {
  18886. return value;
  18887. }
  18888. var result = (value + '');
  18889. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  18890. }
  18891. module.exports = toKey;
  18892. /***/ }),
  18893. /***/ "../../node_modules/lodash/_toSource.js":
  18894. /*!************************************************************!*\
  18895. !*** C:/Repos/Babylon.js/node_modules/lodash/_toSource.js ***!
  18896. \************************************************************/
  18897. /*! no static exports found */
  18898. /***/ (function(module, exports) {
  18899. /** Used for built-in method references. */
  18900. var funcProto = Function.prototype;
  18901. /** Used to resolve the decompiled source of functions. */
  18902. var funcToString = funcProto.toString;
  18903. /**
  18904. * Converts `func` to its source code.
  18905. *
  18906. * @private
  18907. * @param {Function} func The function to convert.
  18908. * @returns {string} Returns the source code.
  18909. */
  18910. function toSource(func) {
  18911. if (func != null) {
  18912. try {
  18913. return funcToString.call(func);
  18914. } catch (e) {}
  18915. try {
  18916. return (func + '');
  18917. } catch (e) {}
  18918. }
  18919. return '';
  18920. }
  18921. module.exports = toSource;
  18922. /***/ }),
  18923. /***/ "../../node_modules/lodash/_unicodeSize.js":
  18924. /*!***************************************************************!*\
  18925. !*** C:/Repos/Babylon.js/node_modules/lodash/_unicodeSize.js ***!
  18926. \***************************************************************/
  18927. /*! no static exports found */
  18928. /***/ (function(module, exports) {
  18929. /** Used to compose unicode character classes. */
  18930. var rsAstralRange = '\\ud800-\\udfff',
  18931. rsComboMarksRange = '\\u0300-\\u036f',
  18932. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  18933. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  18934. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  18935. rsVarRange = '\\ufe0e\\ufe0f';
  18936. /** Used to compose unicode capture groups. */
  18937. var rsAstral = '[' + rsAstralRange + ']',
  18938. rsCombo = '[' + rsComboRange + ']',
  18939. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  18940. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  18941. rsNonAstral = '[^' + rsAstralRange + ']',
  18942. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  18943. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  18944. rsZWJ = '\\u200d';
  18945. /** Used to compose unicode regexes. */
  18946. var reOptMod = rsModifier + '?',
  18947. rsOptVar = '[' + rsVarRange + ']?',
  18948. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  18949. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  18950. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  18951. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  18952. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  18953. /**
  18954. * Gets the size of a Unicode `string`.
  18955. *
  18956. * @private
  18957. * @param {string} string The string inspect.
  18958. * @returns {number} Returns the string size.
  18959. */
  18960. function unicodeSize(string) {
  18961. var result = reUnicode.lastIndex = 0;
  18962. while (reUnicode.test(string)) {
  18963. ++result;
  18964. }
  18965. return result;
  18966. }
  18967. module.exports = unicodeSize;
  18968. /***/ }),
  18969. /***/ "../../node_modules/lodash/clone.js":
  18970. /*!********************************************************!*\
  18971. !*** C:/Repos/Babylon.js/node_modules/lodash/clone.js ***!
  18972. \********************************************************/
  18973. /*! no static exports found */
  18974. /***/ (function(module, exports, __webpack_require__) {
  18975. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  18976. /** Used to compose bitmasks for cloning. */
  18977. var CLONE_SYMBOLS_FLAG = 4;
  18978. /**
  18979. * Creates a shallow clone of `value`.
  18980. *
  18981. * **Note:** This method is loosely based on the
  18982. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  18983. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  18984. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  18985. * arrays. The own enumerable properties of `arguments` objects are cloned
  18986. * as plain objects. An empty object is returned for uncloneable values such
  18987. * as error objects, functions, DOM nodes, and WeakMaps.
  18988. *
  18989. * @static
  18990. * @memberOf _
  18991. * @since 0.1.0
  18992. * @category Lang
  18993. * @param {*} value The value to clone.
  18994. * @returns {*} Returns the cloned value.
  18995. * @see _.cloneDeep
  18996. * @example
  18997. *
  18998. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  18999. *
  19000. * var shallow = _.clone(objects);
  19001. * console.log(shallow[0] === objects[0]);
  19002. * // => true
  19003. */
  19004. function clone(value) {
  19005. return baseClone(value, CLONE_SYMBOLS_FLAG);
  19006. }
  19007. module.exports = clone;
  19008. /***/ }),
  19009. /***/ "../../node_modules/lodash/cloneDeep.js":
  19010. /*!************************************************************!*\
  19011. !*** C:/Repos/Babylon.js/node_modules/lodash/cloneDeep.js ***!
  19012. \************************************************************/
  19013. /*! no static exports found */
  19014. /***/ (function(module, exports, __webpack_require__) {
  19015. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  19016. /** Used to compose bitmasks for cloning. */
  19017. var CLONE_DEEP_FLAG = 1,
  19018. CLONE_SYMBOLS_FLAG = 4;
  19019. /**
  19020. * This method is like `_.clone` except that it recursively clones `value`.
  19021. *
  19022. * @static
  19023. * @memberOf _
  19024. * @since 1.0.0
  19025. * @category Lang
  19026. * @param {*} value The value to recursively clone.
  19027. * @returns {*} Returns the deep cloned value.
  19028. * @see _.clone
  19029. * @example
  19030. *
  19031. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  19032. *
  19033. * var deep = _.cloneDeep(objects);
  19034. * console.log(deep[0] === objects[0]);
  19035. * // => false
  19036. */
  19037. function cloneDeep(value) {
  19038. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  19039. }
  19040. module.exports = cloneDeep;
  19041. /***/ }),
  19042. /***/ "../../node_modules/lodash/constant.js":
  19043. /*!***********************************************************!*\
  19044. !*** C:/Repos/Babylon.js/node_modules/lodash/constant.js ***!
  19045. \***********************************************************/
  19046. /*! no static exports found */
  19047. /***/ (function(module, exports) {
  19048. /**
  19049. * Creates a function that returns `value`.
  19050. *
  19051. * @static
  19052. * @memberOf _
  19053. * @since 2.4.0
  19054. * @category Util
  19055. * @param {*} value The value to return from the new function.
  19056. * @returns {Function} Returns the new constant function.
  19057. * @example
  19058. *
  19059. * var objects = _.times(2, _.constant({ 'a': 1 }));
  19060. *
  19061. * console.log(objects);
  19062. * // => [{ 'a': 1 }, { 'a': 1 }]
  19063. *
  19064. * console.log(objects[0] === objects[1]);
  19065. * // => true
  19066. */
  19067. function constant(value) {
  19068. return function() {
  19069. return value;
  19070. };
  19071. }
  19072. module.exports = constant;
  19073. /***/ }),
  19074. /***/ "../../node_modules/lodash/defaults.js":
  19075. /*!***********************************************************!*\
  19076. !*** C:/Repos/Babylon.js/node_modules/lodash/defaults.js ***!
  19077. \***********************************************************/
  19078. /*! no static exports found */
  19079. /***/ (function(module, exports, __webpack_require__) {
  19080. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  19081. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  19082. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  19083. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  19084. /** Used for built-in method references. */
  19085. var objectProto = Object.prototype;
  19086. /** Used to check objects for own properties. */
  19087. var hasOwnProperty = objectProto.hasOwnProperty;
  19088. /**
  19089. * Assigns own and inherited enumerable string keyed properties of source
  19090. * objects to the destination object for all destination properties that
  19091. * resolve to `undefined`. Source objects are applied from left to right.
  19092. * Once a property is set, additional values of the same property are ignored.
  19093. *
  19094. * **Note:** This method mutates `object`.
  19095. *
  19096. * @static
  19097. * @since 0.1.0
  19098. * @memberOf _
  19099. * @category Object
  19100. * @param {Object} object The destination object.
  19101. * @param {...Object} [sources] The source objects.
  19102. * @returns {Object} Returns `object`.
  19103. * @see _.defaultsDeep
  19104. * @example
  19105. *
  19106. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  19107. * // => { 'a': 1, 'b': 2 }
  19108. */
  19109. var defaults = baseRest(function(object, sources) {
  19110. object = Object(object);
  19111. var index = -1;
  19112. var length = sources.length;
  19113. var guard = length > 2 ? sources[2] : undefined;
  19114. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  19115. length = 1;
  19116. }
  19117. while (++index < length) {
  19118. var source = sources[index];
  19119. var props = keysIn(source);
  19120. var propsIndex = -1;
  19121. var propsLength = props.length;
  19122. while (++propsIndex < propsLength) {
  19123. var key = props[propsIndex];
  19124. var value = object[key];
  19125. if (value === undefined ||
  19126. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  19127. object[key] = source[key];
  19128. }
  19129. }
  19130. }
  19131. return object;
  19132. });
  19133. module.exports = defaults;
  19134. /***/ }),
  19135. /***/ "../../node_modules/lodash/each.js":
  19136. /*!*******************************************************!*\
  19137. !*** C:/Repos/Babylon.js/node_modules/lodash/each.js ***!
  19138. \*******************************************************/
  19139. /*! no static exports found */
  19140. /***/ (function(module, exports, __webpack_require__) {
  19141. module.exports = __webpack_require__(/*! ./forEach */ "../../node_modules/lodash/forEach.js");
  19142. /***/ }),
  19143. /***/ "../../node_modules/lodash/eq.js":
  19144. /*!*****************************************************!*\
  19145. !*** C:/Repos/Babylon.js/node_modules/lodash/eq.js ***!
  19146. \*****************************************************/
  19147. /*! no static exports found */
  19148. /***/ (function(module, exports) {
  19149. /**
  19150. * Performs a
  19151. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  19152. * comparison between two values to determine if they are equivalent.
  19153. *
  19154. * @static
  19155. * @memberOf _
  19156. * @since 4.0.0
  19157. * @category Lang
  19158. * @param {*} value The value to compare.
  19159. * @param {*} other The other value to compare.
  19160. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  19161. * @example
  19162. *
  19163. * var object = { 'a': 1 };
  19164. * var other = { 'a': 1 };
  19165. *
  19166. * _.eq(object, object);
  19167. * // => true
  19168. *
  19169. * _.eq(object, other);
  19170. * // => false
  19171. *
  19172. * _.eq('a', 'a');
  19173. * // => true
  19174. *
  19175. * _.eq('a', Object('a'));
  19176. * // => false
  19177. *
  19178. * _.eq(NaN, NaN);
  19179. * // => true
  19180. */
  19181. function eq(value, other) {
  19182. return value === other || (value !== value && other !== other);
  19183. }
  19184. module.exports = eq;
  19185. /***/ }),
  19186. /***/ "../../node_modules/lodash/filter.js":
  19187. /*!*********************************************************!*\
  19188. !*** C:/Repos/Babylon.js/node_modules/lodash/filter.js ***!
  19189. \*********************************************************/
  19190. /*! no static exports found */
  19191. /***/ (function(module, exports, __webpack_require__) {
  19192. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  19193. baseFilter = __webpack_require__(/*! ./_baseFilter */ "../../node_modules/lodash/_baseFilter.js"),
  19194. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  19195. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  19196. /**
  19197. * Iterates over elements of `collection`, returning an array of all elements
  19198. * `predicate` returns truthy for. The predicate is invoked with three
  19199. * arguments: (value, index|key, collection).
  19200. *
  19201. * **Note:** Unlike `_.remove`, this method returns a new array.
  19202. *
  19203. * @static
  19204. * @memberOf _
  19205. * @since 0.1.0
  19206. * @category Collection
  19207. * @param {Array|Object} collection The collection to iterate over.
  19208. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  19209. * @returns {Array} Returns the new filtered array.
  19210. * @see _.reject
  19211. * @example
  19212. *
  19213. * var users = [
  19214. * { 'user': 'barney', 'age': 36, 'active': true },
  19215. * { 'user': 'fred', 'age': 40, 'active': false }
  19216. * ];
  19217. *
  19218. * _.filter(users, function(o) { return !o.active; });
  19219. * // => objects for ['fred']
  19220. *
  19221. * // The `_.matches` iteratee shorthand.
  19222. * _.filter(users, { 'age': 36, 'active': true });
  19223. * // => objects for ['barney']
  19224. *
  19225. * // The `_.matchesProperty` iteratee shorthand.
  19226. * _.filter(users, ['active', false]);
  19227. * // => objects for ['fred']
  19228. *
  19229. * // The `_.property` iteratee shorthand.
  19230. * _.filter(users, 'active');
  19231. * // => objects for ['barney']
  19232. *
  19233. * // Combining several predicates using `_.overEvery` or `_.overSome`.
  19234. * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
  19235. * // => objects for ['fred', 'barney']
  19236. */
  19237. function filter(collection, predicate) {
  19238. var func = isArray(collection) ? arrayFilter : baseFilter;
  19239. return func(collection, baseIteratee(predicate, 3));
  19240. }
  19241. module.exports = filter;
  19242. /***/ }),
  19243. /***/ "../../node_modules/lodash/find.js":
  19244. /*!*******************************************************!*\
  19245. !*** C:/Repos/Babylon.js/node_modules/lodash/find.js ***!
  19246. \*******************************************************/
  19247. /*! no static exports found */
  19248. /***/ (function(module, exports, __webpack_require__) {
  19249. var createFind = __webpack_require__(/*! ./_createFind */ "../../node_modules/lodash/_createFind.js"),
  19250. findIndex = __webpack_require__(/*! ./findIndex */ "../../node_modules/lodash/findIndex.js");
  19251. /**
  19252. * Iterates over elements of `collection`, returning the first element
  19253. * `predicate` returns truthy for. The predicate is invoked with three
  19254. * arguments: (value, index|key, collection).
  19255. *
  19256. * @static
  19257. * @memberOf _
  19258. * @since 0.1.0
  19259. * @category Collection
  19260. * @param {Array|Object} collection The collection to inspect.
  19261. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  19262. * @param {number} [fromIndex=0] The index to search from.
  19263. * @returns {*} Returns the matched element, else `undefined`.
  19264. * @example
  19265. *
  19266. * var users = [
  19267. * { 'user': 'barney', 'age': 36, 'active': true },
  19268. * { 'user': 'fred', 'age': 40, 'active': false },
  19269. * { 'user': 'pebbles', 'age': 1, 'active': true }
  19270. * ];
  19271. *
  19272. * _.find(users, function(o) { return o.age < 40; });
  19273. * // => object for 'barney'
  19274. *
  19275. * // The `_.matches` iteratee shorthand.
  19276. * _.find(users, { 'age': 1, 'active': true });
  19277. * // => object for 'pebbles'
  19278. *
  19279. * // The `_.matchesProperty` iteratee shorthand.
  19280. * _.find(users, ['active', false]);
  19281. * // => object for 'fred'
  19282. *
  19283. * // The `_.property` iteratee shorthand.
  19284. * _.find(users, 'active');
  19285. * // => object for 'barney'
  19286. */
  19287. var find = createFind(findIndex);
  19288. module.exports = find;
  19289. /***/ }),
  19290. /***/ "../../node_modules/lodash/findIndex.js":
  19291. /*!************************************************************!*\
  19292. !*** C:/Repos/Babylon.js/node_modules/lodash/findIndex.js ***!
  19293. \************************************************************/
  19294. /*! no static exports found */
  19295. /***/ (function(module, exports, __webpack_require__) {
  19296. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  19297. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  19298. toInteger = __webpack_require__(/*! ./toInteger */ "../../node_modules/lodash/toInteger.js");
  19299. /* Built-in method references for those with the same name as other `lodash` methods. */
  19300. var nativeMax = Math.max;
  19301. /**
  19302. * This method is like `_.find` except that it returns the index of the first
  19303. * element `predicate` returns truthy for instead of the element itself.
  19304. *
  19305. * @static
  19306. * @memberOf _
  19307. * @since 1.1.0
  19308. * @category Array
  19309. * @param {Array} array The array to inspect.
  19310. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  19311. * @param {number} [fromIndex=0] The index to search from.
  19312. * @returns {number} Returns the index of the found element, else `-1`.
  19313. * @example
  19314. *
  19315. * var users = [
  19316. * { 'user': 'barney', 'active': false },
  19317. * { 'user': 'fred', 'active': false },
  19318. * { 'user': 'pebbles', 'active': true }
  19319. * ];
  19320. *
  19321. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  19322. * // => 0
  19323. *
  19324. * // The `_.matches` iteratee shorthand.
  19325. * _.findIndex(users, { 'user': 'fred', 'active': false });
  19326. * // => 1
  19327. *
  19328. * // The `_.matchesProperty` iteratee shorthand.
  19329. * _.findIndex(users, ['active', false]);
  19330. * // => 0
  19331. *
  19332. * // The `_.property` iteratee shorthand.
  19333. * _.findIndex(users, 'active');
  19334. * // => 2
  19335. */
  19336. function findIndex(array, predicate, fromIndex) {
  19337. var length = array == null ? 0 : array.length;
  19338. if (!length) {
  19339. return -1;
  19340. }
  19341. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  19342. if (index < 0) {
  19343. index = nativeMax(length + index, 0);
  19344. }
  19345. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  19346. }
  19347. module.exports = findIndex;
  19348. /***/ }),
  19349. /***/ "../../node_modules/lodash/flatten.js":
  19350. /*!**********************************************************!*\
  19351. !*** C:/Repos/Babylon.js/node_modules/lodash/flatten.js ***!
  19352. \**********************************************************/
  19353. /*! no static exports found */
  19354. /***/ (function(module, exports, __webpack_require__) {
  19355. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js");
  19356. /**
  19357. * Flattens `array` a single level deep.
  19358. *
  19359. * @static
  19360. * @memberOf _
  19361. * @since 0.1.0
  19362. * @category Array
  19363. * @param {Array} array The array to flatten.
  19364. * @returns {Array} Returns the new flattened array.
  19365. * @example
  19366. *
  19367. * _.flatten([1, [2, [3, [4]], 5]]);
  19368. * // => [1, 2, [3, [4]], 5]
  19369. */
  19370. function flatten(array) {
  19371. var length = array == null ? 0 : array.length;
  19372. return length ? baseFlatten(array, 1) : [];
  19373. }
  19374. module.exports = flatten;
  19375. /***/ }),
  19376. /***/ "../../node_modules/lodash/forEach.js":
  19377. /*!**********************************************************!*\
  19378. !*** C:/Repos/Babylon.js/node_modules/lodash/forEach.js ***!
  19379. \**********************************************************/
  19380. /*! no static exports found */
  19381. /***/ (function(module, exports, __webpack_require__) {
  19382. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  19383. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  19384. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  19385. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  19386. /**
  19387. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  19388. * The iteratee is invoked with three arguments: (value, index|key, collection).
  19389. * Iteratee functions may exit iteration early by explicitly returning `false`.
  19390. *
  19391. * **Note:** As with other "Collections" methods, objects with a "length"
  19392. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  19393. * or `_.forOwn` for object iteration.
  19394. *
  19395. * @static
  19396. * @memberOf _
  19397. * @since 0.1.0
  19398. * @alias each
  19399. * @category Collection
  19400. * @param {Array|Object} collection The collection to iterate over.
  19401. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  19402. * @returns {Array|Object} Returns `collection`.
  19403. * @see _.forEachRight
  19404. * @example
  19405. *
  19406. * _.forEach([1, 2], function(value) {
  19407. * console.log(value);
  19408. * });
  19409. * // => Logs `1` then `2`.
  19410. *
  19411. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  19412. * console.log(key);
  19413. * });
  19414. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  19415. */
  19416. function forEach(collection, iteratee) {
  19417. var func = isArray(collection) ? arrayEach : baseEach;
  19418. return func(collection, castFunction(iteratee));
  19419. }
  19420. module.exports = forEach;
  19421. /***/ }),
  19422. /***/ "../../node_modules/lodash/forIn.js":
  19423. /*!********************************************************!*\
  19424. !*** C:/Repos/Babylon.js/node_modules/lodash/forIn.js ***!
  19425. \********************************************************/
  19426. /*! no static exports found */
  19427. /***/ (function(module, exports, __webpack_require__) {
  19428. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  19429. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  19430. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  19431. /**
  19432. * Iterates over own and inherited enumerable string keyed properties of an
  19433. * object and invokes `iteratee` for each property. The iteratee is invoked
  19434. * with three arguments: (value, key, object). Iteratee functions may exit
  19435. * iteration early by explicitly returning `false`.
  19436. *
  19437. * @static
  19438. * @memberOf _
  19439. * @since 0.3.0
  19440. * @category Object
  19441. * @param {Object} object The object to iterate over.
  19442. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  19443. * @returns {Object} Returns `object`.
  19444. * @see _.forInRight
  19445. * @example
  19446. *
  19447. * function Foo() {
  19448. * this.a = 1;
  19449. * this.b = 2;
  19450. * }
  19451. *
  19452. * Foo.prototype.c = 3;
  19453. *
  19454. * _.forIn(new Foo, function(value, key) {
  19455. * console.log(key);
  19456. * });
  19457. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  19458. */
  19459. function forIn(object, iteratee) {
  19460. return object == null
  19461. ? object
  19462. : baseFor(object, castFunction(iteratee), keysIn);
  19463. }
  19464. module.exports = forIn;
  19465. /***/ }),
  19466. /***/ "../../node_modules/lodash/get.js":
  19467. /*!******************************************************!*\
  19468. !*** C:/Repos/Babylon.js/node_modules/lodash/get.js ***!
  19469. \******************************************************/
  19470. /*! no static exports found */
  19471. /***/ (function(module, exports, __webpack_require__) {
  19472. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  19473. /**
  19474. * Gets the value at `path` of `object`. If the resolved value is
  19475. * `undefined`, the `defaultValue` is returned in its place.
  19476. *
  19477. * @static
  19478. * @memberOf _
  19479. * @since 3.7.0
  19480. * @category Object
  19481. * @param {Object} object The object to query.
  19482. * @param {Array|string} path The path of the property to get.
  19483. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  19484. * @returns {*} Returns the resolved value.
  19485. * @example
  19486. *
  19487. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  19488. *
  19489. * _.get(object, 'a[0].b.c');
  19490. * // => 3
  19491. *
  19492. * _.get(object, ['a', '0', 'b', 'c']);
  19493. * // => 3
  19494. *
  19495. * _.get(object, 'a.b.c', 'default');
  19496. * // => 'default'
  19497. */
  19498. function get(object, path, defaultValue) {
  19499. var result = object == null ? undefined : baseGet(object, path);
  19500. return result === undefined ? defaultValue : result;
  19501. }
  19502. module.exports = get;
  19503. /***/ }),
  19504. /***/ "../../node_modules/lodash/has.js":
  19505. /*!******************************************************!*\
  19506. !*** C:/Repos/Babylon.js/node_modules/lodash/has.js ***!
  19507. \******************************************************/
  19508. /*! no static exports found */
  19509. /***/ (function(module, exports, __webpack_require__) {
  19510. var baseHas = __webpack_require__(/*! ./_baseHas */ "../../node_modules/lodash/_baseHas.js"),
  19511. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  19512. /**
  19513. * Checks if `path` is a direct property of `object`.
  19514. *
  19515. * @static
  19516. * @since 0.1.0
  19517. * @memberOf _
  19518. * @category Object
  19519. * @param {Object} object The object to query.
  19520. * @param {Array|string} path The path to check.
  19521. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  19522. * @example
  19523. *
  19524. * var object = { 'a': { 'b': 2 } };
  19525. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  19526. *
  19527. * _.has(object, 'a');
  19528. * // => true
  19529. *
  19530. * _.has(object, 'a.b');
  19531. * // => true
  19532. *
  19533. * _.has(object, ['a', 'b']);
  19534. * // => true
  19535. *
  19536. * _.has(other, 'a');
  19537. * // => false
  19538. */
  19539. function has(object, path) {
  19540. return object != null && hasPath(object, path, baseHas);
  19541. }
  19542. module.exports = has;
  19543. /***/ }),
  19544. /***/ "../../node_modules/lodash/hasIn.js":
  19545. /*!********************************************************!*\
  19546. !*** C:/Repos/Babylon.js/node_modules/lodash/hasIn.js ***!
  19547. \********************************************************/
  19548. /*! no static exports found */
  19549. /***/ (function(module, exports, __webpack_require__) {
  19550. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../node_modules/lodash/_baseHasIn.js"),
  19551. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  19552. /**
  19553. * Checks if `path` is a direct or inherited property of `object`.
  19554. *
  19555. * @static
  19556. * @memberOf _
  19557. * @since 4.0.0
  19558. * @category Object
  19559. * @param {Object} object The object to query.
  19560. * @param {Array|string} path The path to check.
  19561. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  19562. * @example
  19563. *
  19564. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  19565. *
  19566. * _.hasIn(object, 'a');
  19567. * // => true
  19568. *
  19569. * _.hasIn(object, 'a.b');
  19570. * // => true
  19571. *
  19572. * _.hasIn(object, ['a', 'b']);
  19573. * // => true
  19574. *
  19575. * _.hasIn(object, 'b');
  19576. * // => false
  19577. */
  19578. function hasIn(object, path) {
  19579. return object != null && hasPath(object, path, baseHasIn);
  19580. }
  19581. module.exports = hasIn;
  19582. /***/ }),
  19583. /***/ "../../node_modules/lodash/identity.js":
  19584. /*!***********************************************************!*\
  19585. !*** C:/Repos/Babylon.js/node_modules/lodash/identity.js ***!
  19586. \***********************************************************/
  19587. /*! no static exports found */
  19588. /***/ (function(module, exports) {
  19589. /**
  19590. * This method returns the first argument it receives.
  19591. *
  19592. * @static
  19593. * @since 0.1.0
  19594. * @memberOf _
  19595. * @category Util
  19596. * @param {*} value Any value.
  19597. * @returns {*} Returns `value`.
  19598. * @example
  19599. *
  19600. * var object = { 'a': 1 };
  19601. *
  19602. * console.log(_.identity(object) === object);
  19603. * // => true
  19604. */
  19605. function identity(value) {
  19606. return value;
  19607. }
  19608. module.exports = identity;
  19609. /***/ }),
  19610. /***/ "../../node_modules/lodash/isArguments.js":
  19611. /*!**************************************************************!*\
  19612. !*** C:/Repos/Babylon.js/node_modules/lodash/isArguments.js ***!
  19613. \**************************************************************/
  19614. /*! no static exports found */
  19615. /***/ (function(module, exports, __webpack_require__) {
  19616. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
  19617. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  19618. /** Used for built-in method references. */
  19619. var objectProto = Object.prototype;
  19620. /** Used to check objects for own properties. */
  19621. var hasOwnProperty = objectProto.hasOwnProperty;
  19622. /** Built-in value references. */
  19623. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  19624. /**
  19625. * Checks if `value` is likely an `arguments` object.
  19626. *
  19627. * @static
  19628. * @memberOf _
  19629. * @since 0.1.0
  19630. * @category Lang
  19631. * @param {*} value The value to check.
  19632. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  19633. * else `false`.
  19634. * @example
  19635. *
  19636. * _.isArguments(function() { return arguments; }());
  19637. * // => true
  19638. *
  19639. * _.isArguments([1, 2, 3]);
  19640. * // => false
  19641. */
  19642. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  19643. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  19644. !propertyIsEnumerable.call(value, 'callee');
  19645. };
  19646. module.exports = isArguments;
  19647. /***/ }),
  19648. /***/ "../../node_modules/lodash/isArray.js":
  19649. /*!**********************************************************!*\
  19650. !*** C:/Repos/Babylon.js/node_modules/lodash/isArray.js ***!
  19651. \**********************************************************/
  19652. /*! no static exports found */
  19653. /***/ (function(module, exports) {
  19654. /**
  19655. * Checks if `value` is classified as an `Array` object.
  19656. *
  19657. * @static
  19658. * @memberOf _
  19659. * @since 0.1.0
  19660. * @category Lang
  19661. * @param {*} value The value to check.
  19662. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  19663. * @example
  19664. *
  19665. * _.isArray([1, 2, 3]);
  19666. * // => true
  19667. *
  19668. * _.isArray(document.body.children);
  19669. * // => false
  19670. *
  19671. * _.isArray('abc');
  19672. * // => false
  19673. *
  19674. * _.isArray(_.noop);
  19675. * // => false
  19676. */
  19677. var isArray = Array.isArray;
  19678. module.exports = isArray;
  19679. /***/ }),
  19680. /***/ "../../node_modules/lodash/isArrayLike.js":
  19681. /*!**************************************************************!*\
  19682. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLike.js ***!
  19683. \**************************************************************/
  19684. /*! no static exports found */
  19685. /***/ (function(module, exports, __webpack_require__) {
  19686. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  19687. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
  19688. /**
  19689. * Checks if `value` is array-like. A value is considered array-like if it's
  19690. * not a function and has a `value.length` that's an integer greater than or
  19691. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  19692. *
  19693. * @static
  19694. * @memberOf _
  19695. * @since 4.0.0
  19696. * @category Lang
  19697. * @param {*} value The value to check.
  19698. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  19699. * @example
  19700. *
  19701. * _.isArrayLike([1, 2, 3]);
  19702. * // => true
  19703. *
  19704. * _.isArrayLike(document.body.children);
  19705. * // => true
  19706. *
  19707. * _.isArrayLike('abc');
  19708. * // => true
  19709. *
  19710. * _.isArrayLike(_.noop);
  19711. * // => false
  19712. */
  19713. function isArrayLike(value) {
  19714. return value != null && isLength(value.length) && !isFunction(value);
  19715. }
  19716. module.exports = isArrayLike;
  19717. /***/ }),
  19718. /***/ "../../node_modules/lodash/isArrayLikeObject.js":
  19719. /*!********************************************************************!*\
  19720. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLikeObject.js ***!
  19721. \********************************************************************/
  19722. /*! no static exports found */
  19723. /***/ (function(module, exports, __webpack_require__) {
  19724. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  19725. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  19726. /**
  19727. * This method is like `_.isArrayLike` except that it also checks if `value`
  19728. * is an object.
  19729. *
  19730. * @static
  19731. * @memberOf _
  19732. * @since 4.0.0
  19733. * @category Lang
  19734. * @param {*} value The value to check.
  19735. * @returns {boolean} Returns `true` if `value` is an array-like object,
  19736. * else `false`.
  19737. * @example
  19738. *
  19739. * _.isArrayLikeObject([1, 2, 3]);
  19740. * // => true
  19741. *
  19742. * _.isArrayLikeObject(document.body.children);
  19743. * // => true
  19744. *
  19745. * _.isArrayLikeObject('abc');
  19746. * // => false
  19747. *
  19748. * _.isArrayLikeObject(_.noop);
  19749. * // => false
  19750. */
  19751. function isArrayLikeObject(value) {
  19752. return isObjectLike(value) && isArrayLike(value);
  19753. }
  19754. module.exports = isArrayLikeObject;
  19755. /***/ }),
  19756. /***/ "../../node_modules/lodash/isBuffer.js":
  19757. /*!***********************************************************!*\
  19758. !*** C:/Repos/Babylon.js/node_modules/lodash/isBuffer.js ***!
  19759. \***********************************************************/
  19760. /*! no static exports found */
  19761. /***/ (function(module, exports, __webpack_require__) {
  19762. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
  19763. stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
  19764. /** Detect free variable `exports`. */
  19765. var freeExports = true && exports && !exports.nodeType && exports;
  19766. /** Detect free variable `module`. */
  19767. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  19768. /** Detect the popular CommonJS extension `module.exports`. */
  19769. var moduleExports = freeModule && freeModule.exports === freeExports;
  19770. /** Built-in value references. */
  19771. var Buffer = moduleExports ? root.Buffer : undefined;
  19772. /* Built-in method references for those with the same name as other `lodash` methods. */
  19773. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  19774. /**
  19775. * Checks if `value` is a buffer.
  19776. *
  19777. * @static
  19778. * @memberOf _
  19779. * @since 4.3.0
  19780. * @category Lang
  19781. * @param {*} value The value to check.
  19782. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  19783. * @example
  19784. *
  19785. * _.isBuffer(new Buffer(2));
  19786. * // => true
  19787. *
  19788. * _.isBuffer(new Uint8Array(2));
  19789. * // => false
  19790. */
  19791. var isBuffer = nativeIsBuffer || stubFalse;
  19792. module.exports = isBuffer;
  19793. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  19794. /***/ }),
  19795. /***/ "../../node_modules/lodash/isEmpty.js":
  19796. /*!**********************************************************!*\
  19797. !*** C:/Repos/Babylon.js/node_modules/lodash/isEmpty.js ***!
  19798. \**********************************************************/
  19799. /*! no static exports found */
  19800. /***/ (function(module, exports, __webpack_require__) {
  19801. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  19802. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  19803. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  19804. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  19805. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  19806. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  19807. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  19808. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  19809. /** `Object#toString` result references. */
  19810. var mapTag = '[object Map]',
  19811. setTag = '[object Set]';
  19812. /** Used for built-in method references. */
  19813. var objectProto = Object.prototype;
  19814. /** Used to check objects for own properties. */
  19815. var hasOwnProperty = objectProto.hasOwnProperty;
  19816. /**
  19817. * Checks if `value` is an empty object, collection, map, or set.
  19818. *
  19819. * Objects are considered empty if they have no own enumerable string keyed
  19820. * properties.
  19821. *
  19822. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  19823. * jQuery-like collections are considered empty if they have a `length` of `0`.
  19824. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  19825. *
  19826. * @static
  19827. * @memberOf _
  19828. * @since 0.1.0
  19829. * @category Lang
  19830. * @param {*} value The value to check.
  19831. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  19832. * @example
  19833. *
  19834. * _.isEmpty(null);
  19835. * // => true
  19836. *
  19837. * _.isEmpty(true);
  19838. * // => true
  19839. *
  19840. * _.isEmpty(1);
  19841. * // => true
  19842. *
  19843. * _.isEmpty([1, 2, 3]);
  19844. * // => false
  19845. *
  19846. * _.isEmpty({ 'a': 1 });
  19847. * // => false
  19848. */
  19849. function isEmpty(value) {
  19850. if (value == null) {
  19851. return true;
  19852. }
  19853. if (isArrayLike(value) &&
  19854. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  19855. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  19856. return !value.length;
  19857. }
  19858. var tag = getTag(value);
  19859. if (tag == mapTag || tag == setTag) {
  19860. return !value.size;
  19861. }
  19862. if (isPrototype(value)) {
  19863. return !baseKeys(value).length;
  19864. }
  19865. for (var key in value) {
  19866. if (hasOwnProperty.call(value, key)) {
  19867. return false;
  19868. }
  19869. }
  19870. return true;
  19871. }
  19872. module.exports = isEmpty;
  19873. /***/ }),
  19874. /***/ "../../node_modules/lodash/isFunction.js":
  19875. /*!*************************************************************!*\
  19876. !*** C:/Repos/Babylon.js/node_modules/lodash/isFunction.js ***!
  19877. \*************************************************************/
  19878. /*! no static exports found */
  19879. /***/ (function(module, exports, __webpack_require__) {
  19880. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  19881. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  19882. /** `Object#toString` result references. */
  19883. var asyncTag = '[object AsyncFunction]',
  19884. funcTag = '[object Function]',
  19885. genTag = '[object GeneratorFunction]',
  19886. proxyTag = '[object Proxy]';
  19887. /**
  19888. * Checks if `value` is classified as a `Function` object.
  19889. *
  19890. * @static
  19891. * @memberOf _
  19892. * @since 0.1.0
  19893. * @category Lang
  19894. * @param {*} value The value to check.
  19895. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  19896. * @example
  19897. *
  19898. * _.isFunction(_);
  19899. * // => true
  19900. *
  19901. * _.isFunction(/abc/);
  19902. * // => false
  19903. */
  19904. function isFunction(value) {
  19905. if (!isObject(value)) {
  19906. return false;
  19907. }
  19908. // The use of `Object#toString` avoids issues with the `typeof` operator
  19909. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  19910. var tag = baseGetTag(value);
  19911. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  19912. }
  19913. module.exports = isFunction;
  19914. /***/ }),
  19915. /***/ "../../node_modules/lodash/isLength.js":
  19916. /*!***********************************************************!*\
  19917. !*** C:/Repos/Babylon.js/node_modules/lodash/isLength.js ***!
  19918. \***********************************************************/
  19919. /*! no static exports found */
  19920. /***/ (function(module, exports) {
  19921. /** Used as references for various `Number` constants. */
  19922. var MAX_SAFE_INTEGER = 9007199254740991;
  19923. /**
  19924. * Checks if `value` is a valid array-like length.
  19925. *
  19926. * **Note:** This method is loosely based on
  19927. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  19928. *
  19929. * @static
  19930. * @memberOf _
  19931. * @since 4.0.0
  19932. * @category Lang
  19933. * @param {*} value The value to check.
  19934. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  19935. * @example
  19936. *
  19937. * _.isLength(3);
  19938. * // => true
  19939. *
  19940. * _.isLength(Number.MIN_VALUE);
  19941. * // => false
  19942. *
  19943. * _.isLength(Infinity);
  19944. * // => false
  19945. *
  19946. * _.isLength('3');
  19947. * // => false
  19948. */
  19949. function isLength(value) {
  19950. return typeof value == 'number' &&
  19951. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  19952. }
  19953. module.exports = isLength;
  19954. /***/ }),
  19955. /***/ "../../node_modules/lodash/isMap.js":
  19956. /*!********************************************************!*\
  19957. !*** C:/Repos/Babylon.js/node_modules/lodash/isMap.js ***!
  19958. \********************************************************/
  19959. /*! no static exports found */
  19960. /***/ (function(module, exports, __webpack_require__) {
  19961. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "../../node_modules/lodash/_baseIsMap.js"),
  19962. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  19963. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  19964. /* Node.js helper references. */
  19965. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  19966. /**
  19967. * Checks if `value` is classified as a `Map` object.
  19968. *
  19969. * @static
  19970. * @memberOf _
  19971. * @since 4.3.0
  19972. * @category Lang
  19973. * @param {*} value The value to check.
  19974. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  19975. * @example
  19976. *
  19977. * _.isMap(new Map);
  19978. * // => true
  19979. *
  19980. * _.isMap(new WeakMap);
  19981. * // => false
  19982. */
  19983. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  19984. module.exports = isMap;
  19985. /***/ }),
  19986. /***/ "../../node_modules/lodash/isObject.js":
  19987. /*!***********************************************************!*\
  19988. !*** C:/Repos/Babylon.js/node_modules/lodash/isObject.js ***!
  19989. \***********************************************************/
  19990. /*! no static exports found */
  19991. /***/ (function(module, exports) {
  19992. /**
  19993. * Checks if `value` is the
  19994. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  19995. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  19996. *
  19997. * @static
  19998. * @memberOf _
  19999. * @since 0.1.0
  20000. * @category Lang
  20001. * @param {*} value The value to check.
  20002. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  20003. * @example
  20004. *
  20005. * _.isObject({});
  20006. * // => true
  20007. *
  20008. * _.isObject([1, 2, 3]);
  20009. * // => true
  20010. *
  20011. * _.isObject(_.noop);
  20012. * // => true
  20013. *
  20014. * _.isObject(null);
  20015. * // => false
  20016. */
  20017. function isObject(value) {
  20018. var type = typeof value;
  20019. return value != null && (type == 'object' || type == 'function');
  20020. }
  20021. module.exports = isObject;
  20022. /***/ }),
  20023. /***/ "../../node_modules/lodash/isObjectLike.js":
  20024. /*!***************************************************************!*\
  20025. !*** C:/Repos/Babylon.js/node_modules/lodash/isObjectLike.js ***!
  20026. \***************************************************************/
  20027. /*! no static exports found */
  20028. /***/ (function(module, exports) {
  20029. /**
  20030. * Checks if `value` is object-like. A value is object-like if it's not `null`
  20031. * and has a `typeof` result of "object".
  20032. *
  20033. * @static
  20034. * @memberOf _
  20035. * @since 4.0.0
  20036. * @category Lang
  20037. * @param {*} value The value to check.
  20038. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  20039. * @example
  20040. *
  20041. * _.isObjectLike({});
  20042. * // => true
  20043. *
  20044. * _.isObjectLike([1, 2, 3]);
  20045. * // => true
  20046. *
  20047. * _.isObjectLike(_.noop);
  20048. * // => false
  20049. *
  20050. * _.isObjectLike(null);
  20051. * // => false
  20052. */
  20053. function isObjectLike(value) {
  20054. return value != null && typeof value == 'object';
  20055. }
  20056. module.exports = isObjectLike;
  20057. /***/ }),
  20058. /***/ "../../node_modules/lodash/isPlainObject.js":
  20059. /*!****************************************************************!*\
  20060. !*** C:/Repos/Babylon.js/node_modules/lodash/isPlainObject.js ***!
  20061. \****************************************************************/
  20062. /*! no static exports found */
  20063. /***/ (function(module, exports, __webpack_require__) {
  20064. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  20065. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  20066. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  20067. /** `Object#toString` result references. */
  20068. var objectTag = '[object Object]';
  20069. /** Used for built-in method references. */
  20070. var funcProto = Function.prototype,
  20071. objectProto = Object.prototype;
  20072. /** Used to resolve the decompiled source of functions. */
  20073. var funcToString = funcProto.toString;
  20074. /** Used to check objects for own properties. */
  20075. var hasOwnProperty = objectProto.hasOwnProperty;
  20076. /** Used to infer the `Object` constructor. */
  20077. var objectCtorString = funcToString.call(Object);
  20078. /**
  20079. * Checks if `value` is a plain object, that is, an object created by the
  20080. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  20081. *
  20082. * @static
  20083. * @memberOf _
  20084. * @since 0.8.0
  20085. * @category Lang
  20086. * @param {*} value The value to check.
  20087. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  20088. * @example
  20089. *
  20090. * function Foo() {
  20091. * this.a = 1;
  20092. * }
  20093. *
  20094. * _.isPlainObject(new Foo);
  20095. * // => false
  20096. *
  20097. * _.isPlainObject([1, 2, 3]);
  20098. * // => false
  20099. *
  20100. * _.isPlainObject({ 'x': 0, 'y': 0 });
  20101. * // => true
  20102. *
  20103. * _.isPlainObject(Object.create(null));
  20104. * // => true
  20105. */
  20106. function isPlainObject(value) {
  20107. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  20108. return false;
  20109. }
  20110. var proto = getPrototype(value);
  20111. if (proto === null) {
  20112. return true;
  20113. }
  20114. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  20115. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  20116. funcToString.call(Ctor) == objectCtorString;
  20117. }
  20118. module.exports = isPlainObject;
  20119. /***/ }),
  20120. /***/ "../../node_modules/lodash/isSet.js":
  20121. /*!********************************************************!*\
  20122. !*** C:/Repos/Babylon.js/node_modules/lodash/isSet.js ***!
  20123. \********************************************************/
  20124. /*! no static exports found */
  20125. /***/ (function(module, exports, __webpack_require__) {
  20126. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "../../node_modules/lodash/_baseIsSet.js"),
  20127. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  20128. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  20129. /* Node.js helper references. */
  20130. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  20131. /**
  20132. * Checks if `value` is classified as a `Set` object.
  20133. *
  20134. * @static
  20135. * @memberOf _
  20136. * @since 4.3.0
  20137. * @category Lang
  20138. * @param {*} value The value to check.
  20139. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  20140. * @example
  20141. *
  20142. * _.isSet(new Set);
  20143. * // => true
  20144. *
  20145. * _.isSet(new WeakSet);
  20146. * // => false
  20147. */
  20148. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  20149. module.exports = isSet;
  20150. /***/ }),
  20151. /***/ "../../node_modules/lodash/isString.js":
  20152. /*!***********************************************************!*\
  20153. !*** C:/Repos/Babylon.js/node_modules/lodash/isString.js ***!
  20154. \***********************************************************/
  20155. /*! no static exports found */
  20156. /***/ (function(module, exports, __webpack_require__) {
  20157. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  20158. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  20159. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  20160. /** `Object#toString` result references. */
  20161. var stringTag = '[object String]';
  20162. /**
  20163. * Checks if `value` is classified as a `String` primitive or object.
  20164. *
  20165. * @static
  20166. * @since 0.1.0
  20167. * @memberOf _
  20168. * @category Lang
  20169. * @param {*} value The value to check.
  20170. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  20171. * @example
  20172. *
  20173. * _.isString('abc');
  20174. * // => true
  20175. *
  20176. * _.isString(1);
  20177. * // => false
  20178. */
  20179. function isString(value) {
  20180. return typeof value == 'string' ||
  20181. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  20182. }
  20183. module.exports = isString;
  20184. /***/ }),
  20185. /***/ "../../node_modules/lodash/isSymbol.js":
  20186. /*!***********************************************************!*\
  20187. !*** C:/Repos/Babylon.js/node_modules/lodash/isSymbol.js ***!
  20188. \***********************************************************/
  20189. /*! no static exports found */
  20190. /***/ (function(module, exports, __webpack_require__) {
  20191. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  20192. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  20193. /** `Object#toString` result references. */
  20194. var symbolTag = '[object Symbol]';
  20195. /**
  20196. * Checks if `value` is classified as a `Symbol` primitive or object.
  20197. *
  20198. * @static
  20199. * @memberOf _
  20200. * @since 4.0.0
  20201. * @category Lang
  20202. * @param {*} value The value to check.
  20203. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  20204. * @example
  20205. *
  20206. * _.isSymbol(Symbol.iterator);
  20207. * // => true
  20208. *
  20209. * _.isSymbol('abc');
  20210. * // => false
  20211. */
  20212. function isSymbol(value) {
  20213. return typeof value == 'symbol' ||
  20214. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  20215. }
  20216. module.exports = isSymbol;
  20217. /***/ }),
  20218. /***/ "../../node_modules/lodash/isTypedArray.js":
  20219. /*!***************************************************************!*\
  20220. !*** C:/Repos/Babylon.js/node_modules/lodash/isTypedArray.js ***!
  20221. \***************************************************************/
  20222. /*! no static exports found */
  20223. /***/ (function(module, exports, __webpack_require__) {
  20224. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
  20225. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  20226. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  20227. /* Node.js helper references. */
  20228. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  20229. /**
  20230. * Checks if `value` is classified as a typed array.
  20231. *
  20232. * @static
  20233. * @memberOf _
  20234. * @since 3.0.0
  20235. * @category Lang
  20236. * @param {*} value The value to check.
  20237. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  20238. * @example
  20239. *
  20240. * _.isTypedArray(new Uint8Array);
  20241. * // => true
  20242. *
  20243. * _.isTypedArray([]);
  20244. * // => false
  20245. */
  20246. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  20247. module.exports = isTypedArray;
  20248. /***/ }),
  20249. /***/ "../../node_modules/lodash/isUndefined.js":
  20250. /*!**************************************************************!*\
  20251. !*** C:/Repos/Babylon.js/node_modules/lodash/isUndefined.js ***!
  20252. \**************************************************************/
  20253. /*! no static exports found */
  20254. /***/ (function(module, exports) {
  20255. /**
  20256. * Checks if `value` is `undefined`.
  20257. *
  20258. * @static
  20259. * @since 0.1.0
  20260. * @memberOf _
  20261. * @category Lang
  20262. * @param {*} value The value to check.
  20263. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  20264. * @example
  20265. *
  20266. * _.isUndefined(void 0);
  20267. * // => true
  20268. *
  20269. * _.isUndefined(null);
  20270. * // => false
  20271. */
  20272. function isUndefined(value) {
  20273. return value === undefined;
  20274. }
  20275. module.exports = isUndefined;
  20276. /***/ }),
  20277. /***/ "../../node_modules/lodash/keys.js":
  20278. /*!*******************************************************!*\
  20279. !*** C:/Repos/Babylon.js/node_modules/lodash/keys.js ***!
  20280. \*******************************************************/
  20281. /*! no static exports found */
  20282. /***/ (function(module, exports, __webpack_require__) {
  20283. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  20284. baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  20285. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  20286. /**
  20287. * Creates an array of the own enumerable property names of `object`.
  20288. *
  20289. * **Note:** Non-object values are coerced to objects. See the
  20290. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  20291. * for more details.
  20292. *
  20293. * @static
  20294. * @since 0.1.0
  20295. * @memberOf _
  20296. * @category Object
  20297. * @param {Object} object The object to query.
  20298. * @returns {Array} Returns the array of property names.
  20299. * @example
  20300. *
  20301. * function Foo() {
  20302. * this.a = 1;
  20303. * this.b = 2;
  20304. * }
  20305. *
  20306. * Foo.prototype.c = 3;
  20307. *
  20308. * _.keys(new Foo);
  20309. * // => ['a', 'b'] (iteration order is not guaranteed)
  20310. *
  20311. * _.keys('hi');
  20312. * // => ['0', '1']
  20313. */
  20314. function keys(object) {
  20315. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  20316. }
  20317. module.exports = keys;
  20318. /***/ }),
  20319. /***/ "../../node_modules/lodash/keysIn.js":
  20320. /*!*********************************************************!*\
  20321. !*** C:/Repos/Babylon.js/node_modules/lodash/keysIn.js ***!
  20322. \*********************************************************/
  20323. /*! no static exports found */
  20324. /***/ (function(module, exports, __webpack_require__) {
  20325. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  20326. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "../../node_modules/lodash/_baseKeysIn.js"),
  20327. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  20328. /**
  20329. * Creates an array of the own and inherited enumerable property names of `object`.
  20330. *
  20331. * **Note:** Non-object values are coerced to objects.
  20332. *
  20333. * @static
  20334. * @memberOf _
  20335. * @since 3.0.0
  20336. * @category Object
  20337. * @param {Object} object The object to query.
  20338. * @returns {Array} Returns the array of property names.
  20339. * @example
  20340. *
  20341. * function Foo() {
  20342. * this.a = 1;
  20343. * this.b = 2;
  20344. * }
  20345. *
  20346. * Foo.prototype.c = 3;
  20347. *
  20348. * _.keysIn(new Foo);
  20349. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  20350. */
  20351. function keysIn(object) {
  20352. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  20353. }
  20354. module.exports = keysIn;
  20355. /***/ }),
  20356. /***/ "../../node_modules/lodash/last.js":
  20357. /*!*******************************************************!*\
  20358. !*** C:/Repos/Babylon.js/node_modules/lodash/last.js ***!
  20359. \*******************************************************/
  20360. /*! no static exports found */
  20361. /***/ (function(module, exports) {
  20362. /**
  20363. * Gets the last element of `array`.
  20364. *
  20365. * @static
  20366. * @memberOf _
  20367. * @since 0.1.0
  20368. * @category Array
  20369. * @param {Array} array The array to query.
  20370. * @returns {*} Returns the last element of `array`.
  20371. * @example
  20372. *
  20373. * _.last([1, 2, 3]);
  20374. * // => 3
  20375. */
  20376. function last(array) {
  20377. var length = array == null ? 0 : array.length;
  20378. return length ? array[length - 1] : undefined;
  20379. }
  20380. module.exports = last;
  20381. /***/ }),
  20382. /***/ "../../node_modules/lodash/map.js":
  20383. /*!******************************************************!*\
  20384. !*** C:/Repos/Babylon.js/node_modules/lodash/map.js ***!
  20385. \******************************************************/
  20386. /*! no static exports found */
  20387. /***/ (function(module, exports, __webpack_require__) {
  20388. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  20389. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  20390. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  20391. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  20392. /**
  20393. * Creates an array of values by running each element in `collection` thru
  20394. * `iteratee`. The iteratee is invoked with three arguments:
  20395. * (value, index|key, collection).
  20396. *
  20397. * Many lodash methods are guarded to work as iteratees for methods like
  20398. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  20399. *
  20400. * The guarded methods are:
  20401. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  20402. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  20403. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  20404. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  20405. *
  20406. * @static
  20407. * @memberOf _
  20408. * @since 0.1.0
  20409. * @category Collection
  20410. * @param {Array|Object} collection The collection to iterate over.
  20411. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  20412. * @returns {Array} Returns the new mapped array.
  20413. * @example
  20414. *
  20415. * function square(n) {
  20416. * return n * n;
  20417. * }
  20418. *
  20419. * _.map([4, 8], square);
  20420. * // => [16, 64]
  20421. *
  20422. * _.map({ 'a': 4, 'b': 8 }, square);
  20423. * // => [16, 64] (iteration order is not guaranteed)
  20424. *
  20425. * var users = [
  20426. * { 'user': 'barney' },
  20427. * { 'user': 'fred' }
  20428. * ];
  20429. *
  20430. * // The `_.property` iteratee shorthand.
  20431. * _.map(users, 'user');
  20432. * // => ['barney', 'fred']
  20433. */
  20434. function map(collection, iteratee) {
  20435. var func = isArray(collection) ? arrayMap : baseMap;
  20436. return func(collection, baseIteratee(iteratee, 3));
  20437. }
  20438. module.exports = map;
  20439. /***/ }),
  20440. /***/ "../../node_modules/lodash/mapValues.js":
  20441. /*!************************************************************!*\
  20442. !*** C:/Repos/Babylon.js/node_modules/lodash/mapValues.js ***!
  20443. \************************************************************/
  20444. /*! no static exports found */
  20445. /***/ (function(module, exports, __webpack_require__) {
  20446. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  20447. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  20448. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js");
  20449. /**
  20450. * Creates an object with the same keys as `object` and values generated
  20451. * by running each own enumerable string keyed property of `object` thru
  20452. * `iteratee`. The iteratee is invoked with three arguments:
  20453. * (value, key, object).
  20454. *
  20455. * @static
  20456. * @memberOf _
  20457. * @since 2.4.0
  20458. * @category Object
  20459. * @param {Object} object The object to iterate over.
  20460. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  20461. * @returns {Object} Returns the new mapped object.
  20462. * @see _.mapKeys
  20463. * @example
  20464. *
  20465. * var users = {
  20466. * 'fred': { 'user': 'fred', 'age': 40 },
  20467. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  20468. * };
  20469. *
  20470. * _.mapValues(users, function(o) { return o.age; });
  20471. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  20472. *
  20473. * // The `_.property` iteratee shorthand.
  20474. * _.mapValues(users, 'age');
  20475. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  20476. */
  20477. function mapValues(object, iteratee) {
  20478. var result = {};
  20479. iteratee = baseIteratee(iteratee, 3);
  20480. baseForOwn(object, function(value, key, object) {
  20481. baseAssignValue(result, key, iteratee(value, key, object));
  20482. });
  20483. return result;
  20484. }
  20485. module.exports = mapValues;
  20486. /***/ }),
  20487. /***/ "../../node_modules/lodash/max.js":
  20488. /*!******************************************************!*\
  20489. !*** C:/Repos/Babylon.js/node_modules/lodash/max.js ***!
  20490. \******************************************************/
  20491. /*! no static exports found */
  20492. /***/ (function(module, exports, __webpack_require__) {
  20493. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  20494. baseGt = __webpack_require__(/*! ./_baseGt */ "../../node_modules/lodash/_baseGt.js"),
  20495. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  20496. /**
  20497. * Computes the maximum value of `array`. If `array` is empty or falsey,
  20498. * `undefined` is returned.
  20499. *
  20500. * @static
  20501. * @since 0.1.0
  20502. * @memberOf _
  20503. * @category Math
  20504. * @param {Array} array The array to iterate over.
  20505. * @returns {*} Returns the maximum value.
  20506. * @example
  20507. *
  20508. * _.max([4, 2, 8, 6]);
  20509. * // => 8
  20510. *
  20511. * _.max([]);
  20512. * // => undefined
  20513. */
  20514. function max(array) {
  20515. return (array && array.length)
  20516. ? baseExtremum(array, identity, baseGt)
  20517. : undefined;
  20518. }
  20519. module.exports = max;
  20520. /***/ }),
  20521. /***/ "../../node_modules/lodash/memoize.js":
  20522. /*!**********************************************************!*\
  20523. !*** C:/Repos/Babylon.js/node_modules/lodash/memoize.js ***!
  20524. \**********************************************************/
  20525. /*! no static exports found */
  20526. /***/ (function(module, exports, __webpack_require__) {
  20527. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  20528. /** Error message constants. */
  20529. var FUNC_ERROR_TEXT = 'Expected a function';
  20530. /**
  20531. * Creates a function that memoizes the result of `func`. If `resolver` is
  20532. * provided, it determines the cache key for storing the result based on the
  20533. * arguments provided to the memoized function. By default, the first argument
  20534. * provided to the memoized function is used as the map cache key. The `func`
  20535. * is invoked with the `this` binding of the memoized function.
  20536. *
  20537. * **Note:** The cache is exposed as the `cache` property on the memoized
  20538. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  20539. * constructor with one whose instances implement the
  20540. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  20541. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  20542. *
  20543. * @static
  20544. * @memberOf _
  20545. * @since 0.1.0
  20546. * @category Function
  20547. * @param {Function} func The function to have its output memoized.
  20548. * @param {Function} [resolver] The function to resolve the cache key.
  20549. * @returns {Function} Returns the new memoized function.
  20550. * @example
  20551. *
  20552. * var object = { 'a': 1, 'b': 2 };
  20553. * var other = { 'c': 3, 'd': 4 };
  20554. *
  20555. * var values = _.memoize(_.values);
  20556. * values(object);
  20557. * // => [1, 2]
  20558. *
  20559. * values(other);
  20560. * // => [3, 4]
  20561. *
  20562. * object.a = 2;
  20563. * values(object);
  20564. * // => [1, 2]
  20565. *
  20566. * // Modify the result cache.
  20567. * values.cache.set(object, ['a', 'b']);
  20568. * values(object);
  20569. * // => ['a', 'b']
  20570. *
  20571. * // Replace `_.memoize.Cache`.
  20572. * _.memoize.Cache = WeakMap;
  20573. */
  20574. function memoize(func, resolver) {
  20575. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  20576. throw new TypeError(FUNC_ERROR_TEXT);
  20577. }
  20578. var memoized = function() {
  20579. var args = arguments,
  20580. key = resolver ? resolver.apply(this, args) : args[0],
  20581. cache = memoized.cache;
  20582. if (cache.has(key)) {
  20583. return cache.get(key);
  20584. }
  20585. var result = func.apply(this, args);
  20586. memoized.cache = cache.set(key, result) || cache;
  20587. return result;
  20588. };
  20589. memoized.cache = new (memoize.Cache || MapCache);
  20590. return memoized;
  20591. }
  20592. // Expose `MapCache`.
  20593. memoize.Cache = MapCache;
  20594. module.exports = memoize;
  20595. /***/ }),
  20596. /***/ "../../node_modules/lodash/merge.js":
  20597. /*!********************************************************!*\
  20598. !*** C:/Repos/Babylon.js/node_modules/lodash/merge.js ***!
  20599. \********************************************************/
  20600. /*! no static exports found */
  20601. /***/ (function(module, exports, __webpack_require__) {
  20602. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "../../node_modules/lodash/_baseMerge.js"),
  20603. createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../node_modules/lodash/_createAssigner.js");
  20604. /**
  20605. * This method is like `_.assign` except that it recursively merges own and
  20606. * inherited enumerable string keyed properties of source objects into the
  20607. * destination object. Source properties that resolve to `undefined` are
  20608. * skipped if a destination value exists. Array and plain object properties
  20609. * are merged recursively. Other objects and value types are overridden by
  20610. * assignment. Source objects are applied from left to right. Subsequent
  20611. * sources overwrite property assignments of previous sources.
  20612. *
  20613. * **Note:** This method mutates `object`.
  20614. *
  20615. * @static
  20616. * @memberOf _
  20617. * @since 0.5.0
  20618. * @category Object
  20619. * @param {Object} object The destination object.
  20620. * @param {...Object} [sources] The source objects.
  20621. * @returns {Object} Returns `object`.
  20622. * @example
  20623. *
  20624. * var object = {
  20625. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  20626. * };
  20627. *
  20628. * var other = {
  20629. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  20630. * };
  20631. *
  20632. * _.merge(object, other);
  20633. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  20634. */
  20635. var merge = createAssigner(function(object, source, srcIndex) {
  20636. baseMerge(object, source, srcIndex);
  20637. });
  20638. module.exports = merge;
  20639. /***/ }),
  20640. /***/ "../../node_modules/lodash/min.js":
  20641. /*!******************************************************!*\
  20642. !*** C:/Repos/Babylon.js/node_modules/lodash/min.js ***!
  20643. \******************************************************/
  20644. /*! no static exports found */
  20645. /***/ (function(module, exports, __webpack_require__) {
  20646. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  20647. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js"),
  20648. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  20649. /**
  20650. * Computes the minimum value of `array`. If `array` is empty or falsey,
  20651. * `undefined` is returned.
  20652. *
  20653. * @static
  20654. * @since 0.1.0
  20655. * @memberOf _
  20656. * @category Math
  20657. * @param {Array} array The array to iterate over.
  20658. * @returns {*} Returns the minimum value.
  20659. * @example
  20660. *
  20661. * _.min([4, 2, 8, 6]);
  20662. * // => 2
  20663. *
  20664. * _.min([]);
  20665. * // => undefined
  20666. */
  20667. function min(array) {
  20668. return (array && array.length)
  20669. ? baseExtremum(array, identity, baseLt)
  20670. : undefined;
  20671. }
  20672. module.exports = min;
  20673. /***/ }),
  20674. /***/ "../../node_modules/lodash/minBy.js":
  20675. /*!********************************************************!*\
  20676. !*** C:/Repos/Babylon.js/node_modules/lodash/minBy.js ***!
  20677. \********************************************************/
  20678. /*! no static exports found */
  20679. /***/ (function(module, exports, __webpack_require__) {
  20680. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  20681. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  20682. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js");
  20683. /**
  20684. * This method is like `_.min` except that it accepts `iteratee` which is
  20685. * invoked for each element in `array` to generate the criterion by which
  20686. * the value is ranked. The iteratee is invoked with one argument: (value).
  20687. *
  20688. * @static
  20689. * @memberOf _
  20690. * @since 4.0.0
  20691. * @category Math
  20692. * @param {Array} array The array to iterate over.
  20693. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20694. * @returns {*} Returns the minimum value.
  20695. * @example
  20696. *
  20697. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  20698. *
  20699. * _.minBy(objects, function(o) { return o.n; });
  20700. * // => { 'n': 1 }
  20701. *
  20702. * // The `_.property` iteratee shorthand.
  20703. * _.minBy(objects, 'n');
  20704. * // => { 'n': 1 }
  20705. */
  20706. function minBy(array, iteratee) {
  20707. return (array && array.length)
  20708. ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
  20709. : undefined;
  20710. }
  20711. module.exports = minBy;
  20712. /***/ }),
  20713. /***/ "../../node_modules/lodash/noop.js":
  20714. /*!*******************************************************!*\
  20715. !*** C:/Repos/Babylon.js/node_modules/lodash/noop.js ***!
  20716. \*******************************************************/
  20717. /*! no static exports found */
  20718. /***/ (function(module, exports) {
  20719. /**
  20720. * This method returns `undefined`.
  20721. *
  20722. * @static
  20723. * @memberOf _
  20724. * @since 2.3.0
  20725. * @category Util
  20726. * @example
  20727. *
  20728. * _.times(2, _.noop);
  20729. * // => [undefined, undefined]
  20730. */
  20731. function noop() {
  20732. // No operation performed.
  20733. }
  20734. module.exports = noop;
  20735. /***/ }),
  20736. /***/ "../../node_modules/lodash/now.js":
  20737. /*!******************************************************!*\
  20738. !*** C:/Repos/Babylon.js/node_modules/lodash/now.js ***!
  20739. \******************************************************/
  20740. /*! no static exports found */
  20741. /***/ (function(module, exports, __webpack_require__) {
  20742. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  20743. /**
  20744. * Gets the timestamp of the number of milliseconds that have elapsed since
  20745. * the Unix epoch (1 January 1970 00:00:00 UTC).
  20746. *
  20747. * @static
  20748. * @memberOf _
  20749. * @since 2.4.0
  20750. * @category Date
  20751. * @returns {number} Returns the timestamp.
  20752. * @example
  20753. *
  20754. * _.defer(function(stamp) {
  20755. * console.log(_.now() - stamp);
  20756. * }, _.now());
  20757. * // => Logs the number of milliseconds it took for the deferred invocation.
  20758. */
  20759. var now = function() {
  20760. return root.Date.now();
  20761. };
  20762. module.exports = now;
  20763. /***/ }),
  20764. /***/ "../../node_modules/lodash/pick.js":
  20765. /*!*******************************************************!*\
  20766. !*** C:/Repos/Babylon.js/node_modules/lodash/pick.js ***!
  20767. \*******************************************************/
  20768. /*! no static exports found */
  20769. /***/ (function(module, exports, __webpack_require__) {
  20770. var basePick = __webpack_require__(/*! ./_basePick */ "../../node_modules/lodash/_basePick.js"),
  20771. flatRest = __webpack_require__(/*! ./_flatRest */ "../../node_modules/lodash/_flatRest.js");
  20772. /**
  20773. * Creates an object composed of the picked `object` properties.
  20774. *
  20775. * @static
  20776. * @since 0.1.0
  20777. * @memberOf _
  20778. * @category Object
  20779. * @param {Object} object The source object.
  20780. * @param {...(string|string[])} [paths] The property paths to pick.
  20781. * @returns {Object} Returns the new object.
  20782. * @example
  20783. *
  20784. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  20785. *
  20786. * _.pick(object, ['a', 'c']);
  20787. * // => { 'a': 1, 'c': 3 }
  20788. */
  20789. var pick = flatRest(function(object, paths) {
  20790. return object == null ? {} : basePick(object, paths);
  20791. });
  20792. module.exports = pick;
  20793. /***/ }),
  20794. /***/ "../../node_modules/lodash/property.js":
  20795. /*!***********************************************************!*\
  20796. !*** C:/Repos/Babylon.js/node_modules/lodash/property.js ***!
  20797. \***********************************************************/
  20798. /*! no static exports found */
  20799. /***/ (function(module, exports, __webpack_require__) {
  20800. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js"),
  20801. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../node_modules/lodash/_basePropertyDeep.js"),
  20802. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  20803. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  20804. /**
  20805. * Creates a function that returns the value at `path` of a given object.
  20806. *
  20807. * @static
  20808. * @memberOf _
  20809. * @since 2.4.0
  20810. * @category Util
  20811. * @param {Array|string} path The path of the property to get.
  20812. * @returns {Function} Returns the new accessor function.
  20813. * @example
  20814. *
  20815. * var objects = [
  20816. * { 'a': { 'b': 2 } },
  20817. * { 'a': { 'b': 1 } }
  20818. * ];
  20819. *
  20820. * _.map(objects, _.property('a.b'));
  20821. * // => [2, 1]
  20822. *
  20823. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  20824. * // => [1, 2]
  20825. */
  20826. function property(path) {
  20827. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  20828. }
  20829. module.exports = property;
  20830. /***/ }),
  20831. /***/ "../../node_modules/lodash/range.js":
  20832. /*!********************************************************!*\
  20833. !*** C:/Repos/Babylon.js/node_modules/lodash/range.js ***!
  20834. \********************************************************/
  20835. /*! no static exports found */
  20836. /***/ (function(module, exports, __webpack_require__) {
  20837. var createRange = __webpack_require__(/*! ./_createRange */ "../../node_modules/lodash/_createRange.js");
  20838. /**
  20839. * Creates an array of numbers (positive and/or negative) progressing from
  20840. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  20841. * `start` is specified without an `end` or `step`. If `end` is not specified,
  20842. * it's set to `start` with `start` then set to `0`.
  20843. *
  20844. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  20845. * floating-point values which can produce unexpected results.
  20846. *
  20847. * @static
  20848. * @since 0.1.0
  20849. * @memberOf _
  20850. * @category Util
  20851. * @param {number} [start=0] The start of the range.
  20852. * @param {number} end The end of the range.
  20853. * @param {number} [step=1] The value to increment or decrement by.
  20854. * @returns {Array} Returns the range of numbers.
  20855. * @see _.inRange, _.rangeRight
  20856. * @example
  20857. *
  20858. * _.range(4);
  20859. * // => [0, 1, 2, 3]
  20860. *
  20861. * _.range(-4);
  20862. * // => [0, -1, -2, -3]
  20863. *
  20864. * _.range(1, 5);
  20865. * // => [1, 2, 3, 4]
  20866. *
  20867. * _.range(0, 20, 5);
  20868. * // => [0, 5, 10, 15]
  20869. *
  20870. * _.range(0, -4, -1);
  20871. * // => [0, -1, -2, -3]
  20872. *
  20873. * _.range(1, 4, 0);
  20874. * // => [1, 1, 1]
  20875. *
  20876. * _.range(0);
  20877. * // => []
  20878. */
  20879. var range = createRange();
  20880. module.exports = range;
  20881. /***/ }),
  20882. /***/ "../../node_modules/lodash/reduce.js":
  20883. /*!*********************************************************!*\
  20884. !*** C:/Repos/Babylon.js/node_modules/lodash/reduce.js ***!
  20885. \*********************************************************/
  20886. /*! no static exports found */
  20887. /***/ (function(module, exports, __webpack_require__) {
  20888. var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "../../node_modules/lodash/_arrayReduce.js"),
  20889. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  20890. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  20891. baseReduce = __webpack_require__(/*! ./_baseReduce */ "../../node_modules/lodash/_baseReduce.js"),
  20892. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  20893. /**
  20894. * Reduces `collection` to a value which is the accumulated result of running
  20895. * each element in `collection` thru `iteratee`, where each successive
  20896. * invocation is supplied the return value of the previous. If `accumulator`
  20897. * is not given, the first element of `collection` is used as the initial
  20898. * value. The iteratee is invoked with four arguments:
  20899. * (accumulator, value, index|key, collection).
  20900. *
  20901. * Many lodash methods are guarded to work as iteratees for methods like
  20902. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  20903. *
  20904. * The guarded methods are:
  20905. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  20906. * and `sortBy`
  20907. *
  20908. * @static
  20909. * @memberOf _
  20910. * @since 0.1.0
  20911. * @category Collection
  20912. * @param {Array|Object} collection The collection to iterate over.
  20913. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  20914. * @param {*} [accumulator] The initial value.
  20915. * @returns {*} Returns the accumulated value.
  20916. * @see _.reduceRight
  20917. * @example
  20918. *
  20919. * _.reduce([1, 2], function(sum, n) {
  20920. * return sum + n;
  20921. * }, 0);
  20922. * // => 3
  20923. *
  20924. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  20925. * (result[value] || (result[value] = [])).push(key);
  20926. * return result;
  20927. * }, {});
  20928. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  20929. */
  20930. function reduce(collection, iteratee, accumulator) {
  20931. var func = isArray(collection) ? arrayReduce : baseReduce,
  20932. initAccum = arguments.length < 3;
  20933. return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  20934. }
  20935. module.exports = reduce;
  20936. /***/ }),
  20937. /***/ "../../node_modules/lodash/size.js":
  20938. /*!*******************************************************!*\
  20939. !*** C:/Repos/Babylon.js/node_modules/lodash/size.js ***!
  20940. \*******************************************************/
  20941. /*! no static exports found */
  20942. /***/ (function(module, exports, __webpack_require__) {
  20943. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  20944. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  20945. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  20946. isString = __webpack_require__(/*! ./isString */ "../../node_modules/lodash/isString.js"),
  20947. stringSize = __webpack_require__(/*! ./_stringSize */ "../../node_modules/lodash/_stringSize.js");
  20948. /** `Object#toString` result references. */
  20949. var mapTag = '[object Map]',
  20950. setTag = '[object Set]';
  20951. /**
  20952. * Gets the size of `collection` by returning its length for array-like
  20953. * values or the number of own enumerable string keyed properties for objects.
  20954. *
  20955. * @static
  20956. * @memberOf _
  20957. * @since 0.1.0
  20958. * @category Collection
  20959. * @param {Array|Object|string} collection The collection to inspect.
  20960. * @returns {number} Returns the collection size.
  20961. * @example
  20962. *
  20963. * _.size([1, 2, 3]);
  20964. * // => 3
  20965. *
  20966. * _.size({ 'a': 1, 'b': 2 });
  20967. * // => 2
  20968. *
  20969. * _.size('pebbles');
  20970. * // => 7
  20971. */
  20972. function size(collection) {
  20973. if (collection == null) {
  20974. return 0;
  20975. }
  20976. if (isArrayLike(collection)) {
  20977. return isString(collection) ? stringSize(collection) : collection.length;
  20978. }
  20979. var tag = getTag(collection);
  20980. if (tag == mapTag || tag == setTag) {
  20981. return collection.size;
  20982. }
  20983. return baseKeys(collection).length;
  20984. }
  20985. module.exports = size;
  20986. /***/ }),
  20987. /***/ "../../node_modules/lodash/sortBy.js":
  20988. /*!*********************************************************!*\
  20989. !*** C:/Repos/Babylon.js/node_modules/lodash/sortBy.js ***!
  20990. \*********************************************************/
  20991. /*! no static exports found */
  20992. /***/ (function(module, exports, __webpack_require__) {
  20993. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  20994. baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "../../node_modules/lodash/_baseOrderBy.js"),
  20995. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  20996. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  20997. /**
  20998. * Creates an array of elements, sorted in ascending order by the results of
  20999. * running each element in a collection thru each iteratee. This method
  21000. * performs a stable sort, that is, it preserves the original sort order of
  21001. * equal elements. The iteratees are invoked with one argument: (value).
  21002. *
  21003. * @static
  21004. * @memberOf _
  21005. * @since 0.1.0
  21006. * @category Collection
  21007. * @param {Array|Object} collection The collection to iterate over.
  21008. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  21009. * The iteratees to sort by.
  21010. * @returns {Array} Returns the new sorted array.
  21011. * @example
  21012. *
  21013. * var users = [
  21014. * { 'user': 'fred', 'age': 48 },
  21015. * { 'user': 'barney', 'age': 36 },
  21016. * { 'user': 'fred', 'age': 30 },
  21017. * { 'user': 'barney', 'age': 34 }
  21018. * ];
  21019. *
  21020. * _.sortBy(users, [function(o) { return o.user; }]);
  21021. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
  21022. *
  21023. * _.sortBy(users, ['user', 'age']);
  21024. * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
  21025. */
  21026. var sortBy = baseRest(function(collection, iteratees) {
  21027. if (collection == null) {
  21028. return [];
  21029. }
  21030. var length = iteratees.length;
  21031. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  21032. iteratees = [];
  21033. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  21034. iteratees = [iteratees[0]];
  21035. }
  21036. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  21037. });
  21038. module.exports = sortBy;
  21039. /***/ }),
  21040. /***/ "../../node_modules/lodash/stubArray.js":
  21041. /*!************************************************************!*\
  21042. !*** C:/Repos/Babylon.js/node_modules/lodash/stubArray.js ***!
  21043. \************************************************************/
  21044. /*! no static exports found */
  21045. /***/ (function(module, exports) {
  21046. /**
  21047. * This method returns a new empty array.
  21048. *
  21049. * @static
  21050. * @memberOf _
  21051. * @since 4.13.0
  21052. * @category Util
  21053. * @returns {Array} Returns the new empty array.
  21054. * @example
  21055. *
  21056. * var arrays = _.times(2, _.stubArray);
  21057. *
  21058. * console.log(arrays);
  21059. * // => [[], []]
  21060. *
  21061. * console.log(arrays[0] === arrays[1]);
  21062. * // => false
  21063. */
  21064. function stubArray() {
  21065. return [];
  21066. }
  21067. module.exports = stubArray;
  21068. /***/ }),
  21069. /***/ "../../node_modules/lodash/stubFalse.js":
  21070. /*!************************************************************!*\
  21071. !*** C:/Repos/Babylon.js/node_modules/lodash/stubFalse.js ***!
  21072. \************************************************************/
  21073. /*! no static exports found */
  21074. /***/ (function(module, exports) {
  21075. /**
  21076. * This method returns `false`.
  21077. *
  21078. * @static
  21079. * @memberOf _
  21080. * @since 4.13.0
  21081. * @category Util
  21082. * @returns {boolean} Returns `false`.
  21083. * @example
  21084. *
  21085. * _.times(2, _.stubFalse);
  21086. * // => [false, false]
  21087. */
  21088. function stubFalse() {
  21089. return false;
  21090. }
  21091. module.exports = stubFalse;
  21092. /***/ }),
  21093. /***/ "../../node_modules/lodash/toFinite.js":
  21094. /*!***********************************************************!*\
  21095. !*** C:/Repos/Babylon.js/node_modules/lodash/toFinite.js ***!
  21096. \***********************************************************/
  21097. /*! no static exports found */
  21098. /***/ (function(module, exports, __webpack_require__) {
  21099. var toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  21100. /** Used as references for various `Number` constants. */
  21101. var INFINITY = 1 / 0,
  21102. MAX_INTEGER = 1.7976931348623157e+308;
  21103. /**
  21104. * Converts `value` to a finite number.
  21105. *
  21106. * @static
  21107. * @memberOf _
  21108. * @since 4.12.0
  21109. * @category Lang
  21110. * @param {*} value The value to convert.
  21111. * @returns {number} Returns the converted number.
  21112. * @example
  21113. *
  21114. * _.toFinite(3.2);
  21115. * // => 3.2
  21116. *
  21117. * _.toFinite(Number.MIN_VALUE);
  21118. * // => 5e-324
  21119. *
  21120. * _.toFinite(Infinity);
  21121. * // => 1.7976931348623157e+308
  21122. *
  21123. * _.toFinite('3.2');
  21124. * // => 3.2
  21125. */
  21126. function toFinite(value) {
  21127. if (!value) {
  21128. return value === 0 ? value : 0;
  21129. }
  21130. value = toNumber(value);
  21131. if (value === INFINITY || value === -INFINITY) {
  21132. var sign = (value < 0 ? -1 : 1);
  21133. return sign * MAX_INTEGER;
  21134. }
  21135. return value === value ? value : 0;
  21136. }
  21137. module.exports = toFinite;
  21138. /***/ }),
  21139. /***/ "../../node_modules/lodash/toInteger.js":
  21140. /*!************************************************************!*\
  21141. !*** C:/Repos/Babylon.js/node_modules/lodash/toInteger.js ***!
  21142. \************************************************************/
  21143. /*! no static exports found */
  21144. /***/ (function(module, exports, __webpack_require__) {
  21145. var toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  21146. /**
  21147. * Converts `value` to an integer.
  21148. *
  21149. * **Note:** This method is loosely based on
  21150. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  21151. *
  21152. * @static
  21153. * @memberOf _
  21154. * @since 4.0.0
  21155. * @category Lang
  21156. * @param {*} value The value to convert.
  21157. * @returns {number} Returns the converted integer.
  21158. * @example
  21159. *
  21160. * _.toInteger(3.2);
  21161. * // => 3
  21162. *
  21163. * _.toInteger(Number.MIN_VALUE);
  21164. * // => 0
  21165. *
  21166. * _.toInteger(Infinity);
  21167. * // => 1.7976931348623157e+308
  21168. *
  21169. * _.toInteger('3.2');
  21170. * // => 3
  21171. */
  21172. function toInteger(value) {
  21173. var result = toFinite(value),
  21174. remainder = result % 1;
  21175. return result === result ? (remainder ? result - remainder : result) : 0;
  21176. }
  21177. module.exports = toInteger;
  21178. /***/ }),
  21179. /***/ "../../node_modules/lodash/toNumber.js":
  21180. /*!***********************************************************!*\
  21181. !*** C:/Repos/Babylon.js/node_modules/lodash/toNumber.js ***!
  21182. \***********************************************************/
  21183. /*! no static exports found */
  21184. /***/ (function(module, exports, __webpack_require__) {
  21185. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  21186. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  21187. /** Used as references for various `Number` constants. */
  21188. var NAN = 0 / 0;
  21189. /** Used to match leading and trailing whitespace. */
  21190. var reTrim = /^\s+|\s+$/g;
  21191. /** Used to detect bad signed hexadecimal string values. */
  21192. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  21193. /** Used to detect binary string values. */
  21194. var reIsBinary = /^0b[01]+$/i;
  21195. /** Used to detect octal string values. */
  21196. var reIsOctal = /^0o[0-7]+$/i;
  21197. /** Built-in method references without a dependency on `root`. */
  21198. var freeParseInt = parseInt;
  21199. /**
  21200. * Converts `value` to a number.
  21201. *
  21202. * @static
  21203. * @memberOf _
  21204. * @since 4.0.0
  21205. * @category Lang
  21206. * @param {*} value The value to process.
  21207. * @returns {number} Returns the number.
  21208. * @example
  21209. *
  21210. * _.toNumber(3.2);
  21211. * // => 3.2
  21212. *
  21213. * _.toNumber(Number.MIN_VALUE);
  21214. * // => 5e-324
  21215. *
  21216. * _.toNumber(Infinity);
  21217. * // => Infinity
  21218. *
  21219. * _.toNumber('3.2');
  21220. * // => 3.2
  21221. */
  21222. function toNumber(value) {
  21223. if (typeof value == 'number') {
  21224. return value;
  21225. }
  21226. if (isSymbol(value)) {
  21227. return NAN;
  21228. }
  21229. if (isObject(value)) {
  21230. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  21231. value = isObject(other) ? (other + '') : other;
  21232. }
  21233. if (typeof value != 'string') {
  21234. return value === 0 ? value : +value;
  21235. }
  21236. value = value.replace(reTrim, '');
  21237. var isBinary = reIsBinary.test(value);
  21238. return (isBinary || reIsOctal.test(value))
  21239. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  21240. : (reIsBadHex.test(value) ? NAN : +value);
  21241. }
  21242. module.exports = toNumber;
  21243. /***/ }),
  21244. /***/ "../../node_modules/lodash/toPlainObject.js":
  21245. /*!****************************************************************!*\
  21246. !*** C:/Repos/Babylon.js/node_modules/lodash/toPlainObject.js ***!
  21247. \****************************************************************/
  21248. /*! no static exports found */
  21249. /***/ (function(module, exports, __webpack_require__) {
  21250. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  21251. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  21252. /**
  21253. * Converts `value` to a plain object flattening inherited enumerable string
  21254. * keyed properties of `value` to own properties of the plain object.
  21255. *
  21256. * @static
  21257. * @memberOf _
  21258. * @since 3.0.0
  21259. * @category Lang
  21260. * @param {*} value The value to convert.
  21261. * @returns {Object} Returns the converted plain object.
  21262. * @example
  21263. *
  21264. * function Foo() {
  21265. * this.b = 2;
  21266. * }
  21267. *
  21268. * Foo.prototype.c = 3;
  21269. *
  21270. * _.assign({ 'a': 1 }, new Foo);
  21271. * // => { 'a': 1, 'b': 2 }
  21272. *
  21273. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  21274. * // => { 'a': 1, 'b': 2, 'c': 3 }
  21275. */
  21276. function toPlainObject(value) {
  21277. return copyObject(value, keysIn(value));
  21278. }
  21279. module.exports = toPlainObject;
  21280. /***/ }),
  21281. /***/ "../../node_modules/lodash/toString.js":
  21282. /*!***********************************************************!*\
  21283. !*** C:/Repos/Babylon.js/node_modules/lodash/toString.js ***!
  21284. \***********************************************************/
  21285. /*! no static exports found */
  21286. /***/ (function(module, exports, __webpack_require__) {
  21287. var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
  21288. /**
  21289. * Converts `value` to a string. An empty string is returned for `null`
  21290. * and `undefined` values. The sign of `-0` is preserved.
  21291. *
  21292. * @static
  21293. * @memberOf _
  21294. * @since 4.0.0
  21295. * @category Lang
  21296. * @param {*} value The value to convert.
  21297. * @returns {string} Returns the converted string.
  21298. * @example
  21299. *
  21300. * _.toString(null);
  21301. * // => ''
  21302. *
  21303. * _.toString(-0);
  21304. * // => '-0'
  21305. *
  21306. * _.toString([1, 2, 3]);
  21307. * // => '1,2,3'
  21308. */
  21309. function toString(value) {
  21310. return value == null ? '' : baseToString(value);
  21311. }
  21312. module.exports = toString;
  21313. /***/ }),
  21314. /***/ "../../node_modules/lodash/transform.js":
  21315. /*!************************************************************!*\
  21316. !*** C:/Repos/Babylon.js/node_modules/lodash/transform.js ***!
  21317. \************************************************************/
  21318. /*! no static exports found */
  21319. /***/ (function(module, exports, __webpack_require__) {
  21320. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  21321. baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  21322. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  21323. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  21324. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  21325. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  21326. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  21327. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  21328. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  21329. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  21330. /**
  21331. * An alternative to `_.reduce`; this method transforms `object` to a new
  21332. * `accumulator` object which is the result of running each of its own
  21333. * enumerable string keyed properties thru `iteratee`, with each invocation
  21334. * potentially mutating the `accumulator` object. If `accumulator` is not
  21335. * provided, a new object with the same `[[Prototype]]` will be used. The
  21336. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  21337. * Iteratee functions may exit iteration early by explicitly returning `false`.
  21338. *
  21339. * @static
  21340. * @memberOf _
  21341. * @since 1.3.0
  21342. * @category Object
  21343. * @param {Object} object The object to iterate over.
  21344. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  21345. * @param {*} [accumulator] The custom accumulator value.
  21346. * @returns {*} Returns the accumulated value.
  21347. * @example
  21348. *
  21349. * _.transform([2, 3, 4], function(result, n) {
  21350. * result.push(n *= n);
  21351. * return n % 2 == 0;
  21352. * }, []);
  21353. * // => [4, 9]
  21354. *
  21355. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  21356. * (result[value] || (result[value] = [])).push(key);
  21357. * }, {});
  21358. * // => { '1': ['a', 'c'], '2': ['b'] }
  21359. */
  21360. function transform(object, iteratee, accumulator) {
  21361. var isArr = isArray(object),
  21362. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  21363. iteratee = baseIteratee(iteratee, 4);
  21364. if (accumulator == null) {
  21365. var Ctor = object && object.constructor;
  21366. if (isArrLike) {
  21367. accumulator = isArr ? new Ctor : [];
  21368. }
  21369. else if (isObject(object)) {
  21370. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  21371. }
  21372. else {
  21373. accumulator = {};
  21374. }
  21375. }
  21376. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  21377. return iteratee(accumulator, value, index, object);
  21378. });
  21379. return accumulator;
  21380. }
  21381. module.exports = transform;
  21382. /***/ }),
  21383. /***/ "../../node_modules/lodash/union.js":
  21384. /*!********************************************************!*\
  21385. !*** C:/Repos/Babylon.js/node_modules/lodash/union.js ***!
  21386. \********************************************************/
  21387. /*! no static exports found */
  21388. /***/ (function(module, exports, __webpack_require__) {
  21389. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  21390. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  21391. baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../node_modules/lodash/_baseUniq.js"),
  21392. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js");
  21393. /**
  21394. * Creates an array of unique values, in order, from all given arrays using
  21395. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  21396. * for equality comparisons.
  21397. *
  21398. * @static
  21399. * @memberOf _
  21400. * @since 0.1.0
  21401. * @category Array
  21402. * @param {...Array} [arrays] The arrays to inspect.
  21403. * @returns {Array} Returns the new array of combined values.
  21404. * @example
  21405. *
  21406. * _.union([2], [1, 2]);
  21407. * // => [2, 1]
  21408. */
  21409. var union = baseRest(function(arrays) {
  21410. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  21411. });
  21412. module.exports = union;
  21413. /***/ }),
  21414. /***/ "../../node_modules/lodash/uniqueId.js":
  21415. /*!***********************************************************!*\
  21416. !*** C:/Repos/Babylon.js/node_modules/lodash/uniqueId.js ***!
  21417. \***********************************************************/
  21418. /*! no static exports found */
  21419. /***/ (function(module, exports, __webpack_require__) {
  21420. var toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  21421. /** Used to generate unique IDs. */
  21422. var idCounter = 0;
  21423. /**
  21424. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  21425. *
  21426. * @static
  21427. * @since 0.1.0
  21428. * @memberOf _
  21429. * @category Util
  21430. * @param {string} [prefix=''] The value to prefix the ID with.
  21431. * @returns {string} Returns the unique ID.
  21432. * @example
  21433. *
  21434. * _.uniqueId('contact_');
  21435. * // => 'contact_104'
  21436. *
  21437. * _.uniqueId();
  21438. * // => '105'
  21439. */
  21440. function uniqueId(prefix) {
  21441. var id = ++idCounter;
  21442. return toString(prefix) + id;
  21443. }
  21444. module.exports = uniqueId;
  21445. /***/ }),
  21446. /***/ "../../node_modules/lodash/values.js":
  21447. /*!*********************************************************!*\
  21448. !*** C:/Repos/Babylon.js/node_modules/lodash/values.js ***!
  21449. \*********************************************************/
  21450. /*! no static exports found */
  21451. /***/ (function(module, exports, __webpack_require__) {
  21452. var baseValues = __webpack_require__(/*! ./_baseValues */ "../../node_modules/lodash/_baseValues.js"),
  21453. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  21454. /**
  21455. * Creates an array of the own enumerable string keyed property values of `object`.
  21456. *
  21457. * **Note:** Non-object values are coerced to objects.
  21458. *
  21459. * @static
  21460. * @since 0.1.0
  21461. * @memberOf _
  21462. * @category Object
  21463. * @param {Object} object The object to query.
  21464. * @returns {Array} Returns the array of property values.
  21465. * @example
  21466. *
  21467. * function Foo() {
  21468. * this.a = 1;
  21469. * this.b = 2;
  21470. * }
  21471. *
  21472. * Foo.prototype.c = 3;
  21473. *
  21474. * _.values(new Foo);
  21475. * // => [1, 2] (iteration order is not guaranteed)
  21476. *
  21477. * _.values('hi');
  21478. * // => ['h', 'i']
  21479. */
  21480. function values(object) {
  21481. return object == null ? [] : baseValues(object, keys(object));
  21482. }
  21483. module.exports = values;
  21484. /***/ }),
  21485. /***/ "../../node_modules/lodash/zipObject.js":
  21486. /*!************************************************************!*\
  21487. !*** C:/Repos/Babylon.js/node_modules/lodash/zipObject.js ***!
  21488. \************************************************************/
  21489. /*! no static exports found */
  21490. /***/ (function(module, exports, __webpack_require__) {
  21491. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  21492. baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "../../node_modules/lodash/_baseZipObject.js");
  21493. /**
  21494. * This method is like `_.fromPairs` except that it accepts two arrays,
  21495. * one of property identifiers and one of corresponding values.
  21496. *
  21497. * @static
  21498. * @memberOf _
  21499. * @since 0.4.0
  21500. * @category Array
  21501. * @param {Array} [props=[]] The property identifiers.
  21502. * @param {Array} [values=[]] The property values.
  21503. * @returns {Object} Returns the new object.
  21504. * @example
  21505. *
  21506. * _.zipObject(['a', 'b'], [1, 2]);
  21507. * // => { 'a': 1, 'b': 2 }
  21508. */
  21509. function zipObject(props, values) {
  21510. return baseZipObject(props || [], values || [], assignValue);
  21511. }
  21512. module.exports = zipObject;
  21513. /***/ }),
  21514. /***/ "../../node_modules/object-assign/index.js":
  21515. /*!***************************************************************!*\
  21516. !*** C:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  21517. \***************************************************************/
  21518. /*! no static exports found */
  21519. /***/ (function(module, exports, __webpack_require__) {
  21520. "use strict";
  21521. /*
  21522. object-assign
  21523. (c) Sindre Sorhus
  21524. @license MIT
  21525. */
  21526. /* eslint-disable no-unused-vars */
  21527. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  21528. var hasOwnProperty = Object.prototype.hasOwnProperty;
  21529. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  21530. function toObject(val) {
  21531. if (val === null || val === undefined) {
  21532. throw new TypeError('Object.assign cannot be called with null or undefined');
  21533. }
  21534. return Object(val);
  21535. }
  21536. function shouldUseNative() {
  21537. try {
  21538. if (!Object.assign) {
  21539. return false;
  21540. }
  21541. // Detect buggy property enumeration order in older V8 versions.
  21542. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  21543. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  21544. test1[5] = 'de';
  21545. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  21546. return false;
  21547. }
  21548. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  21549. var test2 = {};
  21550. for (var i = 0; i < 10; i++) {
  21551. test2['_' + String.fromCharCode(i)] = i;
  21552. }
  21553. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  21554. return test2[n];
  21555. });
  21556. if (order2.join('') !== '0123456789') {
  21557. return false;
  21558. }
  21559. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  21560. var test3 = {};
  21561. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  21562. test3[letter] = letter;
  21563. });
  21564. if (Object.keys(Object.assign({}, test3)).join('') !==
  21565. 'abcdefghijklmnopqrst') {
  21566. return false;
  21567. }
  21568. return true;
  21569. } catch (err) {
  21570. // We don't expect any of the above to throw, but better to be safe.
  21571. return false;
  21572. }
  21573. }
  21574. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  21575. var from;
  21576. var to = toObject(target);
  21577. var symbols;
  21578. for (var s = 1; s < arguments.length; s++) {
  21579. from = Object(arguments[s]);
  21580. for (var key in from) {
  21581. if (hasOwnProperty.call(from, key)) {
  21582. to[key] = from[key];
  21583. }
  21584. }
  21585. if (getOwnPropertySymbols) {
  21586. symbols = getOwnPropertySymbols(from);
  21587. for (var i = 0; i < symbols.length; i++) {
  21588. if (propIsEnumerable.call(from, symbols[i])) {
  21589. to[symbols[i]] = from[symbols[i]];
  21590. }
  21591. }
  21592. }
  21593. }
  21594. return to;
  21595. };
  21596. /***/ }),
  21597. /***/ "../../node_modules/process/browser.js":
  21598. /*!***********************************************************!*\
  21599. !*** C:/Repos/Babylon.js/node_modules/process/browser.js ***!
  21600. \***********************************************************/
  21601. /*! no static exports found */
  21602. /***/ (function(module, exports) {
  21603. // shim for using process in browser
  21604. var process = module.exports = {};
  21605. // cached from whatever global is present so that test runners that stub it
  21606. // don't break things. But we need to wrap it in a try catch in case it is
  21607. // wrapped in strict mode code which doesn't define any globals. It's inside a
  21608. // function because try/catches deoptimize in certain engines.
  21609. var cachedSetTimeout;
  21610. var cachedClearTimeout;
  21611. function defaultSetTimout() {
  21612. throw new Error('setTimeout has not been defined');
  21613. }
  21614. function defaultClearTimeout () {
  21615. throw new Error('clearTimeout has not been defined');
  21616. }
  21617. (function () {
  21618. try {
  21619. if (typeof setTimeout === 'function') {
  21620. cachedSetTimeout = setTimeout;
  21621. } else {
  21622. cachedSetTimeout = defaultSetTimout;
  21623. }
  21624. } catch (e) {
  21625. cachedSetTimeout = defaultSetTimout;
  21626. }
  21627. try {
  21628. if (typeof clearTimeout === 'function') {
  21629. cachedClearTimeout = clearTimeout;
  21630. } else {
  21631. cachedClearTimeout = defaultClearTimeout;
  21632. }
  21633. } catch (e) {
  21634. cachedClearTimeout = defaultClearTimeout;
  21635. }
  21636. } ())
  21637. function runTimeout(fun) {
  21638. if (cachedSetTimeout === setTimeout) {
  21639. //normal enviroments in sane situations
  21640. return setTimeout(fun, 0);
  21641. }
  21642. // if setTimeout wasn't available but was latter defined
  21643. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  21644. cachedSetTimeout = setTimeout;
  21645. return setTimeout(fun, 0);
  21646. }
  21647. try {
  21648. // when when somebody has screwed with setTimeout but no I.E. maddness
  21649. return cachedSetTimeout(fun, 0);
  21650. } catch(e){
  21651. try {
  21652. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  21653. return cachedSetTimeout.call(null, fun, 0);
  21654. } catch(e){
  21655. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  21656. return cachedSetTimeout.call(this, fun, 0);
  21657. }
  21658. }
  21659. }
  21660. function runClearTimeout(marker) {
  21661. if (cachedClearTimeout === clearTimeout) {
  21662. //normal enviroments in sane situations
  21663. return clearTimeout(marker);
  21664. }
  21665. // if clearTimeout wasn't available but was latter defined
  21666. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  21667. cachedClearTimeout = clearTimeout;
  21668. return clearTimeout(marker);
  21669. }
  21670. try {
  21671. // when when somebody has screwed with setTimeout but no I.E. maddness
  21672. return cachedClearTimeout(marker);
  21673. } catch (e){
  21674. try {
  21675. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  21676. return cachedClearTimeout.call(null, marker);
  21677. } catch (e){
  21678. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  21679. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  21680. return cachedClearTimeout.call(this, marker);
  21681. }
  21682. }
  21683. }
  21684. var queue = [];
  21685. var draining = false;
  21686. var currentQueue;
  21687. var queueIndex = -1;
  21688. function cleanUpNextTick() {
  21689. if (!draining || !currentQueue) {
  21690. return;
  21691. }
  21692. draining = false;
  21693. if (currentQueue.length) {
  21694. queue = currentQueue.concat(queue);
  21695. } else {
  21696. queueIndex = -1;
  21697. }
  21698. if (queue.length) {
  21699. drainQueue();
  21700. }
  21701. }
  21702. function drainQueue() {
  21703. if (draining) {
  21704. return;
  21705. }
  21706. var timeout = runTimeout(cleanUpNextTick);
  21707. draining = true;
  21708. var len = queue.length;
  21709. while(len) {
  21710. currentQueue = queue;
  21711. queue = [];
  21712. while (++queueIndex < len) {
  21713. if (currentQueue) {
  21714. currentQueue[queueIndex].run();
  21715. }
  21716. }
  21717. queueIndex = -1;
  21718. len = queue.length;
  21719. }
  21720. currentQueue = null;
  21721. draining = false;
  21722. runClearTimeout(timeout);
  21723. }
  21724. process.nextTick = function (fun) {
  21725. var args = new Array(arguments.length - 1);
  21726. if (arguments.length > 1) {
  21727. for (var i = 1; i < arguments.length; i++) {
  21728. args[i - 1] = arguments[i];
  21729. }
  21730. }
  21731. queue.push(new Item(fun, args));
  21732. if (queue.length === 1 && !draining) {
  21733. runTimeout(drainQueue);
  21734. }
  21735. };
  21736. // v8 likes predictible objects
  21737. function Item(fun, array) {
  21738. this.fun = fun;
  21739. this.array = array;
  21740. }
  21741. Item.prototype.run = function () {
  21742. this.fun.apply(null, this.array);
  21743. };
  21744. process.title = 'browser';
  21745. process.browser = true;
  21746. process.env = {};
  21747. process.argv = [];
  21748. process.version = ''; // empty string to avoid regexp issues
  21749. process.versions = {};
  21750. function noop() {}
  21751. process.on = noop;
  21752. process.addListener = noop;
  21753. process.once = noop;
  21754. process.off = noop;
  21755. process.removeListener = noop;
  21756. process.removeAllListeners = noop;
  21757. process.emit = noop;
  21758. process.prependListener = noop;
  21759. process.prependOnceListener = noop;
  21760. process.listeners = function (name) { return [] }
  21761. process.binding = function (name) {
  21762. throw new Error('process.binding is not supported');
  21763. };
  21764. process.cwd = function () { return '/' };
  21765. process.chdir = function (dir) {
  21766. throw new Error('process.chdir is not supported');
  21767. };
  21768. process.umask = function() { return 0; };
  21769. /***/ }),
  21770. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  21771. /*!*********************************************************************!*\
  21772. !*** C:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  21773. \*********************************************************************/
  21774. /*! no static exports found */
  21775. /***/ (function(module, exports, __webpack_require__) {
  21776. "use strict";
  21777. /**
  21778. * Copyright (c) 2013-present, Facebook, Inc.
  21779. *
  21780. * This source code is licensed under the MIT license found in the
  21781. * LICENSE file in the root directory of this source tree.
  21782. */
  21783. var printWarning = function() {};
  21784. if (true) {
  21785. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  21786. var loggedTypeFailures = {};
  21787. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  21788. printWarning = function(text) {
  21789. var message = 'Warning: ' + text;
  21790. if (typeof console !== 'undefined') {
  21791. console.error(message);
  21792. }
  21793. try {
  21794. // --- Welcome to debugging React ---
  21795. // This error was thrown as a convenience so that you can use this stack
  21796. // to find the callsite that caused this warning to fire.
  21797. throw new Error(message);
  21798. } catch (x) {}
  21799. };
  21800. }
  21801. /**
  21802. * Assert that the values match with the type specs.
  21803. * Error messages are memorized and will only be shown once.
  21804. *
  21805. * @param {object} typeSpecs Map of name to a ReactPropType
  21806. * @param {object} values Runtime values that need to be type-checked
  21807. * @param {string} location e.g. "prop", "context", "child context"
  21808. * @param {string} componentName Name of the component for error messages.
  21809. * @param {?Function} getStack Returns the component stack.
  21810. * @private
  21811. */
  21812. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  21813. if (true) {
  21814. for (var typeSpecName in typeSpecs) {
  21815. if (has(typeSpecs, typeSpecName)) {
  21816. var error;
  21817. // Prop type validation may throw. In case they do, we don't want to
  21818. // fail the render phase where it didn't fail before. So we log it.
  21819. // After these have been cleaned up, we'll let them throw.
  21820. try {
  21821. // This is intentionally an invariant that gets caught. It's the same
  21822. // behavior as without this statement except with a better message.
  21823. if (typeof typeSpecs[typeSpecName] !== 'function') {
  21824. var err = Error(
  21825. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  21826. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  21827. );
  21828. err.name = 'Invariant Violation';
  21829. throw err;
  21830. }
  21831. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  21832. } catch (ex) {
  21833. error = ex;
  21834. }
  21835. if (error && !(error instanceof Error)) {
  21836. printWarning(
  21837. (componentName || 'React class') + ': type specification of ' +
  21838. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  21839. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  21840. 'You may have forgotten to pass an argument to the type checker ' +
  21841. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  21842. 'shape all require an argument).'
  21843. );
  21844. }
  21845. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  21846. // Only monitor this failure once because there tends to be a lot of the
  21847. // same error.
  21848. loggedTypeFailures[error.message] = true;
  21849. var stack = getStack ? getStack() : '';
  21850. printWarning(
  21851. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  21852. );
  21853. }
  21854. }
  21855. }
  21856. }
  21857. }
  21858. /**
  21859. * Resets warning cache when testing.
  21860. *
  21861. * @private
  21862. */
  21863. checkPropTypes.resetWarningCache = function() {
  21864. if (true) {
  21865. loggedTypeFailures = {};
  21866. }
  21867. }
  21868. module.exports = checkPropTypes;
  21869. /***/ }),
  21870. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  21871. /*!******************************************************************************!*\
  21872. !*** C:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  21873. \******************************************************************************/
  21874. /*! no static exports found */
  21875. /***/ (function(module, exports, __webpack_require__) {
  21876. "use strict";
  21877. /**
  21878. * Copyright (c) 2013-present, Facebook, Inc.
  21879. *
  21880. * This source code is licensed under the MIT license found in the
  21881. * LICENSE file in the root directory of this source tree.
  21882. */
  21883. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  21884. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  21885. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  21886. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  21887. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  21888. var printWarning = function() {};
  21889. if (true) {
  21890. printWarning = function(text) {
  21891. var message = 'Warning: ' + text;
  21892. if (typeof console !== 'undefined') {
  21893. console.error(message);
  21894. }
  21895. try {
  21896. // --- Welcome to debugging React ---
  21897. // This error was thrown as a convenience so that you can use this stack
  21898. // to find the callsite that caused this warning to fire.
  21899. throw new Error(message);
  21900. } catch (x) {}
  21901. };
  21902. }
  21903. function emptyFunctionThatReturnsNull() {
  21904. return null;
  21905. }
  21906. module.exports = function(isValidElement, throwOnDirectAccess) {
  21907. /* global Symbol */
  21908. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  21909. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  21910. /**
  21911. * Returns the iterator method function contained on the iterable object.
  21912. *
  21913. * Be sure to invoke the function with the iterable as context:
  21914. *
  21915. * var iteratorFn = getIteratorFn(myIterable);
  21916. * if (iteratorFn) {
  21917. * var iterator = iteratorFn.call(myIterable);
  21918. * ...
  21919. * }
  21920. *
  21921. * @param {?object} maybeIterable
  21922. * @return {?function}
  21923. */
  21924. function getIteratorFn(maybeIterable) {
  21925. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  21926. if (typeof iteratorFn === 'function') {
  21927. return iteratorFn;
  21928. }
  21929. }
  21930. /**
  21931. * Collection of methods that allow declaration and validation of props that are
  21932. * supplied to React components. Example usage:
  21933. *
  21934. * var Props = require('ReactPropTypes');
  21935. * var MyArticle = React.createClass({
  21936. * propTypes: {
  21937. * // An optional string prop named "description".
  21938. * description: Props.string,
  21939. *
  21940. * // A required enum prop named "category".
  21941. * category: Props.oneOf(['News','Photos']).isRequired,
  21942. *
  21943. * // A prop named "dialog" that requires an instance of Dialog.
  21944. * dialog: Props.instanceOf(Dialog).isRequired
  21945. * },
  21946. * render: function() { ... }
  21947. * });
  21948. *
  21949. * A more formal specification of how these methods are used:
  21950. *
  21951. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  21952. * decl := ReactPropTypes.{type}(.isRequired)?
  21953. *
  21954. * Each and every declaration produces a function with the same signature. This
  21955. * allows the creation of custom validation functions. For example:
  21956. *
  21957. * var MyLink = React.createClass({
  21958. * propTypes: {
  21959. * // An optional string or URI prop named "href".
  21960. * href: function(props, propName, componentName) {
  21961. * var propValue = props[propName];
  21962. * if (propValue != null && typeof propValue !== 'string' &&
  21963. * !(propValue instanceof URI)) {
  21964. * return new Error(
  21965. * 'Expected a string or an URI for ' + propName + ' in ' +
  21966. * componentName
  21967. * );
  21968. * }
  21969. * }
  21970. * },
  21971. * render: function() {...}
  21972. * });
  21973. *
  21974. * @internal
  21975. */
  21976. var ANONYMOUS = '<<anonymous>>';
  21977. // Important!
  21978. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  21979. var ReactPropTypes = {
  21980. array: createPrimitiveTypeChecker('array'),
  21981. bool: createPrimitiveTypeChecker('boolean'),
  21982. func: createPrimitiveTypeChecker('function'),
  21983. number: createPrimitiveTypeChecker('number'),
  21984. object: createPrimitiveTypeChecker('object'),
  21985. string: createPrimitiveTypeChecker('string'),
  21986. symbol: createPrimitiveTypeChecker('symbol'),
  21987. any: createAnyTypeChecker(),
  21988. arrayOf: createArrayOfTypeChecker,
  21989. element: createElementTypeChecker(),
  21990. elementType: createElementTypeTypeChecker(),
  21991. instanceOf: createInstanceTypeChecker,
  21992. node: createNodeChecker(),
  21993. objectOf: createObjectOfTypeChecker,
  21994. oneOf: createEnumTypeChecker,
  21995. oneOfType: createUnionTypeChecker,
  21996. shape: createShapeTypeChecker,
  21997. exact: createStrictShapeTypeChecker,
  21998. };
  21999. /**
  22000. * inlined Object.is polyfill to avoid requiring consumers ship their own
  22001. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  22002. */
  22003. /*eslint-disable no-self-compare*/
  22004. function is(x, y) {
  22005. // SameValue algorithm
  22006. if (x === y) {
  22007. // Steps 1-5, 7-10
  22008. // Steps 6.b-6.e: +0 != -0
  22009. return x !== 0 || 1 / x === 1 / y;
  22010. } else {
  22011. // Step 6.a: NaN == NaN
  22012. return x !== x && y !== y;
  22013. }
  22014. }
  22015. /*eslint-enable no-self-compare*/
  22016. /**
  22017. * We use an Error-like object for backward compatibility as people may call
  22018. * PropTypes directly and inspect their output. However, we don't use real
  22019. * Errors anymore. We don't inspect their stack anyway, and creating them
  22020. * is prohibitively expensive if they are created too often, such as what
  22021. * happens in oneOfType() for any type before the one that matched.
  22022. */
  22023. function PropTypeError(message) {
  22024. this.message = message;
  22025. this.stack = '';
  22026. }
  22027. // Make `instanceof Error` still work for returned errors.
  22028. PropTypeError.prototype = Error.prototype;
  22029. function createChainableTypeChecker(validate) {
  22030. if (true) {
  22031. var manualPropTypeCallCache = {};
  22032. var manualPropTypeWarningCount = 0;
  22033. }
  22034. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  22035. componentName = componentName || ANONYMOUS;
  22036. propFullName = propFullName || propName;
  22037. if (secret !== ReactPropTypesSecret) {
  22038. if (throwOnDirectAccess) {
  22039. // New behavior only for users of `prop-types` package
  22040. var err = new Error(
  22041. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  22042. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  22043. 'Read more at http://fb.me/use-check-prop-types'
  22044. );
  22045. err.name = 'Invariant Violation';
  22046. throw err;
  22047. } else if ( true && typeof console !== 'undefined') {
  22048. // Old behavior for people using React.PropTypes
  22049. var cacheKey = componentName + ':' + propName;
  22050. if (
  22051. !manualPropTypeCallCache[cacheKey] &&
  22052. // Avoid spamming the console because they are often not actionable except for lib authors
  22053. manualPropTypeWarningCount < 3
  22054. ) {
  22055. printWarning(
  22056. 'You are manually calling a React.PropTypes validation ' +
  22057. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  22058. 'and will throw in the standalone `prop-types` package. ' +
  22059. 'You may be seeing this warning due to a third-party PropTypes ' +
  22060. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  22061. );
  22062. manualPropTypeCallCache[cacheKey] = true;
  22063. manualPropTypeWarningCount++;
  22064. }
  22065. }
  22066. }
  22067. if (props[propName] == null) {
  22068. if (isRequired) {
  22069. if (props[propName] === null) {
  22070. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  22071. }
  22072. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  22073. }
  22074. return null;
  22075. } else {
  22076. return validate(props, propName, componentName, location, propFullName);
  22077. }
  22078. }
  22079. var chainedCheckType = checkType.bind(null, false);
  22080. chainedCheckType.isRequired = checkType.bind(null, true);
  22081. return chainedCheckType;
  22082. }
  22083. function createPrimitiveTypeChecker(expectedType) {
  22084. function validate(props, propName, componentName, location, propFullName, secret) {
  22085. var propValue = props[propName];
  22086. var propType = getPropType(propValue);
  22087. if (propType !== expectedType) {
  22088. // `propValue` being instance of, say, date/regexp, pass the 'object'
  22089. // check, but we can offer a more precise error message here rather than
  22090. // 'of type `object`'.
  22091. var preciseType = getPreciseType(propValue);
  22092. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  22093. }
  22094. return null;
  22095. }
  22096. return createChainableTypeChecker(validate);
  22097. }
  22098. function createAnyTypeChecker() {
  22099. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  22100. }
  22101. function createArrayOfTypeChecker(typeChecker) {
  22102. function validate(props, propName, componentName, location, propFullName) {
  22103. if (typeof typeChecker !== 'function') {
  22104. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  22105. }
  22106. var propValue = props[propName];
  22107. if (!Array.isArray(propValue)) {
  22108. var propType = getPropType(propValue);
  22109. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  22110. }
  22111. for (var i = 0; i < propValue.length; i++) {
  22112. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  22113. if (error instanceof Error) {
  22114. return error;
  22115. }
  22116. }
  22117. return null;
  22118. }
  22119. return createChainableTypeChecker(validate);
  22120. }
  22121. function createElementTypeChecker() {
  22122. function validate(props, propName, componentName, location, propFullName) {
  22123. var propValue = props[propName];
  22124. if (!isValidElement(propValue)) {
  22125. var propType = getPropType(propValue);
  22126. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  22127. }
  22128. return null;
  22129. }
  22130. return createChainableTypeChecker(validate);
  22131. }
  22132. function createElementTypeTypeChecker() {
  22133. function validate(props, propName, componentName, location, propFullName) {
  22134. var propValue = props[propName];
  22135. if (!ReactIs.isValidElementType(propValue)) {
  22136. var propType = getPropType(propValue);
  22137. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
  22138. }
  22139. return null;
  22140. }
  22141. return createChainableTypeChecker(validate);
  22142. }
  22143. function createInstanceTypeChecker(expectedClass) {
  22144. function validate(props, propName, componentName, location, propFullName) {
  22145. if (!(props[propName] instanceof expectedClass)) {
  22146. var expectedClassName = expectedClass.name || ANONYMOUS;
  22147. var actualClassName = getClassName(props[propName]);
  22148. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  22149. }
  22150. return null;
  22151. }
  22152. return createChainableTypeChecker(validate);
  22153. }
  22154. function createEnumTypeChecker(expectedValues) {
  22155. if (!Array.isArray(expectedValues)) {
  22156. if (true) {
  22157. if (arguments.length > 1) {
  22158. printWarning(
  22159. 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
  22160. 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
  22161. );
  22162. } else {
  22163. printWarning('Invalid argument supplied to oneOf, expected an array.');
  22164. }
  22165. }
  22166. return emptyFunctionThatReturnsNull;
  22167. }
  22168. function validate(props, propName, componentName, location, propFullName) {
  22169. var propValue = props[propName];
  22170. for (var i = 0; i < expectedValues.length; i++) {
  22171. if (is(propValue, expectedValues[i])) {
  22172. return null;
  22173. }
  22174. }
  22175. var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
  22176. var type = getPreciseType(value);
  22177. if (type === 'symbol') {
  22178. return String(value);
  22179. }
  22180. return value;
  22181. });
  22182. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  22183. }
  22184. return createChainableTypeChecker(validate);
  22185. }
  22186. function createObjectOfTypeChecker(typeChecker) {
  22187. function validate(props, propName, componentName, location, propFullName) {
  22188. if (typeof typeChecker !== 'function') {
  22189. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  22190. }
  22191. var propValue = props[propName];
  22192. var propType = getPropType(propValue);
  22193. if (propType !== 'object') {
  22194. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  22195. }
  22196. for (var key in propValue) {
  22197. if (has(propValue, key)) {
  22198. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  22199. if (error instanceof Error) {
  22200. return error;
  22201. }
  22202. }
  22203. }
  22204. return null;
  22205. }
  22206. return createChainableTypeChecker(validate);
  22207. }
  22208. function createUnionTypeChecker(arrayOfTypeCheckers) {
  22209. if (!Array.isArray(arrayOfTypeCheckers)) {
  22210. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  22211. return emptyFunctionThatReturnsNull;
  22212. }
  22213. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  22214. var checker = arrayOfTypeCheckers[i];
  22215. if (typeof checker !== 'function') {
  22216. printWarning(
  22217. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  22218. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  22219. );
  22220. return emptyFunctionThatReturnsNull;
  22221. }
  22222. }
  22223. function validate(props, propName, componentName, location, propFullName) {
  22224. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  22225. var checker = arrayOfTypeCheckers[i];
  22226. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  22227. return null;
  22228. }
  22229. }
  22230. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  22231. }
  22232. return createChainableTypeChecker(validate);
  22233. }
  22234. function createNodeChecker() {
  22235. function validate(props, propName, componentName, location, propFullName) {
  22236. if (!isNode(props[propName])) {
  22237. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  22238. }
  22239. return null;
  22240. }
  22241. return createChainableTypeChecker(validate);
  22242. }
  22243. function createShapeTypeChecker(shapeTypes) {
  22244. function validate(props, propName, componentName, location, propFullName) {
  22245. var propValue = props[propName];
  22246. var propType = getPropType(propValue);
  22247. if (propType !== 'object') {
  22248. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  22249. }
  22250. for (var key in shapeTypes) {
  22251. var checker = shapeTypes[key];
  22252. if (!checker) {
  22253. continue;
  22254. }
  22255. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  22256. if (error) {
  22257. return error;
  22258. }
  22259. }
  22260. return null;
  22261. }
  22262. return createChainableTypeChecker(validate);
  22263. }
  22264. function createStrictShapeTypeChecker(shapeTypes) {
  22265. function validate(props, propName, componentName, location, propFullName) {
  22266. var propValue = props[propName];
  22267. var propType = getPropType(propValue);
  22268. if (propType !== 'object') {
  22269. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  22270. }
  22271. // We need to check all keys in case some are required but missing from
  22272. // props.
  22273. var allKeys = assign({}, props[propName], shapeTypes);
  22274. for (var key in allKeys) {
  22275. var checker = shapeTypes[key];
  22276. if (!checker) {
  22277. return new PropTypeError(
  22278. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  22279. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  22280. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  22281. );
  22282. }
  22283. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  22284. if (error) {
  22285. return error;
  22286. }
  22287. }
  22288. return null;
  22289. }
  22290. return createChainableTypeChecker(validate);
  22291. }
  22292. function isNode(propValue) {
  22293. switch (typeof propValue) {
  22294. case 'number':
  22295. case 'string':
  22296. case 'undefined':
  22297. return true;
  22298. case 'boolean':
  22299. return !propValue;
  22300. case 'object':
  22301. if (Array.isArray(propValue)) {
  22302. return propValue.every(isNode);
  22303. }
  22304. if (propValue === null || isValidElement(propValue)) {
  22305. return true;
  22306. }
  22307. var iteratorFn = getIteratorFn(propValue);
  22308. if (iteratorFn) {
  22309. var iterator = iteratorFn.call(propValue);
  22310. var step;
  22311. if (iteratorFn !== propValue.entries) {
  22312. while (!(step = iterator.next()).done) {
  22313. if (!isNode(step.value)) {
  22314. return false;
  22315. }
  22316. }
  22317. } else {
  22318. // Iterator will provide entry [k,v] tuples rather than values.
  22319. while (!(step = iterator.next()).done) {
  22320. var entry = step.value;
  22321. if (entry) {
  22322. if (!isNode(entry[1])) {
  22323. return false;
  22324. }
  22325. }
  22326. }
  22327. }
  22328. } else {
  22329. return false;
  22330. }
  22331. return true;
  22332. default:
  22333. return false;
  22334. }
  22335. }
  22336. function isSymbol(propType, propValue) {
  22337. // Native Symbol.
  22338. if (propType === 'symbol') {
  22339. return true;
  22340. }
  22341. // falsy value can't be a Symbol
  22342. if (!propValue) {
  22343. return false;
  22344. }
  22345. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  22346. if (propValue['@@toStringTag'] === 'Symbol') {
  22347. return true;
  22348. }
  22349. // Fallback for non-spec compliant Symbols which are polyfilled.
  22350. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  22351. return true;
  22352. }
  22353. return false;
  22354. }
  22355. // Equivalent of `typeof` but with special handling for array and regexp.
  22356. function getPropType(propValue) {
  22357. var propType = typeof propValue;
  22358. if (Array.isArray(propValue)) {
  22359. return 'array';
  22360. }
  22361. if (propValue instanceof RegExp) {
  22362. // Old webkits (at least until Android 4.0) return 'function' rather than
  22363. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  22364. // passes PropTypes.object.
  22365. return 'object';
  22366. }
  22367. if (isSymbol(propType, propValue)) {
  22368. return 'symbol';
  22369. }
  22370. return propType;
  22371. }
  22372. // This handles more types than `getPropType`. Only used for error messages.
  22373. // See `createPrimitiveTypeChecker`.
  22374. function getPreciseType(propValue) {
  22375. if (typeof propValue === 'undefined' || propValue === null) {
  22376. return '' + propValue;
  22377. }
  22378. var propType = getPropType(propValue);
  22379. if (propType === 'object') {
  22380. if (propValue instanceof Date) {
  22381. return 'date';
  22382. } else if (propValue instanceof RegExp) {
  22383. return 'regexp';
  22384. }
  22385. }
  22386. return propType;
  22387. }
  22388. // Returns a string that is postfixed to a warning about an invalid type.
  22389. // For example, "undefined" or "of type array"
  22390. function getPostfixForTypeWarning(value) {
  22391. var type = getPreciseType(value);
  22392. switch (type) {
  22393. case 'array':
  22394. case 'object':
  22395. return 'an ' + type;
  22396. case 'boolean':
  22397. case 'date':
  22398. case 'regexp':
  22399. return 'a ' + type;
  22400. default:
  22401. return type;
  22402. }
  22403. }
  22404. // Returns class name of the object, if any.
  22405. function getClassName(propValue) {
  22406. if (!propValue.constructor || !propValue.constructor.name) {
  22407. return ANONYMOUS;
  22408. }
  22409. return propValue.constructor.name;
  22410. }
  22411. ReactPropTypes.checkPropTypes = checkPropTypes;
  22412. ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
  22413. ReactPropTypes.PropTypes = ReactPropTypes;
  22414. return ReactPropTypes;
  22415. };
  22416. /***/ }),
  22417. /***/ "../../node_modules/prop-types/index.js":
  22418. /*!************************************************************!*\
  22419. !*** C:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  22420. \************************************************************/
  22421. /*! no static exports found */
  22422. /***/ (function(module, exports, __webpack_require__) {
  22423. /**
  22424. * Copyright (c) 2013-present, Facebook, Inc.
  22425. *
  22426. * This source code is licensed under the MIT license found in the
  22427. * LICENSE file in the root directory of this source tree.
  22428. */
  22429. if (true) {
  22430. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  22431. // By explicitly using `prop-types` you are opting into new development behavior.
  22432. // http://fb.me/prop-types-in-prod
  22433. var throwOnDirectAccess = true;
  22434. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
  22435. } else {}
  22436. /***/ }),
  22437. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  22438. /*!*******************************************************************************!*\
  22439. !*** C:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  22440. \*******************************************************************************/
  22441. /*! no static exports found */
  22442. /***/ (function(module, exports, __webpack_require__) {
  22443. "use strict";
  22444. /**
  22445. * Copyright (c) 2013-present, Facebook, Inc.
  22446. *
  22447. * This source code is licensed under the MIT license found in the
  22448. * LICENSE file in the root directory of this source tree.
  22449. */
  22450. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  22451. module.exports = ReactPropTypesSecret;
  22452. /***/ }),
  22453. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  22454. /*!*******************************************************************************!*\
  22455. !*** C:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  22456. \*******************************************************************************/
  22457. /*! no static exports found */
  22458. /***/ (function(module, exports, __webpack_require__) {
  22459. "use strict";
  22460. /** @license React v16.13.1
  22461. * react-dom.development.js
  22462. *
  22463. * Copyright (c) Facebook, Inc. and its affiliates.
  22464. *
  22465. * This source code is licensed under the MIT license found in the
  22466. * LICENSE file in the root directory of this source tree.
  22467. */
  22468. if (true) {
  22469. (function() {
  22470. 'use strict';
  22471. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22472. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  22473. var Scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  22474. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  22475. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  22476. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
  22477. // Current owner and dispatcher used to share the same ref,
  22478. // but PR #14548 split them out to better support the react-debug-tools package.
  22479. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
  22480. ReactSharedInternals.ReactCurrentDispatcher = {
  22481. current: null
  22482. };
  22483. }
  22484. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
  22485. ReactSharedInternals.ReactCurrentBatchConfig = {
  22486. suspense: null
  22487. };
  22488. }
  22489. // by calls to these methods by a Babel plugin.
  22490. //
  22491. // In PROD (or in packages without access to React internals),
  22492. // they are left as they are instead.
  22493. function warn(format) {
  22494. {
  22495. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  22496. args[_key - 1] = arguments[_key];
  22497. }
  22498. printWarning('warn', format, args);
  22499. }
  22500. }
  22501. function error(format) {
  22502. {
  22503. for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  22504. args[_key2 - 1] = arguments[_key2];
  22505. }
  22506. printWarning('error', format, args);
  22507. }
  22508. }
  22509. function printWarning(level, format, args) {
  22510. // When changing this logic, you might want to also
  22511. // update consoleWithStackDev.www.js as well.
  22512. {
  22513. var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
  22514. if (!hasExistingStack) {
  22515. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  22516. var stack = ReactDebugCurrentFrame.getStackAddendum();
  22517. if (stack !== '') {
  22518. format += '%s';
  22519. args = args.concat([stack]);
  22520. }
  22521. }
  22522. var argsWithFormat = args.map(function (item) {
  22523. return '' + item;
  22524. }); // Careful: RN currently depends on this prefix
  22525. argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
  22526. // breaks IE9: https://github.com/facebook/react/issues/13610
  22527. // eslint-disable-next-line react-internal/no-production-logging
  22528. Function.prototype.apply.call(console[level], console, argsWithFormat);
  22529. try {
  22530. // --- Welcome to debugging React ---
  22531. // This error was thrown as a convenience so that you can use this stack
  22532. // to find the callsite that caused this warning to fire.
  22533. var argIndex = 0;
  22534. var message = 'Warning: ' + format.replace(/%s/g, function () {
  22535. return args[argIndex++];
  22536. });
  22537. throw new Error(message);
  22538. } catch (x) {}
  22539. }
  22540. }
  22541. if (!React) {
  22542. {
  22543. throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
  22544. }
  22545. }
  22546. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  22547. var funcArgs = Array.prototype.slice.call(arguments, 3);
  22548. try {
  22549. func.apply(context, funcArgs);
  22550. } catch (error) {
  22551. this.onError(error);
  22552. }
  22553. };
  22554. {
  22555. // In DEV mode, we swap out invokeGuardedCallback for a special version
  22556. // that plays more nicely with the browser's DevTools. The idea is to preserve
  22557. // "Pause on exceptions" behavior. Because React wraps all user-provided
  22558. // functions in invokeGuardedCallback, and the production version of
  22559. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  22560. // like caught exceptions, and the DevTools won't pause unless the developer
  22561. // takes the extra step of enabling pause on caught exceptions. This is
  22562. // unintuitive, though, because even though React has caught the error, from
  22563. // the developer's perspective, the error is uncaught.
  22564. //
  22565. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  22566. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  22567. // DOM node, and call the user-provided callback from inside an event handler
  22568. // for that fake event. If the callback throws, the error is "captured" using
  22569. // a global event handler. But because the error happens in a different
  22570. // event loop context, it does not interrupt the normal program flow.
  22571. // Effectively, this gives us try-catch behavior without actually using
  22572. // try-catch. Neat!
  22573. // Check that the browser supports the APIs we need to implement our special
  22574. // DEV version of invokeGuardedCallback
  22575. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  22576. var fakeNode = document.createElement('react');
  22577. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  22578. // If document doesn't exist we know for sure we will crash in this method
  22579. // when we call document.createEvent(). However this can cause confusing
  22580. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  22581. // So we preemptively throw with a better message instead.
  22582. if (!(typeof document !== 'undefined')) {
  22583. {
  22584. throw 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." );
  22585. }
  22586. }
  22587. var evt = document.createEvent('Event'); // Keeps track of whether the user-provided callback threw an error. We
  22588. // set this to true at the beginning, then set it to false right after
  22589. // calling the function. If the function errors, `didError` will never be
  22590. // set to false. This strategy works even if the browser is flaky and
  22591. // fails to call our global error handler, because it doesn't rely on
  22592. // the error event at all.
  22593. var didError = true; // Keeps track of the value of window.event so that we can reset it
  22594. // during the callback to let user code access window.event in the
  22595. // browsers that support it.
  22596. var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
  22597. // dispatching: https://github.com/facebook/react/issues/13688
  22598. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); // Create an event handler for our fake event. We will synchronously
  22599. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  22600. // call the user-provided callback.
  22601. var funcArgs = Array.prototype.slice.call(arguments, 3);
  22602. function callCallback() {
  22603. // We immediately remove the callback from event listeners so that
  22604. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  22605. // nested call would trigger the fake event handlers of any call higher
  22606. // in the stack.
  22607. fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
  22608. // window.event assignment in both IE <= 10 as they throw an error
  22609. // "Member not found" in strict mode, and in Firefox which does not
  22610. // support window.event.
  22611. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  22612. window.event = windowEvent;
  22613. }
  22614. func.apply(context, funcArgs);
  22615. didError = false;
  22616. } // Create a global error event handler. We use this to capture the value
  22617. // that was thrown. It's possible that this error handler will fire more
  22618. // than once; for example, if non-React code also calls `dispatchEvent`
  22619. // and a handler for that event throws. We should be resilient to most of
  22620. // those cases. Even if our error event handler fires more than once, the
  22621. // last error event is always used. If the callback actually does error,
  22622. // we know that the last error event is the correct one, because it's not
  22623. // possible for anything else to have happened in between our callback
  22624. // erroring and the code that follows the `dispatchEvent` call below. If
  22625. // the callback doesn't error, but the error event was fired, we know to
  22626. // ignore it because `didError` will be false, as described above.
  22627. var error; // Use this to track whether the error event is ever called.
  22628. var didSetError = false;
  22629. var isCrossOriginError = false;
  22630. function handleWindowError(event) {
  22631. error = event.error;
  22632. didSetError = true;
  22633. if (error === null && event.colno === 0 && event.lineno === 0) {
  22634. isCrossOriginError = true;
  22635. }
  22636. if (event.defaultPrevented) {
  22637. // Some other error handler has prevented default.
  22638. // Browsers silence the error report if this happens.
  22639. // We'll remember this to later decide whether to log it or not.
  22640. if (error != null && typeof error === 'object') {
  22641. try {
  22642. error._suppressLogging = true;
  22643. } catch (inner) {// Ignore.
  22644. }
  22645. }
  22646. }
  22647. } // Create a fake event type.
  22648. var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers
  22649. window.addEventListener('error', handleWindowError);
  22650. fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
  22651. // errors, it will trigger our global error handler.
  22652. evt.initEvent(evtType, false, false);
  22653. fakeNode.dispatchEvent(evt);
  22654. if (windowEventDescriptor) {
  22655. Object.defineProperty(window, 'event', windowEventDescriptor);
  22656. }
  22657. if (didError) {
  22658. if (!didSetError) {
  22659. // The callback errored, but the error event never fired.
  22660. 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.');
  22661. } else if (isCrossOriginError) {
  22662. 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.');
  22663. }
  22664. this.onError(error);
  22665. } // Remove our event listeners
  22666. window.removeEventListener('error', handleWindowError);
  22667. };
  22668. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  22669. }
  22670. }
  22671. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  22672. var hasError = false;
  22673. var caughtError = null; // Used by event system to capture/rethrow the first error.
  22674. var hasRethrowError = false;
  22675. var rethrowError = null;
  22676. var reporter = {
  22677. onError: function (error) {
  22678. hasError = true;
  22679. caughtError = error;
  22680. }
  22681. };
  22682. /**
  22683. * Call a function while guarding against errors that happens within it.
  22684. * Returns an error if it throws, otherwise null.
  22685. *
  22686. * In production, this is implemented using a try-catch. The reason we don't
  22687. * use a try-catch directly is so that we can swap out a different
  22688. * implementation in DEV mode.
  22689. *
  22690. * @param {String} name of the guard to use for logging or debugging
  22691. * @param {Function} func The function to invoke
  22692. * @param {*} context The context to use when calling the function
  22693. * @param {...*} args Arguments for function
  22694. */
  22695. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  22696. hasError = false;
  22697. caughtError = null;
  22698. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  22699. }
  22700. /**
  22701. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  22702. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  22703. * TODO: See if caughtError and rethrowError can be unified.
  22704. *
  22705. * @param {String} name of the guard to use for logging or debugging
  22706. * @param {Function} func The function to invoke
  22707. * @param {*} context The context to use when calling the function
  22708. * @param {...*} args Arguments for function
  22709. */
  22710. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  22711. invokeGuardedCallback.apply(this, arguments);
  22712. if (hasError) {
  22713. var error = clearCaughtError();
  22714. if (!hasRethrowError) {
  22715. hasRethrowError = true;
  22716. rethrowError = error;
  22717. }
  22718. }
  22719. }
  22720. /**
  22721. * During execution of guarded functions we will capture the first error which
  22722. * we will rethrow to be handled by the top level error handler.
  22723. */
  22724. function rethrowCaughtError() {
  22725. if (hasRethrowError) {
  22726. var error = rethrowError;
  22727. hasRethrowError = false;
  22728. rethrowError = null;
  22729. throw error;
  22730. }
  22731. }
  22732. function hasCaughtError() {
  22733. return hasError;
  22734. }
  22735. function clearCaughtError() {
  22736. if (hasError) {
  22737. var error = caughtError;
  22738. hasError = false;
  22739. caughtError = null;
  22740. return error;
  22741. } else {
  22742. {
  22743. {
  22744. throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
  22745. }
  22746. }
  22747. }
  22748. }
  22749. var getFiberCurrentPropsFromNode = null;
  22750. var getInstanceFromNode = null;
  22751. var getNodeFromInstance = null;
  22752. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  22753. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  22754. getInstanceFromNode = getInstanceFromNodeImpl;
  22755. getNodeFromInstance = getNodeFromInstanceImpl;
  22756. {
  22757. if (!getNodeFromInstance || !getInstanceFromNode) {
  22758. error('EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.');
  22759. }
  22760. }
  22761. }
  22762. var validateEventDispatches;
  22763. {
  22764. validateEventDispatches = function (event) {
  22765. var dispatchListeners = event._dispatchListeners;
  22766. var dispatchInstances = event._dispatchInstances;
  22767. var listenersIsArr = Array.isArray(dispatchListeners);
  22768. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  22769. var instancesIsArr = Array.isArray(dispatchInstances);
  22770. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  22771. if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) {
  22772. error('EventPluginUtils: Invalid `event`.');
  22773. }
  22774. };
  22775. }
  22776. /**
  22777. * Dispatch the event to the listener.
  22778. * @param {SyntheticEvent} event SyntheticEvent to handle
  22779. * @param {function} listener Application-level callback
  22780. * @param {*} inst Internal component instance
  22781. */
  22782. function executeDispatch(event, listener, inst) {
  22783. var type = event.type || 'unknown-event';
  22784. event.currentTarget = getNodeFromInstance(inst);
  22785. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  22786. event.currentTarget = null;
  22787. }
  22788. /**
  22789. * Standard/simple iteration through an event's collected dispatches.
  22790. */
  22791. function executeDispatchesInOrder(event) {
  22792. var dispatchListeners = event._dispatchListeners;
  22793. var dispatchInstances = event._dispatchInstances;
  22794. {
  22795. validateEventDispatches(event);
  22796. }
  22797. if (Array.isArray(dispatchListeners)) {
  22798. for (var i = 0; i < dispatchListeners.length; i++) {
  22799. if (event.isPropagationStopped()) {
  22800. break;
  22801. } // Listeners and Instances are two parallel arrays that are always in sync.
  22802. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  22803. }
  22804. } else if (dispatchListeners) {
  22805. executeDispatch(event, dispatchListeners, dispatchInstances);
  22806. }
  22807. event._dispatchListeners = null;
  22808. event._dispatchInstances = null;
  22809. }
  22810. var FunctionComponent = 0;
  22811. var ClassComponent = 1;
  22812. var IndeterminateComponent = 2; // Before we know whether it is function or class
  22813. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  22814. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  22815. var HostComponent = 5;
  22816. var HostText = 6;
  22817. var Fragment = 7;
  22818. var Mode = 8;
  22819. var ContextConsumer = 9;
  22820. var ContextProvider = 10;
  22821. var ForwardRef = 11;
  22822. var Profiler = 12;
  22823. var SuspenseComponent = 13;
  22824. var MemoComponent = 14;
  22825. var SimpleMemoComponent = 15;
  22826. var LazyComponent = 16;
  22827. var IncompleteClassComponent = 17;
  22828. var DehydratedFragment = 18;
  22829. var SuspenseListComponent = 19;
  22830. var FundamentalComponent = 20;
  22831. var ScopeComponent = 21;
  22832. var Block = 22;
  22833. /**
  22834. * Injectable ordering of event plugins.
  22835. */
  22836. var eventPluginOrder = null;
  22837. /**
  22838. * Injectable mapping from names to event plugin modules.
  22839. */
  22840. var namesToPlugins = {};
  22841. /**
  22842. * Recomputes the plugin list using the injected plugins and plugin ordering.
  22843. *
  22844. * @private
  22845. */
  22846. function recomputePluginOrdering() {
  22847. if (!eventPluginOrder) {
  22848. // Wait until an `eventPluginOrder` is injected.
  22849. return;
  22850. }
  22851. for (var pluginName in namesToPlugins) {
  22852. var pluginModule = namesToPlugins[pluginName];
  22853. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  22854. if (!(pluginIndex > -1)) {
  22855. {
  22856. throw Error( "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`." );
  22857. }
  22858. }
  22859. if (plugins[pluginIndex]) {
  22860. continue;
  22861. }
  22862. if (!pluginModule.extractEvents) {
  22863. {
  22864. throw Error( "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not." );
  22865. }
  22866. }
  22867. plugins[pluginIndex] = pluginModule;
  22868. var publishedEvents = pluginModule.eventTypes;
  22869. for (var eventName in publishedEvents) {
  22870. if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
  22871. {
  22872. throw Error( "EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`." );
  22873. }
  22874. }
  22875. }
  22876. }
  22877. }
  22878. /**
  22879. * Publishes an event so that it can be dispatched by the supplied plugin.
  22880. *
  22881. * @param {object} dispatchConfig Dispatch configuration for the event.
  22882. * @param {object} PluginModule Plugin publishing the event.
  22883. * @return {boolean} True if the event was successfully published.
  22884. * @private
  22885. */
  22886. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  22887. if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  22888. {
  22889. throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + eventName + "`." );
  22890. }
  22891. }
  22892. eventNameDispatchConfigs[eventName] = dispatchConfig;
  22893. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  22894. if (phasedRegistrationNames) {
  22895. for (var phaseName in phasedRegistrationNames) {
  22896. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  22897. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  22898. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  22899. }
  22900. }
  22901. return true;
  22902. } else if (dispatchConfig.registrationName) {
  22903. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  22904. return true;
  22905. }
  22906. return false;
  22907. }
  22908. /**
  22909. * Publishes a registration name that is used to identify dispatched events.
  22910. *
  22911. * @param {string} registrationName Registration name to add.
  22912. * @param {object} PluginModule Plugin publishing the event.
  22913. * @private
  22914. */
  22915. function publishRegistrationName(registrationName, pluginModule, eventName) {
  22916. if (!!registrationNameModules[registrationName]) {
  22917. {
  22918. throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + registrationName + "`." );
  22919. }
  22920. }
  22921. registrationNameModules[registrationName] = pluginModule;
  22922. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  22923. {
  22924. var lowerCasedName = registrationName.toLowerCase();
  22925. possibleRegistrationNames[lowerCasedName] = registrationName;
  22926. if (registrationName === 'onDoubleClick') {
  22927. possibleRegistrationNames.ondblclick = registrationName;
  22928. }
  22929. }
  22930. }
  22931. /**
  22932. * Registers plugins so that they can extract and dispatch events.
  22933. */
  22934. /**
  22935. * Ordered list of injected plugins.
  22936. */
  22937. var plugins = [];
  22938. /**
  22939. * Mapping from event name to dispatch config
  22940. */
  22941. var eventNameDispatchConfigs = {};
  22942. /**
  22943. * Mapping from registration name to plugin module
  22944. */
  22945. var registrationNameModules = {};
  22946. /**
  22947. * Mapping from registration name to event name
  22948. */
  22949. var registrationNameDependencies = {};
  22950. /**
  22951. * Mapping from lowercase registration names to the properly cased version,
  22952. * used to warn in the case of missing event handlers. Available
  22953. * only in true.
  22954. * @type {Object}
  22955. */
  22956. var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true
  22957. /**
  22958. * Injects an ordering of plugins (by plugin name). This allows the ordering
  22959. * to be decoupled from injection of the actual plugins so that ordering is
  22960. * always deterministic regardless of packaging, on-the-fly injection, etc.
  22961. *
  22962. * @param {array} InjectedEventPluginOrder
  22963. * @internal
  22964. */
  22965. function injectEventPluginOrder(injectedEventPluginOrder) {
  22966. if (!!eventPluginOrder) {
  22967. {
  22968. throw Error( "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React." );
  22969. }
  22970. } // Clone the ordering so it cannot be dynamically mutated.
  22971. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  22972. recomputePluginOrdering();
  22973. }
  22974. /**
  22975. * Injects plugins to be used by plugin event system. The plugin names must be
  22976. * in the ordering injected by `injectEventPluginOrder`.
  22977. *
  22978. * Plugins can be injected as part of page initialization or on-the-fly.
  22979. *
  22980. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  22981. * @internal
  22982. */
  22983. function injectEventPluginsByName(injectedNamesToPlugins) {
  22984. var isOrderingDirty = false;
  22985. for (var pluginName in injectedNamesToPlugins) {
  22986. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  22987. continue;
  22988. }
  22989. var pluginModule = injectedNamesToPlugins[pluginName];
  22990. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  22991. if (!!namesToPlugins[pluginName]) {
  22992. {
  22993. throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`." );
  22994. }
  22995. }
  22996. namesToPlugins[pluginName] = pluginModule;
  22997. isOrderingDirty = true;
  22998. }
  22999. }
  23000. if (isOrderingDirty) {
  23001. recomputePluginOrdering();
  23002. }
  23003. }
  23004. var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
  23005. var PLUGIN_EVENT_SYSTEM = 1;
  23006. var IS_REPLAYED = 1 << 5;
  23007. var IS_FIRST_ANCESTOR = 1 << 6;
  23008. var restoreImpl = null;
  23009. var restoreTarget = null;
  23010. var restoreQueue = null;
  23011. function restoreStateOfTarget(target) {
  23012. // We perform this translation at the end of the event loop so that we
  23013. // always receive the correct fiber here
  23014. var internalInstance = getInstanceFromNode(target);
  23015. if (!internalInstance) {
  23016. // Unmounted
  23017. return;
  23018. }
  23019. if (!(typeof restoreImpl === 'function')) {
  23020. {
  23021. throw 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." );
  23022. }
  23023. }
  23024. var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.
  23025. if (stateNode) {
  23026. var _props = getFiberCurrentPropsFromNode(stateNode);
  23027. restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
  23028. }
  23029. }
  23030. function setRestoreImplementation(impl) {
  23031. restoreImpl = impl;
  23032. }
  23033. function enqueueStateRestore(target) {
  23034. if (restoreTarget) {
  23035. if (restoreQueue) {
  23036. restoreQueue.push(target);
  23037. } else {
  23038. restoreQueue = [target];
  23039. }
  23040. } else {
  23041. restoreTarget = target;
  23042. }
  23043. }
  23044. function needsStateRestore() {
  23045. return restoreTarget !== null || restoreQueue !== null;
  23046. }
  23047. function restoreStateIfNeeded() {
  23048. if (!restoreTarget) {
  23049. return;
  23050. }
  23051. var target = restoreTarget;
  23052. var queuedTargets = restoreQueue;
  23053. restoreTarget = null;
  23054. restoreQueue = null;
  23055. restoreStateOfTarget(target);
  23056. if (queuedTargets) {
  23057. for (var i = 0; i < queuedTargets.length; i++) {
  23058. restoreStateOfTarget(queuedTargets[i]);
  23059. }
  23060. }
  23061. }
  23062. var enableProfilerTimer = true; // Trace which interactions trigger each commit.
  23063. var enableDeprecatedFlareAPI = false; // Experimental Host Component support.
  23064. var enableFundamentalAPI = false; // Experimental Scope support.
  23065. var warnAboutStringRefs = false;
  23066. // the renderer. Such as when we're dispatching events or if third party
  23067. // libraries need to call batchedUpdates. Eventually, this API will go away when
  23068. // everything is batched by default. We'll then have a similar API to opt-out of
  23069. // scheduled work and instead do synchronous work.
  23070. // Defaults
  23071. var batchedUpdatesImpl = function (fn, bookkeeping) {
  23072. return fn(bookkeeping);
  23073. };
  23074. var discreteUpdatesImpl = function (fn, a, b, c, d) {
  23075. return fn(a, b, c, d);
  23076. };
  23077. var flushDiscreteUpdatesImpl = function () {};
  23078. var batchedEventUpdatesImpl = batchedUpdatesImpl;
  23079. var isInsideEventHandler = false;
  23080. var isBatchingEventUpdates = false;
  23081. function finishEventHandler() {
  23082. // Here we wait until all updates have propagated, which is important
  23083. // when using controlled components within layers:
  23084. // https://github.com/facebook/react/issues/1698
  23085. // Then we restore state of any controlled component.
  23086. var controlledComponentsHavePendingUpdates = needsStateRestore();
  23087. if (controlledComponentsHavePendingUpdates) {
  23088. // If a controlled event was fired, we may need to restore the state of
  23089. // the DOM node back to the controlled value. This is necessary when React
  23090. // bails out of the update without touching the DOM.
  23091. flushDiscreteUpdatesImpl();
  23092. restoreStateIfNeeded();
  23093. }
  23094. }
  23095. function batchedUpdates(fn, bookkeeping) {
  23096. if (isInsideEventHandler) {
  23097. // If we are currently inside another batch, we need to wait until it
  23098. // fully completes before restoring state.
  23099. return fn(bookkeeping);
  23100. }
  23101. isInsideEventHandler = true;
  23102. try {
  23103. return batchedUpdatesImpl(fn, bookkeeping);
  23104. } finally {
  23105. isInsideEventHandler = false;
  23106. finishEventHandler();
  23107. }
  23108. }
  23109. function batchedEventUpdates(fn, a, b) {
  23110. if (isBatchingEventUpdates) {
  23111. // If we are currently inside another batch, we need to wait until it
  23112. // fully completes before restoring state.
  23113. return fn(a, b);
  23114. }
  23115. isBatchingEventUpdates = true;
  23116. try {
  23117. return batchedEventUpdatesImpl(fn, a, b);
  23118. } finally {
  23119. isBatchingEventUpdates = false;
  23120. finishEventHandler();
  23121. }
  23122. } // This is for the React Flare event system
  23123. function discreteUpdates(fn, a, b, c, d) {
  23124. var prevIsInsideEventHandler = isInsideEventHandler;
  23125. isInsideEventHandler = true;
  23126. try {
  23127. return discreteUpdatesImpl(fn, a, b, c, d);
  23128. } finally {
  23129. isInsideEventHandler = prevIsInsideEventHandler;
  23130. if (!isInsideEventHandler) {
  23131. finishEventHandler();
  23132. }
  23133. }
  23134. }
  23135. function flushDiscreteUpdatesIfNeeded(timeStamp) {
  23136. // event.timeStamp isn't overly reliable due to inconsistencies in
  23137. // how different browsers have historically provided the time stamp.
  23138. // Some browsers provide high-resolution time stamps for all events,
  23139. // some provide low-resolution time stamps for all events. FF < 52
  23140. // even mixes both time stamps together. Some browsers even report
  23141. // negative time stamps or time stamps that are 0 (iOS9) in some cases.
  23142. // Given we are only comparing two time stamps with equality (!==),
  23143. // we are safe from the resolution differences. If the time stamp is 0
  23144. // we bail-out of preventing the flush, which can affect semantics,
  23145. // such as if an earlier flush removes or adds event listeners that
  23146. // are fired in the subsequent flush. However, this is the same
  23147. // behaviour as we had before this change, so the risks are low.
  23148. if (!isInsideEventHandler && (!enableDeprecatedFlareAPI )) {
  23149. flushDiscreteUpdatesImpl();
  23150. }
  23151. }
  23152. function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  23153. batchedUpdatesImpl = _batchedUpdatesImpl;
  23154. discreteUpdatesImpl = _discreteUpdatesImpl;
  23155. flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  23156. batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
  23157. }
  23158. var DiscreteEvent = 0;
  23159. var UserBlockingEvent = 1;
  23160. var ContinuousEvent = 2;
  23161. // A reserved attribute.
  23162. // It is handled by React separately and shouldn't be written to the DOM.
  23163. var RESERVED = 0; // A simple string attribute.
  23164. // Attributes that aren't in the whitelist are presumed to have this type.
  23165. var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
  23166. // "enumerated" attributes with "true" and "false" as possible values.
  23167. // When true, it should be set to a "true" string.
  23168. // When false, it should be set to a "false" string.
  23169. var BOOLEANISH_STRING = 2; // A real boolean attribute.
  23170. // When true, it should be present (set either to an empty string or its name).
  23171. // When false, it should be omitted.
  23172. var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.
  23173. // When true, it should be present (set either to an empty string or its name).
  23174. // When false, it should be omitted.
  23175. // For any other value, should be present with that value.
  23176. var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.
  23177. // When falsy, it should be removed.
  23178. var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
  23179. // When falsy, it should be removed.
  23180. var POSITIVE_NUMERIC = 6;
  23181. /* eslint-disable max-len */
  23182. 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";
  23183. /* eslint-enable max-len */
  23184. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
  23185. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  23186. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  23187. var hasOwnProperty = Object.prototype.hasOwnProperty;
  23188. var illegalAttributeNameCache = {};
  23189. var validatedAttributeNameCache = {};
  23190. function isAttributeNameSafe(attributeName) {
  23191. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  23192. return true;
  23193. }
  23194. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  23195. return false;
  23196. }
  23197. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  23198. validatedAttributeNameCache[attributeName] = true;
  23199. return true;
  23200. }
  23201. illegalAttributeNameCache[attributeName] = true;
  23202. {
  23203. error('Invalid attribute name: `%s`', attributeName);
  23204. }
  23205. return false;
  23206. }
  23207. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  23208. if (propertyInfo !== null) {
  23209. return propertyInfo.type === RESERVED;
  23210. }
  23211. if (isCustomComponentTag) {
  23212. return false;
  23213. }
  23214. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  23215. return true;
  23216. }
  23217. return false;
  23218. }
  23219. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  23220. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  23221. return false;
  23222. }
  23223. switch (typeof value) {
  23224. case 'function': // $FlowIssue symbol is perfectly valid here
  23225. case 'symbol':
  23226. // eslint-disable-line
  23227. return true;
  23228. case 'boolean':
  23229. {
  23230. if (isCustomComponentTag) {
  23231. return false;
  23232. }
  23233. if (propertyInfo !== null) {
  23234. return !propertyInfo.acceptsBooleans;
  23235. } else {
  23236. var prefix = name.toLowerCase().slice(0, 5);
  23237. return prefix !== 'data-' && prefix !== 'aria-';
  23238. }
  23239. }
  23240. default:
  23241. return false;
  23242. }
  23243. }
  23244. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  23245. if (value === null || typeof value === 'undefined') {
  23246. return true;
  23247. }
  23248. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  23249. return true;
  23250. }
  23251. if (isCustomComponentTag) {
  23252. return false;
  23253. }
  23254. if (propertyInfo !== null) {
  23255. switch (propertyInfo.type) {
  23256. case BOOLEAN:
  23257. return !value;
  23258. case OVERLOADED_BOOLEAN:
  23259. return value === false;
  23260. case NUMERIC:
  23261. return isNaN(value);
  23262. case POSITIVE_NUMERIC:
  23263. return isNaN(value) || value < 1;
  23264. }
  23265. }
  23266. return false;
  23267. }
  23268. function getPropertyInfo(name) {
  23269. return properties.hasOwnProperty(name) ? properties[name] : null;
  23270. }
  23271. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) {
  23272. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  23273. this.attributeName = attributeName;
  23274. this.attributeNamespace = attributeNamespace;
  23275. this.mustUseProperty = mustUseProperty;
  23276. this.propertyName = name;
  23277. this.type = type;
  23278. this.sanitizeURL = sanitizeURL;
  23279. } // When adding attributes to this list, be sure to also add them to
  23280. // the `possibleStandardNames` module to ensure casing and incorrect
  23281. // name warnings.
  23282. var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.
  23283. var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
  23284. // elements (not just inputs). Now that ReactDOMInput assigns to the
  23285. // defaultValue property -- do we need this?
  23286. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
  23287. reservedProps.forEach(function (name) {
  23288. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  23289. name, // attributeName
  23290. null, // attributeNamespace
  23291. false);
  23292. }); // A few React string attributes have a different name.
  23293. // This is a mapping from React prop names to the attribute names.
  23294. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  23295. var name = _ref[0],
  23296. attributeName = _ref[1];
  23297. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  23298. attributeName, // attributeName
  23299. null, // attributeNamespace
  23300. false);
  23301. }); // These are "enumerated" HTML attributes that accept "true" and "false".
  23302. // In React, we let users pass `true` and `false` even though technically
  23303. // these aren't boolean attributes (they are coerced to strings).
  23304. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  23305. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  23306. name.toLowerCase(), // attributeName
  23307. null, // attributeNamespace
  23308. false);
  23309. }); // These are "enumerated" SVG attributes that accept "true" and "false".
  23310. // In React, we let users pass `true` and `false` even though technically
  23311. // these aren't boolean attributes (they are coerced to strings).
  23312. // Since these are SVG attributes, their attribute names are case-sensitive.
  23313. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  23314. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  23315. name, // attributeName
  23316. null, // attributeNamespace
  23317. false);
  23318. }); // These are HTML boolean attributes.
  23319. ['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM
  23320. // on the client side because the browsers are inconsistent. Instead we call focus().
  23321. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
  23322. 'itemScope'].forEach(function (name) {
  23323. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  23324. name.toLowerCase(), // attributeName
  23325. null, // attributeNamespace
  23326. false);
  23327. }); // These are the few React props that we set as DOM properties
  23328. // rather than attributes. These are all booleans.
  23329. ['checked', // Note: `option.selected` is not updated if `select.multiple` is
  23330. // disabled with `removeAttribute`. We have special logic for handling this.
  23331. 'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,
  23332. // you'll need to set attributeName to name.toLowerCase()
  23333. // instead in the assignment below.
  23334. ].forEach(function (name) {
  23335. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  23336. name, // attributeName
  23337. null, // attributeNamespace
  23338. false);
  23339. }); // These are HTML attributes that are "overloaded booleans": they behave like
  23340. // booleans, but can also accept a string value.
  23341. ['capture', 'download' // NOTE: if you add a camelCased prop to this list,
  23342. // you'll need to set attributeName to name.toLowerCase()
  23343. // instead in the assignment below.
  23344. ].forEach(function (name) {
  23345. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  23346. name, // attributeName
  23347. null, // attributeNamespace
  23348. false);
  23349. }); // These are HTML attributes that must be positive numbers.
  23350. ['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
  23351. // you'll need to set attributeName to name.toLowerCase()
  23352. // instead in the assignment below.
  23353. ].forEach(function (name) {
  23354. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  23355. name, // attributeName
  23356. null, // attributeNamespace
  23357. false);
  23358. }); // These are HTML attributes that must be numbers.
  23359. ['rowSpan', 'start'].forEach(function (name) {
  23360. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  23361. name.toLowerCase(), // attributeName
  23362. null, // attributeNamespace
  23363. false);
  23364. });
  23365. var CAMELIZE = /[\-\:]([a-z])/g;
  23366. var capitalize = function (token) {
  23367. return token[1].toUpperCase();
  23368. }; // This is a list of all SVG attributes that need special casing, namespacing,
  23369. // or boolean value assignment. Regular attributes that just accept strings
  23370. // and have the same names are omitted, just like in the HTML whitelist.
  23371. // Some of these attributes can be hard to find. This list was created by
  23372. // scraping the MDN documentation.
  23373. ['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' // NOTE: if you add a camelCased prop to this list,
  23374. // you'll need to set attributeName to name.toLowerCase()
  23375. // instead in the assignment below.
  23376. ].forEach(function (attributeName) {
  23377. var name = attributeName.replace(CAMELIZE, capitalize);
  23378. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  23379. attributeName, null, // attributeNamespace
  23380. false);
  23381. }); // String SVG attributes with the xlink namespace.
  23382. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
  23383. // you'll need to set attributeName to name.toLowerCase()
  23384. // instead in the assignment below.
  23385. ].forEach(function (attributeName) {
  23386. var name = attributeName.replace(CAMELIZE, capitalize);
  23387. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  23388. attributeName, 'http://www.w3.org/1999/xlink', false);
  23389. }); // String SVG attributes with the xml namespace.
  23390. ['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
  23391. // you'll need to set attributeName to name.toLowerCase()
  23392. // instead in the assignment below.
  23393. ].forEach(function (attributeName) {
  23394. var name = attributeName.replace(CAMELIZE, capitalize);
  23395. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  23396. attributeName, 'http://www.w3.org/XML/1998/namespace', false);
  23397. }); // These attribute exists both in HTML and SVG.
  23398. // The attribute name is case-sensitive in SVG so we can't just use
  23399. // the React name like we do for attributes that exist only in HTML.
  23400. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  23401. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  23402. attributeName.toLowerCase(), // attributeName
  23403. null, // attributeNamespace
  23404. false);
  23405. }); // These attributes accept URLs. These must not allow javascript: URLS.
  23406. // These will also need to accept Trusted Types object in the future.
  23407. var xlinkHref = 'xlinkHref';
  23408. properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
  23409. 'xlink:href', 'http://www.w3.org/1999/xlink', true);
  23410. ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  23411. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  23412. attributeName.toLowerCase(), // attributeName
  23413. null, // attributeNamespace
  23414. true);
  23415. });
  23416. var ReactDebugCurrentFrame = null;
  23417. {
  23418. ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  23419. } // A javascript: URL can contain leading C0 control or \u0020 SPACE,
  23420. // and any newline or tab are filtered out as if they're not part of the URL.
  23421. // https://url.spec.whatwg.org/#url-parsing
  23422. // Tab or newline are defined as \r\n\t:
  23423. // https://infra.spec.whatwg.org/#ascii-tab-or-newline
  23424. // A C0 control is a code point in the range \u0000 NULL to \u001F
  23425. // INFORMATION SEPARATOR ONE, inclusive:
  23426. // https://infra.spec.whatwg.org/#c0-control-or-space
  23427. /* eslint-disable max-len */
  23428. 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;
  23429. var didWarn = false;
  23430. function sanitizeURL(url) {
  23431. {
  23432. if (!didWarn && isJavaScriptProtocol.test(url)) {
  23433. didWarn = true;
  23434. error('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));
  23435. }
  23436. }
  23437. }
  23438. /**
  23439. * Get the value for a property on a node. Only used in DEV for SSR validation.
  23440. * The "expected" argument is used as a hint of what the expected value is.
  23441. * Some properties have multiple equivalent values.
  23442. */
  23443. function getValueForProperty(node, name, expected, propertyInfo) {
  23444. {
  23445. if (propertyInfo.mustUseProperty) {
  23446. var propertyName = propertyInfo.propertyName;
  23447. return node[propertyName];
  23448. } else {
  23449. if ( propertyInfo.sanitizeURL) {
  23450. // If we haven't fully disabled javascript: URLs, and if
  23451. // the hydration is successful of a javascript: URL, we
  23452. // still want to warn on the client.
  23453. sanitizeURL('' + expected);
  23454. }
  23455. var attributeName = propertyInfo.attributeName;
  23456. var stringValue = null;
  23457. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  23458. if (node.hasAttribute(attributeName)) {
  23459. var value = node.getAttribute(attributeName);
  23460. if (value === '') {
  23461. return true;
  23462. }
  23463. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  23464. return value;
  23465. }
  23466. if (value === '' + expected) {
  23467. return expected;
  23468. }
  23469. return value;
  23470. }
  23471. } else if (node.hasAttribute(attributeName)) {
  23472. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  23473. // We had an attribute but shouldn't have had one, so read it
  23474. // for the error message.
  23475. return node.getAttribute(attributeName);
  23476. }
  23477. if (propertyInfo.type === BOOLEAN) {
  23478. // If this was a boolean, it doesn't matter what the value is
  23479. // the fact that we have it is the same as the expected.
  23480. return expected;
  23481. } // Even if this property uses a namespace we use getAttribute
  23482. // because we assume its namespaced name is the same as our config.
  23483. // To use getAttributeNS we need the local name which we don't have
  23484. // in our config atm.
  23485. stringValue = node.getAttribute(attributeName);
  23486. }
  23487. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  23488. return stringValue === null ? expected : stringValue;
  23489. } else if (stringValue === '' + expected) {
  23490. return expected;
  23491. } else {
  23492. return stringValue;
  23493. }
  23494. }
  23495. }
  23496. }
  23497. /**
  23498. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  23499. * The third argument is used as a hint of what the expected value is. Some
  23500. * attributes have multiple equivalent values.
  23501. */
  23502. function getValueForAttribute(node, name, expected) {
  23503. {
  23504. if (!isAttributeNameSafe(name)) {
  23505. return;
  23506. }
  23507. if (!node.hasAttribute(name)) {
  23508. return expected === undefined ? undefined : null;
  23509. }
  23510. var value = node.getAttribute(name);
  23511. if (value === '' + expected) {
  23512. return expected;
  23513. }
  23514. return value;
  23515. }
  23516. }
  23517. /**
  23518. * Sets the value for a property on a node.
  23519. *
  23520. * @param {DOMElement} node
  23521. * @param {string} name
  23522. * @param {*} value
  23523. */
  23524. function setValueForProperty(node, name, value, isCustomComponentTag) {
  23525. var propertyInfo = getPropertyInfo(name);
  23526. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  23527. return;
  23528. }
  23529. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  23530. value = null;
  23531. } // If the prop isn't in the special list, treat it as a simple attribute.
  23532. if (isCustomComponentTag || propertyInfo === null) {
  23533. if (isAttributeNameSafe(name)) {
  23534. var _attributeName = name;
  23535. if (value === null) {
  23536. node.removeAttribute(_attributeName);
  23537. } else {
  23538. node.setAttribute(_attributeName, '' + value);
  23539. }
  23540. }
  23541. return;
  23542. }
  23543. var mustUseProperty = propertyInfo.mustUseProperty;
  23544. if (mustUseProperty) {
  23545. var propertyName = propertyInfo.propertyName;
  23546. if (value === null) {
  23547. var type = propertyInfo.type;
  23548. node[propertyName] = type === BOOLEAN ? false : '';
  23549. } else {
  23550. // Contrary to `setAttribute`, object properties are properly
  23551. // `toString`ed by IE8/9.
  23552. node[propertyName] = value;
  23553. }
  23554. return;
  23555. } // The rest are treated as attributes with special cases.
  23556. var attributeName = propertyInfo.attributeName,
  23557. attributeNamespace = propertyInfo.attributeNamespace;
  23558. if (value === null) {
  23559. node.removeAttribute(attributeName);
  23560. } else {
  23561. var _type = propertyInfo.type;
  23562. var attributeValue;
  23563. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  23564. // If attribute type is boolean, we know for sure it won't be an execution sink
  23565. // and we won't require Trusted Type here.
  23566. attributeValue = '';
  23567. } else {
  23568. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  23569. // ('' + value) makes it output the correct toString()-value.
  23570. {
  23571. attributeValue = '' + value;
  23572. }
  23573. if (propertyInfo.sanitizeURL) {
  23574. sanitizeURL(attributeValue.toString());
  23575. }
  23576. }
  23577. if (attributeNamespace) {
  23578. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  23579. } else {
  23580. node.setAttribute(attributeName, attributeValue);
  23581. }
  23582. }
  23583. }
  23584. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  23585. function describeComponentFrame (name, source, ownerName) {
  23586. var sourceInfo = '';
  23587. if (source) {
  23588. var path = source.fileName;
  23589. var fileName = path.replace(BEFORE_SLASH_RE, '');
  23590. {
  23591. // In DEV, include code for a common special case:
  23592. // prefer "folder/index.js" instead of just "index.js".
  23593. if (/^index\./.test(fileName)) {
  23594. var match = path.match(BEFORE_SLASH_RE);
  23595. if (match) {
  23596. var pathBeforeSlash = match[1];
  23597. if (pathBeforeSlash) {
  23598. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  23599. fileName = folderName + '/' + fileName;
  23600. }
  23601. }
  23602. }
  23603. }
  23604. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  23605. } else if (ownerName) {
  23606. sourceInfo = ' (created by ' + ownerName + ')';
  23607. }
  23608. return '\n in ' + (name || 'Unknown') + sourceInfo;
  23609. }
  23610. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  23611. // nor polyfill, then a plain number is used for performance.
  23612. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  23613. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  23614. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  23615. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  23616. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  23617. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  23618. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  23619. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  23620. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  23621. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  23622. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  23623. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  23624. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  23625. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  23626. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
  23627. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  23628. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  23629. function getIteratorFn(maybeIterable) {
  23630. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  23631. return null;
  23632. }
  23633. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  23634. if (typeof maybeIterator === 'function') {
  23635. return maybeIterator;
  23636. }
  23637. return null;
  23638. }
  23639. var Uninitialized = -1;
  23640. var Pending = 0;
  23641. var Resolved = 1;
  23642. var Rejected = 2;
  23643. function refineResolvedLazyComponent(lazyComponent) {
  23644. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  23645. }
  23646. function initializeLazyComponentType(lazyComponent) {
  23647. if (lazyComponent._status === Uninitialized) {
  23648. lazyComponent._status = Pending;
  23649. var ctor = lazyComponent._ctor;
  23650. var thenable = ctor();
  23651. lazyComponent._result = thenable;
  23652. thenable.then(function (moduleObject) {
  23653. if (lazyComponent._status === Pending) {
  23654. var defaultExport = moduleObject.default;
  23655. {
  23656. if (defaultExport === undefined) {
  23657. error('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);
  23658. }
  23659. }
  23660. lazyComponent._status = Resolved;
  23661. lazyComponent._result = defaultExport;
  23662. }
  23663. }, function (error) {
  23664. if (lazyComponent._status === Pending) {
  23665. lazyComponent._status = Rejected;
  23666. lazyComponent._result = error;
  23667. }
  23668. });
  23669. }
  23670. }
  23671. function getWrappedName(outerType, innerType, wrapperName) {
  23672. var functionName = innerType.displayName || innerType.name || '';
  23673. return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
  23674. }
  23675. function getComponentName(type) {
  23676. if (type == null) {
  23677. // Host root, text node or just invalid type.
  23678. return null;
  23679. }
  23680. {
  23681. if (typeof type.tag === 'number') {
  23682. error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  23683. }
  23684. }
  23685. if (typeof type === 'function') {
  23686. return type.displayName || type.name || null;
  23687. }
  23688. if (typeof type === 'string') {
  23689. return type;
  23690. }
  23691. switch (type) {
  23692. case REACT_FRAGMENT_TYPE:
  23693. return 'Fragment';
  23694. case REACT_PORTAL_TYPE:
  23695. return 'Portal';
  23696. case REACT_PROFILER_TYPE:
  23697. return "Profiler";
  23698. case REACT_STRICT_MODE_TYPE:
  23699. return 'StrictMode';
  23700. case REACT_SUSPENSE_TYPE:
  23701. return 'Suspense';
  23702. case REACT_SUSPENSE_LIST_TYPE:
  23703. return 'SuspenseList';
  23704. }
  23705. if (typeof type === 'object') {
  23706. switch (type.$$typeof) {
  23707. case REACT_CONTEXT_TYPE:
  23708. return 'Context.Consumer';
  23709. case REACT_PROVIDER_TYPE:
  23710. return 'Context.Provider';
  23711. case REACT_FORWARD_REF_TYPE:
  23712. return getWrappedName(type, type.render, 'ForwardRef');
  23713. case REACT_MEMO_TYPE:
  23714. return getComponentName(type.type);
  23715. case REACT_BLOCK_TYPE:
  23716. return getComponentName(type.render);
  23717. case REACT_LAZY_TYPE:
  23718. {
  23719. var thenable = type;
  23720. var resolvedThenable = refineResolvedLazyComponent(thenable);
  23721. if (resolvedThenable) {
  23722. return getComponentName(resolvedThenable);
  23723. }
  23724. break;
  23725. }
  23726. }
  23727. }
  23728. return null;
  23729. }
  23730. var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  23731. function describeFiber(fiber) {
  23732. switch (fiber.tag) {
  23733. case HostRoot:
  23734. case HostPortal:
  23735. case HostText:
  23736. case Fragment:
  23737. case ContextProvider:
  23738. case ContextConsumer:
  23739. return '';
  23740. default:
  23741. var owner = fiber._debugOwner;
  23742. var source = fiber._debugSource;
  23743. var name = getComponentName(fiber.type);
  23744. var ownerName = null;
  23745. if (owner) {
  23746. ownerName = getComponentName(owner.type);
  23747. }
  23748. return describeComponentFrame(name, source, ownerName);
  23749. }
  23750. }
  23751. function getStackByFiberInDevAndProd(workInProgress) {
  23752. var info = '';
  23753. var node = workInProgress;
  23754. do {
  23755. info += describeFiber(node);
  23756. node = node.return;
  23757. } while (node);
  23758. return info;
  23759. }
  23760. var current = null;
  23761. var isRendering = false;
  23762. function getCurrentFiberOwnerNameInDevOrNull() {
  23763. {
  23764. if (current === null) {
  23765. return null;
  23766. }
  23767. var owner = current._debugOwner;
  23768. if (owner !== null && typeof owner !== 'undefined') {
  23769. return getComponentName(owner.type);
  23770. }
  23771. }
  23772. return null;
  23773. }
  23774. function getCurrentFiberStackInDev() {
  23775. {
  23776. if (current === null) {
  23777. return '';
  23778. } // Safe because if current fiber exists, we are reconciling,
  23779. // and it is guaranteed to be the work-in-progress version.
  23780. return getStackByFiberInDevAndProd(current);
  23781. }
  23782. }
  23783. function resetCurrentFiber() {
  23784. {
  23785. ReactDebugCurrentFrame$1.getCurrentStack = null;
  23786. current = null;
  23787. isRendering = false;
  23788. }
  23789. }
  23790. function setCurrentFiber(fiber) {
  23791. {
  23792. ReactDebugCurrentFrame$1.getCurrentStack = getCurrentFiberStackInDev;
  23793. current = fiber;
  23794. isRendering = false;
  23795. }
  23796. }
  23797. function setIsRendering(rendering) {
  23798. {
  23799. isRendering = rendering;
  23800. }
  23801. }
  23802. // Flow does not allow string concatenation of most non-string types. To work
  23803. // around this limitation, we use an opaque type that can only be obtained by
  23804. // passing the value through getToStringValue first.
  23805. function toString(value) {
  23806. return '' + value;
  23807. }
  23808. function getToStringValue(value) {
  23809. switch (typeof value) {
  23810. case 'boolean':
  23811. case 'number':
  23812. case 'object':
  23813. case 'string':
  23814. case 'undefined':
  23815. return value;
  23816. default:
  23817. // function, symbol are assigned as empty strings
  23818. return '';
  23819. }
  23820. }
  23821. var ReactDebugCurrentFrame$2 = null;
  23822. var ReactControlledValuePropTypes = {
  23823. checkPropTypes: null
  23824. };
  23825. {
  23826. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  23827. var hasReadOnlyValue = {
  23828. button: true,
  23829. checkbox: true,
  23830. image: true,
  23831. hidden: true,
  23832. radio: true,
  23833. reset: true,
  23834. submit: true
  23835. };
  23836. var propTypes = {
  23837. value: function (props, propName, componentName) {
  23838. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableDeprecatedFlareAPI ) {
  23839. return null;
  23840. }
  23841. 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`.');
  23842. },
  23843. checked: function (props, propName, componentName) {
  23844. if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableDeprecatedFlareAPI ) {
  23845. return null;
  23846. }
  23847. 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`.');
  23848. }
  23849. };
  23850. /**
  23851. * Provide a linked `value` attribute for controlled forms. You should not use
  23852. * this outside of the ReactDOM controlled form components.
  23853. */
  23854. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  23855. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);
  23856. };
  23857. }
  23858. function isCheckable(elem) {
  23859. var type = elem.type;
  23860. var nodeName = elem.nodeName;
  23861. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  23862. }
  23863. function getTracker(node) {
  23864. return node._valueTracker;
  23865. }
  23866. function detachTracker(node) {
  23867. node._valueTracker = null;
  23868. }
  23869. function getValueFromNode(node) {
  23870. var value = '';
  23871. if (!node) {
  23872. return value;
  23873. }
  23874. if (isCheckable(node)) {
  23875. value = node.checked ? 'true' : 'false';
  23876. } else {
  23877. value = node.value;
  23878. }
  23879. return value;
  23880. }
  23881. function trackValueOnNode(node) {
  23882. var valueField = isCheckable(node) ? 'checked' : 'value';
  23883. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  23884. var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail
  23885. // and don't track value will cause over reporting of changes,
  23886. // but it's better then a hard failure
  23887. // (needed for certain tests that spyOn input values and Safari)
  23888. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  23889. return;
  23890. }
  23891. var get = descriptor.get,
  23892. set = descriptor.set;
  23893. Object.defineProperty(node, valueField, {
  23894. configurable: true,
  23895. get: function () {
  23896. return get.call(this);
  23897. },
  23898. set: function (value) {
  23899. currentValue = '' + value;
  23900. set.call(this, value);
  23901. }
  23902. }); // We could've passed this the first time
  23903. // but it triggers a bug in IE11 and Edge 14/15.
  23904. // Calling defineProperty() again should be equivalent.
  23905. // https://github.com/facebook/react/issues/11768
  23906. Object.defineProperty(node, valueField, {
  23907. enumerable: descriptor.enumerable
  23908. });
  23909. var tracker = {
  23910. getValue: function () {
  23911. return currentValue;
  23912. },
  23913. setValue: function (value) {
  23914. currentValue = '' + value;
  23915. },
  23916. stopTracking: function () {
  23917. detachTracker(node);
  23918. delete node[valueField];
  23919. }
  23920. };
  23921. return tracker;
  23922. }
  23923. function track(node) {
  23924. if (getTracker(node)) {
  23925. return;
  23926. } // TODO: Once it's just Fiber we can move this to node._wrapperState
  23927. node._valueTracker = trackValueOnNode(node);
  23928. }
  23929. function updateValueIfChanged(node) {
  23930. if (!node) {
  23931. return false;
  23932. }
  23933. var tracker = getTracker(node); // if there is no tracker at this point it's unlikely
  23934. // that trying again will succeed
  23935. if (!tracker) {
  23936. return true;
  23937. }
  23938. var lastValue = tracker.getValue();
  23939. var nextValue = getValueFromNode(node);
  23940. if (nextValue !== lastValue) {
  23941. tracker.setValue(nextValue);
  23942. return true;
  23943. }
  23944. return false;
  23945. }
  23946. var didWarnValueDefaultValue = false;
  23947. var didWarnCheckedDefaultChecked = false;
  23948. var didWarnControlledToUncontrolled = false;
  23949. var didWarnUncontrolledToControlled = false;
  23950. function isControlled(props) {
  23951. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  23952. return usesChecked ? props.checked != null : props.value != null;
  23953. }
  23954. /**
  23955. * Implements an <input> host component that allows setting these optional
  23956. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  23957. *
  23958. * If `checked` or `value` are not supplied (or null/undefined), user actions
  23959. * that affect the checked state or value will trigger updates to the element.
  23960. *
  23961. * If they are supplied (and not null/undefined), the rendered element will not
  23962. * trigger updates to the element. Instead, the props must change in order for
  23963. * the rendered element to be updated.
  23964. *
  23965. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  23966. * with an empty value (or `defaultValue`).
  23967. *
  23968. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  23969. */
  23970. function getHostProps(element, props) {
  23971. var node = element;
  23972. var checked = props.checked;
  23973. var hostProps = _assign({}, props, {
  23974. defaultChecked: undefined,
  23975. defaultValue: undefined,
  23976. value: undefined,
  23977. checked: checked != null ? checked : node._wrapperState.initialChecked
  23978. });
  23979. return hostProps;
  23980. }
  23981. function initWrapperState(element, props) {
  23982. {
  23983. ReactControlledValuePropTypes.checkPropTypes('input', props);
  23984. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  23985. error('%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);
  23986. didWarnCheckedDefaultChecked = true;
  23987. }
  23988. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  23989. error('%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);
  23990. didWarnValueDefaultValue = true;
  23991. }
  23992. }
  23993. var node = element;
  23994. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  23995. node._wrapperState = {
  23996. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  23997. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  23998. controlled: isControlled(props)
  23999. };
  24000. }
  24001. function updateChecked(element, props) {
  24002. var node = element;
  24003. var checked = props.checked;
  24004. if (checked != null) {
  24005. setValueForProperty(node, 'checked', checked, false);
  24006. }
  24007. }
  24008. function updateWrapper(element, props) {
  24009. var node = element;
  24010. {
  24011. var controlled = isControlled(props);
  24012. if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
  24013. error('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);
  24014. didWarnUncontrolledToControlled = true;
  24015. }
  24016. if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
  24017. error('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);
  24018. didWarnControlledToUncontrolled = true;
  24019. }
  24020. }
  24021. updateChecked(element, props);
  24022. var value = getToStringValue(props.value);
  24023. var type = props.type;
  24024. if (value != null) {
  24025. if (type === 'number') {
  24026. if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.
  24027. // eslint-disable-next-line
  24028. node.value != value) {
  24029. node.value = toString(value);
  24030. }
  24031. } else if (node.value !== toString(value)) {
  24032. node.value = toString(value);
  24033. }
  24034. } else if (type === 'submit' || type === 'reset') {
  24035. // Submit/reset inputs need the attribute removed completely to avoid
  24036. // blank-text buttons.
  24037. node.removeAttribute('value');
  24038. return;
  24039. }
  24040. {
  24041. // When syncing the value attribute, the value comes from a cascade of
  24042. // properties:
  24043. // 1. The value React property
  24044. // 2. The defaultValue React property
  24045. // 3. Otherwise there should be no change
  24046. if (props.hasOwnProperty('value')) {
  24047. setDefaultValue(node, props.type, value);
  24048. } else if (props.hasOwnProperty('defaultValue')) {
  24049. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  24050. }
  24051. }
  24052. {
  24053. // When syncing the checked attribute, it only changes when it needs
  24054. // to be removed, such as transitioning from a checkbox into a text input
  24055. if (props.checked == null && props.defaultChecked != null) {
  24056. node.defaultChecked = !!props.defaultChecked;
  24057. }
  24058. }
  24059. }
  24060. function postMountWrapper(element, props, isHydrating) {
  24061. var node = element; // Do not assign value if it is already set. This prevents user text input
  24062. // from being lost during SSR hydration.
  24063. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  24064. var type = props.type;
  24065. var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the
  24066. // default value provided by the browser. See: #12872
  24067. if (isButton && (props.value === undefined || props.value === null)) {
  24068. return;
  24069. }
  24070. var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input
  24071. // from being lost during SSR hydration.
  24072. if (!isHydrating) {
  24073. {
  24074. // When syncing the value attribute, the value property should use
  24075. // the wrapperState._initialValue property. This uses:
  24076. //
  24077. // 1. The value React property when present
  24078. // 2. The defaultValue React property when present
  24079. // 3. An empty string
  24080. if (initialValue !== node.value) {
  24081. node.value = initialValue;
  24082. }
  24083. }
  24084. }
  24085. {
  24086. // Otherwise, the value attribute is synchronized to the property,
  24087. // so we assign defaultValue to the same thing as the value property
  24088. // assignment step above.
  24089. node.defaultValue = initialValue;
  24090. }
  24091. } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  24092. // this is needed to work around a chrome bug where setting defaultChecked
  24093. // will sometimes influence the value of checked (even after detachment).
  24094. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  24095. // We need to temporarily unset name to avoid disrupting radio button groups.
  24096. var name = node.name;
  24097. if (name !== '') {
  24098. node.name = '';
  24099. }
  24100. {
  24101. // When syncing the checked attribute, both the checked property and
  24102. // attribute are assigned at the same time using defaultChecked. This uses:
  24103. //
  24104. // 1. The checked React property when present
  24105. // 2. The defaultChecked React property when present
  24106. // 3. Otherwise, false
  24107. node.defaultChecked = !node.defaultChecked;
  24108. node.defaultChecked = !!node._wrapperState.initialChecked;
  24109. }
  24110. if (name !== '') {
  24111. node.name = name;
  24112. }
  24113. }
  24114. function restoreControlledState(element, props) {
  24115. var node = element;
  24116. updateWrapper(node, props);
  24117. updateNamedCousins(node, props);
  24118. }
  24119. function updateNamedCousins(rootNode, props) {
  24120. var name = props.name;
  24121. if (props.type === 'radio' && name != null) {
  24122. var queryRoot = rootNode;
  24123. while (queryRoot.parentNode) {
  24124. queryRoot = queryRoot.parentNode;
  24125. } // If `rootNode.form` was non-null, then we could try `form.elements`,
  24126. // but that sometimes behaves strangely in IE8. We could also try using
  24127. // `form.getElementsByName`, but that will only return direct children
  24128. // and won't include inputs that use the HTML5 `form=` attribute. Since
  24129. // the input might not even be in a form. It might not even be in the
  24130. // document. Let's just use the local `querySelectorAll` to ensure we don't
  24131. // miss anything.
  24132. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  24133. for (var i = 0; i < group.length; i++) {
  24134. var otherNode = group[i];
  24135. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  24136. continue;
  24137. } // This will throw if radio buttons rendered by different copies of React
  24138. // and the same name are rendered into the same form (same as #1939).
  24139. // That's probably okay; we don't support it just as we don't support
  24140. // mixing React radio buttons with non-React ones.
  24141. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  24142. if (!otherProps) {
  24143. {
  24144. throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." );
  24145. }
  24146. } // We need update the tracked value on the named cousin since the value
  24147. // was changed but the input saw no event or value set
  24148. updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that
  24149. // was previously checked to update will cause it to be come re-checked
  24150. // as appropriate.
  24151. updateWrapper(otherNode, otherProps);
  24152. }
  24153. }
  24154. } // In Chrome, assigning defaultValue to certain input types triggers input validation.
  24155. // For number inputs, the display value loses trailing decimal points. For email inputs,
  24156. // Chrome raises "The specified value <x> is not a valid email address".
  24157. //
  24158. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  24159. // when the user is inputting text
  24160. //
  24161. // https://github.com/facebook/react/issues/7253
  24162. function setDefaultValue(node, type, value) {
  24163. if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  24164. type !== 'number' || node.ownerDocument.activeElement !== node) {
  24165. if (value == null) {
  24166. node.defaultValue = toString(node._wrapperState.initialValue);
  24167. } else if (node.defaultValue !== toString(value)) {
  24168. node.defaultValue = toString(value);
  24169. }
  24170. }
  24171. }
  24172. var didWarnSelectedSetOnOption = false;
  24173. var didWarnInvalidChild = false;
  24174. function flattenChildren(children) {
  24175. var content = ''; // Flatten children. We'll warn if they are invalid
  24176. // during validateProps() which runs for hydration too.
  24177. // Note that this would throw on non-element objects.
  24178. // Elements are stringified (which is normally irrelevant
  24179. // but matters for <fbt>).
  24180. React.Children.forEach(children, function (child) {
  24181. if (child == null) {
  24182. return;
  24183. }
  24184. content += child; // Note: we don't warn about invalid children here.
  24185. // Instead, this is done separately below so that
  24186. // it happens during the hydration codepath too.
  24187. });
  24188. return content;
  24189. }
  24190. /**
  24191. * Implements an <option> host component that warns when `selected` is set.
  24192. */
  24193. function validateProps(element, props) {
  24194. {
  24195. // This mirrors the codepath above, but runs for hydration too.
  24196. // Warn about invalid children here so that client and hydration are consistent.
  24197. // TODO: this seems like it could cause a DEV-only throw for hydration
  24198. // if children contains a non-element object. We should try to avoid that.
  24199. if (typeof props.children === 'object' && props.children !== null) {
  24200. React.Children.forEach(props.children, function (child) {
  24201. if (child == null) {
  24202. return;
  24203. }
  24204. if (typeof child === 'string' || typeof child === 'number') {
  24205. return;
  24206. }
  24207. if (typeof child.type !== 'string') {
  24208. return;
  24209. }
  24210. if (!didWarnInvalidChild) {
  24211. didWarnInvalidChild = true;
  24212. error('Only strings and numbers are supported as <option> children.');
  24213. }
  24214. });
  24215. } // TODO: Remove support for `selected` in <option>.
  24216. if (props.selected != null && !didWarnSelectedSetOnOption) {
  24217. error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  24218. didWarnSelectedSetOnOption = true;
  24219. }
  24220. }
  24221. }
  24222. function postMountWrapper$1(element, props) {
  24223. // value="" should make a value attribute (#6219)
  24224. if (props.value != null) {
  24225. element.setAttribute('value', toString(getToStringValue(props.value)));
  24226. }
  24227. }
  24228. function getHostProps$1(element, props) {
  24229. var hostProps = _assign({
  24230. children: undefined
  24231. }, props);
  24232. var content = flattenChildren(props.children);
  24233. if (content) {
  24234. hostProps.children = content;
  24235. }
  24236. return hostProps;
  24237. }
  24238. var didWarnValueDefaultValue$1;
  24239. {
  24240. didWarnValueDefaultValue$1 = false;
  24241. }
  24242. function getDeclarationErrorAddendum() {
  24243. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  24244. if (ownerName) {
  24245. return '\n\nCheck the render method of `' + ownerName + '`.';
  24246. }
  24247. return '';
  24248. }
  24249. var valuePropNames = ['value', 'defaultValue'];
  24250. /**
  24251. * Validation function for `value` and `defaultValue`.
  24252. */
  24253. function checkSelectPropTypes(props) {
  24254. {
  24255. ReactControlledValuePropTypes.checkPropTypes('select', props);
  24256. for (var i = 0; i < valuePropNames.length; i++) {
  24257. var propName = valuePropNames[i];
  24258. if (props[propName] == null) {
  24259. continue;
  24260. }
  24261. var isArray = Array.isArray(props[propName]);
  24262. if (props.multiple && !isArray) {
  24263. error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  24264. } else if (!props.multiple && isArray) {
  24265. error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  24266. }
  24267. }
  24268. }
  24269. }
  24270. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  24271. var options = node.options;
  24272. if (multiple) {
  24273. var selectedValues = propValue;
  24274. var selectedValue = {};
  24275. for (var i = 0; i < selectedValues.length; i++) {
  24276. // Prefix to avoid chaos with special keys.
  24277. selectedValue['$' + selectedValues[i]] = true;
  24278. }
  24279. for (var _i = 0; _i < options.length; _i++) {
  24280. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  24281. if (options[_i].selected !== selected) {
  24282. options[_i].selected = selected;
  24283. }
  24284. if (selected && setDefaultSelected) {
  24285. options[_i].defaultSelected = true;
  24286. }
  24287. }
  24288. } else {
  24289. // Do not set `select.value` as exact behavior isn't consistent across all
  24290. // browsers for all cases.
  24291. var _selectedValue = toString(getToStringValue(propValue));
  24292. var defaultSelected = null;
  24293. for (var _i2 = 0; _i2 < options.length; _i2++) {
  24294. if (options[_i2].value === _selectedValue) {
  24295. options[_i2].selected = true;
  24296. if (setDefaultSelected) {
  24297. options[_i2].defaultSelected = true;
  24298. }
  24299. return;
  24300. }
  24301. if (defaultSelected === null && !options[_i2].disabled) {
  24302. defaultSelected = options[_i2];
  24303. }
  24304. }
  24305. if (defaultSelected !== null) {
  24306. defaultSelected.selected = true;
  24307. }
  24308. }
  24309. }
  24310. /**
  24311. * Implements a <select> host component that allows optionally setting the
  24312. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  24313. * stringable. If `multiple` is true, the prop must be an array of stringables.
  24314. *
  24315. * If `value` is not supplied (or null/undefined), user actions that change the
  24316. * selected option will trigger updates to the rendered options.
  24317. *
  24318. * If it is supplied (and not null/undefined), the rendered options will not
  24319. * update in response to user actions. Instead, the `value` prop must change in
  24320. * order for the rendered options to update.
  24321. *
  24322. * If `defaultValue` is provided, any options with the supplied values will be
  24323. * selected.
  24324. */
  24325. function getHostProps$2(element, props) {
  24326. return _assign({}, props, {
  24327. value: undefined
  24328. });
  24329. }
  24330. function initWrapperState$1(element, props) {
  24331. var node = element;
  24332. {
  24333. checkSelectPropTypes(props);
  24334. }
  24335. node._wrapperState = {
  24336. wasMultiple: !!props.multiple
  24337. };
  24338. {
  24339. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  24340. error('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');
  24341. didWarnValueDefaultValue$1 = true;
  24342. }
  24343. }
  24344. }
  24345. function postMountWrapper$2(element, props) {
  24346. var node = element;
  24347. node.multiple = !!props.multiple;
  24348. var value = props.value;
  24349. if (value != null) {
  24350. updateOptions(node, !!props.multiple, value, false);
  24351. } else if (props.defaultValue != null) {
  24352. updateOptions(node, !!props.multiple, props.defaultValue, true);
  24353. }
  24354. }
  24355. function postUpdateWrapper(element, props) {
  24356. var node = element;
  24357. var wasMultiple = node._wrapperState.wasMultiple;
  24358. node._wrapperState.wasMultiple = !!props.multiple;
  24359. var value = props.value;
  24360. if (value != null) {
  24361. updateOptions(node, !!props.multiple, value, false);
  24362. } else if (wasMultiple !== !!props.multiple) {
  24363. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  24364. if (props.defaultValue != null) {
  24365. updateOptions(node, !!props.multiple, props.defaultValue, true);
  24366. } else {
  24367. // Revert the select back to its default unselected state.
  24368. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  24369. }
  24370. }
  24371. }
  24372. function restoreControlledState$1(element, props) {
  24373. var node = element;
  24374. var value = props.value;
  24375. if (value != null) {
  24376. updateOptions(node, !!props.multiple, value, false);
  24377. }
  24378. }
  24379. var didWarnValDefaultVal = false;
  24380. /**
  24381. * Implements a <textarea> host component that allows setting `value`, and
  24382. * `defaultValue`. This differs from the traditional DOM API because value is
  24383. * usually set as PCDATA children.
  24384. *
  24385. * If `value` is not supplied (or null/undefined), user actions that affect the
  24386. * value will trigger updates to the element.
  24387. *
  24388. * If `value` is supplied (and not null/undefined), the rendered element will
  24389. * not trigger updates to the element. Instead, the `value` prop must change in
  24390. * order for the rendered element to be updated.
  24391. *
  24392. * The rendered element will be initialized with an empty value, the prop
  24393. * `defaultValue` if specified, or the children content (deprecated).
  24394. */
  24395. function getHostProps$3(element, props) {
  24396. var node = element;
  24397. if (!(props.dangerouslySetInnerHTML == null)) {
  24398. {
  24399. throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." );
  24400. }
  24401. } // Always set children to the same thing. In IE9, the selection range will
  24402. // get reset if `textContent` is mutated. We could add a check in setTextContent
  24403. // to only set the value if/when the value differs from the node value (which would
  24404. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  24405. // solution. The value can be a boolean or object so that's why it's forced
  24406. // to be a string.
  24407. var hostProps = _assign({}, props, {
  24408. value: undefined,
  24409. defaultValue: undefined,
  24410. children: toString(node._wrapperState.initialValue)
  24411. });
  24412. return hostProps;
  24413. }
  24414. function initWrapperState$2(element, props) {
  24415. var node = element;
  24416. {
  24417. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  24418. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  24419. error('%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');
  24420. didWarnValDefaultVal = true;
  24421. }
  24422. }
  24423. var initialValue = props.value; // Only bother fetching default value if we're going to use it
  24424. if (initialValue == null) {
  24425. var children = props.children,
  24426. defaultValue = props.defaultValue;
  24427. if (children != null) {
  24428. {
  24429. error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  24430. }
  24431. {
  24432. if (!(defaultValue == null)) {
  24433. {
  24434. throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." );
  24435. }
  24436. }
  24437. if (Array.isArray(children)) {
  24438. if (!(children.length <= 1)) {
  24439. {
  24440. throw Error( "<textarea> can only have at most one child." );
  24441. }
  24442. }
  24443. children = children[0];
  24444. }
  24445. defaultValue = children;
  24446. }
  24447. }
  24448. if (defaultValue == null) {
  24449. defaultValue = '';
  24450. }
  24451. initialValue = defaultValue;
  24452. }
  24453. node._wrapperState = {
  24454. initialValue: getToStringValue(initialValue)
  24455. };
  24456. }
  24457. function updateWrapper$1(element, props) {
  24458. var node = element;
  24459. var value = getToStringValue(props.value);
  24460. var defaultValue = getToStringValue(props.defaultValue);
  24461. if (value != null) {
  24462. // Cast `value` to a string to ensure the value is set correctly. While
  24463. // browsers typically do this as necessary, jsdom doesn't.
  24464. var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed
  24465. if (newValue !== node.value) {
  24466. node.value = newValue;
  24467. }
  24468. if (props.defaultValue == null && node.defaultValue !== newValue) {
  24469. node.defaultValue = newValue;
  24470. }
  24471. }
  24472. if (defaultValue != null) {
  24473. node.defaultValue = toString(defaultValue);
  24474. }
  24475. }
  24476. function postMountWrapper$3(element, props) {
  24477. var node = element; // This is in postMount because we need access to the DOM node, which is not
  24478. // available until after the component has mounted.
  24479. var textContent = node.textContent; // Only set node.value if textContent is equal to the expected
  24480. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  24481. // will populate textContent as well.
  24482. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  24483. if (textContent === node._wrapperState.initialValue) {
  24484. if (textContent !== '' && textContent !== null) {
  24485. node.value = textContent;
  24486. }
  24487. }
  24488. }
  24489. function restoreControlledState$2(element, props) {
  24490. // DOM component is still mounted; update
  24491. updateWrapper$1(element, props);
  24492. }
  24493. var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
  24494. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  24495. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  24496. var Namespaces = {
  24497. html: HTML_NAMESPACE,
  24498. mathml: MATH_NAMESPACE,
  24499. svg: SVG_NAMESPACE
  24500. }; // Assumes there is no parent namespace.
  24501. function getIntrinsicNamespace(type) {
  24502. switch (type) {
  24503. case 'svg':
  24504. return SVG_NAMESPACE;
  24505. case 'math':
  24506. return MATH_NAMESPACE;
  24507. default:
  24508. return HTML_NAMESPACE;
  24509. }
  24510. }
  24511. function getChildNamespace(parentNamespace, type) {
  24512. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
  24513. // No (or default) parent namespace: potential entry point.
  24514. return getIntrinsicNamespace(type);
  24515. }
  24516. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  24517. // We're leaving SVG.
  24518. return HTML_NAMESPACE;
  24519. } // By default, pass namespace below.
  24520. return parentNamespace;
  24521. }
  24522. /* globals MSApp */
  24523. /**
  24524. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  24525. */
  24526. var createMicrosoftUnsafeLocalFunction = function (func) {
  24527. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  24528. return function (arg0, arg1, arg2, arg3) {
  24529. MSApp.execUnsafeLocalFunction(function () {
  24530. return func(arg0, arg1, arg2, arg3);
  24531. });
  24532. };
  24533. } else {
  24534. return func;
  24535. }
  24536. };
  24537. var reusableSVGContainer;
  24538. /**
  24539. * Set the innerHTML property of a node
  24540. *
  24541. * @param {DOMElement} node
  24542. * @param {string} html
  24543. * @internal
  24544. */
  24545. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  24546. if (node.namespaceURI === Namespaces.svg) {
  24547. if (!('innerHTML' in node)) {
  24548. // IE does not have innerHTML for SVG nodes, so instead we inject the
  24549. // new markup in a temp node and then move the child nodes across into
  24550. // the target node
  24551. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  24552. reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
  24553. var svgNode = reusableSVGContainer.firstChild;
  24554. while (node.firstChild) {
  24555. node.removeChild(node.firstChild);
  24556. }
  24557. while (svgNode.firstChild) {
  24558. node.appendChild(svgNode.firstChild);
  24559. }
  24560. return;
  24561. }
  24562. }
  24563. node.innerHTML = html;
  24564. });
  24565. /**
  24566. * HTML nodeType values that represent the type of the node
  24567. */
  24568. var ELEMENT_NODE = 1;
  24569. var TEXT_NODE = 3;
  24570. var COMMENT_NODE = 8;
  24571. var DOCUMENT_NODE = 9;
  24572. var DOCUMENT_FRAGMENT_NODE = 11;
  24573. /**
  24574. * Set the textContent property of a node. For text updates, it's faster
  24575. * to set the `nodeValue` of the Text node directly instead of using
  24576. * `.textContent` which will remove the existing node and create a new one.
  24577. *
  24578. * @param {DOMElement} node
  24579. * @param {string} text
  24580. * @internal
  24581. */
  24582. var setTextContent = function (node, text) {
  24583. if (text) {
  24584. var firstChild = node.firstChild;
  24585. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  24586. firstChild.nodeValue = text;
  24587. return;
  24588. }
  24589. }
  24590. node.textContent = text;
  24591. };
  24592. // Do not use the below two methods directly!
  24593. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  24594. // (It is the only module that is allowed to access these methods.)
  24595. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  24596. return topLevelType;
  24597. }
  24598. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  24599. return topLevelType;
  24600. }
  24601. /**
  24602. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  24603. *
  24604. * @param {string} styleProp
  24605. * @param {string} eventName
  24606. * @returns {object}
  24607. */
  24608. function makePrefixMap(styleProp, eventName) {
  24609. var prefixes = {};
  24610. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  24611. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  24612. prefixes['Moz' + styleProp] = 'moz' + eventName;
  24613. return prefixes;
  24614. }
  24615. /**
  24616. * A list of event names to a configurable list of vendor prefixes.
  24617. */
  24618. var vendorPrefixes = {
  24619. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  24620. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  24621. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  24622. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  24623. };
  24624. /**
  24625. * Event names that have already been detected and prefixed (if applicable).
  24626. */
  24627. var prefixedEventNames = {};
  24628. /**
  24629. * Element to check for prefixes on.
  24630. */
  24631. var style = {};
  24632. /**
  24633. * Bootstrap if a DOM exists.
  24634. */
  24635. if (canUseDOM) {
  24636. style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,
  24637. // the un-prefixed "animation" and "transition" properties are defined on the
  24638. // style object but the events that fire will still be prefixed, so we need
  24639. // to check if the un-prefixed events are usable, and if not remove them from the map.
  24640. if (!('AnimationEvent' in window)) {
  24641. delete vendorPrefixes.animationend.animation;
  24642. delete vendorPrefixes.animationiteration.animation;
  24643. delete vendorPrefixes.animationstart.animation;
  24644. } // Same as above
  24645. if (!('TransitionEvent' in window)) {
  24646. delete vendorPrefixes.transitionend.transition;
  24647. }
  24648. }
  24649. /**
  24650. * Attempts to determine the correct vendor prefixed event name.
  24651. *
  24652. * @param {string} eventName
  24653. * @returns {string}
  24654. */
  24655. function getVendorPrefixedEventName(eventName) {
  24656. if (prefixedEventNames[eventName]) {
  24657. return prefixedEventNames[eventName];
  24658. } else if (!vendorPrefixes[eventName]) {
  24659. return eventName;
  24660. }
  24661. var prefixMap = vendorPrefixes[eventName];
  24662. for (var styleProp in prefixMap) {
  24663. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  24664. return prefixedEventNames[eventName] = prefixMap[styleProp];
  24665. }
  24666. }
  24667. return eventName;
  24668. }
  24669. /**
  24670. * To identify top level events in ReactDOM, we use constants defined by this
  24671. * module. This is the only module that uses the unsafe* methods to express
  24672. * that the constants actually correspond to the browser event names. This lets
  24673. * us save some bundle size by avoiding a top level type -> event name map.
  24674. * The rest of ReactDOM code should import top level types from this file.
  24675. */
  24676. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  24677. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  24678. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  24679. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  24680. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  24681. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  24682. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  24683. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  24684. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  24685. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  24686. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  24687. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  24688. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  24689. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  24690. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  24691. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  24692. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  24693. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  24694. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  24695. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  24696. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  24697. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  24698. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  24699. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  24700. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  24701. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  24702. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  24703. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  24704. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  24705. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  24706. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  24707. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  24708. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  24709. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  24710. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  24711. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  24712. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  24713. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  24714. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  24715. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  24716. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  24717. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  24718. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  24719. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  24720. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  24721. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  24722. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  24723. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  24724. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  24725. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  24726. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  24727. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  24728. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  24729. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  24730. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  24731. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  24732. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  24733. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  24734. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  24735. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  24736. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  24737. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  24738. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  24739. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  24740. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  24741. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  24742. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  24743. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  24744. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  24745. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  24746. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  24747. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  24748. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  24749. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  24750. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  24751. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  24752. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  24753. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  24754. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  24755. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); // List of events that need to be individually attached to media elements.
  24756. // Note that events in this list will *not* be listened to at the top level
  24757. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  24758. 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];
  24759. function getRawEventName(topLevelType) {
  24760. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  24761. }
  24762. var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // prettier-ignore
  24763. var elementListenerMap = new PossiblyWeakMap();
  24764. function getListenerMapForElement(element) {
  24765. var listenerMap = elementListenerMap.get(element);
  24766. if (listenerMap === undefined) {
  24767. listenerMap = new Map();
  24768. elementListenerMap.set(element, listenerMap);
  24769. }
  24770. return listenerMap;
  24771. }
  24772. /**
  24773. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  24774. * instance (key) and the internal representation (value). This allows public
  24775. * methods to accept the user facing instance as an argument and map them back
  24776. * to internal methods.
  24777. *
  24778. * Note that this module is currently shared and assumed to be stateless.
  24779. * If this becomes an actual Map, that will break.
  24780. */
  24781. function get(key) {
  24782. return key._reactInternalFiber;
  24783. }
  24784. function has(key) {
  24785. return key._reactInternalFiber !== undefined;
  24786. }
  24787. function set(key, value) {
  24788. key._reactInternalFiber = value;
  24789. }
  24790. // Don't change these two values. They're used by React Dev Tools.
  24791. var NoEffect =
  24792. /* */
  24793. 0;
  24794. var PerformedWork =
  24795. /* */
  24796. 1; // You can change the rest (and add more).
  24797. var Placement =
  24798. /* */
  24799. 2;
  24800. var Update =
  24801. /* */
  24802. 4;
  24803. var PlacementAndUpdate =
  24804. /* */
  24805. 6;
  24806. var Deletion =
  24807. /* */
  24808. 8;
  24809. var ContentReset =
  24810. /* */
  24811. 16;
  24812. var Callback =
  24813. /* */
  24814. 32;
  24815. var DidCapture =
  24816. /* */
  24817. 64;
  24818. var Ref =
  24819. /* */
  24820. 128;
  24821. var Snapshot =
  24822. /* */
  24823. 256;
  24824. var Passive =
  24825. /* */
  24826. 512;
  24827. var Hydrating =
  24828. /* */
  24829. 1024;
  24830. var HydratingAndUpdate =
  24831. /* */
  24832. 1028; // Passive & Update & Callback & Ref & Snapshot
  24833. var LifecycleEffectMask =
  24834. /* */
  24835. 932; // Union of all host effects
  24836. var HostEffectMask =
  24837. /* */
  24838. 2047;
  24839. var Incomplete =
  24840. /* */
  24841. 2048;
  24842. var ShouldCapture =
  24843. /* */
  24844. 4096;
  24845. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  24846. function getNearestMountedFiber(fiber) {
  24847. var node = fiber;
  24848. var nearestMounted = fiber;
  24849. if (!fiber.alternate) {
  24850. // If there is no alternate, this might be a new tree that isn't inserted
  24851. // yet. If it is, then it will have a pending insertion effect on it.
  24852. var nextNode = node;
  24853. do {
  24854. node = nextNode;
  24855. if ((node.effectTag & (Placement | Hydrating)) !== NoEffect) {
  24856. // This is an insertion or in-progress hydration. The nearest possible
  24857. // mounted fiber is the parent but we need to continue to figure out
  24858. // if that one is still mounted.
  24859. nearestMounted = node.return;
  24860. }
  24861. nextNode = node.return;
  24862. } while (nextNode);
  24863. } else {
  24864. while (node.return) {
  24865. node = node.return;
  24866. }
  24867. }
  24868. if (node.tag === HostRoot) {
  24869. // TODO: Check if this was a nested HostRoot when used with
  24870. // renderContainerIntoSubtree.
  24871. return nearestMounted;
  24872. } // If we didn't hit the root, that means that we're in an disconnected tree
  24873. // that has been unmounted.
  24874. return null;
  24875. }
  24876. function getSuspenseInstanceFromFiber(fiber) {
  24877. if (fiber.tag === SuspenseComponent) {
  24878. var suspenseState = fiber.memoizedState;
  24879. if (suspenseState === null) {
  24880. var current = fiber.alternate;
  24881. if (current !== null) {
  24882. suspenseState = current.memoizedState;
  24883. }
  24884. }
  24885. if (suspenseState !== null) {
  24886. return suspenseState.dehydrated;
  24887. }
  24888. }
  24889. return null;
  24890. }
  24891. function getContainerFromFiber(fiber) {
  24892. return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
  24893. }
  24894. function isFiberMounted(fiber) {
  24895. return getNearestMountedFiber(fiber) === fiber;
  24896. }
  24897. function isMounted(component) {
  24898. {
  24899. var owner = ReactCurrentOwner.current;
  24900. if (owner !== null && owner.tag === ClassComponent) {
  24901. var ownerFiber = owner;
  24902. var instance = ownerFiber.stateNode;
  24903. if (!instance._warnedAboutRefsInRender) {
  24904. error('%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');
  24905. }
  24906. instance._warnedAboutRefsInRender = true;
  24907. }
  24908. }
  24909. var fiber = get(component);
  24910. if (!fiber) {
  24911. return false;
  24912. }
  24913. return getNearestMountedFiber(fiber) === fiber;
  24914. }
  24915. function assertIsMounted(fiber) {
  24916. if (!(getNearestMountedFiber(fiber) === fiber)) {
  24917. {
  24918. throw Error( "Unable to find node on an unmounted component." );
  24919. }
  24920. }
  24921. }
  24922. function findCurrentFiberUsingSlowPath(fiber) {
  24923. var alternate = fiber.alternate;
  24924. if (!alternate) {
  24925. // If there is no alternate, then we only need to check if it is mounted.
  24926. var nearestMounted = getNearestMountedFiber(fiber);
  24927. if (!(nearestMounted !== null)) {
  24928. {
  24929. throw Error( "Unable to find node on an unmounted component." );
  24930. }
  24931. }
  24932. if (nearestMounted !== fiber) {
  24933. return null;
  24934. }
  24935. return fiber;
  24936. } // If we have two possible branches, we'll walk backwards up to the root
  24937. // to see what path the root points to. On the way we may hit one of the
  24938. // special cases and we'll deal with them.
  24939. var a = fiber;
  24940. var b = alternate;
  24941. while (true) {
  24942. var parentA = a.return;
  24943. if (parentA === null) {
  24944. // We're at the root.
  24945. break;
  24946. }
  24947. var parentB = parentA.alternate;
  24948. if (parentB === null) {
  24949. // There is no alternate. This is an unusual case. Currently, it only
  24950. // happens when a Suspense component is hidden. An extra fragment fiber
  24951. // is inserted in between the Suspense fiber and its children. Skip
  24952. // over this extra fragment fiber and proceed to the next parent.
  24953. var nextParent = parentA.return;
  24954. if (nextParent !== null) {
  24955. a = b = nextParent;
  24956. continue;
  24957. } // If there's no parent, we're at the root.
  24958. break;
  24959. } // If both copies of the parent fiber point to the same child, we can
  24960. // assume that the child is current. This happens when we bailout on low
  24961. // priority: the bailed out fiber's child reuses the current child.
  24962. if (parentA.child === parentB.child) {
  24963. var child = parentA.child;
  24964. while (child) {
  24965. if (child === a) {
  24966. // We've determined that A is the current branch.
  24967. assertIsMounted(parentA);
  24968. return fiber;
  24969. }
  24970. if (child === b) {
  24971. // We've determined that B is the current branch.
  24972. assertIsMounted(parentA);
  24973. return alternate;
  24974. }
  24975. child = child.sibling;
  24976. } // We should never have an alternate for any mounting node. So the only
  24977. // way this could possibly happen is if this was unmounted, if at all.
  24978. {
  24979. {
  24980. throw Error( "Unable to find node on an unmounted component." );
  24981. }
  24982. }
  24983. }
  24984. if (a.return !== b.return) {
  24985. // The return pointer of A and the return pointer of B point to different
  24986. // fibers. We assume that return pointers never criss-cross, so A must
  24987. // belong to the child set of A.return, and B must belong to the child
  24988. // set of B.return.
  24989. a = parentA;
  24990. b = parentB;
  24991. } else {
  24992. // The return pointers point to the same fiber. We'll have to use the
  24993. // default, slow path: scan the child sets of each parent alternate to see
  24994. // which child belongs to which set.
  24995. //
  24996. // Search parent A's child set
  24997. var didFindChild = false;
  24998. var _child = parentA.child;
  24999. while (_child) {
  25000. if (_child === a) {
  25001. didFindChild = true;
  25002. a = parentA;
  25003. b = parentB;
  25004. break;
  25005. }
  25006. if (_child === b) {
  25007. didFindChild = true;
  25008. b = parentA;
  25009. a = parentB;
  25010. break;
  25011. }
  25012. _child = _child.sibling;
  25013. }
  25014. if (!didFindChild) {
  25015. // Search parent B's child set
  25016. _child = parentB.child;
  25017. while (_child) {
  25018. if (_child === a) {
  25019. didFindChild = true;
  25020. a = parentB;
  25021. b = parentA;
  25022. break;
  25023. }
  25024. if (_child === b) {
  25025. didFindChild = true;
  25026. b = parentB;
  25027. a = parentA;
  25028. break;
  25029. }
  25030. _child = _child.sibling;
  25031. }
  25032. if (!didFindChild) {
  25033. {
  25034. throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." );
  25035. }
  25036. }
  25037. }
  25038. }
  25039. if (!(a.alternate === b)) {
  25040. {
  25041. throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." );
  25042. }
  25043. }
  25044. } // If the root is not a host container, we're in a disconnected tree. I.e.
  25045. // unmounted.
  25046. if (!(a.tag === HostRoot)) {
  25047. {
  25048. throw Error( "Unable to find node on an unmounted component." );
  25049. }
  25050. }
  25051. if (a.stateNode.current === a) {
  25052. // We've determined that A is the current branch.
  25053. return fiber;
  25054. } // Otherwise B has to be current branch.
  25055. return alternate;
  25056. }
  25057. function findCurrentHostFiber(parent) {
  25058. var currentParent = findCurrentFiberUsingSlowPath(parent);
  25059. if (!currentParent) {
  25060. return null;
  25061. } // Next we'll drill down this component to find the first HostComponent/Text.
  25062. var node = currentParent;
  25063. while (true) {
  25064. if (node.tag === HostComponent || node.tag === HostText) {
  25065. return node;
  25066. } else if (node.child) {
  25067. node.child.return = node;
  25068. node = node.child;
  25069. continue;
  25070. }
  25071. if (node === currentParent) {
  25072. return null;
  25073. }
  25074. while (!node.sibling) {
  25075. if (!node.return || node.return === currentParent) {
  25076. return null;
  25077. }
  25078. node = node.return;
  25079. }
  25080. node.sibling.return = node.return;
  25081. node = node.sibling;
  25082. } // Flow needs the return null here, but ESLint complains about it.
  25083. // eslint-disable-next-line no-unreachable
  25084. return null;
  25085. }
  25086. function findCurrentHostFiberWithNoPortals(parent) {
  25087. var currentParent = findCurrentFiberUsingSlowPath(parent);
  25088. if (!currentParent) {
  25089. return null;
  25090. } // Next we'll drill down this component to find the first HostComponent/Text.
  25091. var node = currentParent;
  25092. while (true) {
  25093. if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) {
  25094. return node;
  25095. } else if (node.child && node.tag !== HostPortal) {
  25096. node.child.return = node;
  25097. node = node.child;
  25098. continue;
  25099. }
  25100. if (node === currentParent) {
  25101. return null;
  25102. }
  25103. while (!node.sibling) {
  25104. if (!node.return || node.return === currentParent) {
  25105. return null;
  25106. }
  25107. node = node.return;
  25108. }
  25109. node.sibling.return = node.return;
  25110. node = node.sibling;
  25111. } // Flow needs the return null here, but ESLint complains about it.
  25112. // eslint-disable-next-line no-unreachable
  25113. return null;
  25114. }
  25115. /**
  25116. * Accumulates items that must not be null or undefined into the first one. This
  25117. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  25118. * API cleanness. Since `current` can be null before being passed in and not
  25119. * null after this function, make sure to assign it back to `current`:
  25120. *
  25121. * `a = accumulateInto(a, b);`
  25122. *
  25123. * This API should be sparingly used. Try `accumulate` for something cleaner.
  25124. *
  25125. * @return {*|array<*>} An accumulation of items.
  25126. */
  25127. function accumulateInto(current, next) {
  25128. if (!(next != null)) {
  25129. {
  25130. throw Error( "accumulateInto(...): Accumulated items must not be null or undefined." );
  25131. }
  25132. }
  25133. if (current == null) {
  25134. return next;
  25135. } // Both are not empty. Warning: Never call x.concat(y) when you are not
  25136. // certain that x is an Array (x could be a string with concat method).
  25137. if (Array.isArray(current)) {
  25138. if (Array.isArray(next)) {
  25139. current.push.apply(current, next);
  25140. return current;
  25141. }
  25142. current.push(next);
  25143. return current;
  25144. }
  25145. if (Array.isArray(next)) {
  25146. // A bit too dangerous to mutate `next`.
  25147. return [current].concat(next);
  25148. }
  25149. return [current, next];
  25150. }
  25151. /**
  25152. * @param {array} arr an "accumulation" of items which is either an Array or
  25153. * a single item. Useful when paired with the `accumulate` module. This is a
  25154. * simple utility that allows us to reason about a collection of items, but
  25155. * handling the case when there is exactly one item (and we do not need to
  25156. * allocate an array).
  25157. * @param {function} cb Callback invoked with each element or a collection.
  25158. * @param {?} [scope] Scope used as `this` in a callback.
  25159. */
  25160. function forEachAccumulated(arr, cb, scope) {
  25161. if (Array.isArray(arr)) {
  25162. arr.forEach(cb, scope);
  25163. } else if (arr) {
  25164. cb.call(scope, arr);
  25165. }
  25166. }
  25167. /**
  25168. * Internal queue of events that have accumulated their dispatches and are
  25169. * waiting to have their dispatches executed.
  25170. */
  25171. var eventQueue = null;
  25172. /**
  25173. * Dispatches an event and releases it back into the pool, unless persistent.
  25174. *
  25175. * @param {?object} event Synthetic event to be dispatched.
  25176. * @private
  25177. */
  25178. var executeDispatchesAndRelease = function (event) {
  25179. if (event) {
  25180. executeDispatchesInOrder(event);
  25181. if (!event.isPersistent()) {
  25182. event.constructor.release(event);
  25183. }
  25184. }
  25185. };
  25186. var executeDispatchesAndReleaseTopLevel = function (e) {
  25187. return executeDispatchesAndRelease(e);
  25188. };
  25189. function runEventsInBatch(events) {
  25190. if (events !== null) {
  25191. eventQueue = accumulateInto(eventQueue, events);
  25192. } // Set `eventQueue` to null before processing it so that we can tell if more
  25193. // events get enqueued while processing.
  25194. var processingEventQueue = eventQueue;
  25195. eventQueue = null;
  25196. if (!processingEventQueue) {
  25197. return;
  25198. }
  25199. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  25200. if (!!eventQueue) {
  25201. {
  25202. throw Error( "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented." );
  25203. }
  25204. } // This would be a good time to rethrow if any of the event handlers threw.
  25205. rethrowCaughtError();
  25206. }
  25207. /**
  25208. * Gets the target node from a native browser event by accounting for
  25209. * inconsistencies in browser DOM APIs.
  25210. *
  25211. * @param {object} nativeEvent Native browser event.
  25212. * @return {DOMEventTarget} Target node.
  25213. */
  25214. function getEventTarget(nativeEvent) {
  25215. // Fallback to nativeEvent.srcElement for IE9
  25216. // https://github.com/facebook/react/issues/12506
  25217. var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963
  25218. if (target.correspondingUseElement) {
  25219. target = target.correspondingUseElement;
  25220. } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  25221. // @see http://www.quirksmode.org/js/events_properties.html
  25222. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  25223. }
  25224. /**
  25225. * Checks if an event is supported in the current execution environment.
  25226. *
  25227. * NOTE: This will not work correctly for non-generic events such as `change`,
  25228. * `reset`, `load`, `error`, and `select`.
  25229. *
  25230. * Borrows from Modernizr.
  25231. *
  25232. * @param {string} eventNameSuffix Event name, e.g. "click".
  25233. * @return {boolean} True if the event is supported.
  25234. * @internal
  25235. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  25236. */
  25237. function isEventSupported(eventNameSuffix) {
  25238. if (!canUseDOM) {
  25239. return false;
  25240. }
  25241. var eventName = 'on' + eventNameSuffix;
  25242. var isSupported = eventName in document;
  25243. if (!isSupported) {
  25244. var element = document.createElement('div');
  25245. element.setAttribute(eventName, 'return;');
  25246. isSupported = typeof element[eventName] === 'function';
  25247. }
  25248. return isSupported;
  25249. }
  25250. /**
  25251. * Summary of `DOMEventPluginSystem` event handling:
  25252. *
  25253. * - Top-level delegation is used to trap most native browser events. This
  25254. * may only occur in the main thread and is the responsibility of
  25255. * ReactDOMEventListener, which is injected and can therefore support
  25256. * pluggable event sources. This is the only work that occurs in the main
  25257. * thread.
  25258. *
  25259. * - We normalize and de-duplicate events to account for browser quirks. This
  25260. * may be done in the worker thread.
  25261. *
  25262. * - Forward these native events (with the associated top-level type used to
  25263. * trap it) to `EventPluginRegistry`, which in turn will ask plugins if they want
  25264. * to extract any synthetic events.
  25265. *
  25266. * - The `EventPluginRegistry` will then process each event by annotating them with
  25267. * "dispatches", a sequence of listeners and IDs that care about that event.
  25268. *
  25269. * - The `EventPluginRegistry` then dispatches the events.
  25270. *
  25271. * Overview of React and the event system:
  25272. *
  25273. * +------------+ .
  25274. * | DOM | .
  25275. * +------------+ .
  25276. * | .
  25277. * v .
  25278. * +------------+ .
  25279. * | ReactEvent | .
  25280. * | Listener | .
  25281. * +------------+ . +-----------+
  25282. * | . +--------+|SimpleEvent|
  25283. * | . | |Plugin |
  25284. * +-----|------+ . v +-----------+
  25285. * | | | . +--------------+ +------------+
  25286. * | +-----------.--->|PluginRegistry| | Event |
  25287. * | | . | | +-----------+ | Propagators|
  25288. * | ReactEvent | . | | |TapEvent | |------------|
  25289. * | Emitter | . | |<---+|Plugin | |other plugin|
  25290. * | | . | | +-----------+ | utilities |
  25291. * | +-----------.--->| | +------------+
  25292. * | | | . +--------------+
  25293. * +-----|------+ . ^ +-----------+
  25294. * | . | |Enter/Leave|
  25295. * + . +-------+|Plugin |
  25296. * +-------------+ . +-----------+
  25297. * | application | .
  25298. * |-------------| .
  25299. * | | .
  25300. * | | .
  25301. * +-------------+ .
  25302. * .
  25303. * React Core . General Purpose Event Plugin System
  25304. */
  25305. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  25306. var callbackBookkeepingPool = [];
  25307. function releaseTopLevelCallbackBookKeeping(instance) {
  25308. instance.topLevelType = null;
  25309. instance.nativeEvent = null;
  25310. instance.targetInst = null;
  25311. instance.ancestors.length = 0;
  25312. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  25313. callbackBookkeepingPool.push(instance);
  25314. }
  25315. } // Used to store ancestor hierarchy in top level callback
  25316. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags) {
  25317. if (callbackBookkeepingPool.length) {
  25318. var instance = callbackBookkeepingPool.pop();
  25319. instance.topLevelType = topLevelType;
  25320. instance.eventSystemFlags = eventSystemFlags;
  25321. instance.nativeEvent = nativeEvent;
  25322. instance.targetInst = targetInst;
  25323. return instance;
  25324. }
  25325. return {
  25326. topLevelType: topLevelType,
  25327. eventSystemFlags: eventSystemFlags,
  25328. nativeEvent: nativeEvent,
  25329. targetInst: targetInst,
  25330. ancestors: []
  25331. };
  25332. }
  25333. /**
  25334. * Find the deepest React component completely containing the root of the
  25335. * passed-in instance (for use when entire React trees are nested within each
  25336. * other). If React trees are not nested, returns null.
  25337. */
  25338. function findRootContainerNode(inst) {
  25339. if (inst.tag === HostRoot) {
  25340. return inst.stateNode.containerInfo;
  25341. } // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  25342. // traversal, but caching is difficult to do correctly without using a
  25343. // mutation observer to listen for all DOM changes.
  25344. while (inst.return) {
  25345. inst = inst.return;
  25346. }
  25347. if (inst.tag !== HostRoot) {
  25348. // This can happen if we're in a detached tree.
  25349. return null;
  25350. }
  25351. return inst.stateNode.containerInfo;
  25352. }
  25353. /**
  25354. * Allows registered plugins an opportunity to extract events from top-level
  25355. * native browser events.
  25356. *
  25357. * @return {*} An accumulation of synthetic events.
  25358. * @internal
  25359. */
  25360. function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  25361. var events = null;
  25362. for (var i = 0; i < plugins.length; i++) {
  25363. // Not every plugin in the ordering may be loaded at runtime.
  25364. var possiblePlugin = plugins[i];
  25365. if (possiblePlugin) {
  25366. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  25367. if (extractedEvents) {
  25368. events = accumulateInto(events, extractedEvents);
  25369. }
  25370. }
  25371. }
  25372. return events;
  25373. }
  25374. function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  25375. var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  25376. runEventsInBatch(events);
  25377. }
  25378. function handleTopLevel(bookKeeping) {
  25379. var targetInst = bookKeeping.targetInst; // Loop through the hierarchy, in case there's any nested components.
  25380. // It's important that we build the array of ancestors before calling any
  25381. // event handlers, because event handlers can modify the DOM, leading to
  25382. // inconsistencies with ReactMount's node cache. See #1105.
  25383. var ancestor = targetInst;
  25384. do {
  25385. if (!ancestor) {
  25386. var ancestors = bookKeeping.ancestors;
  25387. ancestors.push(ancestor);
  25388. break;
  25389. }
  25390. var root = findRootContainerNode(ancestor);
  25391. if (!root) {
  25392. break;
  25393. }
  25394. var tag = ancestor.tag;
  25395. if (tag === HostComponent || tag === HostText) {
  25396. bookKeeping.ancestors.push(ancestor);
  25397. }
  25398. ancestor = getClosestInstanceFromNode(root);
  25399. } while (ancestor);
  25400. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  25401. targetInst = bookKeeping.ancestors[i];
  25402. var eventTarget = getEventTarget(bookKeeping.nativeEvent);
  25403. var topLevelType = bookKeeping.topLevelType;
  25404. var nativeEvent = bookKeeping.nativeEvent;
  25405. var eventSystemFlags = bookKeeping.eventSystemFlags; // If this is the first ancestor, we mark it on the system flags
  25406. if (i === 0) {
  25407. eventSystemFlags |= IS_FIRST_ANCESTOR;
  25408. }
  25409. runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, eventTarget, eventSystemFlags);
  25410. }
  25411. }
  25412. function dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
  25413. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags);
  25414. try {
  25415. // Event queue being processed in the same cycle allows
  25416. // `preventDefault`.
  25417. batchedEventUpdates(handleTopLevel, bookKeeping);
  25418. } finally {
  25419. releaseTopLevelCallbackBookKeeping(bookKeeping);
  25420. }
  25421. }
  25422. /**
  25423. * We listen for bubbled touch events on the document object.
  25424. *
  25425. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  25426. * mounting `onmousemove` events at some node that was not the document
  25427. * element. The symptoms were that if your mouse is not moving over something
  25428. * contained within that mount point (for example on the background) the
  25429. * top-level listeners for `onmousemove` won't be called. However, if you
  25430. * register the `mousemove` on the document object, then it will of course
  25431. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  25432. * top-level listeners to the document object only, at least for these
  25433. * movement types of events and possibly all events.
  25434. *
  25435. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  25436. *
  25437. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  25438. * they bubble to document.
  25439. *
  25440. * @param {string} registrationName Name of listener (e.g. `onClick`).
  25441. * @param {object} mountAt Container where to mount the listener
  25442. */
  25443. function legacyListenToEvent(registrationName, mountAt) {
  25444. var listenerMap = getListenerMapForElement(mountAt);
  25445. var dependencies = registrationNameDependencies[registrationName];
  25446. for (var i = 0; i < dependencies.length; i++) {
  25447. var dependency = dependencies[i];
  25448. legacyListenToTopLevelEvent(dependency, mountAt, listenerMap);
  25449. }
  25450. }
  25451. function legacyListenToTopLevelEvent(topLevelType, mountAt, listenerMap) {
  25452. if (!listenerMap.has(topLevelType)) {
  25453. switch (topLevelType) {
  25454. case TOP_SCROLL:
  25455. trapCapturedEvent(TOP_SCROLL, mountAt);
  25456. break;
  25457. case TOP_FOCUS:
  25458. case TOP_BLUR:
  25459. trapCapturedEvent(TOP_FOCUS, mountAt);
  25460. trapCapturedEvent(TOP_BLUR, mountAt); // We set the flag for a single dependency later in this function,
  25461. // but this ensures we mark both as attached rather than just one.
  25462. listenerMap.set(TOP_BLUR, null);
  25463. listenerMap.set(TOP_FOCUS, null);
  25464. break;
  25465. case TOP_CANCEL:
  25466. case TOP_CLOSE:
  25467. if (isEventSupported(getRawEventName(topLevelType))) {
  25468. trapCapturedEvent(topLevelType, mountAt);
  25469. }
  25470. break;
  25471. case TOP_INVALID:
  25472. case TOP_SUBMIT:
  25473. case TOP_RESET:
  25474. // We listen to them on the target DOM elements.
  25475. // Some of them bubble so we don't want them to fire twice.
  25476. break;
  25477. default:
  25478. // By default, listen on the top level to all non-media events.
  25479. // Media events don't bubble so adding the listener wouldn't do anything.
  25480. var isMediaEvent = mediaEventTypes.indexOf(topLevelType) !== -1;
  25481. if (!isMediaEvent) {
  25482. trapBubbledEvent(topLevelType, mountAt);
  25483. }
  25484. break;
  25485. }
  25486. listenerMap.set(topLevelType, null);
  25487. }
  25488. }
  25489. function isListeningToAllDependencies(registrationName, mountAt) {
  25490. var listenerMap = getListenerMapForElement(mountAt);
  25491. var dependencies = registrationNameDependencies[registrationName];
  25492. for (var i = 0; i < dependencies.length; i++) {
  25493. var dependency = dependencies[i];
  25494. if (!listenerMap.has(dependency)) {
  25495. return false;
  25496. }
  25497. }
  25498. return true;
  25499. }
  25500. var attemptUserBlockingHydration;
  25501. function setAttemptUserBlockingHydration(fn) {
  25502. attemptUserBlockingHydration = fn;
  25503. }
  25504. var attemptContinuousHydration;
  25505. function setAttemptContinuousHydration(fn) {
  25506. attemptContinuousHydration = fn;
  25507. }
  25508. var attemptHydrationAtCurrentPriority;
  25509. function setAttemptHydrationAtCurrentPriority(fn) {
  25510. attemptHydrationAtCurrentPriority = fn;
  25511. } // TODO: Upgrade this definition once we're on a newer version of Flow that
  25512. var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.
  25513. var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
  25514. // if the last target was dehydrated.
  25515. var queuedFocus = null;
  25516. var queuedDrag = null;
  25517. var queuedMouse = null; // For pointer events there can be one latest event per pointerId.
  25518. var queuedPointers = new Map();
  25519. var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.
  25520. var queuedExplicitHydrationTargets = [];
  25521. function hasQueuedDiscreteEvents() {
  25522. return queuedDiscreteEvents.length > 0;
  25523. }
  25524. var discreteReplayableEvents = [TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_TOUCH_CANCEL, TOP_TOUCH_END, TOP_TOUCH_START, TOP_AUX_CLICK, TOP_DOUBLE_CLICK, TOP_POINTER_CANCEL, TOP_POINTER_DOWN, TOP_POINTER_UP, TOP_DRAG_END, TOP_DRAG_START, TOP_DROP, TOP_COMPOSITION_END, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_INPUT, TOP_TEXT_INPUT, TOP_CLOSE, TOP_CANCEL, TOP_COPY, TOP_CUT, TOP_PASTE, TOP_CLICK, TOP_CHANGE, TOP_CONTEXT_MENU, TOP_RESET, TOP_SUBMIT];
  25525. var continuousReplayableEvents = [TOP_FOCUS, TOP_BLUR, TOP_DRAG_ENTER, TOP_DRAG_LEAVE, TOP_MOUSE_OVER, TOP_MOUSE_OUT, TOP_POINTER_OVER, TOP_POINTER_OUT, TOP_GOT_POINTER_CAPTURE, TOP_LOST_POINTER_CAPTURE];
  25526. function isReplayableDiscreteEvent(eventType) {
  25527. return discreteReplayableEvents.indexOf(eventType) > -1;
  25528. }
  25529. function trapReplayableEventForDocument(topLevelType, document, listenerMap) {
  25530. legacyListenToTopLevelEvent(topLevelType, document, listenerMap);
  25531. }
  25532. function eagerlyTrapReplayableEvents(container, document) {
  25533. var listenerMapForDoc = getListenerMapForElement(document); // Discrete
  25534. discreteReplayableEvents.forEach(function (topLevelType) {
  25535. trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
  25536. }); // Continuous
  25537. continuousReplayableEvents.forEach(function (topLevelType) {
  25538. trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
  25539. });
  25540. }
  25541. function createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  25542. return {
  25543. blockedOn: blockedOn,
  25544. topLevelType: topLevelType,
  25545. eventSystemFlags: eventSystemFlags | IS_REPLAYED,
  25546. nativeEvent: nativeEvent,
  25547. container: container
  25548. };
  25549. }
  25550. function queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  25551. var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  25552. queuedDiscreteEvents.push(queuedEvent);
  25553. } // Resets the replaying for this type of continuous event to no event.
  25554. function clearIfContinuousEvent(topLevelType, nativeEvent) {
  25555. switch (topLevelType) {
  25556. case TOP_FOCUS:
  25557. case TOP_BLUR:
  25558. queuedFocus = null;
  25559. break;
  25560. case TOP_DRAG_ENTER:
  25561. case TOP_DRAG_LEAVE:
  25562. queuedDrag = null;
  25563. break;
  25564. case TOP_MOUSE_OVER:
  25565. case TOP_MOUSE_OUT:
  25566. queuedMouse = null;
  25567. break;
  25568. case TOP_POINTER_OVER:
  25569. case TOP_POINTER_OUT:
  25570. {
  25571. var pointerId = nativeEvent.pointerId;
  25572. queuedPointers.delete(pointerId);
  25573. break;
  25574. }
  25575. case TOP_GOT_POINTER_CAPTURE:
  25576. case TOP_LOST_POINTER_CAPTURE:
  25577. {
  25578. var _pointerId = nativeEvent.pointerId;
  25579. queuedPointerCaptures.delete(_pointerId);
  25580. break;
  25581. }
  25582. }
  25583. }
  25584. function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  25585. if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
  25586. var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  25587. if (blockedOn !== null) {
  25588. var _fiber2 = getInstanceFromNode$1(blockedOn);
  25589. if (_fiber2 !== null) {
  25590. // Attempt to increase the priority of this target.
  25591. attemptContinuousHydration(_fiber2);
  25592. }
  25593. }
  25594. return queuedEvent;
  25595. } // If we have already queued this exact event, then it's because
  25596. // the different event systems have different DOM event listeners.
  25597. // We can accumulate the flags and store a single event to be
  25598. // replayed.
  25599. existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
  25600. return existingQueuedEvent;
  25601. }
  25602. function queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  25603. // These set relatedTarget to null because the replayed event will be treated as if we
  25604. // moved from outside the window (no target) onto the target once it hydrates.
  25605. // Instead of mutating we could clone the event.
  25606. switch (topLevelType) {
  25607. case TOP_FOCUS:
  25608. {
  25609. var focusEvent = nativeEvent;
  25610. queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, topLevelType, eventSystemFlags, container, focusEvent);
  25611. return true;
  25612. }
  25613. case TOP_DRAG_ENTER:
  25614. {
  25615. var dragEvent = nativeEvent;
  25616. queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, topLevelType, eventSystemFlags, container, dragEvent);
  25617. return true;
  25618. }
  25619. case TOP_MOUSE_OVER:
  25620. {
  25621. var mouseEvent = nativeEvent;
  25622. queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, topLevelType, eventSystemFlags, container, mouseEvent);
  25623. return true;
  25624. }
  25625. case TOP_POINTER_OVER:
  25626. {
  25627. var pointerEvent = nativeEvent;
  25628. var pointerId = pointerEvent.pointerId;
  25629. queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, topLevelType, eventSystemFlags, container, pointerEvent));
  25630. return true;
  25631. }
  25632. case TOP_GOT_POINTER_CAPTURE:
  25633. {
  25634. var _pointerEvent = nativeEvent;
  25635. var _pointerId2 = _pointerEvent.pointerId;
  25636. queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, topLevelType, eventSystemFlags, container, _pointerEvent));
  25637. return true;
  25638. }
  25639. }
  25640. return false;
  25641. } // Check if this target is unblocked. Returns true if it's unblocked.
  25642. function attemptExplicitHydrationTarget(queuedTarget) {
  25643. // TODO: This function shares a lot of logic with attemptToDispatchEvent.
  25644. // Try to unify them. It's a bit tricky since it would require two return
  25645. // values.
  25646. var targetInst = getClosestInstanceFromNode(queuedTarget.target);
  25647. if (targetInst !== null) {
  25648. var nearestMounted = getNearestMountedFiber(targetInst);
  25649. if (nearestMounted !== null) {
  25650. var tag = nearestMounted.tag;
  25651. if (tag === SuspenseComponent) {
  25652. var instance = getSuspenseInstanceFromFiber(nearestMounted);
  25653. if (instance !== null) {
  25654. // We're blocked on hydrating this boundary.
  25655. // Increase its priority.
  25656. queuedTarget.blockedOn = instance;
  25657. Scheduler.unstable_runWithPriority(queuedTarget.priority, function () {
  25658. attemptHydrationAtCurrentPriority(nearestMounted);
  25659. });
  25660. return;
  25661. }
  25662. } else if (tag === HostRoot) {
  25663. var root = nearestMounted.stateNode;
  25664. if (root.hydrate) {
  25665. queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
  25666. // a root other than sync.
  25667. return;
  25668. }
  25669. }
  25670. }
  25671. }
  25672. queuedTarget.blockedOn = null;
  25673. }
  25674. function attemptReplayContinuousQueuedEvent(queuedEvent) {
  25675. if (queuedEvent.blockedOn !== null) {
  25676. return false;
  25677. }
  25678. var nextBlockedOn = attemptToDispatchEvent(queuedEvent.topLevelType, queuedEvent.eventSystemFlags, queuedEvent.container, queuedEvent.nativeEvent);
  25679. if (nextBlockedOn !== null) {
  25680. // We're still blocked. Try again later.
  25681. var _fiber3 = getInstanceFromNode$1(nextBlockedOn);
  25682. if (_fiber3 !== null) {
  25683. attemptContinuousHydration(_fiber3);
  25684. }
  25685. queuedEvent.blockedOn = nextBlockedOn;
  25686. return false;
  25687. }
  25688. return true;
  25689. }
  25690. function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
  25691. if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
  25692. map.delete(key);
  25693. }
  25694. }
  25695. function replayUnblockedEvents() {
  25696. hasScheduledReplayAttempt = false; // First replay discrete events.
  25697. while (queuedDiscreteEvents.length > 0) {
  25698. var nextDiscreteEvent = queuedDiscreteEvents[0];
  25699. if (nextDiscreteEvent.blockedOn !== null) {
  25700. // We're still blocked.
  25701. // Increase the priority of this boundary to unblock
  25702. // the next discrete event.
  25703. var _fiber4 = getInstanceFromNode$1(nextDiscreteEvent.blockedOn);
  25704. if (_fiber4 !== null) {
  25705. attemptUserBlockingHydration(_fiber4);
  25706. }
  25707. break;
  25708. }
  25709. var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.topLevelType, nextDiscreteEvent.eventSystemFlags, nextDiscreteEvent.container, nextDiscreteEvent.nativeEvent);
  25710. if (nextBlockedOn !== null) {
  25711. // We're still blocked. Try again later.
  25712. nextDiscreteEvent.blockedOn = nextBlockedOn;
  25713. } else {
  25714. // We've successfully replayed the first event. Let's try the next one.
  25715. queuedDiscreteEvents.shift();
  25716. }
  25717. } // Next replay any continuous events.
  25718. if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
  25719. queuedFocus = null;
  25720. }
  25721. if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
  25722. queuedDrag = null;
  25723. }
  25724. if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
  25725. queuedMouse = null;
  25726. }
  25727. queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
  25728. queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
  25729. }
  25730. function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
  25731. if (queuedEvent.blockedOn === unblocked) {
  25732. queuedEvent.blockedOn = null;
  25733. if (!hasScheduledReplayAttempt) {
  25734. hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
  25735. // now unblocked. This first might not actually be unblocked yet.
  25736. // We could check it early to avoid scheduling an unnecessary callback.
  25737. Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);
  25738. }
  25739. }
  25740. }
  25741. function retryIfBlockedOn(unblocked) {
  25742. // Mark anything that was blocked on this as no longer blocked
  25743. // and eligible for a replay.
  25744. if (queuedDiscreteEvents.length > 0) {
  25745. scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
  25746. // worth it because we expect very few discrete events to queue up and once
  25747. // we are actually fully unblocked it will be fast to replay them.
  25748. for (var i = 1; i < queuedDiscreteEvents.length; i++) {
  25749. var queuedEvent = queuedDiscreteEvents[i];
  25750. if (queuedEvent.blockedOn === unblocked) {
  25751. queuedEvent.blockedOn = null;
  25752. }
  25753. }
  25754. }
  25755. if (queuedFocus !== null) {
  25756. scheduleCallbackIfUnblocked(queuedFocus, unblocked);
  25757. }
  25758. if (queuedDrag !== null) {
  25759. scheduleCallbackIfUnblocked(queuedDrag, unblocked);
  25760. }
  25761. if (queuedMouse !== null) {
  25762. scheduleCallbackIfUnblocked(queuedMouse, unblocked);
  25763. }
  25764. var unblock = function (queuedEvent) {
  25765. return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
  25766. };
  25767. queuedPointers.forEach(unblock);
  25768. queuedPointerCaptures.forEach(unblock);
  25769. for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
  25770. var queuedTarget = queuedExplicitHydrationTargets[_i];
  25771. if (queuedTarget.blockedOn === unblocked) {
  25772. queuedTarget.blockedOn = null;
  25773. }
  25774. }
  25775. while (queuedExplicitHydrationTargets.length > 0) {
  25776. var nextExplicitTarget = queuedExplicitHydrationTargets[0];
  25777. if (nextExplicitTarget.blockedOn !== null) {
  25778. // We're still blocked.
  25779. break;
  25780. } else {
  25781. attemptExplicitHydrationTarget(nextExplicitTarget);
  25782. if (nextExplicitTarget.blockedOn === null) {
  25783. // We're unblocked.
  25784. queuedExplicitHydrationTargets.shift();
  25785. }
  25786. }
  25787. }
  25788. }
  25789. function addEventBubbleListener(element, eventType, listener) {
  25790. element.addEventListener(eventType, listener, false);
  25791. }
  25792. function addEventCaptureListener(element, eventType, listener) {
  25793. element.addEventListener(eventType, listener, true);
  25794. }
  25795. // do it in two places, which duplicates logic
  25796. // and increases the bundle size, we do it all
  25797. // here once. If we remove or refactor the
  25798. // SimpleEventPlugin, we should also remove or
  25799. // update the below line.
  25800. var simpleEventPluginEventTypes = {};
  25801. var topLevelEventsToDispatchConfig = new Map();
  25802. var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use
  25803. // the code required to apply the same logic for event prioritization and that of the
  25804. // SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code
  25805. // duplication (for which there would be quite a bit). For the events that are not needed
  25806. // for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an
  25807. // array of top level events.
  25808. // Lastly, we ignore prettier so we can keep the formatting sane.
  25809. // prettier-ignore
  25810. var discreteEventPairsForSimpleEventPlugin = [TOP_BLUR, 'blur', TOP_CANCEL, 'cancel', TOP_CLICK, 'click', TOP_CLOSE, 'close', TOP_CONTEXT_MENU, 'contextMenu', TOP_COPY, 'copy', TOP_CUT, 'cut', TOP_AUX_CLICK, 'auxClick', TOP_DOUBLE_CLICK, 'doubleClick', TOP_DRAG_END, 'dragEnd', TOP_DRAG_START, 'dragStart', TOP_DROP, 'drop', TOP_FOCUS, 'focus', TOP_INPUT, 'input', TOP_INVALID, 'invalid', TOP_KEY_DOWN, 'keyDown', TOP_KEY_PRESS, 'keyPress', TOP_KEY_UP, 'keyUp', TOP_MOUSE_DOWN, 'mouseDown', TOP_MOUSE_UP, 'mouseUp', TOP_PASTE, 'paste', TOP_PAUSE, 'pause', TOP_PLAY, 'play', TOP_POINTER_CANCEL, 'pointerCancel', TOP_POINTER_DOWN, 'pointerDown', TOP_POINTER_UP, 'pointerUp', TOP_RATE_CHANGE, 'rateChange', TOP_RESET, 'reset', TOP_SEEKED, 'seeked', TOP_SUBMIT, 'submit', TOP_TOUCH_CANCEL, 'touchCancel', TOP_TOUCH_END, 'touchEnd', TOP_TOUCH_START, 'touchStart', TOP_VOLUME_CHANGE, 'volumeChange'];
  25811. var otherDiscreteEvents = [TOP_CHANGE, TOP_SELECTION_CHANGE, TOP_TEXT_INPUT, TOP_COMPOSITION_START, TOP_COMPOSITION_END, TOP_COMPOSITION_UPDATE]; // prettier-ignore
  25812. var userBlockingPairsForSimpleEventPlugin = [TOP_DRAG, 'drag', TOP_DRAG_ENTER, 'dragEnter', TOP_DRAG_EXIT, 'dragExit', TOP_DRAG_LEAVE, 'dragLeave', TOP_DRAG_OVER, 'dragOver', TOP_MOUSE_MOVE, 'mouseMove', TOP_MOUSE_OUT, 'mouseOut', TOP_MOUSE_OVER, 'mouseOver', TOP_POINTER_MOVE, 'pointerMove', TOP_POINTER_OUT, 'pointerOut', TOP_POINTER_OVER, 'pointerOver', TOP_SCROLL, 'scroll', TOP_TOGGLE, 'toggle', TOP_TOUCH_MOVE, 'touchMove', TOP_WHEEL, 'wheel']; // prettier-ignore
  25813. var continuousPairsForSimpleEventPlugin = [TOP_ABORT, 'abort', TOP_ANIMATION_END, 'animationEnd', TOP_ANIMATION_ITERATION, 'animationIteration', TOP_ANIMATION_START, 'animationStart', TOP_CAN_PLAY, 'canPlay', TOP_CAN_PLAY_THROUGH, 'canPlayThrough', TOP_DURATION_CHANGE, 'durationChange', TOP_EMPTIED, 'emptied', TOP_ENCRYPTED, 'encrypted', TOP_ENDED, 'ended', TOP_ERROR, 'error', TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture', TOP_LOAD, 'load', TOP_LOADED_DATA, 'loadedData', TOP_LOADED_METADATA, 'loadedMetadata', TOP_LOAD_START, 'loadStart', TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture', TOP_PLAYING, 'playing', TOP_PROGRESS, 'progress', TOP_SEEKING, 'seeking', TOP_STALLED, 'stalled', TOP_SUSPEND, 'suspend', TOP_TIME_UPDATE, 'timeUpdate', TOP_TRANSITION_END, 'transitionEnd', TOP_WAITING, 'waiting'];
  25814. /**
  25815. * Turns
  25816. * ['abort', ...]
  25817. * into
  25818. * eventTypes = {
  25819. * 'abort': {
  25820. * phasedRegistrationNames: {
  25821. * bubbled: 'onAbort',
  25822. * captured: 'onAbortCapture',
  25823. * },
  25824. * dependencies: [TOP_ABORT],
  25825. * },
  25826. * ...
  25827. * };
  25828. * topLevelEventsToDispatchConfig = new Map([
  25829. * [TOP_ABORT, { sameConfig }],
  25830. * ]);
  25831. */
  25832. function processSimpleEventPluginPairsByPriority(eventTypes, priority) {
  25833. // As the event types are in pairs of two, we need to iterate
  25834. // through in twos. The events are in pairs of two to save code
  25835. // and improve init perf of processing this array, as it will
  25836. // result in far fewer object allocations and property accesses
  25837. // if we only use three arrays to process all the categories of
  25838. // instead of tuples.
  25839. for (var i = 0; i < eventTypes.length; i += 2) {
  25840. var topEvent = eventTypes[i];
  25841. var event = eventTypes[i + 1];
  25842. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  25843. var onEvent = 'on' + capitalizedEvent;
  25844. var config = {
  25845. phasedRegistrationNames: {
  25846. bubbled: onEvent,
  25847. captured: onEvent + 'Capture'
  25848. },
  25849. dependencies: [topEvent],
  25850. eventPriority: priority
  25851. };
  25852. eventPriorities.set(topEvent, priority);
  25853. topLevelEventsToDispatchConfig.set(topEvent, config);
  25854. simpleEventPluginEventTypes[event] = config;
  25855. }
  25856. }
  25857. function processTopEventPairsByPriority(eventTypes, priority) {
  25858. for (var i = 0; i < eventTypes.length; i++) {
  25859. eventPriorities.set(eventTypes[i], priority);
  25860. }
  25861. } // SimpleEventPlugin
  25862. processSimpleEventPluginPairsByPriority(discreteEventPairsForSimpleEventPlugin, DiscreteEvent);
  25863. processSimpleEventPluginPairsByPriority(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent);
  25864. processSimpleEventPluginPairsByPriority(continuousPairsForSimpleEventPlugin, ContinuousEvent); // Not used by SimpleEventPlugin
  25865. processTopEventPairsByPriority(otherDiscreteEvents, DiscreteEvent);
  25866. function getEventPriorityForPluginSystem(topLevelType) {
  25867. var priority = eventPriorities.get(topLevelType); // Default to a ContinuousEvent. Note: we might
  25868. // want to warn if we can't detect the priority
  25869. // for the event.
  25870. return priority === undefined ? ContinuousEvent : priority;
  25871. }
  25872. // Intentionally not named imports because Rollup would use dynamic dispatch for
  25873. var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
  25874. runWithPriority = Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these?
  25875. var _enabled = true;
  25876. function setEnabled(enabled) {
  25877. _enabled = !!enabled;
  25878. }
  25879. function isEnabled() {
  25880. return _enabled;
  25881. }
  25882. function trapBubbledEvent(topLevelType, element) {
  25883. trapEventForPluginEventSystem(element, topLevelType, false);
  25884. }
  25885. function trapCapturedEvent(topLevelType, element) {
  25886. trapEventForPluginEventSystem(element, topLevelType, true);
  25887. }
  25888. function trapEventForPluginEventSystem(container, topLevelType, capture) {
  25889. var listener;
  25890. switch (getEventPriorityForPluginSystem(topLevelType)) {
  25891. case DiscreteEvent:
  25892. listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
  25893. break;
  25894. case UserBlockingEvent:
  25895. listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
  25896. break;
  25897. case ContinuousEvent:
  25898. default:
  25899. listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
  25900. break;
  25901. }
  25902. var rawEventName = getRawEventName(topLevelType);
  25903. if (capture) {
  25904. addEventCaptureListener(container, rawEventName, listener);
  25905. } else {
  25906. addEventBubbleListener(container, rawEventName, listener);
  25907. }
  25908. }
  25909. function dispatchDiscreteEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  25910. flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  25911. discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, container, nativeEvent);
  25912. }
  25913. function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, container, nativeEvent) {
  25914. runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, container, nativeEvent));
  25915. }
  25916. function dispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  25917. if (!_enabled) {
  25918. return;
  25919. }
  25920. if (hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(topLevelType)) {
  25921. // If we already have a queue of discrete events, and this is another discrete
  25922. // event, then we can't dispatch it regardless of its target, since they
  25923. // need to dispatch in order.
  25924. queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know.
  25925. topLevelType, eventSystemFlags, container, nativeEvent);
  25926. return;
  25927. }
  25928. var blockedOn = attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent);
  25929. if (blockedOn === null) {
  25930. // We successfully dispatched this event.
  25931. clearIfContinuousEvent(topLevelType, nativeEvent);
  25932. return;
  25933. }
  25934. if (isReplayableDiscreteEvent(topLevelType)) {
  25935. // This this to be replayed later once the target is available.
  25936. queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  25937. return;
  25938. }
  25939. if (queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent)) {
  25940. return;
  25941. } // We need to clear only if we didn't queue because
  25942. // queueing is accummulative.
  25943. clearIfContinuousEvent(topLevelType, nativeEvent); // This is not replayable so we'll invoke it but without a target,
  25944. // in case the event system needs to trace it.
  25945. {
  25946. dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, null);
  25947. }
  25948. } // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.
  25949. function attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  25950. // TODO: Warn if _enabled is false.
  25951. var nativeEventTarget = getEventTarget(nativeEvent);
  25952. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  25953. if (targetInst !== null) {
  25954. var nearestMounted = getNearestMountedFiber(targetInst);
  25955. if (nearestMounted === null) {
  25956. // This tree has been unmounted already. Dispatch without a target.
  25957. targetInst = null;
  25958. } else {
  25959. var tag = nearestMounted.tag;
  25960. if (tag === SuspenseComponent) {
  25961. var instance = getSuspenseInstanceFromFiber(nearestMounted);
  25962. if (instance !== null) {
  25963. // Queue the event to be replayed later. Abort dispatching since we
  25964. // don't want this event dispatched twice through the event system.
  25965. // TODO: If this is the first discrete event in the queue. Schedule an increased
  25966. // priority for this boundary.
  25967. return instance;
  25968. } // This shouldn't happen, something went wrong but to avoid blocking
  25969. // the whole system, dispatch the event without a target.
  25970. // TODO: Warn.
  25971. targetInst = null;
  25972. } else if (tag === HostRoot) {
  25973. var root = nearestMounted.stateNode;
  25974. if (root.hydrate) {
  25975. // If this happens during a replay something went wrong and it might block
  25976. // the whole system.
  25977. return getContainerFromFiber(nearestMounted);
  25978. }
  25979. targetInst = null;
  25980. } else if (nearestMounted !== targetInst) {
  25981. // If we get an event (ex: img onload) before committing that
  25982. // component's mount, ignore it for now (that is, treat it as if it was an
  25983. // event on a non-React tree). We might also consider queueing events and
  25984. // dispatching them after the mount.
  25985. targetInst = null;
  25986. }
  25987. }
  25988. }
  25989. {
  25990. dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  25991. } // We're not blocked on anything.
  25992. return null;
  25993. }
  25994. // List derived from Gecko source code:
  25995. // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
  25996. var shorthandToLonghand = {
  25997. animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  25998. background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  25999. backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  26000. border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  26001. borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  26002. borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  26003. borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  26004. borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  26005. borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  26006. borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  26007. borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  26008. borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  26009. borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  26010. borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  26011. borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  26012. borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  26013. borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  26014. columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  26015. columns: ['columnCount', 'columnWidth'],
  26016. flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  26017. flexFlow: ['flexDirection', 'flexWrap'],
  26018. font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  26019. fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  26020. gap: ['columnGap', 'rowGap'],
  26021. grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  26022. gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  26023. gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  26024. gridColumnGap: ['columnGap'],
  26025. gridGap: ['columnGap', 'rowGap'],
  26026. gridRow: ['gridRowEnd', 'gridRowStart'],
  26027. gridRowGap: ['rowGap'],
  26028. gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  26029. listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  26030. margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  26031. marker: ['markerEnd', 'markerMid', 'markerStart'],
  26032. mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  26033. maskPosition: ['maskPositionX', 'maskPositionY'],
  26034. outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  26035. overflow: ['overflowX', 'overflowY'],
  26036. padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  26037. placeContent: ['alignContent', 'justifyContent'],
  26038. placeItems: ['alignItems', 'justifyItems'],
  26039. placeSelf: ['alignSelf', 'justifySelf'],
  26040. textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  26041. textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  26042. transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  26043. wordWrap: ['overflowWrap']
  26044. };
  26045. /**
  26046. * CSS properties which accept numbers but are not in units of "px".
  26047. */
  26048. var isUnitlessNumber = {
  26049. animationIterationCount: true,
  26050. borderImageOutset: true,
  26051. borderImageSlice: true,
  26052. borderImageWidth: true,
  26053. boxFlex: true,
  26054. boxFlexGroup: true,
  26055. boxOrdinalGroup: true,
  26056. columnCount: true,
  26057. columns: true,
  26058. flex: true,
  26059. flexGrow: true,
  26060. flexPositive: true,
  26061. flexShrink: true,
  26062. flexNegative: true,
  26063. flexOrder: true,
  26064. gridArea: true,
  26065. gridRow: true,
  26066. gridRowEnd: true,
  26067. gridRowSpan: true,
  26068. gridRowStart: true,
  26069. gridColumn: true,
  26070. gridColumnEnd: true,
  26071. gridColumnSpan: true,
  26072. gridColumnStart: true,
  26073. fontWeight: true,
  26074. lineClamp: true,
  26075. lineHeight: true,
  26076. opacity: true,
  26077. order: true,
  26078. orphans: true,
  26079. tabSize: true,
  26080. widows: true,
  26081. zIndex: true,
  26082. zoom: true,
  26083. // SVG-related properties
  26084. fillOpacity: true,
  26085. floodOpacity: true,
  26086. stopOpacity: true,
  26087. strokeDasharray: true,
  26088. strokeDashoffset: true,
  26089. strokeMiterlimit: true,
  26090. strokeOpacity: true,
  26091. strokeWidth: true
  26092. };
  26093. /**
  26094. * @param {string} prefix vendor-specific prefix, eg: Webkit
  26095. * @param {string} key style name, eg: transitionDuration
  26096. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  26097. * WebkitTransitionDuration
  26098. */
  26099. function prefixKey(prefix, key) {
  26100. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  26101. }
  26102. /**
  26103. * Support style names that may come passed in prefixed by adding permutations
  26104. * of vendor prefixes.
  26105. */
  26106. var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  26107. // infinite loop, because it iterates over the newly added props too.
  26108. Object.keys(isUnitlessNumber).forEach(function (prop) {
  26109. prefixes.forEach(function (prefix) {
  26110. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  26111. });
  26112. });
  26113. /**
  26114. * Convert a value into the proper css writable value. The style name `name`
  26115. * should be logical (no hyphens), as specified
  26116. * in `CSSProperty.isUnitlessNumber`.
  26117. *
  26118. * @param {string} name CSS property name such as `topMargin`.
  26119. * @param {*} value CSS property value such as `10px`.
  26120. * @return {string} Normalized style value with dimensions applied.
  26121. */
  26122. function dangerousStyleValue(name, value, isCustomProperty) {
  26123. // Note that we've removed escapeTextForBrowser() calls here since the
  26124. // whole string will be escaped when the attribute is injected into
  26125. // the markup. If you provide unsafe user data here they can inject
  26126. // arbitrary CSS which may be problematic (I couldn't repro this):
  26127. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  26128. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  26129. // This is not an XSS hole but instead a potential CSS injection issue
  26130. // which has lead to a greater discussion about how we're going to
  26131. // trust URLs moving forward. See #2115901
  26132. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  26133. if (isEmpty) {
  26134. return '';
  26135. }
  26136. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  26137. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  26138. }
  26139. return ('' + value).trim();
  26140. }
  26141. var uppercasePattern = /([A-Z])/g;
  26142. var msPattern = /^ms-/;
  26143. /**
  26144. * Hyphenates a camelcased CSS property name, for example:
  26145. *
  26146. * > hyphenateStyleName('backgroundColor')
  26147. * < "background-color"
  26148. * > hyphenateStyleName('MozTransition')
  26149. * < "-moz-transition"
  26150. * > hyphenateStyleName('msTransition')
  26151. * < "-ms-transition"
  26152. *
  26153. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  26154. * is converted to `-ms-`.
  26155. */
  26156. function hyphenateStyleName(name) {
  26157. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  26158. }
  26159. var warnValidStyle = function () {};
  26160. {
  26161. // 'msTransform' is correct, but the other prefixes should be capitalized
  26162. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  26163. var msPattern$1 = /^-ms-/;
  26164. var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon
  26165. var badStyleValueWithSemicolonPattern = /;\s*$/;
  26166. var warnedStyleNames = {};
  26167. var warnedStyleValues = {};
  26168. var warnedForNaNValue = false;
  26169. var warnedForInfinityValue = false;
  26170. var camelize = function (string) {
  26171. return string.replace(hyphenPattern, function (_, character) {
  26172. return character.toUpperCase();
  26173. });
  26174. };
  26175. var warnHyphenatedStyleName = function (name) {
  26176. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  26177. return;
  26178. }
  26179. warnedStyleNames[name] = true;
  26180. error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests
  26181. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  26182. // is converted to lowercase `ms`.
  26183. camelize(name.replace(msPattern$1, 'ms-')));
  26184. };
  26185. var warnBadVendoredStyleName = function (name) {
  26186. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  26187. return;
  26188. }
  26189. warnedStyleNames[name] = true;
  26190. error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  26191. };
  26192. var warnStyleValueWithSemicolon = function (name, value) {
  26193. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  26194. return;
  26195. }
  26196. warnedStyleValues[value] = true;
  26197. error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  26198. };
  26199. var warnStyleValueIsNaN = function (name, value) {
  26200. if (warnedForNaNValue) {
  26201. return;
  26202. }
  26203. warnedForNaNValue = true;
  26204. error('`NaN` is an invalid value for the `%s` css style property.', name);
  26205. };
  26206. var warnStyleValueIsInfinity = function (name, value) {
  26207. if (warnedForInfinityValue) {
  26208. return;
  26209. }
  26210. warnedForInfinityValue = true;
  26211. error('`Infinity` is an invalid value for the `%s` css style property.', name);
  26212. };
  26213. warnValidStyle = function (name, value) {
  26214. if (name.indexOf('-') > -1) {
  26215. warnHyphenatedStyleName(name);
  26216. } else if (badVendoredStyleNamePattern.test(name)) {
  26217. warnBadVendoredStyleName(name);
  26218. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  26219. warnStyleValueWithSemicolon(name, value);
  26220. }
  26221. if (typeof value === 'number') {
  26222. if (isNaN(value)) {
  26223. warnStyleValueIsNaN(name, value);
  26224. } else if (!isFinite(value)) {
  26225. warnStyleValueIsInfinity(name, value);
  26226. }
  26227. }
  26228. };
  26229. }
  26230. var warnValidStyle$1 = warnValidStyle;
  26231. /**
  26232. * Operations for dealing with CSS properties.
  26233. */
  26234. /**
  26235. * This creates a string that is expected to be equivalent to the style
  26236. * attribute generated by server-side rendering. It by-passes warnings and
  26237. * security checks so it's not safe to use this value for anything other than
  26238. * comparison. It is only used in DEV for SSR validation.
  26239. */
  26240. function createDangerousStringForStyles(styles) {
  26241. {
  26242. var serialized = '';
  26243. var delimiter = '';
  26244. for (var styleName in styles) {
  26245. if (!styles.hasOwnProperty(styleName)) {
  26246. continue;
  26247. }
  26248. var styleValue = styles[styleName];
  26249. if (styleValue != null) {
  26250. var isCustomProperty = styleName.indexOf('--') === 0;
  26251. serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
  26252. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  26253. delimiter = ';';
  26254. }
  26255. }
  26256. return serialized || null;
  26257. }
  26258. }
  26259. /**
  26260. * Sets the value for multiple styles on a node. If a value is specified as
  26261. * '' (empty string), the corresponding style property will be unset.
  26262. *
  26263. * @param {DOMElement} node
  26264. * @param {object} styles
  26265. */
  26266. function setValueForStyles(node, styles) {
  26267. var style = node.style;
  26268. for (var styleName in styles) {
  26269. if (!styles.hasOwnProperty(styleName)) {
  26270. continue;
  26271. }
  26272. var isCustomProperty = styleName.indexOf('--') === 0;
  26273. {
  26274. if (!isCustomProperty) {
  26275. warnValidStyle$1(styleName, styles[styleName]);
  26276. }
  26277. }
  26278. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  26279. if (styleName === 'float') {
  26280. styleName = 'cssFloat';
  26281. }
  26282. if (isCustomProperty) {
  26283. style.setProperty(styleName, styleValue);
  26284. } else {
  26285. style[styleName] = styleValue;
  26286. }
  26287. }
  26288. }
  26289. function isValueEmpty(value) {
  26290. return value == null || typeof value === 'boolean' || value === '';
  26291. }
  26292. /**
  26293. * Given {color: 'red', overflow: 'hidden'} returns {
  26294. * color: 'color',
  26295. * overflowX: 'overflow',
  26296. * overflowY: 'overflow',
  26297. * }. This can be read as "the overflowY property was set by the overflow
  26298. * shorthand". That is, the values are the property that each was derived from.
  26299. */
  26300. function expandShorthandMap(styles) {
  26301. var expanded = {};
  26302. for (var key in styles) {
  26303. var longhands = shorthandToLonghand[key] || [key];
  26304. for (var i = 0; i < longhands.length; i++) {
  26305. expanded[longhands[i]] = key;
  26306. }
  26307. }
  26308. return expanded;
  26309. }
  26310. /**
  26311. * When mixing shorthand and longhand property names, we warn during updates if
  26312. * we expect an incorrect result to occur. In particular, we warn for:
  26313. *
  26314. * Updating a shorthand property (longhand gets overwritten):
  26315. * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
  26316. * becomes .style.font = 'baz'
  26317. * Removing a shorthand property (longhand gets lost too):
  26318. * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
  26319. * becomes .style.font = ''
  26320. * Removing a longhand property (should revert to shorthand; doesn't):
  26321. * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
  26322. * becomes .style.fontVariant = ''
  26323. */
  26324. function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  26325. {
  26326. if (!nextStyles) {
  26327. return;
  26328. }
  26329. var expandedUpdates = expandShorthandMap(styleUpdates);
  26330. var expandedStyles = expandShorthandMap(nextStyles);
  26331. var warnedAbout = {};
  26332. for (var key in expandedUpdates) {
  26333. var originalKey = expandedUpdates[key];
  26334. var correctOriginalKey = expandedStyles[key];
  26335. if (correctOriginalKey && originalKey !== correctOriginalKey) {
  26336. var warningKey = originalKey + ',' + correctOriginalKey;
  26337. if (warnedAbout[warningKey]) {
  26338. continue;
  26339. }
  26340. warnedAbout[warningKey] = true;
  26341. error('%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);
  26342. }
  26343. }
  26344. }
  26345. }
  26346. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  26347. // those special-case tags.
  26348. var omittedCloseTags = {
  26349. area: true,
  26350. base: true,
  26351. br: true,
  26352. col: true,
  26353. embed: true,
  26354. hr: true,
  26355. img: true,
  26356. input: true,
  26357. keygen: true,
  26358. link: true,
  26359. meta: true,
  26360. param: true,
  26361. source: true,
  26362. track: true,
  26363. wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.
  26364. };
  26365. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  26366. var voidElementTags = _assign({
  26367. menuitem: true
  26368. }, omittedCloseTags);
  26369. var HTML = '__html';
  26370. var ReactDebugCurrentFrame$3 = null;
  26371. {
  26372. ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
  26373. }
  26374. function assertValidProps(tag, props) {
  26375. if (!props) {
  26376. return;
  26377. } // Note the use of `==` which checks for null or undefined.
  26378. if (voidElementTags[tag]) {
  26379. if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
  26380. {
  26381. throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) );
  26382. }
  26383. }
  26384. }
  26385. if (props.dangerouslySetInnerHTML != null) {
  26386. if (!(props.children == null)) {
  26387. {
  26388. throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." );
  26389. }
  26390. }
  26391. if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) {
  26392. {
  26393. throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information." );
  26394. }
  26395. }
  26396. }
  26397. {
  26398. if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
  26399. error('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.');
  26400. }
  26401. }
  26402. if (!(props.style == null || typeof props.style === 'object')) {
  26403. {
  26404. throw 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() ) );
  26405. }
  26406. }
  26407. }
  26408. function isCustomComponent(tagName, props) {
  26409. if (tagName.indexOf('-') === -1) {
  26410. return typeof props.is === 'string';
  26411. }
  26412. switch (tagName) {
  26413. // These are reserved SVG and MathML elements.
  26414. // We don't mind this whitelist too much because we expect it to never grow.
  26415. // The alternative is to track the namespace in a few places which is convoluted.
  26416. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  26417. case 'annotation-xml':
  26418. case 'color-profile':
  26419. case 'font-face':
  26420. case 'font-face-src':
  26421. case 'font-face-uri':
  26422. case 'font-face-format':
  26423. case 'font-face-name':
  26424. case 'missing-glyph':
  26425. return false;
  26426. default:
  26427. return true;
  26428. }
  26429. }
  26430. // When adding attributes to the HTML or SVG whitelist, be sure to
  26431. // also add them to this module to ensure casing and incorrect name
  26432. // warnings.
  26433. var possibleStandardNames = {
  26434. // HTML
  26435. accept: 'accept',
  26436. acceptcharset: 'acceptCharset',
  26437. 'accept-charset': 'acceptCharset',
  26438. accesskey: 'accessKey',
  26439. action: 'action',
  26440. allowfullscreen: 'allowFullScreen',
  26441. alt: 'alt',
  26442. as: 'as',
  26443. async: 'async',
  26444. autocapitalize: 'autoCapitalize',
  26445. autocomplete: 'autoComplete',
  26446. autocorrect: 'autoCorrect',
  26447. autofocus: 'autoFocus',
  26448. autoplay: 'autoPlay',
  26449. autosave: 'autoSave',
  26450. capture: 'capture',
  26451. cellpadding: 'cellPadding',
  26452. cellspacing: 'cellSpacing',
  26453. challenge: 'challenge',
  26454. charset: 'charSet',
  26455. checked: 'checked',
  26456. children: 'children',
  26457. cite: 'cite',
  26458. class: 'className',
  26459. classid: 'classID',
  26460. classname: 'className',
  26461. cols: 'cols',
  26462. colspan: 'colSpan',
  26463. content: 'content',
  26464. contenteditable: 'contentEditable',
  26465. contextmenu: 'contextMenu',
  26466. controls: 'controls',
  26467. controlslist: 'controlsList',
  26468. coords: 'coords',
  26469. crossorigin: 'crossOrigin',
  26470. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  26471. data: 'data',
  26472. datetime: 'dateTime',
  26473. default: 'default',
  26474. defaultchecked: 'defaultChecked',
  26475. defaultvalue: 'defaultValue',
  26476. defer: 'defer',
  26477. dir: 'dir',
  26478. disabled: 'disabled',
  26479. disablepictureinpicture: 'disablePictureInPicture',
  26480. download: 'download',
  26481. draggable: 'draggable',
  26482. enctype: 'encType',
  26483. for: 'htmlFor',
  26484. form: 'form',
  26485. formmethod: 'formMethod',
  26486. formaction: 'formAction',
  26487. formenctype: 'formEncType',
  26488. formnovalidate: 'formNoValidate',
  26489. formtarget: 'formTarget',
  26490. frameborder: 'frameBorder',
  26491. headers: 'headers',
  26492. height: 'height',
  26493. hidden: 'hidden',
  26494. high: 'high',
  26495. href: 'href',
  26496. hreflang: 'hrefLang',
  26497. htmlfor: 'htmlFor',
  26498. httpequiv: 'httpEquiv',
  26499. 'http-equiv': 'httpEquiv',
  26500. icon: 'icon',
  26501. id: 'id',
  26502. innerhtml: 'innerHTML',
  26503. inputmode: 'inputMode',
  26504. integrity: 'integrity',
  26505. is: 'is',
  26506. itemid: 'itemID',
  26507. itemprop: 'itemProp',
  26508. itemref: 'itemRef',
  26509. itemscope: 'itemScope',
  26510. itemtype: 'itemType',
  26511. keyparams: 'keyParams',
  26512. keytype: 'keyType',
  26513. kind: 'kind',
  26514. label: 'label',
  26515. lang: 'lang',
  26516. list: 'list',
  26517. loop: 'loop',
  26518. low: 'low',
  26519. manifest: 'manifest',
  26520. marginwidth: 'marginWidth',
  26521. marginheight: 'marginHeight',
  26522. max: 'max',
  26523. maxlength: 'maxLength',
  26524. media: 'media',
  26525. mediagroup: 'mediaGroup',
  26526. method: 'method',
  26527. min: 'min',
  26528. minlength: 'minLength',
  26529. multiple: 'multiple',
  26530. muted: 'muted',
  26531. name: 'name',
  26532. nomodule: 'noModule',
  26533. nonce: 'nonce',
  26534. novalidate: 'noValidate',
  26535. open: 'open',
  26536. optimum: 'optimum',
  26537. pattern: 'pattern',
  26538. placeholder: 'placeholder',
  26539. playsinline: 'playsInline',
  26540. poster: 'poster',
  26541. preload: 'preload',
  26542. profile: 'profile',
  26543. radiogroup: 'radioGroup',
  26544. readonly: 'readOnly',
  26545. referrerpolicy: 'referrerPolicy',
  26546. rel: 'rel',
  26547. required: 'required',
  26548. reversed: 'reversed',
  26549. role: 'role',
  26550. rows: 'rows',
  26551. rowspan: 'rowSpan',
  26552. sandbox: 'sandbox',
  26553. scope: 'scope',
  26554. scoped: 'scoped',
  26555. scrolling: 'scrolling',
  26556. seamless: 'seamless',
  26557. selected: 'selected',
  26558. shape: 'shape',
  26559. size: 'size',
  26560. sizes: 'sizes',
  26561. span: 'span',
  26562. spellcheck: 'spellCheck',
  26563. src: 'src',
  26564. srcdoc: 'srcDoc',
  26565. srclang: 'srcLang',
  26566. srcset: 'srcSet',
  26567. start: 'start',
  26568. step: 'step',
  26569. style: 'style',
  26570. summary: 'summary',
  26571. tabindex: 'tabIndex',
  26572. target: 'target',
  26573. title: 'title',
  26574. type: 'type',
  26575. usemap: 'useMap',
  26576. value: 'value',
  26577. width: 'width',
  26578. wmode: 'wmode',
  26579. wrap: 'wrap',
  26580. // SVG
  26581. about: 'about',
  26582. accentheight: 'accentHeight',
  26583. 'accent-height': 'accentHeight',
  26584. accumulate: 'accumulate',
  26585. additive: 'additive',
  26586. alignmentbaseline: 'alignmentBaseline',
  26587. 'alignment-baseline': 'alignmentBaseline',
  26588. allowreorder: 'allowReorder',
  26589. alphabetic: 'alphabetic',
  26590. amplitude: 'amplitude',
  26591. arabicform: 'arabicForm',
  26592. 'arabic-form': 'arabicForm',
  26593. ascent: 'ascent',
  26594. attributename: 'attributeName',
  26595. attributetype: 'attributeType',
  26596. autoreverse: 'autoReverse',
  26597. azimuth: 'azimuth',
  26598. basefrequency: 'baseFrequency',
  26599. baselineshift: 'baselineShift',
  26600. 'baseline-shift': 'baselineShift',
  26601. baseprofile: 'baseProfile',
  26602. bbox: 'bbox',
  26603. begin: 'begin',
  26604. bias: 'bias',
  26605. by: 'by',
  26606. calcmode: 'calcMode',
  26607. capheight: 'capHeight',
  26608. 'cap-height': 'capHeight',
  26609. clip: 'clip',
  26610. clippath: 'clipPath',
  26611. 'clip-path': 'clipPath',
  26612. clippathunits: 'clipPathUnits',
  26613. cliprule: 'clipRule',
  26614. 'clip-rule': 'clipRule',
  26615. color: 'color',
  26616. colorinterpolation: 'colorInterpolation',
  26617. 'color-interpolation': 'colorInterpolation',
  26618. colorinterpolationfilters: 'colorInterpolationFilters',
  26619. 'color-interpolation-filters': 'colorInterpolationFilters',
  26620. colorprofile: 'colorProfile',
  26621. 'color-profile': 'colorProfile',
  26622. colorrendering: 'colorRendering',
  26623. 'color-rendering': 'colorRendering',
  26624. contentscripttype: 'contentScriptType',
  26625. contentstyletype: 'contentStyleType',
  26626. cursor: 'cursor',
  26627. cx: 'cx',
  26628. cy: 'cy',
  26629. d: 'd',
  26630. datatype: 'datatype',
  26631. decelerate: 'decelerate',
  26632. descent: 'descent',
  26633. diffuseconstant: 'diffuseConstant',
  26634. direction: 'direction',
  26635. display: 'display',
  26636. divisor: 'divisor',
  26637. dominantbaseline: 'dominantBaseline',
  26638. 'dominant-baseline': 'dominantBaseline',
  26639. dur: 'dur',
  26640. dx: 'dx',
  26641. dy: 'dy',
  26642. edgemode: 'edgeMode',
  26643. elevation: 'elevation',
  26644. enablebackground: 'enableBackground',
  26645. 'enable-background': 'enableBackground',
  26646. end: 'end',
  26647. exponent: 'exponent',
  26648. externalresourcesrequired: 'externalResourcesRequired',
  26649. fill: 'fill',
  26650. fillopacity: 'fillOpacity',
  26651. 'fill-opacity': 'fillOpacity',
  26652. fillrule: 'fillRule',
  26653. 'fill-rule': 'fillRule',
  26654. filter: 'filter',
  26655. filterres: 'filterRes',
  26656. filterunits: 'filterUnits',
  26657. floodopacity: 'floodOpacity',
  26658. 'flood-opacity': 'floodOpacity',
  26659. floodcolor: 'floodColor',
  26660. 'flood-color': 'floodColor',
  26661. focusable: 'focusable',
  26662. fontfamily: 'fontFamily',
  26663. 'font-family': 'fontFamily',
  26664. fontsize: 'fontSize',
  26665. 'font-size': 'fontSize',
  26666. fontsizeadjust: 'fontSizeAdjust',
  26667. 'font-size-adjust': 'fontSizeAdjust',
  26668. fontstretch: 'fontStretch',
  26669. 'font-stretch': 'fontStretch',
  26670. fontstyle: 'fontStyle',
  26671. 'font-style': 'fontStyle',
  26672. fontvariant: 'fontVariant',
  26673. 'font-variant': 'fontVariant',
  26674. fontweight: 'fontWeight',
  26675. 'font-weight': 'fontWeight',
  26676. format: 'format',
  26677. from: 'from',
  26678. fx: 'fx',
  26679. fy: 'fy',
  26680. g1: 'g1',
  26681. g2: 'g2',
  26682. glyphname: 'glyphName',
  26683. 'glyph-name': 'glyphName',
  26684. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  26685. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  26686. glyphorientationvertical: 'glyphOrientationVertical',
  26687. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  26688. glyphref: 'glyphRef',
  26689. gradienttransform: 'gradientTransform',
  26690. gradientunits: 'gradientUnits',
  26691. hanging: 'hanging',
  26692. horizadvx: 'horizAdvX',
  26693. 'horiz-adv-x': 'horizAdvX',
  26694. horizoriginx: 'horizOriginX',
  26695. 'horiz-origin-x': 'horizOriginX',
  26696. ideographic: 'ideographic',
  26697. imagerendering: 'imageRendering',
  26698. 'image-rendering': 'imageRendering',
  26699. in2: 'in2',
  26700. in: 'in',
  26701. inlist: 'inlist',
  26702. intercept: 'intercept',
  26703. k1: 'k1',
  26704. k2: 'k2',
  26705. k3: 'k3',
  26706. k4: 'k4',
  26707. k: 'k',
  26708. kernelmatrix: 'kernelMatrix',
  26709. kernelunitlength: 'kernelUnitLength',
  26710. kerning: 'kerning',
  26711. keypoints: 'keyPoints',
  26712. keysplines: 'keySplines',
  26713. keytimes: 'keyTimes',
  26714. lengthadjust: 'lengthAdjust',
  26715. letterspacing: 'letterSpacing',
  26716. 'letter-spacing': 'letterSpacing',
  26717. lightingcolor: 'lightingColor',
  26718. 'lighting-color': 'lightingColor',
  26719. limitingconeangle: 'limitingConeAngle',
  26720. local: 'local',
  26721. markerend: 'markerEnd',
  26722. 'marker-end': 'markerEnd',
  26723. markerheight: 'markerHeight',
  26724. markermid: 'markerMid',
  26725. 'marker-mid': 'markerMid',
  26726. markerstart: 'markerStart',
  26727. 'marker-start': 'markerStart',
  26728. markerunits: 'markerUnits',
  26729. markerwidth: 'markerWidth',
  26730. mask: 'mask',
  26731. maskcontentunits: 'maskContentUnits',
  26732. maskunits: 'maskUnits',
  26733. mathematical: 'mathematical',
  26734. mode: 'mode',
  26735. numoctaves: 'numOctaves',
  26736. offset: 'offset',
  26737. opacity: 'opacity',
  26738. operator: 'operator',
  26739. order: 'order',
  26740. orient: 'orient',
  26741. orientation: 'orientation',
  26742. origin: 'origin',
  26743. overflow: 'overflow',
  26744. overlineposition: 'overlinePosition',
  26745. 'overline-position': 'overlinePosition',
  26746. overlinethickness: 'overlineThickness',
  26747. 'overline-thickness': 'overlineThickness',
  26748. paintorder: 'paintOrder',
  26749. 'paint-order': 'paintOrder',
  26750. panose1: 'panose1',
  26751. 'panose-1': 'panose1',
  26752. pathlength: 'pathLength',
  26753. patterncontentunits: 'patternContentUnits',
  26754. patterntransform: 'patternTransform',
  26755. patternunits: 'patternUnits',
  26756. pointerevents: 'pointerEvents',
  26757. 'pointer-events': 'pointerEvents',
  26758. points: 'points',
  26759. pointsatx: 'pointsAtX',
  26760. pointsaty: 'pointsAtY',
  26761. pointsatz: 'pointsAtZ',
  26762. prefix: 'prefix',
  26763. preservealpha: 'preserveAlpha',
  26764. preserveaspectratio: 'preserveAspectRatio',
  26765. primitiveunits: 'primitiveUnits',
  26766. property: 'property',
  26767. r: 'r',
  26768. radius: 'radius',
  26769. refx: 'refX',
  26770. refy: 'refY',
  26771. renderingintent: 'renderingIntent',
  26772. 'rendering-intent': 'renderingIntent',
  26773. repeatcount: 'repeatCount',
  26774. repeatdur: 'repeatDur',
  26775. requiredextensions: 'requiredExtensions',
  26776. requiredfeatures: 'requiredFeatures',
  26777. resource: 'resource',
  26778. restart: 'restart',
  26779. result: 'result',
  26780. results: 'results',
  26781. rotate: 'rotate',
  26782. rx: 'rx',
  26783. ry: 'ry',
  26784. scale: 'scale',
  26785. security: 'security',
  26786. seed: 'seed',
  26787. shaperendering: 'shapeRendering',
  26788. 'shape-rendering': 'shapeRendering',
  26789. slope: 'slope',
  26790. spacing: 'spacing',
  26791. specularconstant: 'specularConstant',
  26792. specularexponent: 'specularExponent',
  26793. speed: 'speed',
  26794. spreadmethod: 'spreadMethod',
  26795. startoffset: 'startOffset',
  26796. stddeviation: 'stdDeviation',
  26797. stemh: 'stemh',
  26798. stemv: 'stemv',
  26799. stitchtiles: 'stitchTiles',
  26800. stopcolor: 'stopColor',
  26801. 'stop-color': 'stopColor',
  26802. stopopacity: 'stopOpacity',
  26803. 'stop-opacity': 'stopOpacity',
  26804. strikethroughposition: 'strikethroughPosition',
  26805. 'strikethrough-position': 'strikethroughPosition',
  26806. strikethroughthickness: 'strikethroughThickness',
  26807. 'strikethrough-thickness': 'strikethroughThickness',
  26808. string: 'string',
  26809. stroke: 'stroke',
  26810. strokedasharray: 'strokeDasharray',
  26811. 'stroke-dasharray': 'strokeDasharray',
  26812. strokedashoffset: 'strokeDashoffset',
  26813. 'stroke-dashoffset': 'strokeDashoffset',
  26814. strokelinecap: 'strokeLinecap',
  26815. 'stroke-linecap': 'strokeLinecap',
  26816. strokelinejoin: 'strokeLinejoin',
  26817. 'stroke-linejoin': 'strokeLinejoin',
  26818. strokemiterlimit: 'strokeMiterlimit',
  26819. 'stroke-miterlimit': 'strokeMiterlimit',
  26820. strokewidth: 'strokeWidth',
  26821. 'stroke-width': 'strokeWidth',
  26822. strokeopacity: 'strokeOpacity',
  26823. 'stroke-opacity': 'strokeOpacity',
  26824. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  26825. suppresshydrationwarning: 'suppressHydrationWarning',
  26826. surfacescale: 'surfaceScale',
  26827. systemlanguage: 'systemLanguage',
  26828. tablevalues: 'tableValues',
  26829. targetx: 'targetX',
  26830. targety: 'targetY',
  26831. textanchor: 'textAnchor',
  26832. 'text-anchor': 'textAnchor',
  26833. textdecoration: 'textDecoration',
  26834. 'text-decoration': 'textDecoration',
  26835. textlength: 'textLength',
  26836. textrendering: 'textRendering',
  26837. 'text-rendering': 'textRendering',
  26838. to: 'to',
  26839. transform: 'transform',
  26840. typeof: 'typeof',
  26841. u1: 'u1',
  26842. u2: 'u2',
  26843. underlineposition: 'underlinePosition',
  26844. 'underline-position': 'underlinePosition',
  26845. underlinethickness: 'underlineThickness',
  26846. 'underline-thickness': 'underlineThickness',
  26847. unicode: 'unicode',
  26848. unicodebidi: 'unicodeBidi',
  26849. 'unicode-bidi': 'unicodeBidi',
  26850. unicoderange: 'unicodeRange',
  26851. 'unicode-range': 'unicodeRange',
  26852. unitsperem: 'unitsPerEm',
  26853. 'units-per-em': 'unitsPerEm',
  26854. unselectable: 'unselectable',
  26855. valphabetic: 'vAlphabetic',
  26856. 'v-alphabetic': 'vAlphabetic',
  26857. values: 'values',
  26858. vectoreffect: 'vectorEffect',
  26859. 'vector-effect': 'vectorEffect',
  26860. version: 'version',
  26861. vertadvy: 'vertAdvY',
  26862. 'vert-adv-y': 'vertAdvY',
  26863. vertoriginx: 'vertOriginX',
  26864. 'vert-origin-x': 'vertOriginX',
  26865. vertoriginy: 'vertOriginY',
  26866. 'vert-origin-y': 'vertOriginY',
  26867. vhanging: 'vHanging',
  26868. 'v-hanging': 'vHanging',
  26869. videographic: 'vIdeographic',
  26870. 'v-ideographic': 'vIdeographic',
  26871. viewbox: 'viewBox',
  26872. viewtarget: 'viewTarget',
  26873. visibility: 'visibility',
  26874. vmathematical: 'vMathematical',
  26875. 'v-mathematical': 'vMathematical',
  26876. vocab: 'vocab',
  26877. widths: 'widths',
  26878. wordspacing: 'wordSpacing',
  26879. 'word-spacing': 'wordSpacing',
  26880. writingmode: 'writingMode',
  26881. 'writing-mode': 'writingMode',
  26882. x1: 'x1',
  26883. x2: 'x2',
  26884. x: 'x',
  26885. xchannelselector: 'xChannelSelector',
  26886. xheight: 'xHeight',
  26887. 'x-height': 'xHeight',
  26888. xlinkactuate: 'xlinkActuate',
  26889. 'xlink:actuate': 'xlinkActuate',
  26890. xlinkarcrole: 'xlinkArcrole',
  26891. 'xlink:arcrole': 'xlinkArcrole',
  26892. xlinkhref: 'xlinkHref',
  26893. 'xlink:href': 'xlinkHref',
  26894. xlinkrole: 'xlinkRole',
  26895. 'xlink:role': 'xlinkRole',
  26896. xlinkshow: 'xlinkShow',
  26897. 'xlink:show': 'xlinkShow',
  26898. xlinktitle: 'xlinkTitle',
  26899. 'xlink:title': 'xlinkTitle',
  26900. xlinktype: 'xlinkType',
  26901. 'xlink:type': 'xlinkType',
  26902. xmlbase: 'xmlBase',
  26903. 'xml:base': 'xmlBase',
  26904. xmllang: 'xmlLang',
  26905. 'xml:lang': 'xmlLang',
  26906. xmlns: 'xmlns',
  26907. 'xml:space': 'xmlSpace',
  26908. xmlnsxlink: 'xmlnsXlink',
  26909. 'xmlns:xlink': 'xmlnsXlink',
  26910. xmlspace: 'xmlSpace',
  26911. y1: 'y1',
  26912. y2: 'y2',
  26913. y: 'y',
  26914. ychannelselector: 'yChannelSelector',
  26915. z: 'z',
  26916. zoomandpan: 'zoomAndPan'
  26917. };
  26918. var ariaProperties = {
  26919. 'aria-current': 0,
  26920. // state
  26921. 'aria-details': 0,
  26922. 'aria-disabled': 0,
  26923. // state
  26924. 'aria-hidden': 0,
  26925. // state
  26926. 'aria-invalid': 0,
  26927. // state
  26928. 'aria-keyshortcuts': 0,
  26929. 'aria-label': 0,
  26930. 'aria-roledescription': 0,
  26931. // Widget Attributes
  26932. 'aria-autocomplete': 0,
  26933. 'aria-checked': 0,
  26934. 'aria-expanded': 0,
  26935. 'aria-haspopup': 0,
  26936. 'aria-level': 0,
  26937. 'aria-modal': 0,
  26938. 'aria-multiline': 0,
  26939. 'aria-multiselectable': 0,
  26940. 'aria-orientation': 0,
  26941. 'aria-placeholder': 0,
  26942. 'aria-pressed': 0,
  26943. 'aria-readonly': 0,
  26944. 'aria-required': 0,
  26945. 'aria-selected': 0,
  26946. 'aria-sort': 0,
  26947. 'aria-valuemax': 0,
  26948. 'aria-valuemin': 0,
  26949. 'aria-valuenow': 0,
  26950. 'aria-valuetext': 0,
  26951. // Live Region Attributes
  26952. 'aria-atomic': 0,
  26953. 'aria-busy': 0,
  26954. 'aria-live': 0,
  26955. 'aria-relevant': 0,
  26956. // Drag-and-Drop Attributes
  26957. 'aria-dropeffect': 0,
  26958. 'aria-grabbed': 0,
  26959. // Relationship Attributes
  26960. 'aria-activedescendant': 0,
  26961. 'aria-colcount': 0,
  26962. 'aria-colindex': 0,
  26963. 'aria-colspan': 0,
  26964. 'aria-controls': 0,
  26965. 'aria-describedby': 0,
  26966. 'aria-errormessage': 0,
  26967. 'aria-flowto': 0,
  26968. 'aria-labelledby': 0,
  26969. 'aria-owns': 0,
  26970. 'aria-posinset': 0,
  26971. 'aria-rowcount': 0,
  26972. 'aria-rowindex': 0,
  26973. 'aria-rowspan': 0,
  26974. 'aria-setsize': 0
  26975. };
  26976. var warnedProperties = {};
  26977. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  26978. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  26979. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  26980. function validateProperty(tagName, name) {
  26981. {
  26982. if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) {
  26983. return true;
  26984. }
  26985. if (rARIACamel.test(name)) {
  26986. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  26987. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM
  26988. // DOM properties, then it is an invalid aria-* attribute.
  26989. if (correctName == null) {
  26990. error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  26991. warnedProperties[name] = true;
  26992. return true;
  26993. } // aria-* attributes should be lowercase; suggest the lowercase version.
  26994. if (name !== correctName) {
  26995. error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  26996. warnedProperties[name] = true;
  26997. return true;
  26998. }
  26999. }
  27000. if (rARIA.test(name)) {
  27001. var lowerCasedName = name.toLowerCase();
  27002. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM
  27003. // DOM properties, then it is an invalid aria-* attribute.
  27004. if (standardName == null) {
  27005. warnedProperties[name] = true;
  27006. return false;
  27007. } // aria-* attributes should be lowercase; suggest the lowercase version.
  27008. if (name !== standardName) {
  27009. error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  27010. warnedProperties[name] = true;
  27011. return true;
  27012. }
  27013. }
  27014. }
  27015. return true;
  27016. }
  27017. function warnInvalidARIAProps(type, props) {
  27018. {
  27019. var invalidProps = [];
  27020. for (var key in props) {
  27021. var isValid = validateProperty(type, key);
  27022. if (!isValid) {
  27023. invalidProps.push(key);
  27024. }
  27025. }
  27026. var unknownPropString = invalidProps.map(function (prop) {
  27027. return '`' + prop + '`';
  27028. }).join(', ');
  27029. if (invalidProps.length === 1) {
  27030. error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  27031. } else if (invalidProps.length > 1) {
  27032. error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  27033. }
  27034. }
  27035. }
  27036. function validateProperties(type, props) {
  27037. if (isCustomComponent(type, props)) {
  27038. return;
  27039. }
  27040. warnInvalidARIAProps(type, props);
  27041. }
  27042. var didWarnValueNull = false;
  27043. function validateProperties$1(type, props) {
  27044. {
  27045. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  27046. return;
  27047. }
  27048. if (props != null && props.value === null && !didWarnValueNull) {
  27049. didWarnValueNull = true;
  27050. if (type === 'select' && props.multiple) {
  27051. error('`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);
  27052. } else {
  27053. error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
  27054. }
  27055. }
  27056. }
  27057. }
  27058. var validateProperty$1 = function () {};
  27059. {
  27060. var warnedProperties$1 = {};
  27061. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  27062. var EVENT_NAME_REGEX = /^on./;
  27063. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  27064. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  27065. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  27066. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  27067. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  27068. return true;
  27069. }
  27070. var lowerCasedName = name.toLowerCase();
  27071. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  27072. error('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.');
  27073. warnedProperties$1[name] = true;
  27074. return true;
  27075. } // We can't rely on the event system being injected on the server.
  27076. if (canUseEventSystem) {
  27077. if (registrationNameModules.hasOwnProperty(name)) {
  27078. return true;
  27079. }
  27080. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  27081. if (registrationName != null) {
  27082. error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  27083. warnedProperties$1[name] = true;
  27084. return true;
  27085. }
  27086. if (EVENT_NAME_REGEX.test(name)) {
  27087. error('Unknown event handler property `%s`. It will be ignored.', name);
  27088. warnedProperties$1[name] = true;
  27089. return true;
  27090. }
  27091. } else if (EVENT_NAME_REGEX.test(name)) {
  27092. // If no event plugins have been injected, we are in a server environment.
  27093. // So we can't tell if the event name is correct for sure, but we can filter
  27094. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  27095. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  27096. error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  27097. }
  27098. warnedProperties$1[name] = true;
  27099. return true;
  27100. } // Let the ARIA attribute hook validate ARIA attributes
  27101. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  27102. return true;
  27103. }
  27104. if (lowerCasedName === 'innerhtml') {
  27105. error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  27106. warnedProperties$1[name] = true;
  27107. return true;
  27108. }
  27109. if (lowerCasedName === 'aria') {
  27110. error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  27111. warnedProperties$1[name] = true;
  27112. return true;
  27113. }
  27114. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  27115. error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  27116. warnedProperties$1[name] = true;
  27117. return true;
  27118. }
  27119. if (typeof value === 'number' && isNaN(value)) {
  27120. error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  27121. warnedProperties$1[name] = true;
  27122. return true;
  27123. }
  27124. var propertyInfo = getPropertyInfo(name);
  27125. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.
  27126. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  27127. var standardName = possibleStandardNames[lowerCasedName];
  27128. if (standardName !== name) {
  27129. error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  27130. warnedProperties$1[name] = true;
  27131. return true;
  27132. }
  27133. } else if (!isReserved && name !== lowerCasedName) {
  27134. // Unknown attributes should have lowercase casing since that's how they
  27135. // will be cased anyway with server rendering.
  27136. error('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);
  27137. warnedProperties$1[name] = true;
  27138. return true;
  27139. }
  27140. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  27141. if (value) {
  27142. error('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);
  27143. } else {
  27144. error('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);
  27145. }
  27146. warnedProperties$1[name] = true;
  27147. return true;
  27148. } // Now that we've validated casing, do not validate
  27149. // data types for reserved props
  27150. if (isReserved) {
  27151. return true;
  27152. } // Warn when a known attribute is a bad type
  27153. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  27154. warnedProperties$1[name] = true;
  27155. return false;
  27156. } // Warn when passing the strings 'false' or 'true' into a boolean prop
  27157. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  27158. error('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);
  27159. warnedProperties$1[name] = true;
  27160. return true;
  27161. }
  27162. return true;
  27163. };
  27164. }
  27165. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  27166. {
  27167. var unknownProps = [];
  27168. for (var key in props) {
  27169. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  27170. if (!isValid) {
  27171. unknownProps.push(key);
  27172. }
  27173. }
  27174. var unknownPropString = unknownProps.map(function (prop) {
  27175. return '`' + prop + '`';
  27176. }).join(', ');
  27177. if (unknownProps.length === 1) {
  27178. error('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);
  27179. } else if (unknownProps.length > 1) {
  27180. error('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);
  27181. }
  27182. }
  27183. };
  27184. function validateProperties$2(type, props, canUseEventSystem) {
  27185. if (isCustomComponent(type, props)) {
  27186. return;
  27187. }
  27188. warnUnknownProperties(type, props, canUseEventSystem);
  27189. }
  27190. var didWarnInvalidHydration = false;
  27191. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  27192. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  27193. var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  27194. var AUTOFOCUS = 'autoFocus';
  27195. var CHILDREN = 'children';
  27196. var STYLE = 'style';
  27197. var HTML$1 = '__html';
  27198. var HTML_NAMESPACE$1 = Namespaces.html;
  27199. var warnedUnknownTags;
  27200. var suppressHydrationWarning;
  27201. var validatePropertiesInDevelopment;
  27202. var warnForTextDifference;
  27203. var warnForPropDifference;
  27204. var warnForExtraAttributes;
  27205. var warnForInvalidEventListener;
  27206. var canDiffStyleForHydrationWarning;
  27207. var normalizeMarkupForTextOrAttribute;
  27208. var normalizeHTML;
  27209. {
  27210. warnedUnknownTags = {
  27211. // Chrome is the only major browser not shipping <time>. But as of July
  27212. // 2017 it intends to ship it due to widespread usage. We intentionally
  27213. // *don't* warn for <time> even if it's unrecognized by Chrome because
  27214. // it soon will be, and many apps have been using it anyway.
  27215. time: true,
  27216. // There are working polyfills for <dialog>. Let people use it.
  27217. dialog: true,
  27218. // Electron ships a custom <webview> tag to display external web content in
  27219. // an isolated frame and process.
  27220. // This tag is not present in non Electron environments such as JSDom which
  27221. // is often used for testing purposes.
  27222. // @see https://electronjs.org/docs/api/webview-tag
  27223. webview: true
  27224. };
  27225. validatePropertiesInDevelopment = function (type, props) {
  27226. validateProperties(type, props);
  27227. validateProperties$1(type, props);
  27228. validateProperties$2(type, props,
  27229. /* canUseEventSystem */
  27230. true);
  27231. }; // IE 11 parses & normalizes the style attribute as opposed to other
  27232. // browsers. It adds spaces and sorts the properties in some
  27233. // non-alphabetical order. Handling that would require sorting CSS
  27234. // properties in the client & server versions or applying
  27235. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  27236. // normalized. Since it only affects IE, we're skipping style warnings
  27237. // in that browser completely in favor of doing all that work.
  27238. // See https://github.com/facebook/react/issues/11807
  27239. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF.
  27240. // It also can turn \u0000 into \uFFFD inside attributes.
  27241. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  27242. // If we have a mismatch, it might be caused by that.
  27243. // We will still patch up in this case but not fire the warning.
  27244. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  27245. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  27246. normalizeMarkupForTextOrAttribute = function (markup) {
  27247. var markupString = typeof markup === 'string' ? markup : '' + markup;
  27248. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  27249. };
  27250. warnForTextDifference = function (serverText, clientText) {
  27251. if (didWarnInvalidHydration) {
  27252. return;
  27253. }
  27254. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  27255. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  27256. if (normalizedServerText === normalizedClientText) {
  27257. return;
  27258. }
  27259. didWarnInvalidHydration = true;
  27260. error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  27261. };
  27262. warnForPropDifference = function (propName, serverValue, clientValue) {
  27263. if (didWarnInvalidHydration) {
  27264. return;
  27265. }
  27266. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  27267. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  27268. if (normalizedServerValue === normalizedClientValue) {
  27269. return;
  27270. }
  27271. didWarnInvalidHydration = true;
  27272. error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  27273. };
  27274. warnForExtraAttributes = function (attributeNames) {
  27275. if (didWarnInvalidHydration) {
  27276. return;
  27277. }
  27278. didWarnInvalidHydration = true;
  27279. var names = [];
  27280. attributeNames.forEach(function (name) {
  27281. names.push(name);
  27282. });
  27283. error('Extra attributes from the server: %s', names);
  27284. };
  27285. warnForInvalidEventListener = function (registrationName, listener) {
  27286. if (listener === false) {
  27287. error('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);
  27288. } else {
  27289. error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  27290. }
  27291. }; // Parse the HTML and read it back to normalize the HTML string so that it
  27292. // can be used for comparison.
  27293. normalizeHTML = function (parent, html) {
  27294. // We could have created a separate document here to avoid
  27295. // re-initializing custom elements if they exist. But this breaks
  27296. // how <noscript> is being handled. So we use the same document.
  27297. // See the discussion in https://github.com/facebook/react/pull/11157.
  27298. var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  27299. testElement.innerHTML = html;
  27300. return testElement.innerHTML;
  27301. };
  27302. }
  27303. function ensureListeningTo(rootContainerElement, registrationName) {
  27304. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  27305. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  27306. legacyListenToEvent(registrationName, doc);
  27307. }
  27308. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  27309. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  27310. }
  27311. function noop() {}
  27312. function trapClickOnNonInteractiveElement(node) {
  27313. // Mobile Safari does not fire properly bubble click events on
  27314. // non-interactive elements, which means delegated click listeners do not
  27315. // fire. The workaround for this bug involves attaching an empty click
  27316. // listener on the target node.
  27317. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  27318. // Just set it using the onclick property so that we don't have to manage any
  27319. // bookkeeping for it. Not sure if we need to clear it when the listener is
  27320. // removed.
  27321. // TODO: Only do this for the relevant Safaris maybe?
  27322. node.onclick = noop;
  27323. }
  27324. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  27325. for (var propKey in nextProps) {
  27326. if (!nextProps.hasOwnProperty(propKey)) {
  27327. continue;
  27328. }
  27329. var nextProp = nextProps[propKey];
  27330. if (propKey === STYLE) {
  27331. {
  27332. if (nextProp) {
  27333. // Freeze the next style object so that we can assume it won't be
  27334. // mutated. We have already warned for this in the past.
  27335. Object.freeze(nextProp);
  27336. }
  27337. } // Relies on `updateStylesByID` not mutating `styleUpdates`.
  27338. setValueForStyles(domElement, nextProp);
  27339. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  27340. var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
  27341. if (nextHtml != null) {
  27342. setInnerHTML(domElement, nextHtml);
  27343. }
  27344. } else if (propKey === CHILDREN) {
  27345. if (typeof nextProp === 'string') {
  27346. // Avoid setting initial textContent when the text is empty. In IE11 setting
  27347. // textContent on a <textarea> will cause the placeholder to not
  27348. // show within the <textarea> until it has been focused and blurred again.
  27349. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  27350. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  27351. if (canSetTextContent) {
  27352. setTextContent(domElement, nextProp);
  27353. }
  27354. } else if (typeof nextProp === 'number') {
  27355. setTextContent(domElement, '' + nextProp);
  27356. }
  27357. } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
  27358. if (nextProp != null) {
  27359. if ( typeof nextProp !== 'function') {
  27360. warnForInvalidEventListener(propKey, nextProp);
  27361. }
  27362. ensureListeningTo(rootContainerElement, propKey);
  27363. }
  27364. } else if (nextProp != null) {
  27365. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  27366. }
  27367. }
  27368. }
  27369. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  27370. // TODO: Handle wasCustomComponentTag
  27371. for (var i = 0; i < updatePayload.length; i += 2) {
  27372. var propKey = updatePayload[i];
  27373. var propValue = updatePayload[i + 1];
  27374. if (propKey === STYLE) {
  27375. setValueForStyles(domElement, propValue);
  27376. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  27377. setInnerHTML(domElement, propValue);
  27378. } else if (propKey === CHILDREN) {
  27379. setTextContent(domElement, propValue);
  27380. } else {
  27381. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  27382. }
  27383. }
  27384. }
  27385. function createElement(type, props, rootContainerElement, parentNamespace) {
  27386. var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML
  27387. // tags get no namespace.
  27388. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  27389. var domElement;
  27390. var namespaceURI = parentNamespace;
  27391. if (namespaceURI === HTML_NAMESPACE$1) {
  27392. namespaceURI = getIntrinsicNamespace(type);
  27393. }
  27394. if (namespaceURI === HTML_NAMESPACE$1) {
  27395. {
  27396. isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
  27397. // allow <SVG> or <mATH>.
  27398. if (!isCustomComponentTag && type !== type.toLowerCase()) {
  27399. error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
  27400. }
  27401. }
  27402. if (type === 'script') {
  27403. // Create the script via .innerHTML so its "parser-inserted" flag is
  27404. // set to true and it does not execute
  27405. var div = ownerDocument.createElement('div');
  27406. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  27407. // This is guaranteed to yield a script element.
  27408. var firstChild = div.firstChild;
  27409. domElement = div.removeChild(firstChild);
  27410. } else if (typeof props.is === 'string') {
  27411. // $FlowIssue `createElement` should be updated for Web Components
  27412. domElement = ownerDocument.createElement(type, {
  27413. is: props.is
  27414. });
  27415. } else {
  27416. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  27417. // See discussion in https://github.com/facebook/react/pull/6896
  27418. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  27419. domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
  27420. // attributes on `select`s needs to be added before `option`s are inserted.
  27421. // This prevents:
  27422. // - a bug where the `select` does not scroll to the correct option because singular
  27423. // `select` elements automatically pick the first item #13222
  27424. // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
  27425. // See https://github.com/facebook/react/issues/13222
  27426. // and https://github.com/facebook/react/issues/14239
  27427. if (type === 'select') {
  27428. var node = domElement;
  27429. if (props.multiple) {
  27430. node.multiple = true;
  27431. } else if (props.size) {
  27432. // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
  27433. // it is possible that no option is selected.
  27434. //
  27435. // This is only necessary when a select in "single selection mode".
  27436. node.size = props.size;
  27437. }
  27438. }
  27439. }
  27440. } else {
  27441. domElement = ownerDocument.createElementNS(namespaceURI, type);
  27442. }
  27443. {
  27444. if (namespaceURI === HTML_NAMESPACE$1) {
  27445. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  27446. warnedUnknownTags[type] = true;
  27447. error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
  27448. }
  27449. }
  27450. }
  27451. return domElement;
  27452. }
  27453. function createTextNode(text, rootContainerElement) {
  27454. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  27455. }
  27456. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  27457. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  27458. {
  27459. validatePropertiesInDevelopment(tag, rawProps);
  27460. } // TODO: Make sure that we check isMounted before firing any of these events.
  27461. var props;
  27462. switch (tag) {
  27463. case 'iframe':
  27464. case 'object':
  27465. case 'embed':
  27466. trapBubbledEvent(TOP_LOAD, domElement);
  27467. props = rawProps;
  27468. break;
  27469. case 'video':
  27470. case 'audio':
  27471. // Create listener for each media event
  27472. for (var i = 0; i < mediaEventTypes.length; i++) {
  27473. trapBubbledEvent(mediaEventTypes[i], domElement);
  27474. }
  27475. props = rawProps;
  27476. break;
  27477. case 'source':
  27478. trapBubbledEvent(TOP_ERROR, domElement);
  27479. props = rawProps;
  27480. break;
  27481. case 'img':
  27482. case 'image':
  27483. case 'link':
  27484. trapBubbledEvent(TOP_ERROR, domElement);
  27485. trapBubbledEvent(TOP_LOAD, domElement);
  27486. props = rawProps;
  27487. break;
  27488. case 'form':
  27489. trapBubbledEvent(TOP_RESET, domElement);
  27490. trapBubbledEvent(TOP_SUBMIT, domElement);
  27491. props = rawProps;
  27492. break;
  27493. case 'details':
  27494. trapBubbledEvent(TOP_TOGGLE, domElement);
  27495. props = rawProps;
  27496. break;
  27497. case 'input':
  27498. initWrapperState(domElement, rawProps);
  27499. props = getHostProps(domElement, rawProps);
  27500. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  27501. // to onChange. Even if there is no listener.
  27502. ensureListeningTo(rootContainerElement, 'onChange');
  27503. break;
  27504. case 'option':
  27505. validateProps(domElement, rawProps);
  27506. props = getHostProps$1(domElement, rawProps);
  27507. break;
  27508. case 'select':
  27509. initWrapperState$1(domElement, rawProps);
  27510. props = getHostProps$2(domElement, rawProps);
  27511. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  27512. // to onChange. Even if there is no listener.
  27513. ensureListeningTo(rootContainerElement, 'onChange');
  27514. break;
  27515. case 'textarea':
  27516. initWrapperState$2(domElement, rawProps);
  27517. props = getHostProps$3(domElement, rawProps);
  27518. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  27519. // to onChange. Even if there is no listener.
  27520. ensureListeningTo(rootContainerElement, 'onChange');
  27521. break;
  27522. default:
  27523. props = rawProps;
  27524. }
  27525. assertValidProps(tag, props);
  27526. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  27527. switch (tag) {
  27528. case 'input':
  27529. // TODO: Make sure we check if this is still unmounted or do any clean
  27530. // up necessary since we never stop tracking anymore.
  27531. track(domElement);
  27532. postMountWrapper(domElement, rawProps, false);
  27533. break;
  27534. case 'textarea':
  27535. // TODO: Make sure we check if this is still unmounted or do any clean
  27536. // up necessary since we never stop tracking anymore.
  27537. track(domElement);
  27538. postMountWrapper$3(domElement);
  27539. break;
  27540. case 'option':
  27541. postMountWrapper$1(domElement, rawProps);
  27542. break;
  27543. case 'select':
  27544. postMountWrapper$2(domElement, rawProps);
  27545. break;
  27546. default:
  27547. if (typeof props.onClick === 'function') {
  27548. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  27549. trapClickOnNonInteractiveElement(domElement);
  27550. }
  27551. break;
  27552. }
  27553. } // Calculate the diff between the two objects.
  27554. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  27555. {
  27556. validatePropertiesInDevelopment(tag, nextRawProps);
  27557. }
  27558. var updatePayload = null;
  27559. var lastProps;
  27560. var nextProps;
  27561. switch (tag) {
  27562. case 'input':
  27563. lastProps = getHostProps(domElement, lastRawProps);
  27564. nextProps = getHostProps(domElement, nextRawProps);
  27565. updatePayload = [];
  27566. break;
  27567. case 'option':
  27568. lastProps = getHostProps$1(domElement, lastRawProps);
  27569. nextProps = getHostProps$1(domElement, nextRawProps);
  27570. updatePayload = [];
  27571. break;
  27572. case 'select':
  27573. lastProps = getHostProps$2(domElement, lastRawProps);
  27574. nextProps = getHostProps$2(domElement, nextRawProps);
  27575. updatePayload = [];
  27576. break;
  27577. case 'textarea':
  27578. lastProps = getHostProps$3(domElement, lastRawProps);
  27579. nextProps = getHostProps$3(domElement, nextRawProps);
  27580. updatePayload = [];
  27581. break;
  27582. default:
  27583. lastProps = lastRawProps;
  27584. nextProps = nextRawProps;
  27585. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  27586. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  27587. trapClickOnNonInteractiveElement(domElement);
  27588. }
  27589. break;
  27590. }
  27591. assertValidProps(tag, nextProps);
  27592. var propKey;
  27593. var styleName;
  27594. var styleUpdates = null;
  27595. for (propKey in lastProps) {
  27596. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  27597. continue;
  27598. }
  27599. if (propKey === STYLE) {
  27600. var lastStyle = lastProps[propKey];
  27601. for (styleName in lastStyle) {
  27602. if (lastStyle.hasOwnProperty(styleName)) {
  27603. if (!styleUpdates) {
  27604. styleUpdates = {};
  27605. }
  27606. styleUpdates[styleName] = '';
  27607. }
  27608. }
  27609. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
  27610. // This is a special case. If any listener updates we need to ensure
  27611. // that the "current" fiber pointer gets updated so we need a commit
  27612. // to update this element.
  27613. if (!updatePayload) {
  27614. updatePayload = [];
  27615. }
  27616. } else {
  27617. // For all other deleted properties we add it to the queue. We use
  27618. // the whitelist in the commit phase instead.
  27619. (updatePayload = updatePayload || []).push(propKey, null);
  27620. }
  27621. }
  27622. for (propKey in nextProps) {
  27623. var nextProp = nextProps[propKey];
  27624. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  27625. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  27626. continue;
  27627. }
  27628. if (propKey === STYLE) {
  27629. {
  27630. if (nextProp) {
  27631. // Freeze the next style object so that we can assume it won't be
  27632. // mutated. We have already warned for this in the past.
  27633. Object.freeze(nextProp);
  27634. }
  27635. }
  27636. if (lastProp) {
  27637. // Unset styles on `lastProp` but not on `nextProp`.
  27638. for (styleName in lastProp) {
  27639. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  27640. if (!styleUpdates) {
  27641. styleUpdates = {};
  27642. }
  27643. styleUpdates[styleName] = '';
  27644. }
  27645. } // Update styles that changed since `lastProp`.
  27646. for (styleName in nextProp) {
  27647. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  27648. if (!styleUpdates) {
  27649. styleUpdates = {};
  27650. }
  27651. styleUpdates[styleName] = nextProp[styleName];
  27652. }
  27653. }
  27654. } else {
  27655. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  27656. if (!styleUpdates) {
  27657. if (!updatePayload) {
  27658. updatePayload = [];
  27659. }
  27660. updatePayload.push(propKey, styleUpdates);
  27661. }
  27662. styleUpdates = nextProp;
  27663. }
  27664. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  27665. var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
  27666. var lastHtml = lastProp ? lastProp[HTML$1] : undefined;
  27667. if (nextHtml != null) {
  27668. if (lastHtml !== nextHtml) {
  27669. (updatePayload = updatePayload || []).push(propKey, nextHtml);
  27670. }
  27671. }
  27672. } else if (propKey === CHILDREN) {
  27673. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  27674. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  27675. }
  27676. } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
  27677. if (nextProp != null) {
  27678. // We eagerly listen to this even though we haven't committed yet.
  27679. if ( typeof nextProp !== 'function') {
  27680. warnForInvalidEventListener(propKey, nextProp);
  27681. }
  27682. ensureListeningTo(rootContainerElement, propKey);
  27683. }
  27684. if (!updatePayload && lastProp !== nextProp) {
  27685. // This is a special case. If any listener updates we need to ensure
  27686. // that the "current" props pointer gets updated so we need a commit
  27687. // to update this element.
  27688. updatePayload = [];
  27689. }
  27690. } else {
  27691. // For any other property we always add it to the queue and then we
  27692. // filter it out using the whitelist during the commit.
  27693. (updatePayload = updatePayload || []).push(propKey, nextProp);
  27694. }
  27695. }
  27696. if (styleUpdates) {
  27697. {
  27698. validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
  27699. }
  27700. (updatePayload = updatePayload || []).push(STYLE, styleUpdates);
  27701. }
  27702. return updatePayload;
  27703. } // Apply the diff.
  27704. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  27705. // Update checked *before* name.
  27706. // In the middle of an update, it is possible to have multiple checked.
  27707. // When a checked radio tries to change name, browser makes another radio's checked false.
  27708. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  27709. updateChecked(domElement, nextRawProps);
  27710. }
  27711. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  27712. var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.
  27713. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
  27714. // changed.
  27715. switch (tag) {
  27716. case 'input':
  27717. // Update the wrapper around inputs *after* updating props. This has to
  27718. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  27719. // raise warnings and prevent the new value from being assigned.
  27720. updateWrapper(domElement, nextRawProps);
  27721. break;
  27722. case 'textarea':
  27723. updateWrapper$1(domElement, nextRawProps);
  27724. break;
  27725. case 'select':
  27726. // <select> value update needs to occur after <option> children
  27727. // reconciliation
  27728. postUpdateWrapper(domElement, nextRawProps);
  27729. break;
  27730. }
  27731. }
  27732. function getPossibleStandardName(propName) {
  27733. {
  27734. var lowerCasedName = propName.toLowerCase();
  27735. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  27736. return null;
  27737. }
  27738. return possibleStandardNames[lowerCasedName] || null;
  27739. }
  27740. }
  27741. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  27742. var isCustomComponentTag;
  27743. var extraAttributeNames;
  27744. {
  27745. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING] === true;
  27746. isCustomComponentTag = isCustomComponent(tag, rawProps);
  27747. validatePropertiesInDevelopment(tag, rawProps);
  27748. } // TODO: Make sure that we check isMounted before firing any of these events.
  27749. switch (tag) {
  27750. case 'iframe':
  27751. case 'object':
  27752. case 'embed':
  27753. trapBubbledEvent(TOP_LOAD, domElement);
  27754. break;
  27755. case 'video':
  27756. case 'audio':
  27757. // Create listener for each media event
  27758. for (var i = 0; i < mediaEventTypes.length; i++) {
  27759. trapBubbledEvent(mediaEventTypes[i], domElement);
  27760. }
  27761. break;
  27762. case 'source':
  27763. trapBubbledEvent(TOP_ERROR, domElement);
  27764. break;
  27765. case 'img':
  27766. case 'image':
  27767. case 'link':
  27768. trapBubbledEvent(TOP_ERROR, domElement);
  27769. trapBubbledEvent(TOP_LOAD, domElement);
  27770. break;
  27771. case 'form':
  27772. trapBubbledEvent(TOP_RESET, domElement);
  27773. trapBubbledEvent(TOP_SUBMIT, domElement);
  27774. break;
  27775. case 'details':
  27776. trapBubbledEvent(TOP_TOGGLE, domElement);
  27777. break;
  27778. case 'input':
  27779. initWrapperState(domElement, rawProps);
  27780. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  27781. // to onChange. Even if there is no listener.
  27782. ensureListeningTo(rootContainerElement, 'onChange');
  27783. break;
  27784. case 'option':
  27785. validateProps(domElement, rawProps);
  27786. break;
  27787. case 'select':
  27788. initWrapperState$1(domElement, rawProps);
  27789. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  27790. // to onChange. Even if there is no listener.
  27791. ensureListeningTo(rootContainerElement, 'onChange');
  27792. break;
  27793. case 'textarea':
  27794. initWrapperState$2(domElement, rawProps);
  27795. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  27796. // to onChange. Even if there is no listener.
  27797. ensureListeningTo(rootContainerElement, 'onChange');
  27798. break;
  27799. }
  27800. assertValidProps(tag, rawProps);
  27801. {
  27802. extraAttributeNames = new Set();
  27803. var attributes = domElement.attributes;
  27804. for (var _i = 0; _i < attributes.length; _i++) {
  27805. var name = attributes[_i].name.toLowerCase();
  27806. switch (name) {
  27807. // Built-in SSR attribute is whitelisted
  27808. case 'data-reactroot':
  27809. break;
  27810. // Controlled attributes are not validated
  27811. // TODO: Only ignore them on controlled tags.
  27812. case 'value':
  27813. break;
  27814. case 'checked':
  27815. break;
  27816. case 'selected':
  27817. break;
  27818. default:
  27819. // Intentionally use the original name.
  27820. // See discussion in https://github.com/facebook/react/pull/10676.
  27821. extraAttributeNames.add(attributes[_i].name);
  27822. }
  27823. }
  27824. }
  27825. var updatePayload = null;
  27826. for (var propKey in rawProps) {
  27827. if (!rawProps.hasOwnProperty(propKey)) {
  27828. continue;
  27829. }
  27830. var nextProp = rawProps[propKey];
  27831. if (propKey === CHILDREN) {
  27832. // For text content children we compare against textContent. This
  27833. // might match additional HTML that is hidden when we read it using
  27834. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  27835. // satisfies our requirement. Our requirement is not to produce perfect
  27836. // HTML and attributes. Ideally we should preserve structure but it's
  27837. // ok not to if the visible content is still enough to indicate what
  27838. // even listeners these nodes might be wired up to.
  27839. // TODO: Warn if there is more than a single textNode as a child.
  27840. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  27841. if (typeof nextProp === 'string') {
  27842. if (domElement.textContent !== nextProp) {
  27843. if ( !suppressHydrationWarning) {
  27844. warnForTextDifference(domElement.textContent, nextProp);
  27845. }
  27846. updatePayload = [CHILDREN, nextProp];
  27847. }
  27848. } else if (typeof nextProp === 'number') {
  27849. if (domElement.textContent !== '' + nextProp) {
  27850. if ( !suppressHydrationWarning) {
  27851. warnForTextDifference(domElement.textContent, nextProp);
  27852. }
  27853. updatePayload = [CHILDREN, '' + nextProp];
  27854. }
  27855. }
  27856. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  27857. if (nextProp != null) {
  27858. if ( typeof nextProp !== 'function') {
  27859. warnForInvalidEventListener(propKey, nextProp);
  27860. }
  27861. ensureListeningTo(rootContainerElement, propKey);
  27862. }
  27863. } else if ( // Convince Flow we've calculated it (it's DEV-only in this method.)
  27864. typeof isCustomComponentTag === 'boolean') {
  27865. // Validate that the properties correspond to their expected values.
  27866. var serverValue = void 0;
  27867. var propertyInfo = getPropertyInfo(propKey);
  27868. if (suppressHydrationWarning) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
  27869. // TODO: Only ignore them on controlled tags.
  27870. propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  27871. var serverHTML = domElement.innerHTML;
  27872. var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
  27873. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  27874. if (expectedHTML !== serverHTML) {
  27875. warnForPropDifference(propKey, serverHTML, expectedHTML);
  27876. }
  27877. } else if (propKey === STYLE) {
  27878. // $FlowFixMe - Should be inferred as not undefined.
  27879. extraAttributeNames.delete(propKey);
  27880. if (canDiffStyleForHydrationWarning) {
  27881. var expectedStyle = createDangerousStringForStyles(nextProp);
  27882. serverValue = domElement.getAttribute('style');
  27883. if (expectedStyle !== serverValue) {
  27884. warnForPropDifference(propKey, serverValue, expectedStyle);
  27885. }
  27886. }
  27887. } else if (isCustomComponentTag) {
  27888. // $FlowFixMe - Should be inferred as not undefined.
  27889. extraAttributeNames.delete(propKey.toLowerCase());
  27890. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  27891. if (nextProp !== serverValue) {
  27892. warnForPropDifference(propKey, serverValue, nextProp);
  27893. }
  27894. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  27895. var isMismatchDueToBadCasing = false;
  27896. if (propertyInfo !== null) {
  27897. // $FlowFixMe - Should be inferred as not undefined.
  27898. extraAttributeNames.delete(propertyInfo.attributeName);
  27899. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  27900. } else {
  27901. var ownNamespace = parentNamespace;
  27902. if (ownNamespace === HTML_NAMESPACE$1) {
  27903. ownNamespace = getIntrinsicNamespace(tag);
  27904. }
  27905. if (ownNamespace === HTML_NAMESPACE$1) {
  27906. // $FlowFixMe - Should be inferred as not undefined.
  27907. extraAttributeNames.delete(propKey.toLowerCase());
  27908. } else {
  27909. var standardName = getPossibleStandardName(propKey);
  27910. if (standardName !== null && standardName !== propKey) {
  27911. // If an SVG prop is supplied with bad casing, it will
  27912. // be successfully parsed from HTML, but will produce a mismatch
  27913. // (and would be incorrectly rendered on the client).
  27914. // However, we already warn about bad casing elsewhere.
  27915. // So we'll skip the misleading extra mismatch warning in this case.
  27916. isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.
  27917. extraAttributeNames.delete(standardName);
  27918. } // $FlowFixMe - Should be inferred as not undefined.
  27919. extraAttributeNames.delete(propKey);
  27920. }
  27921. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  27922. }
  27923. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  27924. warnForPropDifference(propKey, serverValue, nextProp);
  27925. }
  27926. }
  27927. }
  27928. }
  27929. {
  27930. // $FlowFixMe - Should be inferred as not undefined.
  27931. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  27932. // $FlowFixMe - Should be inferred as not undefined.
  27933. warnForExtraAttributes(extraAttributeNames);
  27934. }
  27935. }
  27936. switch (tag) {
  27937. case 'input':
  27938. // TODO: Make sure we check if this is still unmounted or do any clean
  27939. // up necessary since we never stop tracking anymore.
  27940. track(domElement);
  27941. postMountWrapper(domElement, rawProps, true);
  27942. break;
  27943. case 'textarea':
  27944. // TODO: Make sure we check if this is still unmounted or do any clean
  27945. // up necessary since we never stop tracking anymore.
  27946. track(domElement);
  27947. postMountWrapper$3(domElement);
  27948. break;
  27949. case 'select':
  27950. case 'option':
  27951. // For input and textarea we current always set the value property at
  27952. // post mount to force it to diverge from attributes. However, for
  27953. // option and select we don't quite do the same thing and select
  27954. // is not resilient to the DOM state changing so we don't do that here.
  27955. // TODO: Consider not doing this for input and textarea.
  27956. break;
  27957. default:
  27958. if (typeof rawProps.onClick === 'function') {
  27959. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  27960. trapClickOnNonInteractiveElement(domElement);
  27961. }
  27962. break;
  27963. }
  27964. return updatePayload;
  27965. }
  27966. function diffHydratedText(textNode, text) {
  27967. var isDifferent = textNode.nodeValue !== text;
  27968. return isDifferent;
  27969. }
  27970. function warnForUnmatchedText(textNode, text) {
  27971. {
  27972. warnForTextDifference(textNode.nodeValue, text);
  27973. }
  27974. }
  27975. function warnForDeletedHydratableElement(parentNode, child) {
  27976. {
  27977. if (didWarnInvalidHydration) {
  27978. return;
  27979. }
  27980. didWarnInvalidHydration = true;
  27981. error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  27982. }
  27983. }
  27984. function warnForDeletedHydratableText(parentNode, child) {
  27985. {
  27986. if (didWarnInvalidHydration) {
  27987. return;
  27988. }
  27989. didWarnInvalidHydration = true;
  27990. error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  27991. }
  27992. }
  27993. function warnForInsertedHydratedElement(parentNode, tag, props) {
  27994. {
  27995. if (didWarnInvalidHydration) {
  27996. return;
  27997. }
  27998. didWarnInvalidHydration = true;
  27999. error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  28000. }
  28001. }
  28002. function warnForInsertedHydratedText(parentNode, text) {
  28003. {
  28004. if (text === '') {
  28005. // We expect to insert empty text nodes since they're not represented in
  28006. // the HTML.
  28007. // TODO: Remove this special case if we can just avoid inserting empty
  28008. // text nodes.
  28009. return;
  28010. }
  28011. if (didWarnInvalidHydration) {
  28012. return;
  28013. }
  28014. didWarnInvalidHydration = true;
  28015. error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  28016. }
  28017. }
  28018. function restoreControlledState$3(domElement, tag, props) {
  28019. switch (tag) {
  28020. case 'input':
  28021. restoreControlledState(domElement, props);
  28022. return;
  28023. case 'textarea':
  28024. restoreControlledState$2(domElement, props);
  28025. return;
  28026. case 'select':
  28027. restoreControlledState$1(domElement, props);
  28028. return;
  28029. }
  28030. }
  28031. function getActiveElement(doc) {
  28032. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  28033. if (typeof doc === 'undefined') {
  28034. return null;
  28035. }
  28036. try {
  28037. return doc.activeElement || doc.body;
  28038. } catch (e) {
  28039. return doc.body;
  28040. }
  28041. }
  28042. /**
  28043. * Given any node return the first leaf node without children.
  28044. *
  28045. * @param {DOMElement|DOMTextNode} node
  28046. * @return {DOMElement|DOMTextNode}
  28047. */
  28048. function getLeafNode(node) {
  28049. while (node && node.firstChild) {
  28050. node = node.firstChild;
  28051. }
  28052. return node;
  28053. }
  28054. /**
  28055. * Get the next sibling within a container. This will walk up the
  28056. * DOM if a node's siblings have been exhausted.
  28057. *
  28058. * @param {DOMElement|DOMTextNode} node
  28059. * @return {?DOMElement|DOMTextNode}
  28060. */
  28061. function getSiblingNode(node) {
  28062. while (node) {
  28063. if (node.nextSibling) {
  28064. return node.nextSibling;
  28065. }
  28066. node = node.parentNode;
  28067. }
  28068. }
  28069. /**
  28070. * Get object describing the nodes which contain characters at offset.
  28071. *
  28072. * @param {DOMElement|DOMTextNode} root
  28073. * @param {number} offset
  28074. * @return {?object}
  28075. */
  28076. function getNodeForCharacterOffset(root, offset) {
  28077. var node = getLeafNode(root);
  28078. var nodeStart = 0;
  28079. var nodeEnd = 0;
  28080. while (node) {
  28081. if (node.nodeType === TEXT_NODE) {
  28082. nodeEnd = nodeStart + node.textContent.length;
  28083. if (nodeStart <= offset && nodeEnd >= offset) {
  28084. return {
  28085. node: node,
  28086. offset: offset - nodeStart
  28087. };
  28088. }
  28089. nodeStart = nodeEnd;
  28090. }
  28091. node = getLeafNode(getSiblingNode(node));
  28092. }
  28093. }
  28094. /**
  28095. * @param {DOMElement} outerNode
  28096. * @return {?object}
  28097. */
  28098. function getOffsets(outerNode) {
  28099. var ownerDocument = outerNode.ownerDocument;
  28100. var win = ownerDocument && ownerDocument.defaultView || window;
  28101. var selection = win.getSelection && win.getSelection();
  28102. if (!selection || selection.rangeCount === 0) {
  28103. return null;
  28104. }
  28105. var anchorNode = selection.anchorNode,
  28106. anchorOffset = selection.anchorOffset,
  28107. focusNode = selection.focusNode,
  28108. focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  28109. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  28110. // expose properties, triggering a "Permission denied error" if any of its
  28111. // properties are accessed. The only seemingly possible way to avoid erroring
  28112. // is to access a property that typically works for non-anonymous divs and
  28113. // catch any error that may otherwise arise. See
  28114. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  28115. try {
  28116. /* eslint-disable no-unused-expressions */
  28117. anchorNode.nodeType;
  28118. focusNode.nodeType;
  28119. /* eslint-enable no-unused-expressions */
  28120. } catch (e) {
  28121. return null;
  28122. }
  28123. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  28124. }
  28125. /**
  28126. * Returns {start, end} where `start` is the character/codepoint index of
  28127. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  28128. * `end` is the index of (focusNode, focusOffset).
  28129. *
  28130. * Returns null if you pass in garbage input but we should probably just crash.
  28131. *
  28132. * Exported only for testing.
  28133. */
  28134. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  28135. var length = 0;
  28136. var start = -1;
  28137. var end = -1;
  28138. var indexWithinAnchor = 0;
  28139. var indexWithinFocus = 0;
  28140. var node = outerNode;
  28141. var parentNode = null;
  28142. outer: while (true) {
  28143. var next = null;
  28144. while (true) {
  28145. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  28146. start = length + anchorOffset;
  28147. }
  28148. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  28149. end = length + focusOffset;
  28150. }
  28151. if (node.nodeType === TEXT_NODE) {
  28152. length += node.nodeValue.length;
  28153. }
  28154. if ((next = node.firstChild) === null) {
  28155. break;
  28156. } // Moving from `node` to its first child `next`.
  28157. parentNode = node;
  28158. node = next;
  28159. }
  28160. while (true) {
  28161. if (node === outerNode) {
  28162. // If `outerNode` has children, this is always the second time visiting
  28163. // it. If it has no children, this is still the first loop, and the only
  28164. // valid selection is anchorNode and focusNode both equal to this node
  28165. // and both offsets 0, in which case we will have handled above.
  28166. break outer;
  28167. }
  28168. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  28169. start = length;
  28170. }
  28171. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  28172. end = length;
  28173. }
  28174. if ((next = node.nextSibling) !== null) {
  28175. break;
  28176. }
  28177. node = parentNode;
  28178. parentNode = node.parentNode;
  28179. } // Moving from `node` to its next sibling `next`.
  28180. node = next;
  28181. }
  28182. if (start === -1 || end === -1) {
  28183. // This should never happen. (Would happen if the anchor/focus nodes aren't
  28184. // actually inside the passed-in node.)
  28185. return null;
  28186. }
  28187. return {
  28188. start: start,
  28189. end: end
  28190. };
  28191. }
  28192. /**
  28193. * In modern non-IE browsers, we can support both forward and backward
  28194. * selections.
  28195. *
  28196. * Note: IE10+ supports the Selection object, but it does not support
  28197. * the `extend` method, which means that even in modern IE, it's not possible
  28198. * to programmatically create a backward selection. Thus, for all IE
  28199. * versions, we use the old IE API to create our selections.
  28200. *
  28201. * @param {DOMElement|DOMTextNode} node
  28202. * @param {object} offsets
  28203. */
  28204. function setOffsets(node, offsets) {
  28205. var doc = node.ownerDocument || document;
  28206. var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios.
  28207. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  28208. // fails when pasting 100+ items)
  28209. if (!win.getSelection) {
  28210. return;
  28211. }
  28212. var selection = win.getSelection();
  28213. var length = node.textContent.length;
  28214. var start = Math.min(offsets.start, length);
  28215. var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.
  28216. // Flip backward selections, so we can set with a single range.
  28217. if (!selection.extend && start > end) {
  28218. var temp = end;
  28219. end = start;
  28220. start = temp;
  28221. }
  28222. var startMarker = getNodeForCharacterOffset(node, start);
  28223. var endMarker = getNodeForCharacterOffset(node, end);
  28224. if (startMarker && endMarker) {
  28225. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  28226. return;
  28227. }
  28228. var range = doc.createRange();
  28229. range.setStart(startMarker.node, startMarker.offset);
  28230. selection.removeAllRanges();
  28231. if (start > end) {
  28232. selection.addRange(range);
  28233. selection.extend(endMarker.node, endMarker.offset);
  28234. } else {
  28235. range.setEnd(endMarker.node, endMarker.offset);
  28236. selection.addRange(range);
  28237. }
  28238. }
  28239. }
  28240. function isTextNode(node) {
  28241. return node && node.nodeType === TEXT_NODE;
  28242. }
  28243. function containsNode(outerNode, innerNode) {
  28244. if (!outerNode || !innerNode) {
  28245. return false;
  28246. } else if (outerNode === innerNode) {
  28247. return true;
  28248. } else if (isTextNode(outerNode)) {
  28249. return false;
  28250. } else if (isTextNode(innerNode)) {
  28251. return containsNode(outerNode, innerNode.parentNode);
  28252. } else if ('contains' in outerNode) {
  28253. return outerNode.contains(innerNode);
  28254. } else if (outerNode.compareDocumentPosition) {
  28255. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  28256. } else {
  28257. return false;
  28258. }
  28259. }
  28260. function isInDocument(node) {
  28261. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  28262. }
  28263. function isSameOriginFrame(iframe) {
  28264. try {
  28265. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  28266. // to throw, e.g. if it has a cross-origin src attribute.
  28267. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
  28268. // iframe.contentDocument.defaultView;
  28269. // A safety way is to access one of the cross origin properties: Window or Location
  28270. // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
  28271. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
  28272. return typeof iframe.contentWindow.location.href === 'string';
  28273. } catch (err) {
  28274. return false;
  28275. }
  28276. }
  28277. function getActiveElementDeep() {
  28278. var win = window;
  28279. var element = getActiveElement();
  28280. while (element instanceof win.HTMLIFrameElement) {
  28281. if (isSameOriginFrame(element)) {
  28282. win = element.contentWindow;
  28283. } else {
  28284. return element;
  28285. }
  28286. element = getActiveElement(win.document);
  28287. }
  28288. return element;
  28289. }
  28290. /**
  28291. * @ReactInputSelection: React input selection module. Based on Selection.js,
  28292. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  28293. * assume buttons have range selections allowed).
  28294. * Input selection module for React.
  28295. */
  28296. /**
  28297. * @hasSelectionCapabilities: we get the element types that support selection
  28298. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  28299. * and `selectionEnd` rows.
  28300. */
  28301. function hasSelectionCapabilities(elem) {
  28302. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  28303. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  28304. }
  28305. function getSelectionInformation() {
  28306. var focusedElem = getActiveElementDeep();
  28307. return {
  28308. // Used by Flare
  28309. activeElementDetached: null,
  28310. focusedElem: focusedElem,
  28311. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
  28312. };
  28313. }
  28314. /**
  28315. * @restoreSelection: If any selection information was potentially lost,
  28316. * restore it. This is useful when performing operations that could remove dom
  28317. * nodes and place them back in, resulting in focus being lost.
  28318. */
  28319. function restoreSelection(priorSelectionInformation) {
  28320. var curFocusedElem = getActiveElementDeep();
  28321. var priorFocusedElem = priorSelectionInformation.focusedElem;
  28322. var priorSelectionRange = priorSelectionInformation.selectionRange;
  28323. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  28324. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  28325. setSelection(priorFocusedElem, priorSelectionRange);
  28326. } // Focusing a node can change the scroll position, which is undesirable
  28327. var ancestors = [];
  28328. var ancestor = priorFocusedElem;
  28329. while (ancestor = ancestor.parentNode) {
  28330. if (ancestor.nodeType === ELEMENT_NODE) {
  28331. ancestors.push({
  28332. element: ancestor,
  28333. left: ancestor.scrollLeft,
  28334. top: ancestor.scrollTop
  28335. });
  28336. }
  28337. }
  28338. if (typeof priorFocusedElem.focus === 'function') {
  28339. priorFocusedElem.focus();
  28340. }
  28341. for (var i = 0; i < ancestors.length; i++) {
  28342. var info = ancestors[i];
  28343. info.element.scrollLeft = info.left;
  28344. info.element.scrollTop = info.top;
  28345. }
  28346. }
  28347. }
  28348. /**
  28349. * @getSelection: Gets the selection bounds of a focused textarea, input or
  28350. * contentEditable node.
  28351. * -@input: Look up selection bounds of this input
  28352. * -@return {start: selectionStart, end: selectionEnd}
  28353. */
  28354. function getSelection(input) {
  28355. var selection;
  28356. if ('selectionStart' in input) {
  28357. // Modern browser with input or textarea.
  28358. selection = {
  28359. start: input.selectionStart,
  28360. end: input.selectionEnd
  28361. };
  28362. } else {
  28363. // Content editable or old IE textarea.
  28364. selection = getOffsets(input);
  28365. }
  28366. return selection || {
  28367. start: 0,
  28368. end: 0
  28369. };
  28370. }
  28371. /**
  28372. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  28373. * the input.
  28374. * -@input Set selection bounds of this input or textarea
  28375. * -@offsets Object of same form that is returned from get*
  28376. */
  28377. function setSelection(input, offsets) {
  28378. var start = offsets.start,
  28379. end = offsets.end;
  28380. if (end === undefined) {
  28381. end = start;
  28382. }
  28383. if ('selectionStart' in input) {
  28384. input.selectionStart = start;
  28385. input.selectionEnd = Math.min(end, input.value.length);
  28386. } else {
  28387. setOffsets(input, offsets);
  28388. }
  28389. }
  28390. var validateDOMNesting = function () {};
  28391. var updatedAncestorInfo = function () {};
  28392. {
  28393. // This validation code was written based on the HTML5 parsing spec:
  28394. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  28395. //
  28396. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  28397. // not clear what practical benefit doing so provides); instead, we warn only
  28398. // for cases where the parser will give a parse tree differing from what React
  28399. // intended. For example, <b><div></div></b> is invalid but we don't warn
  28400. // because it still parses correctly; we do warn for other cases like nested
  28401. // <p> tags where the beginning of the second element implicitly closes the
  28402. // first, causing a confusing mess.
  28403. // https://html.spec.whatwg.org/multipage/syntax.html#special
  28404. 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']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  28405. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  28406. // TODO: Distinguish by namespace here -- for <title>, including it here
  28407. // errs on the side of fewer warnings
  28408. 'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  28409. var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  28410. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  28411. var emptyAncestorInfo = {
  28412. current: null,
  28413. formTag: null,
  28414. aTagInScope: null,
  28415. buttonTagInScope: null,
  28416. nobrTagInScope: null,
  28417. pTagInButtonScope: null,
  28418. listItemTagAutoclosing: null,
  28419. dlItemTagAutoclosing: null
  28420. };
  28421. updatedAncestorInfo = function (oldInfo, tag) {
  28422. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  28423. var info = {
  28424. tag: tag
  28425. };
  28426. if (inScopeTags.indexOf(tag) !== -1) {
  28427. ancestorInfo.aTagInScope = null;
  28428. ancestorInfo.buttonTagInScope = null;
  28429. ancestorInfo.nobrTagInScope = null;
  28430. }
  28431. if (buttonScopeTags.indexOf(tag) !== -1) {
  28432. ancestorInfo.pTagInButtonScope = null;
  28433. } // See rules for 'li', 'dd', 'dt' start tags in
  28434. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  28435. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  28436. ancestorInfo.listItemTagAutoclosing = null;
  28437. ancestorInfo.dlItemTagAutoclosing = null;
  28438. }
  28439. ancestorInfo.current = info;
  28440. if (tag === 'form') {
  28441. ancestorInfo.formTag = info;
  28442. }
  28443. if (tag === 'a') {
  28444. ancestorInfo.aTagInScope = info;
  28445. }
  28446. if (tag === 'button') {
  28447. ancestorInfo.buttonTagInScope = info;
  28448. }
  28449. if (tag === 'nobr') {
  28450. ancestorInfo.nobrTagInScope = info;
  28451. }
  28452. if (tag === 'p') {
  28453. ancestorInfo.pTagInButtonScope = info;
  28454. }
  28455. if (tag === 'li') {
  28456. ancestorInfo.listItemTagAutoclosing = info;
  28457. }
  28458. if (tag === 'dd' || tag === 'dt') {
  28459. ancestorInfo.dlItemTagAutoclosing = info;
  28460. }
  28461. return ancestorInfo;
  28462. };
  28463. /**
  28464. * Returns whether
  28465. */
  28466. var isTagValidWithParent = function (tag, parentTag) {
  28467. // First, let's check if we're in an unusual parsing mode...
  28468. switch (parentTag) {
  28469. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  28470. case 'select':
  28471. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  28472. case 'optgroup':
  28473. return tag === 'option' || tag === '#text';
  28474. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  28475. // but
  28476. case 'option':
  28477. return tag === '#text';
  28478. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  28479. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  28480. // No special behavior since these rules fall back to "in body" mode for
  28481. // all except special table nodes which cause bad parsing behavior anyway.
  28482. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  28483. case 'tr':
  28484. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  28485. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  28486. case 'tbody':
  28487. case 'thead':
  28488. case 'tfoot':
  28489. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  28490. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  28491. case 'colgroup':
  28492. return tag === 'col' || tag === 'template';
  28493. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  28494. case 'table':
  28495. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  28496. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  28497. case 'head':
  28498. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  28499. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  28500. case 'html':
  28501. return tag === 'head' || tag === 'body' || tag === 'frameset';
  28502. case 'frameset':
  28503. return tag === 'frame';
  28504. case '#document':
  28505. return tag === 'html';
  28506. } // Probably in the "in body" parsing mode, so we outlaw only tag combos
  28507. // where the parsing rules cause implicit opens or closes to be added.
  28508. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  28509. switch (tag) {
  28510. case 'h1':
  28511. case 'h2':
  28512. case 'h3':
  28513. case 'h4':
  28514. case 'h5':
  28515. case 'h6':
  28516. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  28517. case 'rp':
  28518. case 'rt':
  28519. return impliedEndTags.indexOf(parentTag) === -1;
  28520. case 'body':
  28521. case 'caption':
  28522. case 'col':
  28523. case 'colgroup':
  28524. case 'frameset':
  28525. case 'frame':
  28526. case 'head':
  28527. case 'html':
  28528. case 'tbody':
  28529. case 'td':
  28530. case 'tfoot':
  28531. case 'th':
  28532. case 'thead':
  28533. case 'tr':
  28534. // These tags are only valid with a few parents that have special child
  28535. // parsing rules -- if we're down here, then none of those matched and
  28536. // so we allow it only if we don't know what the parent is, as all other
  28537. // cases are invalid.
  28538. return parentTag == null;
  28539. }
  28540. return true;
  28541. };
  28542. /**
  28543. * Returns whether
  28544. */
  28545. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  28546. switch (tag) {
  28547. case 'address':
  28548. case 'article':
  28549. case 'aside':
  28550. case 'blockquote':
  28551. case 'center':
  28552. case 'details':
  28553. case 'dialog':
  28554. case 'dir':
  28555. case 'div':
  28556. case 'dl':
  28557. case 'fieldset':
  28558. case 'figcaption':
  28559. case 'figure':
  28560. case 'footer':
  28561. case 'header':
  28562. case 'hgroup':
  28563. case 'main':
  28564. case 'menu':
  28565. case 'nav':
  28566. case 'ol':
  28567. case 'p':
  28568. case 'section':
  28569. case 'summary':
  28570. case 'ul':
  28571. case 'pre':
  28572. case 'listing':
  28573. case 'table':
  28574. case 'hr':
  28575. case 'xmp':
  28576. case 'h1':
  28577. case 'h2':
  28578. case 'h3':
  28579. case 'h4':
  28580. case 'h5':
  28581. case 'h6':
  28582. return ancestorInfo.pTagInButtonScope;
  28583. case 'form':
  28584. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  28585. case 'li':
  28586. return ancestorInfo.listItemTagAutoclosing;
  28587. case 'dd':
  28588. case 'dt':
  28589. return ancestorInfo.dlItemTagAutoclosing;
  28590. case 'button':
  28591. return ancestorInfo.buttonTagInScope;
  28592. case 'a':
  28593. // Spec says something about storing a list of markers, but it sounds
  28594. // equivalent to this check.
  28595. return ancestorInfo.aTagInScope;
  28596. case 'nobr':
  28597. return ancestorInfo.nobrTagInScope;
  28598. }
  28599. return null;
  28600. };
  28601. var didWarn$1 = {};
  28602. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  28603. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  28604. var parentInfo = ancestorInfo.current;
  28605. var parentTag = parentInfo && parentInfo.tag;
  28606. if (childText != null) {
  28607. if (childTag != null) {
  28608. error('validateDOMNesting: when childText is passed, childTag should be null');
  28609. }
  28610. childTag = '#text';
  28611. }
  28612. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  28613. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  28614. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  28615. if (!invalidParentOrAncestor) {
  28616. return;
  28617. }
  28618. var ancestorTag = invalidParentOrAncestor.tag;
  28619. var addendum = getCurrentFiberStackInDev();
  28620. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  28621. if (didWarn$1[warnKey]) {
  28622. return;
  28623. }
  28624. didWarn$1[warnKey] = true;
  28625. var tagDisplayName = childTag;
  28626. var whitespaceInfo = '';
  28627. if (childTag === '#text') {
  28628. if (/\S/.test(childText)) {
  28629. tagDisplayName = 'Text nodes';
  28630. } else {
  28631. tagDisplayName = 'Whitespace text nodes';
  28632. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  28633. }
  28634. } else {
  28635. tagDisplayName = '<' + childTag + '>';
  28636. }
  28637. if (invalidParent) {
  28638. var info = '';
  28639. if (ancestorTag === 'table' && childTag === 'tr') {
  28640. info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
  28641. }
  28642. error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
  28643. } else {
  28644. error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
  28645. }
  28646. };
  28647. }
  28648. var SUPPRESS_HYDRATION_WARNING$1;
  28649. {
  28650. SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  28651. }
  28652. var SUSPENSE_START_DATA = '$';
  28653. var SUSPENSE_END_DATA = '/$';
  28654. var SUSPENSE_PENDING_START_DATA = '$?';
  28655. var SUSPENSE_FALLBACK_START_DATA = '$!';
  28656. var STYLE$1 = 'style';
  28657. var eventsEnabled = null;
  28658. var selectionInformation = null;
  28659. function shouldAutoFocusHostComponent(type, props) {
  28660. switch (type) {
  28661. case 'button':
  28662. case 'input':
  28663. case 'select':
  28664. case 'textarea':
  28665. return !!props.autoFocus;
  28666. }
  28667. return false;
  28668. }
  28669. function getRootHostContext(rootContainerInstance) {
  28670. var type;
  28671. var namespace;
  28672. var nodeType = rootContainerInstance.nodeType;
  28673. switch (nodeType) {
  28674. case DOCUMENT_NODE:
  28675. case DOCUMENT_FRAGMENT_NODE:
  28676. {
  28677. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  28678. var root = rootContainerInstance.documentElement;
  28679. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  28680. break;
  28681. }
  28682. default:
  28683. {
  28684. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  28685. var ownNamespace = container.namespaceURI || null;
  28686. type = container.tagName;
  28687. namespace = getChildNamespace(ownNamespace, type);
  28688. break;
  28689. }
  28690. }
  28691. {
  28692. var validatedTag = type.toLowerCase();
  28693. var ancestorInfo = updatedAncestorInfo(null, validatedTag);
  28694. return {
  28695. namespace: namespace,
  28696. ancestorInfo: ancestorInfo
  28697. };
  28698. }
  28699. }
  28700. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  28701. {
  28702. var parentHostContextDev = parentHostContext;
  28703. var namespace = getChildNamespace(parentHostContextDev.namespace, type);
  28704. var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  28705. return {
  28706. namespace: namespace,
  28707. ancestorInfo: ancestorInfo
  28708. };
  28709. }
  28710. }
  28711. function getPublicInstance(instance) {
  28712. return instance;
  28713. }
  28714. function prepareForCommit(containerInfo) {
  28715. eventsEnabled = isEnabled();
  28716. selectionInformation = getSelectionInformation();
  28717. setEnabled(false);
  28718. }
  28719. function resetAfterCommit(containerInfo) {
  28720. restoreSelection(selectionInformation);
  28721. setEnabled(eventsEnabled);
  28722. eventsEnabled = null;
  28723. selectionInformation = null;
  28724. }
  28725. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  28726. var parentNamespace;
  28727. {
  28728. // TODO: take namespace into account when validating.
  28729. var hostContextDev = hostContext;
  28730. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  28731. if (typeof props.children === 'string' || typeof props.children === 'number') {
  28732. var string = '' + props.children;
  28733. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  28734. validateDOMNesting(null, string, ownAncestorInfo);
  28735. }
  28736. parentNamespace = hostContextDev.namespace;
  28737. }
  28738. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  28739. precacheFiberNode(internalInstanceHandle, domElement);
  28740. updateFiberProps(domElement, props);
  28741. return domElement;
  28742. }
  28743. function appendInitialChild(parentInstance, child) {
  28744. parentInstance.appendChild(child);
  28745. }
  28746. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  28747. setInitialProperties(domElement, type, props, rootContainerInstance);
  28748. return shouldAutoFocusHostComponent(type, props);
  28749. }
  28750. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  28751. {
  28752. var hostContextDev = hostContext;
  28753. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  28754. var string = '' + newProps.children;
  28755. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  28756. validateDOMNesting(null, string, ownAncestorInfo);
  28757. }
  28758. }
  28759. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  28760. }
  28761. function shouldSetTextContent(type, props) {
  28762. 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;
  28763. }
  28764. function shouldDeprioritizeSubtree(type, props) {
  28765. return !!props.hidden;
  28766. }
  28767. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  28768. {
  28769. var hostContextDev = hostContext;
  28770. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  28771. }
  28772. var textNode = createTextNode(text, rootContainerInstance);
  28773. precacheFiberNode(internalInstanceHandle, textNode);
  28774. return textNode;
  28775. }
  28776. // if a component just imports ReactDOM (e.g. for findDOMNode).
  28777. // Some environments might not have setTimeout or clearTimeout.
  28778. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  28779. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  28780. var noTimeout = -1; // -------------------
  28781. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  28782. // Despite the naming that might imply otherwise, this method only
  28783. // fires if there is an `Update` effect scheduled during mounting.
  28784. // This happens if `finalizeInitialChildren` returns `true` (which it
  28785. // does to implement the `autoFocus` attribute on the client). But
  28786. // there are also other cases when this might happen (such as patching
  28787. // up text content during hydration mismatch). So we'll check this again.
  28788. if (shouldAutoFocusHostComponent(type, newProps)) {
  28789. domElement.focus();
  28790. }
  28791. }
  28792. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  28793. // Update the props handle so that we know which props are the ones with
  28794. // with current event handlers.
  28795. updateFiberProps(domElement, newProps); // Apply the diff to the DOM node.
  28796. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  28797. }
  28798. function resetTextContent(domElement) {
  28799. setTextContent(domElement, '');
  28800. }
  28801. function commitTextUpdate(textInstance, oldText, newText) {
  28802. textInstance.nodeValue = newText;
  28803. }
  28804. function appendChild(parentInstance, child) {
  28805. parentInstance.appendChild(child);
  28806. }
  28807. function appendChildToContainer(container, child) {
  28808. var parentNode;
  28809. if (container.nodeType === COMMENT_NODE) {
  28810. parentNode = container.parentNode;
  28811. parentNode.insertBefore(child, container);
  28812. } else {
  28813. parentNode = container;
  28814. parentNode.appendChild(child);
  28815. } // This container might be used for a portal.
  28816. // If something inside a portal is clicked, that click should bubble
  28817. // through the React tree. However, on Mobile Safari the click would
  28818. // never bubble through the *DOM* tree unless an ancestor with onclick
  28819. // event exists. So we wouldn't see it and dispatch it.
  28820. // This is why we ensure that non React root containers have inline onclick
  28821. // defined.
  28822. // https://github.com/facebook/react/issues/11918
  28823. var reactRootContainer = container._reactRootContainer;
  28824. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  28825. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  28826. trapClickOnNonInteractiveElement(parentNode);
  28827. }
  28828. }
  28829. function insertBefore(parentInstance, child, beforeChild) {
  28830. parentInstance.insertBefore(child, beforeChild);
  28831. }
  28832. function insertInContainerBefore(container, child, beforeChild) {
  28833. if (container.nodeType === COMMENT_NODE) {
  28834. container.parentNode.insertBefore(child, beforeChild);
  28835. } else {
  28836. container.insertBefore(child, beforeChild);
  28837. }
  28838. }
  28839. function removeChild(parentInstance, child) {
  28840. parentInstance.removeChild(child);
  28841. }
  28842. function removeChildFromContainer(container, child) {
  28843. if (container.nodeType === COMMENT_NODE) {
  28844. container.parentNode.removeChild(child);
  28845. } else {
  28846. container.removeChild(child);
  28847. }
  28848. }
  28849. function hideInstance(instance) {
  28850. // pass host context to this method?
  28851. instance = instance;
  28852. var style = instance.style;
  28853. if (typeof style.setProperty === 'function') {
  28854. style.setProperty('display', 'none', 'important');
  28855. } else {
  28856. style.display = 'none';
  28857. }
  28858. }
  28859. function hideTextInstance(textInstance) {
  28860. textInstance.nodeValue = '';
  28861. }
  28862. function unhideInstance(instance, props) {
  28863. instance = instance;
  28864. var styleProp = props[STYLE$1];
  28865. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  28866. instance.style.display = dangerousStyleValue('display', display);
  28867. }
  28868. function unhideTextInstance(textInstance, text) {
  28869. textInstance.nodeValue = text;
  28870. } // -------------------
  28871. function canHydrateInstance(instance, type, props) {
  28872. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  28873. return null;
  28874. } // This has now been refined to an element node.
  28875. return instance;
  28876. }
  28877. function canHydrateTextInstance(instance, text) {
  28878. if (text === '' || instance.nodeType !== TEXT_NODE) {
  28879. // Empty strings are not parsed by HTML so there won't be a correct match here.
  28880. return null;
  28881. } // This has now been refined to a text node.
  28882. return instance;
  28883. }
  28884. function isSuspenseInstancePending(instance) {
  28885. return instance.data === SUSPENSE_PENDING_START_DATA;
  28886. }
  28887. function isSuspenseInstanceFallback(instance) {
  28888. return instance.data === SUSPENSE_FALLBACK_START_DATA;
  28889. }
  28890. function getNextHydratable(node) {
  28891. // Skip non-hydratable nodes.
  28892. for (; node != null; node = node.nextSibling) {
  28893. var nodeType = node.nodeType;
  28894. if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
  28895. break;
  28896. }
  28897. }
  28898. return node;
  28899. }
  28900. function getNextHydratableSibling(instance) {
  28901. return getNextHydratable(instance.nextSibling);
  28902. }
  28903. function getFirstHydratableChild(parentInstance) {
  28904. return getNextHydratable(parentInstance.firstChild);
  28905. }
  28906. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  28907. precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
  28908. // get attached.
  28909. updateFiberProps(instance, props);
  28910. var parentNamespace;
  28911. {
  28912. var hostContextDev = hostContext;
  28913. parentNamespace = hostContextDev.namespace;
  28914. }
  28915. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  28916. }
  28917. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  28918. precacheFiberNode(internalInstanceHandle, textInstance);
  28919. return diffHydratedText(textInstance, text);
  28920. }
  28921. function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  28922. var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
  28923. // There might be nested nodes so we need to keep track of how
  28924. // deep we are and only break out when we're back on top.
  28925. var depth = 0;
  28926. while (node) {
  28927. if (node.nodeType === COMMENT_NODE) {
  28928. var data = node.data;
  28929. if (data === SUSPENSE_END_DATA) {
  28930. if (depth === 0) {
  28931. return getNextHydratableSibling(node);
  28932. } else {
  28933. depth--;
  28934. }
  28935. } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
  28936. depth++;
  28937. }
  28938. }
  28939. node = node.nextSibling;
  28940. } // TODO: Warn, we didn't find the end comment boundary.
  28941. return null;
  28942. } // Returns the SuspenseInstance if this node is a direct child of a
  28943. // SuspenseInstance. I.e. if its previous sibling is a Comment with
  28944. // SUSPENSE_x_START_DATA. Otherwise, null.
  28945. function getParentSuspenseInstance(targetInstance) {
  28946. var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
  28947. // There might be nested nodes so we need to keep track of how
  28948. // deep we are and only break out when we're back on top.
  28949. var depth = 0;
  28950. while (node) {
  28951. if (node.nodeType === COMMENT_NODE) {
  28952. var data = node.data;
  28953. if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
  28954. if (depth === 0) {
  28955. return node;
  28956. } else {
  28957. depth--;
  28958. }
  28959. } else if (data === SUSPENSE_END_DATA) {
  28960. depth++;
  28961. }
  28962. }
  28963. node = node.previousSibling;
  28964. }
  28965. return null;
  28966. }
  28967. function commitHydratedContainer(container) {
  28968. // Retry if any event replaying was blocked on this.
  28969. retryIfBlockedOn(container);
  28970. }
  28971. function commitHydratedSuspenseInstance(suspenseInstance) {
  28972. // Retry if any event replaying was blocked on this.
  28973. retryIfBlockedOn(suspenseInstance);
  28974. }
  28975. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  28976. {
  28977. warnForUnmatchedText(textInstance, text);
  28978. }
  28979. }
  28980. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  28981. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  28982. warnForUnmatchedText(textInstance, text);
  28983. }
  28984. }
  28985. function didNotHydrateContainerInstance(parentContainer, instance) {
  28986. {
  28987. if (instance.nodeType === ELEMENT_NODE) {
  28988. warnForDeletedHydratableElement(parentContainer, instance);
  28989. } else if (instance.nodeType === COMMENT_NODE) ; else {
  28990. warnForDeletedHydratableText(parentContainer, instance);
  28991. }
  28992. }
  28993. }
  28994. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  28995. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  28996. if (instance.nodeType === ELEMENT_NODE) {
  28997. warnForDeletedHydratableElement(parentInstance, instance);
  28998. } else if (instance.nodeType === COMMENT_NODE) ; else {
  28999. warnForDeletedHydratableText(parentInstance, instance);
  29000. }
  29001. }
  29002. }
  29003. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  29004. {
  29005. warnForInsertedHydratedElement(parentContainer, type);
  29006. }
  29007. }
  29008. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  29009. {
  29010. warnForInsertedHydratedText(parentContainer, text);
  29011. }
  29012. }
  29013. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  29014. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  29015. warnForInsertedHydratedElement(parentInstance, type);
  29016. }
  29017. }
  29018. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  29019. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  29020. warnForInsertedHydratedText(parentInstance, text);
  29021. }
  29022. }
  29023. function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  29024. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) ;
  29025. }
  29026. var randomKey = Math.random().toString(36).slice(2);
  29027. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  29028. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  29029. var internalContainerInstanceKey = '__reactContainere$' + randomKey;
  29030. function precacheFiberNode(hostInst, node) {
  29031. node[internalInstanceKey] = hostInst;
  29032. }
  29033. function markContainerAsRoot(hostRoot, node) {
  29034. node[internalContainerInstanceKey] = hostRoot;
  29035. }
  29036. function unmarkContainerAsRoot(node) {
  29037. node[internalContainerInstanceKey] = null;
  29038. }
  29039. function isContainerMarkedAsRoot(node) {
  29040. return !!node[internalContainerInstanceKey];
  29041. } // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
  29042. // If the target node is part of a hydrated or not yet rendered subtree, then
  29043. // this may also return a SuspenseComponent or HostRoot to indicate that.
  29044. // Conceptually the HostRoot fiber is a child of the Container node. So if you
  29045. // pass the Container node as the targetNode, you will not actually get the
  29046. // HostRoot back. To get to the HostRoot, you need to pass a child of it.
  29047. // The same thing applies to Suspense boundaries.
  29048. function getClosestInstanceFromNode(targetNode) {
  29049. var targetInst = targetNode[internalInstanceKey];
  29050. if (targetInst) {
  29051. // Don't return HostRoot or SuspenseComponent here.
  29052. return targetInst;
  29053. } // If the direct event target isn't a React owned DOM node, we need to look
  29054. // to see if one of its parents is a React owned DOM node.
  29055. var parentNode = targetNode.parentNode;
  29056. while (parentNode) {
  29057. // We'll check if this is a container root that could include
  29058. // React nodes in the future. We need to check this first because
  29059. // if we're a child of a dehydrated container, we need to first
  29060. // find that inner container before moving on to finding the parent
  29061. // instance. Note that we don't check this field on the targetNode
  29062. // itself because the fibers are conceptually between the container
  29063. // node and the first child. It isn't surrounding the container node.
  29064. // If it's not a container, we check if it's an instance.
  29065. targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];
  29066. if (targetInst) {
  29067. // Since this wasn't the direct target of the event, we might have
  29068. // stepped past dehydrated DOM nodes to get here. However they could
  29069. // also have been non-React nodes. We need to answer which one.
  29070. // If we the instance doesn't have any children, then there can't be
  29071. // a nested suspense boundary within it. So we can use this as a fast
  29072. // bailout. Most of the time, when people add non-React children to
  29073. // the tree, it is using a ref to a child-less DOM node.
  29074. // Normally we'd only need to check one of the fibers because if it
  29075. // has ever gone from having children to deleting them or vice versa
  29076. // it would have deleted the dehydrated boundary nested inside already.
  29077. // However, since the HostRoot starts out with an alternate it might
  29078. // have one on the alternate so we need to check in case this was a
  29079. // root.
  29080. var alternate = targetInst.alternate;
  29081. if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
  29082. // Next we need to figure out if the node that skipped past is
  29083. // nested within a dehydrated boundary and if so, which one.
  29084. var suspenseInstance = getParentSuspenseInstance(targetNode);
  29085. while (suspenseInstance !== null) {
  29086. // We found a suspense instance. That means that we haven't
  29087. // hydrated it yet. Even though we leave the comments in the
  29088. // DOM after hydrating, and there are boundaries in the DOM
  29089. // that could already be hydrated, we wouldn't have found them
  29090. // through this pass since if the target is hydrated it would
  29091. // have had an internalInstanceKey on it.
  29092. // Let's get the fiber associated with the SuspenseComponent
  29093. // as the deepest instance.
  29094. var targetSuspenseInst = suspenseInstance[internalInstanceKey];
  29095. if (targetSuspenseInst) {
  29096. return targetSuspenseInst;
  29097. } // If we don't find a Fiber on the comment, it might be because
  29098. // we haven't gotten to hydrate it yet. There might still be a
  29099. // parent boundary that hasn't above this one so we need to find
  29100. // the outer most that is known.
  29101. suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
  29102. // host component also hasn't hydrated yet. We can return it
  29103. // below since it will bail out on the isMounted check later.
  29104. }
  29105. }
  29106. return targetInst;
  29107. }
  29108. targetNode = parentNode;
  29109. parentNode = targetNode.parentNode;
  29110. }
  29111. return null;
  29112. }
  29113. /**
  29114. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  29115. * instance, or null if the node was not rendered by this React.
  29116. */
  29117. function getInstanceFromNode$1(node) {
  29118. var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];
  29119. if (inst) {
  29120. if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
  29121. return inst;
  29122. } else {
  29123. return null;
  29124. }
  29125. }
  29126. return null;
  29127. }
  29128. /**
  29129. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  29130. * DOM node.
  29131. */
  29132. function getNodeFromInstance$1(inst) {
  29133. if (inst.tag === HostComponent || inst.tag === HostText) {
  29134. // In Fiber this, is just the state node right now. We assume it will be
  29135. // a host component or host text.
  29136. return inst.stateNode;
  29137. } // Without this first invariant, passing a non-DOM-component triggers the next
  29138. // invariant for a missing parent, which is super confusing.
  29139. {
  29140. {
  29141. throw Error( "getNodeFromInstance: Invalid argument." );
  29142. }
  29143. }
  29144. }
  29145. function getFiberCurrentPropsFromNode$1(node) {
  29146. return node[internalEventHandlersKey] || null;
  29147. }
  29148. function updateFiberProps(node, props) {
  29149. node[internalEventHandlersKey] = props;
  29150. }
  29151. function getParent(inst) {
  29152. do {
  29153. inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.
  29154. // That is depending on if we want nested subtrees (layers) to bubble
  29155. // events to their parent. We could also go through parentNode on the
  29156. // host node but that wouldn't work for React Native and doesn't let us
  29157. // do the portal feature.
  29158. } while (inst && inst.tag !== HostComponent);
  29159. if (inst) {
  29160. return inst;
  29161. }
  29162. return null;
  29163. }
  29164. /**
  29165. * Return the lowest common ancestor of A and B, or null if they are in
  29166. * different trees.
  29167. */
  29168. function getLowestCommonAncestor(instA, instB) {
  29169. var depthA = 0;
  29170. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  29171. depthA++;
  29172. }
  29173. var depthB = 0;
  29174. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  29175. depthB++;
  29176. } // If A is deeper, crawl up.
  29177. while (depthA - depthB > 0) {
  29178. instA = getParent(instA);
  29179. depthA--;
  29180. } // If B is deeper, crawl up.
  29181. while (depthB - depthA > 0) {
  29182. instB = getParent(instB);
  29183. depthB--;
  29184. } // Walk in lockstep until we find a match.
  29185. var depth = depthA;
  29186. while (depth--) {
  29187. if (instA === instB || instA === instB.alternate) {
  29188. return instA;
  29189. }
  29190. instA = getParent(instA);
  29191. instB = getParent(instB);
  29192. }
  29193. return null;
  29194. }
  29195. /**
  29196. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  29197. */
  29198. function traverseTwoPhase(inst, fn, arg) {
  29199. var path = [];
  29200. while (inst) {
  29201. path.push(inst);
  29202. inst = getParent(inst);
  29203. }
  29204. var i;
  29205. for (i = path.length; i-- > 0;) {
  29206. fn(path[i], 'captured', arg);
  29207. }
  29208. for (i = 0; i < path.length; i++) {
  29209. fn(path[i], 'bubbled', arg);
  29210. }
  29211. }
  29212. /**
  29213. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  29214. * should would receive a `mouseEnter` or `mouseLeave` event.
  29215. *
  29216. * Does not invoke the callback on the nearest common ancestor because nothing
  29217. * "entered" or "left" that element.
  29218. */
  29219. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  29220. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  29221. var pathFrom = [];
  29222. while (true) {
  29223. if (!from) {
  29224. break;
  29225. }
  29226. if (from === common) {
  29227. break;
  29228. }
  29229. var alternate = from.alternate;
  29230. if (alternate !== null && alternate === common) {
  29231. break;
  29232. }
  29233. pathFrom.push(from);
  29234. from = getParent(from);
  29235. }
  29236. var pathTo = [];
  29237. while (true) {
  29238. if (!to) {
  29239. break;
  29240. }
  29241. if (to === common) {
  29242. break;
  29243. }
  29244. var _alternate = to.alternate;
  29245. if (_alternate !== null && _alternate === common) {
  29246. break;
  29247. }
  29248. pathTo.push(to);
  29249. to = getParent(to);
  29250. }
  29251. for (var i = 0; i < pathFrom.length; i++) {
  29252. fn(pathFrom[i], 'bubbled', argFrom);
  29253. }
  29254. for (var _i = pathTo.length; _i-- > 0;) {
  29255. fn(pathTo[_i], 'captured', argTo);
  29256. }
  29257. }
  29258. function isInteractive(tag) {
  29259. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  29260. }
  29261. function shouldPreventMouseEvent(name, type, props) {
  29262. switch (name) {
  29263. case 'onClick':
  29264. case 'onClickCapture':
  29265. case 'onDoubleClick':
  29266. case 'onDoubleClickCapture':
  29267. case 'onMouseDown':
  29268. case 'onMouseDownCapture':
  29269. case 'onMouseMove':
  29270. case 'onMouseMoveCapture':
  29271. case 'onMouseUp':
  29272. case 'onMouseUpCapture':
  29273. case 'onMouseEnter':
  29274. return !!(props.disabled && isInteractive(type));
  29275. default:
  29276. return false;
  29277. }
  29278. }
  29279. /**
  29280. * @param {object} inst The instance, which is the source of events.
  29281. * @param {string} registrationName Name of listener (e.g. `onClick`).
  29282. * @return {?function} The stored callback.
  29283. */
  29284. function getListener(inst, registrationName) {
  29285. var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  29286. // live here; needs to be moved to a better place soon
  29287. var stateNode = inst.stateNode;
  29288. if (!stateNode) {
  29289. // Work in progress (ex: onload events in incremental mode).
  29290. return null;
  29291. }
  29292. var props = getFiberCurrentPropsFromNode(stateNode);
  29293. if (!props) {
  29294. // Work in progress.
  29295. return null;
  29296. }
  29297. listener = props[registrationName];
  29298. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  29299. return null;
  29300. }
  29301. if (!(!listener || typeof listener === 'function')) {
  29302. {
  29303. throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." );
  29304. }
  29305. }
  29306. return listener;
  29307. }
  29308. /**
  29309. * Some event types have a notion of different registration names for different
  29310. * "phases" of propagation. This finds listeners by a given phase.
  29311. */
  29312. function listenerAtPhase(inst, event, propagationPhase) {
  29313. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  29314. return getListener(inst, registrationName);
  29315. }
  29316. /**
  29317. * A small set of propagation patterns, each of which will accept a small amount
  29318. * of information, and generate a set of "dispatch ready event objects" - which
  29319. * are sets of events that have already been annotated with a set of dispatched
  29320. * listener functions/ids. The API is designed this way to discourage these
  29321. * propagation strategies from actually executing the dispatches, since we
  29322. * always want to collect the entire set of dispatches before executing even a
  29323. * single one.
  29324. */
  29325. /**
  29326. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  29327. * here, allows us to not have to bind or create functions for each event.
  29328. * Mutating the event's members allows us to not have to create a wrapping
  29329. * "dispatch" object that pairs the event with the listener.
  29330. */
  29331. function accumulateDirectionalDispatches(inst, phase, event) {
  29332. {
  29333. if (!inst) {
  29334. error('Dispatching inst must not be null');
  29335. }
  29336. }
  29337. var listener = listenerAtPhase(inst, event, phase);
  29338. if (listener) {
  29339. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  29340. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  29341. }
  29342. }
  29343. /**
  29344. * Collect dispatches (must be entirely collected before dispatching - see unit
  29345. * tests). Lazily allocate the array to conserve memory. We must loop through
  29346. * each event and perform the traversal for each one. We cannot perform a
  29347. * single traversal for the entire collection of events because each event may
  29348. * have a different target.
  29349. */
  29350. function accumulateTwoPhaseDispatchesSingle(event) {
  29351. if (event && event.dispatchConfig.phasedRegistrationNames) {
  29352. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  29353. }
  29354. }
  29355. /**
  29356. * Accumulates without regard to direction, does not look for phased
  29357. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  29358. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  29359. */
  29360. function accumulateDispatches(inst, ignoredDirection, event) {
  29361. if (inst && event && event.dispatchConfig.registrationName) {
  29362. var registrationName = event.dispatchConfig.registrationName;
  29363. var listener = getListener(inst, registrationName);
  29364. if (listener) {
  29365. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  29366. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  29367. }
  29368. }
  29369. }
  29370. /**
  29371. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  29372. * `dispatchMarker`.
  29373. * @param {SyntheticEvent} event
  29374. */
  29375. function accumulateDirectDispatchesSingle(event) {
  29376. if (event && event.dispatchConfig.registrationName) {
  29377. accumulateDispatches(event._targetInst, null, event);
  29378. }
  29379. }
  29380. function accumulateTwoPhaseDispatches(events) {
  29381. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  29382. }
  29383. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  29384. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  29385. }
  29386. function accumulateDirectDispatches(events) {
  29387. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  29388. }
  29389. /**
  29390. * These variables store information about text content of a target node,
  29391. * allowing comparison of content before and after a given event.
  29392. *
  29393. * Identify the node where selection currently begins, then observe
  29394. * both its text content and its current position in the DOM. Since the
  29395. * browser may natively replace the target node during composition, we can
  29396. * use its position to find its replacement.
  29397. *
  29398. *
  29399. */
  29400. var root = null;
  29401. var startText = null;
  29402. var fallbackText = null;
  29403. function initialize(nativeEventTarget) {
  29404. root = nativeEventTarget;
  29405. startText = getText();
  29406. return true;
  29407. }
  29408. function reset() {
  29409. root = null;
  29410. startText = null;
  29411. fallbackText = null;
  29412. }
  29413. function getData() {
  29414. if (fallbackText) {
  29415. return fallbackText;
  29416. }
  29417. var start;
  29418. var startValue = startText;
  29419. var startLength = startValue.length;
  29420. var end;
  29421. var endValue = getText();
  29422. var endLength = endValue.length;
  29423. for (start = 0; start < startLength; start++) {
  29424. if (startValue[start] !== endValue[start]) {
  29425. break;
  29426. }
  29427. }
  29428. var minEnd = startLength - start;
  29429. for (end = 1; end <= minEnd; end++) {
  29430. if (startValue[startLength - end] !== endValue[endLength - end]) {
  29431. break;
  29432. }
  29433. }
  29434. var sliceTail = end > 1 ? 1 - end : undefined;
  29435. fallbackText = endValue.slice(start, sliceTail);
  29436. return fallbackText;
  29437. }
  29438. function getText() {
  29439. if ('value' in root) {
  29440. return root.value;
  29441. }
  29442. return root.textContent;
  29443. }
  29444. var EVENT_POOL_SIZE = 10;
  29445. /**
  29446. * @interface Event
  29447. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  29448. */
  29449. var EventInterface = {
  29450. type: null,
  29451. target: null,
  29452. // currentTarget is set when dispatching; no use in copying it here
  29453. currentTarget: function () {
  29454. return null;
  29455. },
  29456. eventPhase: null,
  29457. bubbles: null,
  29458. cancelable: null,
  29459. timeStamp: function (event) {
  29460. return event.timeStamp || Date.now();
  29461. },
  29462. defaultPrevented: null,
  29463. isTrusted: null
  29464. };
  29465. function functionThatReturnsTrue() {
  29466. return true;
  29467. }
  29468. function functionThatReturnsFalse() {
  29469. return false;
  29470. }
  29471. /**
  29472. * Synthetic events are dispatched by event plugins, typically in response to a
  29473. * top-level event delegation handler.
  29474. *
  29475. * These systems should generally use pooling to reduce the frequency of garbage
  29476. * collection. The system should check `isPersistent` to determine whether the
  29477. * event should be released into the pool after being dispatched. Users that
  29478. * need a persisted event should invoke `persist`.
  29479. *
  29480. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  29481. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  29482. * DOM interface; custom application-specific events can also subclass this.
  29483. *
  29484. * @param {object} dispatchConfig Configuration used to dispatch this event.
  29485. * @param {*} targetInst Marker identifying the event target.
  29486. * @param {object} nativeEvent Native browser event.
  29487. * @param {DOMEventTarget} nativeEventTarget Target node.
  29488. */
  29489. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  29490. {
  29491. // these have a getter/setter for warnings
  29492. delete this.nativeEvent;
  29493. delete this.preventDefault;
  29494. delete this.stopPropagation;
  29495. delete this.isDefaultPrevented;
  29496. delete this.isPropagationStopped;
  29497. }
  29498. this.dispatchConfig = dispatchConfig;
  29499. this._targetInst = targetInst;
  29500. this.nativeEvent = nativeEvent;
  29501. var Interface = this.constructor.Interface;
  29502. for (var propName in Interface) {
  29503. if (!Interface.hasOwnProperty(propName)) {
  29504. continue;
  29505. }
  29506. {
  29507. delete this[propName]; // this has a getter/setter for warnings
  29508. }
  29509. var normalize = Interface[propName];
  29510. if (normalize) {
  29511. this[propName] = normalize(nativeEvent);
  29512. } else {
  29513. if (propName === 'target') {
  29514. this.target = nativeEventTarget;
  29515. } else {
  29516. this[propName] = nativeEvent[propName];
  29517. }
  29518. }
  29519. }
  29520. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  29521. if (defaultPrevented) {
  29522. this.isDefaultPrevented = functionThatReturnsTrue;
  29523. } else {
  29524. this.isDefaultPrevented = functionThatReturnsFalse;
  29525. }
  29526. this.isPropagationStopped = functionThatReturnsFalse;
  29527. return this;
  29528. }
  29529. _assign(SyntheticEvent.prototype, {
  29530. preventDefault: function () {
  29531. this.defaultPrevented = true;
  29532. var event = this.nativeEvent;
  29533. if (!event) {
  29534. return;
  29535. }
  29536. if (event.preventDefault) {
  29537. event.preventDefault();
  29538. } else if (typeof event.returnValue !== 'unknown') {
  29539. event.returnValue = false;
  29540. }
  29541. this.isDefaultPrevented = functionThatReturnsTrue;
  29542. },
  29543. stopPropagation: function () {
  29544. var event = this.nativeEvent;
  29545. if (!event) {
  29546. return;
  29547. }
  29548. if (event.stopPropagation) {
  29549. event.stopPropagation();
  29550. } else if (typeof event.cancelBubble !== 'unknown') {
  29551. // The ChangeEventPlugin registers a "propertychange" event for
  29552. // IE. This event does not support bubbling or cancelling, and
  29553. // any references to cancelBubble throw "Member not found". A
  29554. // typeof check of "unknown" circumvents this issue (and is also
  29555. // IE specific).
  29556. event.cancelBubble = true;
  29557. }
  29558. this.isPropagationStopped = functionThatReturnsTrue;
  29559. },
  29560. /**
  29561. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  29562. * them back into the pool. This allows a way to hold onto a reference that
  29563. * won't be added back into the pool.
  29564. */
  29565. persist: function () {
  29566. this.isPersistent = functionThatReturnsTrue;
  29567. },
  29568. /**
  29569. * Checks if this event should be released back into the pool.
  29570. *
  29571. * @return {boolean} True if this should not be released, false otherwise.
  29572. */
  29573. isPersistent: functionThatReturnsFalse,
  29574. /**
  29575. * `PooledClass` looks for `destructor` on each instance it releases.
  29576. */
  29577. destructor: function () {
  29578. var Interface = this.constructor.Interface;
  29579. for (var propName in Interface) {
  29580. {
  29581. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  29582. }
  29583. }
  29584. this.dispatchConfig = null;
  29585. this._targetInst = null;
  29586. this.nativeEvent = null;
  29587. this.isDefaultPrevented = functionThatReturnsFalse;
  29588. this.isPropagationStopped = functionThatReturnsFalse;
  29589. this._dispatchListeners = null;
  29590. this._dispatchInstances = null;
  29591. {
  29592. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  29593. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  29594. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  29595. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  29596. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  29597. }
  29598. }
  29599. });
  29600. SyntheticEvent.Interface = EventInterface;
  29601. /**
  29602. * Helper to reduce boilerplate when creating subclasses.
  29603. */
  29604. SyntheticEvent.extend = function (Interface) {
  29605. var Super = this;
  29606. var E = function () {};
  29607. E.prototype = Super.prototype;
  29608. var prototype = new E();
  29609. function Class() {
  29610. return Super.apply(this, arguments);
  29611. }
  29612. _assign(prototype, Class.prototype);
  29613. Class.prototype = prototype;
  29614. Class.prototype.constructor = Class;
  29615. Class.Interface = _assign({}, Super.Interface, Interface);
  29616. Class.extend = Super.extend;
  29617. addEventPoolingTo(Class);
  29618. return Class;
  29619. };
  29620. addEventPoolingTo(SyntheticEvent);
  29621. /**
  29622. * Helper to nullify syntheticEvent instance properties when destructing
  29623. *
  29624. * @param {String} propName
  29625. * @param {?object} getVal
  29626. * @return {object} defineProperty object
  29627. */
  29628. function getPooledWarningPropertyDefinition(propName, getVal) {
  29629. var isFunction = typeof getVal === 'function';
  29630. return {
  29631. configurable: true,
  29632. set: set,
  29633. get: get
  29634. };
  29635. function set(val) {
  29636. var action = isFunction ? 'setting the method' : 'setting the property';
  29637. warn(action, 'This is effectively a no-op');
  29638. return val;
  29639. }
  29640. function get() {
  29641. var action = isFunction ? 'accessing the method' : 'accessing the property';
  29642. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  29643. warn(action, result);
  29644. return getVal;
  29645. }
  29646. function warn(action, result) {
  29647. {
  29648. error("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);
  29649. }
  29650. }
  29651. }
  29652. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  29653. var EventConstructor = this;
  29654. if (EventConstructor.eventPool.length) {
  29655. var instance = EventConstructor.eventPool.pop();
  29656. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  29657. return instance;
  29658. }
  29659. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  29660. }
  29661. function releasePooledEvent(event) {
  29662. var EventConstructor = this;
  29663. if (!(event instanceof EventConstructor)) {
  29664. {
  29665. throw Error( "Trying to release an event instance into a pool of a different type." );
  29666. }
  29667. }
  29668. event.destructor();
  29669. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  29670. EventConstructor.eventPool.push(event);
  29671. }
  29672. }
  29673. function addEventPoolingTo(EventConstructor) {
  29674. EventConstructor.eventPool = [];
  29675. EventConstructor.getPooled = getPooledEvent;
  29676. EventConstructor.release = releasePooledEvent;
  29677. }
  29678. /**
  29679. * @interface Event
  29680. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  29681. */
  29682. var SyntheticCompositionEvent = SyntheticEvent.extend({
  29683. data: null
  29684. });
  29685. /**
  29686. * @interface Event
  29687. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  29688. * /#events-inputevents
  29689. */
  29690. var SyntheticInputEvent = SyntheticEvent.extend({
  29691. data: null
  29692. });
  29693. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  29694. var START_KEYCODE = 229;
  29695. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  29696. var documentMode = null;
  29697. if (canUseDOM && 'documentMode' in document) {
  29698. documentMode = document.documentMode;
  29699. } // Webkit offers a very useful `textInput` event that can be used to
  29700. // directly represent `beforeInput`. The IE `textinput` event is not as
  29701. // useful, so we don't use it.
  29702. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied
  29703. // by the native compositionend event may be incorrect. Japanese ideographic
  29704. // spaces, for instance (\u3000) are not recorded correctly.
  29705. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  29706. var SPACEBAR_CODE = 32;
  29707. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); // Events and their corresponding property names.
  29708. var eventTypes = {
  29709. beforeInput: {
  29710. phasedRegistrationNames: {
  29711. bubbled: 'onBeforeInput',
  29712. captured: 'onBeforeInputCapture'
  29713. },
  29714. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  29715. },
  29716. compositionEnd: {
  29717. phasedRegistrationNames: {
  29718. bubbled: 'onCompositionEnd',
  29719. captured: 'onCompositionEndCapture'
  29720. },
  29721. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  29722. },
  29723. compositionStart: {
  29724. phasedRegistrationNames: {
  29725. bubbled: 'onCompositionStart',
  29726. captured: 'onCompositionStartCapture'
  29727. },
  29728. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  29729. },
  29730. compositionUpdate: {
  29731. phasedRegistrationNames: {
  29732. bubbled: 'onCompositionUpdate',
  29733. captured: 'onCompositionUpdateCapture'
  29734. },
  29735. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  29736. }
  29737. }; // Track whether we've ever handled a keypress on the space key.
  29738. var hasSpaceKeypress = false;
  29739. /**
  29740. * Return whether a native keypress event is assumed to be a command.
  29741. * This is required because Firefox fires `keypress` events for key commands
  29742. * (cut, copy, select-all, etc.) even though no character is inserted.
  29743. */
  29744. function isKeypressCommand(nativeEvent) {
  29745. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  29746. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  29747. }
  29748. /**
  29749. * Translate native top level events into event types.
  29750. *
  29751. * @param {string} topLevelType
  29752. * @return {object}
  29753. */
  29754. function getCompositionEventType(topLevelType) {
  29755. switch (topLevelType) {
  29756. case TOP_COMPOSITION_START:
  29757. return eventTypes.compositionStart;
  29758. case TOP_COMPOSITION_END:
  29759. return eventTypes.compositionEnd;
  29760. case TOP_COMPOSITION_UPDATE:
  29761. return eventTypes.compositionUpdate;
  29762. }
  29763. }
  29764. /**
  29765. * Does our fallback best-guess model think this event signifies that
  29766. * composition has begun?
  29767. *
  29768. * @param {string} topLevelType
  29769. * @param {object} nativeEvent
  29770. * @return {boolean}
  29771. */
  29772. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  29773. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  29774. }
  29775. /**
  29776. * Does our fallback mode think that this event is the end of composition?
  29777. *
  29778. * @param {string} topLevelType
  29779. * @param {object} nativeEvent
  29780. * @return {boolean}
  29781. */
  29782. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  29783. switch (topLevelType) {
  29784. case TOP_KEY_UP:
  29785. // Command keys insert or clear IME input.
  29786. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  29787. case TOP_KEY_DOWN:
  29788. // Expect IME keyCode on each keydown. If we get any other
  29789. // code we must have exited earlier.
  29790. return nativeEvent.keyCode !== START_KEYCODE;
  29791. case TOP_KEY_PRESS:
  29792. case TOP_MOUSE_DOWN:
  29793. case TOP_BLUR:
  29794. // Events are not possible without cancelling IME.
  29795. return true;
  29796. default:
  29797. return false;
  29798. }
  29799. }
  29800. /**
  29801. * Google Input Tools provides composition data via a CustomEvent,
  29802. * with the `data` property populated in the `detail` object. If this
  29803. * is available on the event object, use it. If not, this is a plain
  29804. * composition event and we have nothing special to extract.
  29805. *
  29806. * @param {object} nativeEvent
  29807. * @return {?string}
  29808. */
  29809. function getDataFromCustomEvent(nativeEvent) {
  29810. var detail = nativeEvent.detail;
  29811. if (typeof detail === 'object' && 'data' in detail) {
  29812. return detail.data;
  29813. }
  29814. return null;
  29815. }
  29816. /**
  29817. * Check if a composition event was triggered by Korean IME.
  29818. * Our fallback mode does not work well with IE's Korean IME,
  29819. * so just use native composition events when Korean IME is used.
  29820. * Although CompositionEvent.locale property is deprecated,
  29821. * it is available in IE, where our fallback mode is enabled.
  29822. *
  29823. * @param {object} nativeEvent
  29824. * @return {boolean}
  29825. */
  29826. function isUsingKoreanIME(nativeEvent) {
  29827. return nativeEvent.locale === 'ko';
  29828. } // Track the current IME composition status, if any.
  29829. var isComposing = false;
  29830. /**
  29831. * @return {?object} A SyntheticCompositionEvent.
  29832. */
  29833. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  29834. var eventType;
  29835. var fallbackData;
  29836. if (canUseCompositionEvent) {
  29837. eventType = getCompositionEventType(topLevelType);
  29838. } else if (!isComposing) {
  29839. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  29840. eventType = eventTypes.compositionStart;
  29841. }
  29842. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  29843. eventType = eventTypes.compositionEnd;
  29844. }
  29845. if (!eventType) {
  29846. return null;
  29847. }
  29848. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  29849. // The current composition is stored statically and must not be
  29850. // overwritten while composition continues.
  29851. if (!isComposing && eventType === eventTypes.compositionStart) {
  29852. isComposing = initialize(nativeEventTarget);
  29853. } else if (eventType === eventTypes.compositionEnd) {
  29854. if (isComposing) {
  29855. fallbackData = getData();
  29856. }
  29857. }
  29858. }
  29859. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  29860. if (fallbackData) {
  29861. // Inject data generated from fallback path into the synthetic event.
  29862. // This matches the property of native CompositionEventInterface.
  29863. event.data = fallbackData;
  29864. } else {
  29865. var customData = getDataFromCustomEvent(nativeEvent);
  29866. if (customData !== null) {
  29867. event.data = customData;
  29868. }
  29869. }
  29870. accumulateTwoPhaseDispatches(event);
  29871. return event;
  29872. }
  29873. /**
  29874. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  29875. * @param {object} nativeEvent Native browser event.
  29876. * @return {?string} The string corresponding to this `beforeInput` event.
  29877. */
  29878. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  29879. switch (topLevelType) {
  29880. case TOP_COMPOSITION_END:
  29881. return getDataFromCustomEvent(nativeEvent);
  29882. case TOP_KEY_PRESS:
  29883. /**
  29884. * If native `textInput` events are available, our goal is to make
  29885. * use of them. However, there is a special case: the spacebar key.
  29886. * In Webkit, preventing default on a spacebar `textInput` event
  29887. * cancels character insertion, but it *also* causes the browser
  29888. * to fall back to its default spacebar behavior of scrolling the
  29889. * page.
  29890. *
  29891. * Tracking at:
  29892. * https://code.google.com/p/chromium/issues/detail?id=355103
  29893. *
  29894. * To avoid this issue, use the keypress event as if no `textInput`
  29895. * event is available.
  29896. */
  29897. var which = nativeEvent.which;
  29898. if (which !== SPACEBAR_CODE) {
  29899. return null;
  29900. }
  29901. hasSpaceKeypress = true;
  29902. return SPACEBAR_CHAR;
  29903. case TOP_TEXT_INPUT:
  29904. // Record the characters to be added to the DOM.
  29905. var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled
  29906. // it at the keypress level and bail immediately. Android Chrome
  29907. // doesn't give us keycodes, so we need to ignore it.
  29908. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  29909. return null;
  29910. }
  29911. return chars;
  29912. default:
  29913. // For other native event types, do nothing.
  29914. return null;
  29915. }
  29916. }
  29917. /**
  29918. * For browsers that do not provide the `textInput` event, extract the
  29919. * appropriate string to use for SyntheticInputEvent.
  29920. *
  29921. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  29922. * @param {object} nativeEvent Native browser event.
  29923. * @return {?string} The fallback string for this `beforeInput` event.
  29924. */
  29925. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  29926. // If we are currently composing (IME) and using a fallback to do so,
  29927. // try to extract the composed characters from the fallback object.
  29928. // If composition event is available, we extract a string only at
  29929. // compositionevent, otherwise extract it at fallback events.
  29930. if (isComposing) {
  29931. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  29932. var chars = getData();
  29933. reset();
  29934. isComposing = false;
  29935. return chars;
  29936. }
  29937. return null;
  29938. }
  29939. switch (topLevelType) {
  29940. case TOP_PASTE:
  29941. // If a paste event occurs after a keypress, throw out the input
  29942. // chars. Paste events should not lead to BeforeInput events.
  29943. return null;
  29944. case TOP_KEY_PRESS:
  29945. /**
  29946. * As of v27, Firefox may fire keypress events even when no character
  29947. * will be inserted. A few possibilities:
  29948. *
  29949. * - `which` is `0`. Arrow keys, Esc key, etc.
  29950. *
  29951. * - `which` is the pressed key code, but no char is available.
  29952. * Ex: 'AltGr + d` in Polish. There is no modified character for
  29953. * this key combination and no character is inserted into the
  29954. * document, but FF fires the keypress for char code `100` anyway.
  29955. * No `input` event will occur.
  29956. *
  29957. * - `which` is the pressed key code, but a command combination is
  29958. * being used. Ex: `Cmd+C`. No character is inserted, and no
  29959. * `input` event will occur.
  29960. */
  29961. if (!isKeypressCommand(nativeEvent)) {
  29962. // IE fires the `keypress` event when a user types an emoji via
  29963. // Touch keyboard of Windows. In such a case, the `char` property
  29964. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  29965. // is 2, the property `which` does not represent an emoji correctly.
  29966. // In such a case, we directly return the `char` property instead of
  29967. // using `which`.
  29968. if (nativeEvent.char && nativeEvent.char.length > 1) {
  29969. return nativeEvent.char;
  29970. } else if (nativeEvent.which) {
  29971. return String.fromCharCode(nativeEvent.which);
  29972. }
  29973. }
  29974. return null;
  29975. case TOP_COMPOSITION_END:
  29976. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  29977. default:
  29978. return null;
  29979. }
  29980. }
  29981. /**
  29982. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  29983. * `textInput` or fallback behavior.
  29984. *
  29985. * @return {?object} A SyntheticInputEvent.
  29986. */
  29987. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  29988. var chars;
  29989. if (canUseTextInputEvent) {
  29990. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  29991. } else {
  29992. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  29993. } // If no characters are being inserted, no BeforeInput event should
  29994. // be fired.
  29995. if (!chars) {
  29996. return null;
  29997. }
  29998. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  29999. event.data = chars;
  30000. accumulateTwoPhaseDispatches(event);
  30001. return event;
  30002. }
  30003. /**
  30004. * Create an `onBeforeInput` event to match
  30005. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  30006. *
  30007. * This event plugin is based on the native `textInput` event
  30008. * available in Chrome, Safari, Opera, and IE. This event fires after
  30009. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  30010. *
  30011. * `beforeInput` is spec'd but not implemented in any browsers, and
  30012. * the `input` event does not provide any useful information about what has
  30013. * actually been added, contrary to the spec. Thus, `textInput` is the best
  30014. * available event to identify the characters that have actually been inserted
  30015. * into the target node.
  30016. *
  30017. * This plugin is also responsible for emitting `composition` events, thus
  30018. * allowing us to share composition fallback code for both `beforeInput` and
  30019. * `composition` event types.
  30020. */
  30021. var BeforeInputEventPlugin = {
  30022. eventTypes: eventTypes,
  30023. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  30024. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  30025. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  30026. if (composition === null) {
  30027. return beforeInput;
  30028. }
  30029. if (beforeInput === null) {
  30030. return composition;
  30031. }
  30032. return [composition, beforeInput];
  30033. }
  30034. };
  30035. /**
  30036. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  30037. */
  30038. var supportedInputTypes = {
  30039. color: true,
  30040. date: true,
  30041. datetime: true,
  30042. 'datetime-local': true,
  30043. email: true,
  30044. month: true,
  30045. number: true,
  30046. password: true,
  30047. range: true,
  30048. search: true,
  30049. tel: true,
  30050. text: true,
  30051. time: true,
  30052. url: true,
  30053. week: true
  30054. };
  30055. function isTextInputElement(elem) {
  30056. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  30057. if (nodeName === 'input') {
  30058. return !!supportedInputTypes[elem.type];
  30059. }
  30060. if (nodeName === 'textarea') {
  30061. return true;
  30062. }
  30063. return false;
  30064. }
  30065. var eventTypes$1 = {
  30066. change: {
  30067. phasedRegistrationNames: {
  30068. bubbled: 'onChange',
  30069. captured: 'onChangeCapture'
  30070. },
  30071. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  30072. }
  30073. };
  30074. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  30075. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  30076. event.type = 'change'; // Flag this event loop as needing state restore.
  30077. enqueueStateRestore(target);
  30078. accumulateTwoPhaseDispatches(event);
  30079. return event;
  30080. }
  30081. /**
  30082. * For IE shims
  30083. */
  30084. var activeElement = null;
  30085. var activeElementInst = null;
  30086. /**
  30087. * SECTION: handle `change` event
  30088. */
  30089. function shouldUseChangeEvent(elem) {
  30090. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  30091. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  30092. }
  30093. function manualDispatchChangeEvent(nativeEvent) {
  30094. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the
  30095. // other events and have it go through ReactBrowserEventEmitter. Since it
  30096. // doesn't, we manually listen for the events and so we have to enqueue and
  30097. // process the abstract event manually.
  30098. //
  30099. // Batching is necessary here in order to ensure that all event handlers run
  30100. // before the next rerender (including event handlers attached to ancestor
  30101. // elements instead of directly on the input). Without this, controlled
  30102. // components don't work properly in conjunction with event bubbling because
  30103. // the component is rerendered and the value reverted before all the event
  30104. // handlers can run. See https://github.com/facebook/react/issues/708.
  30105. batchedUpdates(runEventInBatch, event);
  30106. }
  30107. function runEventInBatch(event) {
  30108. runEventsInBatch(event);
  30109. }
  30110. function getInstIfValueChanged(targetInst) {
  30111. var targetNode = getNodeFromInstance$1(targetInst);
  30112. if (updateValueIfChanged(targetNode)) {
  30113. return targetInst;
  30114. }
  30115. }
  30116. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  30117. if (topLevelType === TOP_CHANGE) {
  30118. return targetInst;
  30119. }
  30120. }
  30121. /**
  30122. * SECTION: handle `input` event
  30123. */
  30124. var isInputEventSupported = false;
  30125. if (canUseDOM) {
  30126. // IE9 claims to support the input event but fails to trigger it when
  30127. // deleting text, so we ignore its input events.
  30128. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  30129. }
  30130. /**
  30131. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  30132. * and override the value property so that we can distinguish user events from
  30133. * value changes in JS.
  30134. */
  30135. function startWatchingForValueChange(target, targetInst) {
  30136. activeElement = target;
  30137. activeElementInst = targetInst;
  30138. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  30139. }
  30140. /**
  30141. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  30142. * if any exists.
  30143. */
  30144. function stopWatchingForValueChange() {
  30145. if (!activeElement) {
  30146. return;
  30147. }
  30148. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  30149. activeElement = null;
  30150. activeElementInst = null;
  30151. }
  30152. /**
  30153. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  30154. * the value of the active element has changed.
  30155. */
  30156. function handlePropertyChange(nativeEvent) {
  30157. if (nativeEvent.propertyName !== 'value') {
  30158. return;
  30159. }
  30160. if (getInstIfValueChanged(activeElementInst)) {
  30161. manualDispatchChangeEvent(nativeEvent);
  30162. }
  30163. }
  30164. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  30165. if (topLevelType === TOP_FOCUS) {
  30166. // In IE9, propertychange fires for most input events but is buggy and
  30167. // doesn't fire when text is deleted, but conveniently, selectionchange
  30168. // appears to fire in all of the remaining cases so we catch those and
  30169. // forward the event if the value has changed
  30170. // In either case, we don't want to call the event handler if the value
  30171. // is changed from JS so we redefine a setter for `.value` that updates
  30172. // our activeElementValue variable, allowing us to ignore those changes
  30173. //
  30174. // stopWatching() should be a noop here but we call it just in case we
  30175. // missed a blur event somehow.
  30176. stopWatchingForValueChange();
  30177. startWatchingForValueChange(target, targetInst);
  30178. } else if (topLevelType === TOP_BLUR) {
  30179. stopWatchingForValueChange();
  30180. }
  30181. } // For IE8 and IE9.
  30182. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  30183. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  30184. // On the selectionchange event, the target is just document which isn't
  30185. // helpful for us so just check activeElement instead.
  30186. //
  30187. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  30188. // propertychange on the first input event after setting `value` from a
  30189. // script and fires only keydown, keypress, keyup. Catching keyup usually
  30190. // gets it and catching keydown lets us fire an event for the first
  30191. // keystroke if user does a key repeat (it'll be a little delayed: right
  30192. // before the second keystroke). Other input methods (e.g., paste) seem to
  30193. // fire selectionchange normally.
  30194. return getInstIfValueChanged(activeElementInst);
  30195. }
  30196. }
  30197. /**
  30198. * SECTION: handle `click` event
  30199. */
  30200. function shouldUseClickEvent(elem) {
  30201. // Use the `click` event to detect changes to checkbox and radio inputs.
  30202. // This approach works across all browsers, whereas `change` does not fire
  30203. // until `blur` in IE8.
  30204. var nodeName = elem.nodeName;
  30205. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  30206. }
  30207. function getTargetInstForClickEvent(topLevelType, targetInst) {
  30208. if (topLevelType === TOP_CLICK) {
  30209. return getInstIfValueChanged(targetInst);
  30210. }
  30211. }
  30212. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  30213. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  30214. return getInstIfValueChanged(targetInst);
  30215. }
  30216. }
  30217. function handleControlledInputBlur(node) {
  30218. var state = node._wrapperState;
  30219. if (!state || !state.controlled || node.type !== 'number') {
  30220. return;
  30221. }
  30222. {
  30223. // If controlled, assign the value attribute to the current value on blur
  30224. setDefaultValue(node, 'number', node.value);
  30225. }
  30226. }
  30227. /**
  30228. * This plugin creates an `onChange` event that normalizes change events
  30229. * across form elements. This event fires at a time when it's possible to
  30230. * change the element's value without seeing a flicker.
  30231. *
  30232. * Supported elements are:
  30233. * - input (see `isTextInputElement`)
  30234. * - textarea
  30235. * - select
  30236. */
  30237. var ChangeEventPlugin = {
  30238. eventTypes: eventTypes$1,
  30239. _isInputEventSupported: isInputEventSupported,
  30240. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  30241. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  30242. var getTargetInstFunc, handleEventFunc;
  30243. if (shouldUseChangeEvent(targetNode)) {
  30244. getTargetInstFunc = getTargetInstForChangeEvent;
  30245. } else if (isTextInputElement(targetNode)) {
  30246. if (isInputEventSupported) {
  30247. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  30248. } else {
  30249. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  30250. handleEventFunc = handleEventsForInputEventPolyfill;
  30251. }
  30252. } else if (shouldUseClickEvent(targetNode)) {
  30253. getTargetInstFunc = getTargetInstForClickEvent;
  30254. }
  30255. if (getTargetInstFunc) {
  30256. var inst = getTargetInstFunc(topLevelType, targetInst);
  30257. if (inst) {
  30258. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  30259. return event;
  30260. }
  30261. }
  30262. if (handleEventFunc) {
  30263. handleEventFunc(topLevelType, targetNode, targetInst);
  30264. } // When blurring, set the value attribute for number inputs
  30265. if (topLevelType === TOP_BLUR) {
  30266. handleControlledInputBlur(targetNode);
  30267. }
  30268. }
  30269. };
  30270. var SyntheticUIEvent = SyntheticEvent.extend({
  30271. view: null,
  30272. detail: null
  30273. });
  30274. /**
  30275. * Translation from modifier key to the associated property in the event.
  30276. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  30277. */
  30278. var modifierKeyToProp = {
  30279. Alt: 'altKey',
  30280. Control: 'ctrlKey',
  30281. Meta: 'metaKey',
  30282. Shift: 'shiftKey'
  30283. }; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  30284. // getModifierState. If getModifierState is not supported, we map it to a set of
  30285. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  30286. function modifierStateGetter(keyArg) {
  30287. var syntheticEvent = this;
  30288. var nativeEvent = syntheticEvent.nativeEvent;
  30289. if (nativeEvent.getModifierState) {
  30290. return nativeEvent.getModifierState(keyArg);
  30291. }
  30292. var keyProp = modifierKeyToProp[keyArg];
  30293. return keyProp ? !!nativeEvent[keyProp] : false;
  30294. }
  30295. function getEventModifierState(nativeEvent) {
  30296. return modifierStateGetter;
  30297. }
  30298. var previousScreenX = 0;
  30299. var previousScreenY = 0; // Use flags to signal movementX/Y has already been set
  30300. var isMovementXSet = false;
  30301. var isMovementYSet = false;
  30302. /**
  30303. * @interface MouseEvent
  30304. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  30305. */
  30306. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  30307. screenX: null,
  30308. screenY: null,
  30309. clientX: null,
  30310. clientY: null,
  30311. pageX: null,
  30312. pageY: null,
  30313. ctrlKey: null,
  30314. shiftKey: null,
  30315. altKey: null,
  30316. metaKey: null,
  30317. getModifierState: getEventModifierState,
  30318. button: null,
  30319. buttons: null,
  30320. relatedTarget: function (event) {
  30321. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  30322. },
  30323. movementX: function (event) {
  30324. if ('movementX' in event) {
  30325. return event.movementX;
  30326. }
  30327. var screenX = previousScreenX;
  30328. previousScreenX = event.screenX;
  30329. if (!isMovementXSet) {
  30330. isMovementXSet = true;
  30331. return 0;
  30332. }
  30333. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  30334. },
  30335. movementY: function (event) {
  30336. if ('movementY' in event) {
  30337. return event.movementY;
  30338. }
  30339. var screenY = previousScreenY;
  30340. previousScreenY = event.screenY;
  30341. if (!isMovementYSet) {
  30342. isMovementYSet = true;
  30343. return 0;
  30344. }
  30345. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  30346. }
  30347. });
  30348. /**
  30349. * @interface PointerEvent
  30350. * @see http://www.w3.org/TR/pointerevents/
  30351. */
  30352. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  30353. pointerId: null,
  30354. width: null,
  30355. height: null,
  30356. pressure: null,
  30357. tangentialPressure: null,
  30358. tiltX: null,
  30359. tiltY: null,
  30360. twist: null,
  30361. pointerType: null,
  30362. isPrimary: null
  30363. });
  30364. var eventTypes$2 = {
  30365. mouseEnter: {
  30366. registrationName: 'onMouseEnter',
  30367. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  30368. },
  30369. mouseLeave: {
  30370. registrationName: 'onMouseLeave',
  30371. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  30372. },
  30373. pointerEnter: {
  30374. registrationName: 'onPointerEnter',
  30375. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  30376. },
  30377. pointerLeave: {
  30378. registrationName: 'onPointerLeave',
  30379. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  30380. }
  30381. };
  30382. var EnterLeaveEventPlugin = {
  30383. eventTypes: eventTypes$2,
  30384. /**
  30385. * For almost every interaction we care about, there will be both a top-level
  30386. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  30387. * we do not extract duplicate events. However, moving the mouse into the
  30388. * browser from outside will not fire a `mouseout` event. In this case, we use
  30389. * the `mouseover` top-level event.
  30390. */
  30391. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  30392. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  30393. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  30394. if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0 && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  30395. // If this is an over event with a target, then we've already dispatched
  30396. // the event in the out event of the other target. If this is replayed,
  30397. // then it's because we couldn't dispatch against this target previously
  30398. // so we have to do it now instead.
  30399. return null;
  30400. }
  30401. if (!isOutEvent && !isOverEvent) {
  30402. // Must not be a mouse or pointer in or out - ignoring.
  30403. return null;
  30404. }
  30405. var win;
  30406. if (nativeEventTarget.window === nativeEventTarget) {
  30407. // `nativeEventTarget` is probably a window object.
  30408. win = nativeEventTarget;
  30409. } else {
  30410. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  30411. var doc = nativeEventTarget.ownerDocument;
  30412. if (doc) {
  30413. win = doc.defaultView || doc.parentWindow;
  30414. } else {
  30415. win = window;
  30416. }
  30417. }
  30418. var from;
  30419. var to;
  30420. if (isOutEvent) {
  30421. from = targetInst;
  30422. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  30423. to = related ? getClosestInstanceFromNode(related) : null;
  30424. if (to !== null) {
  30425. var nearestMounted = getNearestMountedFiber(to);
  30426. if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
  30427. to = null;
  30428. }
  30429. }
  30430. } else {
  30431. // Moving to a node from outside the window.
  30432. from = null;
  30433. to = targetInst;
  30434. }
  30435. if (from === to) {
  30436. // Nothing pertains to our managed components.
  30437. return null;
  30438. }
  30439. var eventInterface, leaveEventType, enterEventType, eventTypePrefix;
  30440. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  30441. eventInterface = SyntheticMouseEvent;
  30442. leaveEventType = eventTypes$2.mouseLeave;
  30443. enterEventType = eventTypes$2.mouseEnter;
  30444. eventTypePrefix = 'mouse';
  30445. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  30446. eventInterface = SyntheticPointerEvent;
  30447. leaveEventType = eventTypes$2.pointerLeave;
  30448. enterEventType = eventTypes$2.pointerEnter;
  30449. eventTypePrefix = 'pointer';
  30450. }
  30451. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  30452. var toNode = to == null ? win : getNodeFromInstance$1(to);
  30453. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  30454. leave.type = eventTypePrefix + 'leave';
  30455. leave.target = fromNode;
  30456. leave.relatedTarget = toNode;
  30457. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  30458. enter.type = eventTypePrefix + 'enter';
  30459. enter.target = toNode;
  30460. enter.relatedTarget = fromNode;
  30461. accumulateEnterLeaveDispatches(leave, enter, from, to); // If we are not processing the first ancestor, then we
  30462. // should not process the same nativeEvent again, as we
  30463. // will have already processed it in the first ancestor.
  30464. if ((eventSystemFlags & IS_FIRST_ANCESTOR) === 0) {
  30465. return [leave];
  30466. }
  30467. return [leave, enter];
  30468. }
  30469. };
  30470. /**
  30471. * inlined Object.is polyfill to avoid requiring consumers ship their own
  30472. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  30473. */
  30474. function is(x, y) {
  30475. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  30476. ;
  30477. }
  30478. var objectIs = typeof Object.is === 'function' ? Object.is : is;
  30479. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  30480. /**
  30481. * Performs equality by iterating through keys on an object and returning false
  30482. * when any key has values which are not strictly equal between the arguments.
  30483. * Returns true when the values of all keys are strictly equal.
  30484. */
  30485. function shallowEqual(objA, objB) {
  30486. if (objectIs(objA, objB)) {
  30487. return true;
  30488. }
  30489. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  30490. return false;
  30491. }
  30492. var keysA = Object.keys(objA);
  30493. var keysB = Object.keys(objB);
  30494. if (keysA.length !== keysB.length) {
  30495. return false;
  30496. } // Test for A's keys different from B.
  30497. for (var i = 0; i < keysA.length; i++) {
  30498. if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) {
  30499. return false;
  30500. }
  30501. }
  30502. return true;
  30503. }
  30504. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  30505. var eventTypes$3 = {
  30506. select: {
  30507. phasedRegistrationNames: {
  30508. bubbled: 'onSelect',
  30509. captured: 'onSelectCapture'
  30510. },
  30511. 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]
  30512. }
  30513. };
  30514. var activeElement$1 = null;
  30515. var activeElementInst$1 = null;
  30516. var lastSelection = null;
  30517. var mouseDown = false;
  30518. /**
  30519. * Get an object which is a unique representation of the current selection.
  30520. *
  30521. * The return value will not be consistent across nodes or browsers, but
  30522. * two identical selections on the same node will return identical objects.
  30523. *
  30524. * @param {DOMElement} node
  30525. * @return {object}
  30526. */
  30527. function getSelection$1(node) {
  30528. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  30529. return {
  30530. start: node.selectionStart,
  30531. end: node.selectionEnd
  30532. };
  30533. } else {
  30534. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  30535. var selection = win.getSelection();
  30536. return {
  30537. anchorNode: selection.anchorNode,
  30538. anchorOffset: selection.anchorOffset,
  30539. focusNode: selection.focusNode,
  30540. focusOffset: selection.focusOffset
  30541. };
  30542. }
  30543. }
  30544. /**
  30545. * Get document associated with the event target.
  30546. *
  30547. * @param {object} nativeEventTarget
  30548. * @return {Document}
  30549. */
  30550. function getEventTargetDocument(eventTarget) {
  30551. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  30552. }
  30553. /**
  30554. * Poll selection to see whether it's changed.
  30555. *
  30556. * @param {object} nativeEvent
  30557. * @param {object} nativeEventTarget
  30558. * @return {?SyntheticEvent}
  30559. */
  30560. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  30561. // Ensure we have the right element, and that the user is not dragging a
  30562. // selection (this matches native `select` event behavior). In HTML5, select
  30563. // fires only on input and textarea thus if there's no focused element we
  30564. // won't dispatch.
  30565. var doc = getEventTargetDocument(nativeEventTarget);
  30566. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  30567. return null;
  30568. } // Only fire when selection has actually changed.
  30569. var currentSelection = getSelection$1(activeElement$1);
  30570. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  30571. lastSelection = currentSelection;
  30572. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  30573. syntheticEvent.type = 'select';
  30574. syntheticEvent.target = activeElement$1;
  30575. accumulateTwoPhaseDispatches(syntheticEvent);
  30576. return syntheticEvent;
  30577. }
  30578. return null;
  30579. }
  30580. /**
  30581. * This plugin creates an `onSelect` event that normalizes select events
  30582. * across form elements.
  30583. *
  30584. * Supported elements are:
  30585. * - input (see `isTextInputElement`)
  30586. * - textarea
  30587. * - contentEditable
  30588. *
  30589. * This differs from native browser implementations in the following ways:
  30590. * - Fires on contentEditable fields as well as inputs.
  30591. * - Fires for collapsed selection.
  30592. * - Fires after user input.
  30593. */
  30594. var SelectEventPlugin = {
  30595. eventTypes: eventTypes$3,
  30596. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, container) {
  30597. var containerOrDoc = container || getEventTargetDocument(nativeEventTarget); // Track whether all listeners exists for this plugin. If none exist, we do
  30598. // not extract events. See #3639.
  30599. if (!containerOrDoc || !isListeningToAllDependencies('onSelect', containerOrDoc)) {
  30600. return null;
  30601. }
  30602. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  30603. switch (topLevelType) {
  30604. // Track the input node that has focus.
  30605. case TOP_FOCUS:
  30606. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  30607. activeElement$1 = targetNode;
  30608. activeElementInst$1 = targetInst;
  30609. lastSelection = null;
  30610. }
  30611. break;
  30612. case TOP_BLUR:
  30613. activeElement$1 = null;
  30614. activeElementInst$1 = null;
  30615. lastSelection = null;
  30616. break;
  30617. // Don't fire the event while the user is dragging. This matches the
  30618. // semantics of the native select event.
  30619. case TOP_MOUSE_DOWN:
  30620. mouseDown = true;
  30621. break;
  30622. case TOP_CONTEXT_MENU:
  30623. case TOP_MOUSE_UP:
  30624. case TOP_DRAG_END:
  30625. mouseDown = false;
  30626. return constructSelectEvent(nativeEvent, nativeEventTarget);
  30627. // Chrome and IE fire non-standard event when selection is changed (and
  30628. // sometimes when it hasn't). IE's event fires out of order with respect
  30629. // to key and input events on deletion, so we discard it.
  30630. //
  30631. // Firefox doesn't support selectionchange, so check selection status
  30632. // after each key entry. The selection changes after keydown and before
  30633. // keyup, but we check on keydown as well in the case of holding down a
  30634. // key, when multiple keydown events are fired but only one keyup is.
  30635. // This is also our approach for IE handling, for the reason above.
  30636. case TOP_SELECTION_CHANGE:
  30637. if (skipSelectionChangeEvent) {
  30638. break;
  30639. }
  30640. // falls through
  30641. case TOP_KEY_DOWN:
  30642. case TOP_KEY_UP:
  30643. return constructSelectEvent(nativeEvent, nativeEventTarget);
  30644. }
  30645. return null;
  30646. }
  30647. };
  30648. /**
  30649. * @interface Event
  30650. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  30651. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  30652. */
  30653. var SyntheticAnimationEvent = SyntheticEvent.extend({
  30654. animationName: null,
  30655. elapsedTime: null,
  30656. pseudoElement: null
  30657. });
  30658. /**
  30659. * @interface Event
  30660. * @see http://www.w3.org/TR/clipboard-apis/
  30661. */
  30662. var SyntheticClipboardEvent = SyntheticEvent.extend({
  30663. clipboardData: function (event) {
  30664. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  30665. }
  30666. });
  30667. /**
  30668. * @interface FocusEvent
  30669. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  30670. */
  30671. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  30672. relatedTarget: null
  30673. });
  30674. /**
  30675. * `charCode` represents the actual "character code" and is safe to use with
  30676. * `String.fromCharCode`. As such, only keys that correspond to printable
  30677. * characters produce a valid `charCode`, the only exception to this is Enter.
  30678. * The Tab-key is considered non-printable and does not have a `charCode`,
  30679. * presumably because it does not produce a tab-character in browsers.
  30680. *
  30681. * @param {object} nativeEvent Native browser event.
  30682. * @return {number} Normalized `charCode` property.
  30683. */
  30684. function getEventCharCode(nativeEvent) {
  30685. var charCode;
  30686. var keyCode = nativeEvent.keyCode;
  30687. if ('charCode' in nativeEvent) {
  30688. charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  30689. if (charCode === 0 && keyCode === 13) {
  30690. charCode = 13;
  30691. }
  30692. } else {
  30693. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  30694. charCode = keyCode;
  30695. } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  30696. // report Enter as charCode 10 when ctrl is pressed.
  30697. if (charCode === 10) {
  30698. charCode = 13;
  30699. } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  30700. // Must not discard the (non-)printable Enter-key.
  30701. if (charCode >= 32 || charCode === 13) {
  30702. return charCode;
  30703. }
  30704. return 0;
  30705. }
  30706. /**
  30707. * Normalization of deprecated HTML5 `key` values
  30708. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  30709. */
  30710. var normalizeKey = {
  30711. Esc: 'Escape',
  30712. Spacebar: ' ',
  30713. Left: 'ArrowLeft',
  30714. Up: 'ArrowUp',
  30715. Right: 'ArrowRight',
  30716. Down: 'ArrowDown',
  30717. Del: 'Delete',
  30718. Win: 'OS',
  30719. Menu: 'ContextMenu',
  30720. Apps: 'ContextMenu',
  30721. Scroll: 'ScrollLock',
  30722. MozPrintableKey: 'Unidentified'
  30723. };
  30724. /**
  30725. * Translation from legacy `keyCode` to HTML5 `key`
  30726. * Only special keys supported, all others depend on keyboard layout or browser
  30727. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  30728. */
  30729. var translateToKey = {
  30730. '8': 'Backspace',
  30731. '9': 'Tab',
  30732. '12': 'Clear',
  30733. '13': 'Enter',
  30734. '16': 'Shift',
  30735. '17': 'Control',
  30736. '18': 'Alt',
  30737. '19': 'Pause',
  30738. '20': 'CapsLock',
  30739. '27': 'Escape',
  30740. '32': ' ',
  30741. '33': 'PageUp',
  30742. '34': 'PageDown',
  30743. '35': 'End',
  30744. '36': 'Home',
  30745. '37': 'ArrowLeft',
  30746. '38': 'ArrowUp',
  30747. '39': 'ArrowRight',
  30748. '40': 'ArrowDown',
  30749. '45': 'Insert',
  30750. '46': 'Delete',
  30751. '112': 'F1',
  30752. '113': 'F2',
  30753. '114': 'F3',
  30754. '115': 'F4',
  30755. '116': 'F5',
  30756. '117': 'F6',
  30757. '118': 'F7',
  30758. '119': 'F8',
  30759. '120': 'F9',
  30760. '121': 'F10',
  30761. '122': 'F11',
  30762. '123': 'F12',
  30763. '144': 'NumLock',
  30764. '145': 'ScrollLock',
  30765. '224': 'Meta'
  30766. };
  30767. /**
  30768. * @param {object} nativeEvent Native browser event.
  30769. * @return {string} Normalized `key` property.
  30770. */
  30771. function getEventKey(nativeEvent) {
  30772. if (nativeEvent.key) {
  30773. // Normalize inconsistent values reported by browsers due to
  30774. // implementations of a working draft specification.
  30775. // FireFox implements `key` but returns `MozPrintableKey` for all
  30776. // printable characters (normalized to `Unidentified`), ignore it.
  30777. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  30778. if (key !== 'Unidentified') {
  30779. return key;
  30780. }
  30781. } // Browser does not implement `key`, polyfill as much of it as we can.
  30782. if (nativeEvent.type === 'keypress') {
  30783. var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can
  30784. // thus be captured by `keypress`, no other non-printable key should.
  30785. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  30786. }
  30787. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  30788. // While user keyboard layout determines the actual meaning of each
  30789. // `keyCode` value, almost all function keys have a universal value.
  30790. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  30791. }
  30792. return '';
  30793. }
  30794. /**
  30795. * @interface KeyboardEvent
  30796. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  30797. */
  30798. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  30799. key: getEventKey,
  30800. location: null,
  30801. ctrlKey: null,
  30802. shiftKey: null,
  30803. altKey: null,
  30804. metaKey: null,
  30805. repeat: null,
  30806. locale: null,
  30807. getModifierState: getEventModifierState,
  30808. // Legacy Interface
  30809. charCode: function (event) {
  30810. // `charCode` is the result of a KeyPress event and represents the value of
  30811. // the actual printable character.
  30812. // KeyPress is deprecated, but its replacement is not yet final and not
  30813. // implemented in any major browser. Only KeyPress has charCode.
  30814. if (event.type === 'keypress') {
  30815. return getEventCharCode(event);
  30816. }
  30817. return 0;
  30818. },
  30819. keyCode: function (event) {
  30820. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  30821. // physical keyboard key.
  30822. // The actual meaning of the value depends on the users' keyboard layout
  30823. // which cannot be detected. Assuming that it is a US keyboard layout
  30824. // provides a surprisingly accurate mapping for US and European users.
  30825. // Due to this, it is left to the user to implement at this time.
  30826. if (event.type === 'keydown' || event.type === 'keyup') {
  30827. return event.keyCode;
  30828. }
  30829. return 0;
  30830. },
  30831. which: function (event) {
  30832. // `which` is an alias for either `keyCode` or `charCode` depending on the
  30833. // type of the event.
  30834. if (event.type === 'keypress') {
  30835. return getEventCharCode(event);
  30836. }
  30837. if (event.type === 'keydown' || event.type === 'keyup') {
  30838. return event.keyCode;
  30839. }
  30840. return 0;
  30841. }
  30842. });
  30843. /**
  30844. * @interface DragEvent
  30845. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  30846. */
  30847. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  30848. dataTransfer: null
  30849. });
  30850. /**
  30851. * @interface TouchEvent
  30852. * @see http://www.w3.org/TR/touch-events/
  30853. */
  30854. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  30855. touches: null,
  30856. targetTouches: null,
  30857. changedTouches: null,
  30858. altKey: null,
  30859. metaKey: null,
  30860. ctrlKey: null,
  30861. shiftKey: null,
  30862. getModifierState: getEventModifierState
  30863. });
  30864. /**
  30865. * @interface Event
  30866. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  30867. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  30868. */
  30869. var SyntheticTransitionEvent = SyntheticEvent.extend({
  30870. propertyName: null,
  30871. elapsedTime: null,
  30872. pseudoElement: null
  30873. });
  30874. /**
  30875. * @interface WheelEvent
  30876. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  30877. */
  30878. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  30879. deltaX: function (event) {
  30880. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  30881. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  30882. },
  30883. deltaY: function (event) {
  30884. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  30885. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  30886. 'wheelDelta' in event ? -event.wheelDelta : 0;
  30887. },
  30888. deltaZ: null,
  30889. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  30890. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  30891. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  30892. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  30893. deltaMode: null
  30894. });
  30895. 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];
  30896. var SimpleEventPlugin = {
  30897. // simpleEventPluginEventTypes gets populated from
  30898. // the DOMEventProperties module.
  30899. eventTypes: simpleEventPluginEventTypes,
  30900. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  30901. var dispatchConfig = topLevelEventsToDispatchConfig.get(topLevelType);
  30902. if (!dispatchConfig) {
  30903. return null;
  30904. }
  30905. var EventConstructor;
  30906. switch (topLevelType) {
  30907. case TOP_KEY_PRESS:
  30908. // Firefox creates a keypress event for function keys too. This removes
  30909. // the unwanted keypress events. Enter is however both printable and
  30910. // non-printable. One would expect Tab to be as well (but it isn't).
  30911. if (getEventCharCode(nativeEvent) === 0) {
  30912. return null;
  30913. }
  30914. /* falls through */
  30915. case TOP_KEY_DOWN:
  30916. case TOP_KEY_UP:
  30917. EventConstructor = SyntheticKeyboardEvent;
  30918. break;
  30919. case TOP_BLUR:
  30920. case TOP_FOCUS:
  30921. EventConstructor = SyntheticFocusEvent;
  30922. break;
  30923. case TOP_CLICK:
  30924. // Firefox creates a click event on right mouse clicks. This removes the
  30925. // unwanted click events.
  30926. if (nativeEvent.button === 2) {
  30927. return null;
  30928. }
  30929. /* falls through */
  30930. case TOP_AUX_CLICK:
  30931. case TOP_DOUBLE_CLICK:
  30932. case TOP_MOUSE_DOWN:
  30933. case TOP_MOUSE_MOVE:
  30934. case TOP_MOUSE_UP: // TODO: Disabled elements should not respond to mouse events
  30935. /* falls through */
  30936. case TOP_MOUSE_OUT:
  30937. case TOP_MOUSE_OVER:
  30938. case TOP_CONTEXT_MENU:
  30939. EventConstructor = SyntheticMouseEvent;
  30940. break;
  30941. case TOP_DRAG:
  30942. case TOP_DRAG_END:
  30943. case TOP_DRAG_ENTER:
  30944. case TOP_DRAG_EXIT:
  30945. case TOP_DRAG_LEAVE:
  30946. case TOP_DRAG_OVER:
  30947. case TOP_DRAG_START:
  30948. case TOP_DROP:
  30949. EventConstructor = SyntheticDragEvent;
  30950. break;
  30951. case TOP_TOUCH_CANCEL:
  30952. case TOP_TOUCH_END:
  30953. case TOP_TOUCH_MOVE:
  30954. case TOP_TOUCH_START:
  30955. EventConstructor = SyntheticTouchEvent;
  30956. break;
  30957. case TOP_ANIMATION_END:
  30958. case TOP_ANIMATION_ITERATION:
  30959. case TOP_ANIMATION_START:
  30960. EventConstructor = SyntheticAnimationEvent;
  30961. break;
  30962. case TOP_TRANSITION_END:
  30963. EventConstructor = SyntheticTransitionEvent;
  30964. break;
  30965. case TOP_SCROLL:
  30966. EventConstructor = SyntheticUIEvent;
  30967. break;
  30968. case TOP_WHEEL:
  30969. EventConstructor = SyntheticWheelEvent;
  30970. break;
  30971. case TOP_COPY:
  30972. case TOP_CUT:
  30973. case TOP_PASTE:
  30974. EventConstructor = SyntheticClipboardEvent;
  30975. break;
  30976. case TOP_GOT_POINTER_CAPTURE:
  30977. case TOP_LOST_POINTER_CAPTURE:
  30978. case TOP_POINTER_CANCEL:
  30979. case TOP_POINTER_DOWN:
  30980. case TOP_POINTER_MOVE:
  30981. case TOP_POINTER_OUT:
  30982. case TOP_POINTER_OVER:
  30983. case TOP_POINTER_UP:
  30984. EventConstructor = SyntheticPointerEvent;
  30985. break;
  30986. default:
  30987. {
  30988. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  30989. error('SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  30990. }
  30991. } // HTML Events
  30992. // @see http://www.w3.org/TR/html5/index.html#events-0
  30993. EventConstructor = SyntheticEvent;
  30994. break;
  30995. }
  30996. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  30997. accumulateTwoPhaseDispatches(event);
  30998. return event;
  30999. }
  31000. };
  31001. /**
  31002. * Specifies a deterministic ordering of `EventPlugin`s. A convenient way to
  31003. * reason about plugins, without having to package every one of them. This
  31004. * is better than having plugins be ordered in the same order that they
  31005. * are injected because that ordering would be influenced by the packaging order.
  31006. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  31007. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  31008. */
  31009. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  31010. /**
  31011. * Inject modules for resolving DOM hierarchy and plugin ordering.
  31012. */
  31013. injectEventPluginOrder(DOMEventPluginOrder);
  31014. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  31015. /**
  31016. * Some important event plugins included by default (without having to require
  31017. * them).
  31018. */
  31019. injectEventPluginsByName({
  31020. SimpleEventPlugin: SimpleEventPlugin,
  31021. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  31022. ChangeEventPlugin: ChangeEventPlugin,
  31023. SelectEventPlugin: SelectEventPlugin,
  31024. BeforeInputEventPlugin: BeforeInputEventPlugin
  31025. });
  31026. // Prefix measurements so that it's possible to filter them.
  31027. // Longer prefixes are hard to read in DevTools.
  31028. var reactEmoji = "\u269B";
  31029. var warningEmoji = "\u26D4";
  31030. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function'; // Keep track of current fiber so that we know the path to unwind on pause.
  31031. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  31032. var currentFiber = null; // If we're in the middle of user code, which fiber and method is it?
  31033. // Reusing `currentFiber` would be confusing for this because user code fiber
  31034. // can change during commit phase too, but we don't need to unwind it (since
  31035. // lifecycles in the commit phase don't resemble a tree).
  31036. var currentPhase = null;
  31037. var currentPhaseFiber = null; // Did lifecycle hook schedule an update? This is often a performance problem,
  31038. // so we will keep track of it, and include it in the report.
  31039. // Track commits caused by cascading updates.
  31040. var isCommitting = false;
  31041. var hasScheduledUpdateInCurrentCommit = false;
  31042. var hasScheduledUpdateInCurrentPhase = false;
  31043. var commitCountInCurrentWorkLoop = 0;
  31044. var effectCountInCurrentCommit = 0;
  31045. // to avoid stretch the commit phase with measurement overhead.
  31046. var labelsInCurrentCommit = new Set();
  31047. var formatMarkName = function (markName) {
  31048. return reactEmoji + " " + markName;
  31049. };
  31050. var formatLabel = function (label, warning) {
  31051. var prefix = warning ? warningEmoji + " " : reactEmoji + " ";
  31052. var suffix = warning ? " Warning: " + warning : '';
  31053. return "" + prefix + label + suffix;
  31054. };
  31055. var beginMark = function (markName) {
  31056. performance.mark(formatMarkName(markName));
  31057. };
  31058. var clearMark = function (markName) {
  31059. performance.clearMarks(formatMarkName(markName));
  31060. };
  31061. var endMark = function (label, markName, warning) {
  31062. var formattedMarkName = formatMarkName(markName);
  31063. var formattedLabel = formatLabel(label, warning);
  31064. try {
  31065. performance.measure(formattedLabel, formattedMarkName);
  31066. } catch (err) {} // If previous mark was missing for some reason, this will throw.
  31067. // This could only happen if React crashed in an unexpected place earlier.
  31068. // Don't pile on with more errors.
  31069. // Clear marks immediately to avoid growing buffer.
  31070. performance.clearMarks(formattedMarkName);
  31071. performance.clearMeasures(formattedLabel);
  31072. };
  31073. var getFiberMarkName = function (label, debugID) {
  31074. return label + " (#" + debugID + ")";
  31075. };
  31076. var getFiberLabel = function (componentName, isMounted, phase) {
  31077. if (phase === null) {
  31078. // These are composite component total time measurements.
  31079. return componentName + " [" + (isMounted ? 'update' : 'mount') + "]";
  31080. } else {
  31081. // Composite component methods.
  31082. return componentName + "." + phase;
  31083. }
  31084. };
  31085. var beginFiberMark = function (fiber, phase) {
  31086. var componentName = getComponentName(fiber.type) || 'Unknown';
  31087. var debugID = fiber._debugID;
  31088. var isMounted = fiber.alternate !== null;
  31089. var label = getFiberLabel(componentName, isMounted, phase);
  31090. if (isCommitting && labelsInCurrentCommit.has(label)) {
  31091. // During the commit phase, we don't show duplicate labels because
  31092. // there is a fixed overhead for every measurement, and we don't
  31093. // want to stretch the commit phase beyond necessary.
  31094. return false;
  31095. }
  31096. labelsInCurrentCommit.add(label);
  31097. var markName = getFiberMarkName(label, debugID);
  31098. beginMark(markName);
  31099. return true;
  31100. };
  31101. var clearFiberMark = function (fiber, phase) {
  31102. var componentName = getComponentName(fiber.type) || 'Unknown';
  31103. var debugID = fiber._debugID;
  31104. var isMounted = fiber.alternate !== null;
  31105. var label = getFiberLabel(componentName, isMounted, phase);
  31106. var markName = getFiberMarkName(label, debugID);
  31107. clearMark(markName);
  31108. };
  31109. var endFiberMark = function (fiber, phase, warning) {
  31110. var componentName = getComponentName(fiber.type) || 'Unknown';
  31111. var debugID = fiber._debugID;
  31112. var isMounted = fiber.alternate !== null;
  31113. var label = getFiberLabel(componentName, isMounted, phase);
  31114. var markName = getFiberMarkName(label, debugID);
  31115. endMark(label, markName, warning);
  31116. };
  31117. var shouldIgnoreFiber = function (fiber) {
  31118. // Host components should be skipped in the timeline.
  31119. // We could check typeof fiber.type, but does this work with RN?
  31120. switch (fiber.tag) {
  31121. case HostRoot:
  31122. case HostComponent:
  31123. case HostText:
  31124. case HostPortal:
  31125. case Fragment:
  31126. case ContextProvider:
  31127. case ContextConsumer:
  31128. case Mode:
  31129. return true;
  31130. default:
  31131. return false;
  31132. }
  31133. };
  31134. var clearPendingPhaseMeasurement = function () {
  31135. if (currentPhase !== null && currentPhaseFiber !== null) {
  31136. clearFiberMark(currentPhaseFiber, currentPhase);
  31137. }
  31138. currentPhaseFiber = null;
  31139. currentPhase = null;
  31140. hasScheduledUpdateInCurrentPhase = false;
  31141. };
  31142. var pauseTimers = function () {
  31143. // Stops all currently active measurements so that they can be resumed
  31144. // if we continue in a later deferred loop from the same unit of work.
  31145. var fiber = currentFiber;
  31146. while (fiber) {
  31147. if (fiber._debugIsCurrentlyTiming) {
  31148. endFiberMark(fiber, null, null);
  31149. }
  31150. fiber = fiber.return;
  31151. }
  31152. };
  31153. var resumeTimersRecursively = function (fiber) {
  31154. if (fiber.return !== null) {
  31155. resumeTimersRecursively(fiber.return);
  31156. }
  31157. if (fiber._debugIsCurrentlyTiming) {
  31158. beginFiberMark(fiber, null);
  31159. }
  31160. };
  31161. var resumeTimers = function () {
  31162. // Resumes all measurements that were active during the last deferred loop.
  31163. if (currentFiber !== null) {
  31164. resumeTimersRecursively(currentFiber);
  31165. }
  31166. };
  31167. function recordEffect() {
  31168. {
  31169. effectCountInCurrentCommit++;
  31170. }
  31171. }
  31172. function recordScheduleUpdate() {
  31173. {
  31174. if (isCommitting) {
  31175. hasScheduledUpdateInCurrentCommit = true;
  31176. }
  31177. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  31178. hasScheduledUpdateInCurrentPhase = true;
  31179. }
  31180. }
  31181. }
  31182. function startWorkTimer(fiber) {
  31183. {
  31184. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  31185. return;
  31186. } // If we pause, this is the fiber to unwind from.
  31187. currentFiber = fiber;
  31188. if (!beginFiberMark(fiber, null)) {
  31189. return;
  31190. }
  31191. fiber._debugIsCurrentlyTiming = true;
  31192. }
  31193. }
  31194. function cancelWorkTimer(fiber) {
  31195. {
  31196. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  31197. return;
  31198. } // Remember we shouldn't complete measurement for this fiber.
  31199. // Otherwise flamechart will be deep even for small updates.
  31200. fiber._debugIsCurrentlyTiming = false;
  31201. clearFiberMark(fiber, null);
  31202. }
  31203. }
  31204. function stopWorkTimer(fiber) {
  31205. {
  31206. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  31207. return;
  31208. } // If we pause, its parent is the fiber to unwind from.
  31209. currentFiber = fiber.return;
  31210. if (!fiber._debugIsCurrentlyTiming) {
  31211. return;
  31212. }
  31213. fiber._debugIsCurrentlyTiming = false;
  31214. endFiberMark(fiber, null, null);
  31215. }
  31216. }
  31217. function stopFailedWorkTimer(fiber) {
  31218. {
  31219. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  31220. return;
  31221. } // If we pause, its parent is the fiber to unwind from.
  31222. currentFiber = fiber.return;
  31223. if (!fiber._debugIsCurrentlyTiming) {
  31224. return;
  31225. }
  31226. fiber._debugIsCurrentlyTiming = false;
  31227. var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  31228. endFiberMark(fiber, null, warning);
  31229. }
  31230. }
  31231. function startPhaseTimer(fiber, phase) {
  31232. {
  31233. if (!supportsUserTiming) {
  31234. return;
  31235. }
  31236. clearPendingPhaseMeasurement();
  31237. if (!beginFiberMark(fiber, phase)) {
  31238. return;
  31239. }
  31240. currentPhaseFiber = fiber;
  31241. currentPhase = phase;
  31242. }
  31243. }
  31244. function stopPhaseTimer() {
  31245. {
  31246. if (!supportsUserTiming) {
  31247. return;
  31248. }
  31249. if (currentPhase !== null && currentPhaseFiber !== null) {
  31250. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  31251. endFiberMark(currentPhaseFiber, currentPhase, warning);
  31252. }
  31253. currentPhase = null;
  31254. currentPhaseFiber = null;
  31255. }
  31256. }
  31257. function startWorkLoopTimer(nextUnitOfWork) {
  31258. {
  31259. currentFiber = nextUnitOfWork;
  31260. if (!supportsUserTiming) {
  31261. return;
  31262. }
  31263. commitCountInCurrentWorkLoop = 0; // This is top level call.
  31264. // Any other measurements are performed within.
  31265. beginMark('(React Tree Reconciliation)'); // Resume any measurements that were in progress during the last loop.
  31266. resumeTimers();
  31267. }
  31268. }
  31269. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  31270. {
  31271. if (!supportsUserTiming) {
  31272. return;
  31273. }
  31274. var warning = null;
  31275. if (interruptedBy !== null) {
  31276. if (interruptedBy.tag === HostRoot) {
  31277. warning = 'A top-level update interrupted the previous render';
  31278. } else {
  31279. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  31280. warning = "An update to " + componentName + " interrupted the previous render";
  31281. }
  31282. } else if (commitCountInCurrentWorkLoop > 1) {
  31283. warning = 'There were cascading updates';
  31284. }
  31285. commitCountInCurrentWorkLoop = 0;
  31286. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)'; // Pause any measurements until the next loop.
  31287. pauseTimers();
  31288. endMark(label, '(React Tree Reconciliation)', warning);
  31289. }
  31290. }
  31291. function startCommitTimer() {
  31292. {
  31293. if (!supportsUserTiming) {
  31294. return;
  31295. }
  31296. isCommitting = true;
  31297. hasScheduledUpdateInCurrentCommit = false;
  31298. labelsInCurrentCommit.clear();
  31299. beginMark('(Committing Changes)');
  31300. }
  31301. }
  31302. function stopCommitTimer() {
  31303. {
  31304. if (!supportsUserTiming) {
  31305. return;
  31306. }
  31307. var warning = null;
  31308. if (hasScheduledUpdateInCurrentCommit) {
  31309. warning = 'Lifecycle hook scheduled a cascading update';
  31310. } else if (commitCountInCurrentWorkLoop > 0) {
  31311. warning = 'Caused by a cascading update in earlier commit';
  31312. }
  31313. hasScheduledUpdateInCurrentCommit = false;
  31314. commitCountInCurrentWorkLoop++;
  31315. isCommitting = false;
  31316. labelsInCurrentCommit.clear();
  31317. endMark('(Committing Changes)', '(Committing Changes)', warning);
  31318. }
  31319. }
  31320. function startCommitSnapshotEffectsTimer() {
  31321. {
  31322. if (!supportsUserTiming) {
  31323. return;
  31324. }
  31325. effectCountInCurrentCommit = 0;
  31326. beginMark('(Committing Snapshot Effects)');
  31327. }
  31328. }
  31329. function stopCommitSnapshotEffectsTimer() {
  31330. {
  31331. if (!supportsUserTiming) {
  31332. return;
  31333. }
  31334. var count = effectCountInCurrentCommit;
  31335. effectCountInCurrentCommit = 0;
  31336. endMark("(Committing Snapshot Effects: " + count + " Total)", '(Committing Snapshot Effects)', null);
  31337. }
  31338. }
  31339. function startCommitHostEffectsTimer() {
  31340. {
  31341. if (!supportsUserTiming) {
  31342. return;
  31343. }
  31344. effectCountInCurrentCommit = 0;
  31345. beginMark('(Committing Host Effects)');
  31346. }
  31347. }
  31348. function stopCommitHostEffectsTimer() {
  31349. {
  31350. if (!supportsUserTiming) {
  31351. return;
  31352. }
  31353. var count = effectCountInCurrentCommit;
  31354. effectCountInCurrentCommit = 0;
  31355. endMark("(Committing Host Effects: " + count + " Total)", '(Committing Host Effects)', null);
  31356. }
  31357. }
  31358. function startCommitLifeCyclesTimer() {
  31359. {
  31360. if (!supportsUserTiming) {
  31361. return;
  31362. }
  31363. effectCountInCurrentCommit = 0;
  31364. beginMark('(Calling Lifecycle Methods)');
  31365. }
  31366. }
  31367. function stopCommitLifeCyclesTimer() {
  31368. {
  31369. if (!supportsUserTiming) {
  31370. return;
  31371. }
  31372. var count = effectCountInCurrentCommit;
  31373. effectCountInCurrentCommit = 0;
  31374. endMark("(Calling Lifecycle Methods: " + count + " Total)", '(Calling Lifecycle Methods)', null);
  31375. }
  31376. }
  31377. var valueStack = [];
  31378. var fiberStack;
  31379. {
  31380. fiberStack = [];
  31381. }
  31382. var index = -1;
  31383. function createCursor(defaultValue) {
  31384. return {
  31385. current: defaultValue
  31386. };
  31387. }
  31388. function pop(cursor, fiber) {
  31389. if (index < 0) {
  31390. {
  31391. error('Unexpected pop.');
  31392. }
  31393. return;
  31394. }
  31395. {
  31396. if (fiber !== fiberStack[index]) {
  31397. error('Unexpected Fiber popped.');
  31398. }
  31399. }
  31400. cursor.current = valueStack[index];
  31401. valueStack[index] = null;
  31402. {
  31403. fiberStack[index] = null;
  31404. }
  31405. index--;
  31406. }
  31407. function push(cursor, value, fiber) {
  31408. index++;
  31409. valueStack[index] = cursor.current;
  31410. {
  31411. fiberStack[index] = fiber;
  31412. }
  31413. cursor.current = value;
  31414. }
  31415. var warnedAboutMissingGetChildContext;
  31416. {
  31417. warnedAboutMissingGetChildContext = {};
  31418. }
  31419. var emptyContextObject = {};
  31420. {
  31421. Object.freeze(emptyContextObject);
  31422. } // A cursor to the current merged context object on the stack.
  31423. var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.
  31424. var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
  31425. // We use this to get access to the parent context after we have already
  31426. // pushed the next context provider, and now need to merge their contexts.
  31427. var previousContext = emptyContextObject;
  31428. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  31429. {
  31430. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  31431. // If the fiber is a context provider itself, when we read its context
  31432. // we may have already pushed its own child context on the stack. A context
  31433. // provider should not "see" its own child context. Therefore we read the
  31434. // previous (parent) context instead for a context provider.
  31435. return previousContext;
  31436. }
  31437. return contextStackCursor.current;
  31438. }
  31439. }
  31440. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  31441. {
  31442. var instance = workInProgress.stateNode;
  31443. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  31444. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  31445. }
  31446. }
  31447. function getMaskedContext(workInProgress, unmaskedContext) {
  31448. {
  31449. var type = workInProgress.type;
  31450. var contextTypes = type.contextTypes;
  31451. if (!contextTypes) {
  31452. return emptyContextObject;
  31453. } // Avoid recreating masked context unless unmasked context has changed.
  31454. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  31455. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  31456. var instance = workInProgress.stateNode;
  31457. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  31458. return instance.__reactInternalMemoizedMaskedChildContext;
  31459. }
  31460. var context = {};
  31461. for (var key in contextTypes) {
  31462. context[key] = unmaskedContext[key];
  31463. }
  31464. {
  31465. var name = getComponentName(type) || 'Unknown';
  31466. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  31467. } // Cache unmasked context so we can avoid recreating masked context unless necessary.
  31468. // Context is created before the class component is instantiated so check for instance.
  31469. if (instance) {
  31470. cacheContext(workInProgress, unmaskedContext, context);
  31471. }
  31472. return context;
  31473. }
  31474. }
  31475. function hasContextChanged() {
  31476. {
  31477. return didPerformWorkStackCursor.current;
  31478. }
  31479. }
  31480. function isContextProvider(type) {
  31481. {
  31482. var childContextTypes = type.childContextTypes;
  31483. return childContextTypes !== null && childContextTypes !== undefined;
  31484. }
  31485. }
  31486. function popContext(fiber) {
  31487. {
  31488. pop(didPerformWorkStackCursor, fiber);
  31489. pop(contextStackCursor, fiber);
  31490. }
  31491. }
  31492. function popTopLevelContextObject(fiber) {
  31493. {
  31494. pop(didPerformWorkStackCursor, fiber);
  31495. pop(contextStackCursor, fiber);
  31496. }
  31497. }
  31498. function pushTopLevelContextObject(fiber, context, didChange) {
  31499. {
  31500. if (!(contextStackCursor.current === emptyContextObject)) {
  31501. {
  31502. throw Error( "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue." );
  31503. }
  31504. }
  31505. push(contextStackCursor, context, fiber);
  31506. push(didPerformWorkStackCursor, didChange, fiber);
  31507. }
  31508. }
  31509. function processChildContext(fiber, type, parentContext) {
  31510. {
  31511. var instance = fiber.stateNode;
  31512. var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  31513. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  31514. if (typeof instance.getChildContext !== 'function') {
  31515. {
  31516. var componentName = getComponentName(type) || 'Unknown';
  31517. if (!warnedAboutMissingGetChildContext[componentName]) {
  31518. warnedAboutMissingGetChildContext[componentName] = true;
  31519. error('%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);
  31520. }
  31521. }
  31522. return parentContext;
  31523. }
  31524. var childContext;
  31525. startPhaseTimer(fiber, 'getChildContext');
  31526. childContext = instance.getChildContext();
  31527. stopPhaseTimer();
  31528. for (var contextKey in childContext) {
  31529. if (!(contextKey in childContextTypes)) {
  31530. {
  31531. throw Error( (getComponentName(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes." );
  31532. }
  31533. }
  31534. }
  31535. {
  31536. var name = getComponentName(type) || 'Unknown';
  31537. checkPropTypes(childContextTypes, childContext, 'child context', name, // In practice, there is one case in which we won't get a stack. It's when
  31538. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  31539. // context from the parent component instance. The stack will be missing
  31540. // because it's outside of the reconciliation, and so the pointer has not
  31541. // been set. This is rare and doesn't matter. We'll also remove that API.
  31542. getCurrentFiberStackInDev);
  31543. }
  31544. return _assign({}, parentContext, {}, childContext);
  31545. }
  31546. }
  31547. function pushContextProvider(workInProgress) {
  31548. {
  31549. var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
  31550. // If the instance does not exist yet, we will push null at first,
  31551. // and replace it on the stack later when invalidating the context.
  31552. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
  31553. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  31554. previousContext = contextStackCursor.current;
  31555. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  31556. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  31557. return true;
  31558. }
  31559. }
  31560. function invalidateContextProvider(workInProgress, type, didChange) {
  31561. {
  31562. var instance = workInProgress.stateNode;
  31563. if (!instance) {
  31564. {
  31565. throw Error( "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." );
  31566. }
  31567. }
  31568. if (didChange) {
  31569. // Merge parent and own context.
  31570. // Skip this if we're not updating due to sCU.
  31571. // This avoids unnecessarily recomputing memoized values.
  31572. var mergedContext = processChildContext(workInProgress, type, previousContext);
  31573. instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
  31574. // It is important to unwind the context in the reverse order.
  31575. pop(didPerformWorkStackCursor, workInProgress);
  31576. pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.
  31577. push(contextStackCursor, mergedContext, workInProgress);
  31578. push(didPerformWorkStackCursor, didChange, workInProgress);
  31579. } else {
  31580. pop(didPerformWorkStackCursor, workInProgress);
  31581. push(didPerformWorkStackCursor, didChange, workInProgress);
  31582. }
  31583. }
  31584. }
  31585. function findCurrentUnmaskedContext(fiber) {
  31586. {
  31587. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  31588. // makes sense elsewhere
  31589. if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
  31590. {
  31591. throw Error( "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." );
  31592. }
  31593. }
  31594. var node = fiber;
  31595. do {
  31596. switch (node.tag) {
  31597. case HostRoot:
  31598. return node.stateNode.context;
  31599. case ClassComponent:
  31600. {
  31601. var Component = node.type;
  31602. if (isContextProvider(Component)) {
  31603. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  31604. }
  31605. break;
  31606. }
  31607. }
  31608. node = node.return;
  31609. } while (node !== null);
  31610. {
  31611. {
  31612. throw Error( "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue." );
  31613. }
  31614. }
  31615. }
  31616. }
  31617. var LegacyRoot = 0;
  31618. var BlockingRoot = 1;
  31619. var ConcurrentRoot = 2;
  31620. var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority,
  31621. Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback,
  31622. Scheduler_cancelCallback = Scheduler.unstable_cancelCallback,
  31623. Scheduler_shouldYield = Scheduler.unstable_shouldYield,
  31624. Scheduler_requestPaint = Scheduler.unstable_requestPaint,
  31625. Scheduler_now = Scheduler.unstable_now,
  31626. Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,
  31627. Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority,
  31628. Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
  31629. Scheduler_NormalPriority = Scheduler.unstable_NormalPriority,
  31630. Scheduler_LowPriority = Scheduler.unstable_LowPriority,
  31631. Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;
  31632. {
  31633. // Provide explicit error message when production+profiling bundle of e.g.
  31634. // react-dom is used with production (non-profiling) bundle of
  31635. // scheduler/tracing
  31636. if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
  31637. {
  31638. throw 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" );
  31639. }
  31640. }
  31641. }
  31642. var fakeCallbackNode = {}; // Except for NoPriority, these correspond to Scheduler priorities. We use
  31643. // ascending numbers so we can compare them like numbers. They start at 90 to
  31644. // avoid clashing with Scheduler's priorities.
  31645. var ImmediatePriority = 99;
  31646. var UserBlockingPriority$1 = 98;
  31647. var NormalPriority = 97;
  31648. var LowPriority = 96;
  31649. var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only.
  31650. var NoPriority = 90;
  31651. var shouldYield = Scheduler_shouldYield;
  31652. var requestPaint = // Fall back gracefully if we're running an older version of Scheduler.
  31653. Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
  31654. var syncQueue = null;
  31655. var immediateQueueCallbackNode = null;
  31656. var isFlushingSyncQueue = false;
  31657. var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
  31658. // This will be the case for modern browsers that support `performance.now`. In
  31659. // older browsers, Scheduler falls back to `Date.now`, which returns a Unix
  31660. // timestamp. In that case, subtract the module initialization time to simulate
  31661. // the behavior of performance.now and keep our times small enough to fit
  31662. // within 32 bits.
  31663. // TODO: Consider lifting this into Scheduler.
  31664. var now = initialTimeMs < 10000 ? Scheduler_now : function () {
  31665. return Scheduler_now() - initialTimeMs;
  31666. };
  31667. function getCurrentPriorityLevel() {
  31668. switch (Scheduler_getCurrentPriorityLevel()) {
  31669. case Scheduler_ImmediatePriority:
  31670. return ImmediatePriority;
  31671. case Scheduler_UserBlockingPriority:
  31672. return UserBlockingPriority$1;
  31673. case Scheduler_NormalPriority:
  31674. return NormalPriority;
  31675. case Scheduler_LowPriority:
  31676. return LowPriority;
  31677. case Scheduler_IdlePriority:
  31678. return IdlePriority;
  31679. default:
  31680. {
  31681. {
  31682. throw Error( "Unknown priority level." );
  31683. }
  31684. }
  31685. }
  31686. }
  31687. function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  31688. switch (reactPriorityLevel) {
  31689. case ImmediatePriority:
  31690. return Scheduler_ImmediatePriority;
  31691. case UserBlockingPriority$1:
  31692. return Scheduler_UserBlockingPriority;
  31693. case NormalPriority:
  31694. return Scheduler_NormalPriority;
  31695. case LowPriority:
  31696. return Scheduler_LowPriority;
  31697. case IdlePriority:
  31698. return Scheduler_IdlePriority;
  31699. default:
  31700. {
  31701. {
  31702. throw Error( "Unknown priority level." );
  31703. }
  31704. }
  31705. }
  31706. }
  31707. function runWithPriority$1(reactPriorityLevel, fn) {
  31708. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  31709. return Scheduler_runWithPriority(priorityLevel, fn);
  31710. }
  31711. function scheduleCallback(reactPriorityLevel, callback, options) {
  31712. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  31713. return Scheduler_scheduleCallback(priorityLevel, callback, options);
  31714. }
  31715. function scheduleSyncCallback(callback) {
  31716. // Push this callback into an internal queue. We'll flush these either in
  31717. // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  31718. if (syncQueue === null) {
  31719. syncQueue = [callback]; // Flush the queue in the next tick, at the earliest.
  31720. immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  31721. } else {
  31722. // Push onto existing queue. Don't need to schedule a callback because
  31723. // we already scheduled one when we created the queue.
  31724. syncQueue.push(callback);
  31725. }
  31726. return fakeCallbackNode;
  31727. }
  31728. function cancelCallback(callbackNode) {
  31729. if (callbackNode !== fakeCallbackNode) {
  31730. Scheduler_cancelCallback(callbackNode);
  31731. }
  31732. }
  31733. function flushSyncCallbackQueue() {
  31734. if (immediateQueueCallbackNode !== null) {
  31735. var node = immediateQueueCallbackNode;
  31736. immediateQueueCallbackNode = null;
  31737. Scheduler_cancelCallback(node);
  31738. }
  31739. flushSyncCallbackQueueImpl();
  31740. }
  31741. function flushSyncCallbackQueueImpl() {
  31742. if (!isFlushingSyncQueue && syncQueue !== null) {
  31743. // Prevent re-entrancy.
  31744. isFlushingSyncQueue = true;
  31745. var i = 0;
  31746. try {
  31747. var _isSync = true;
  31748. var queue = syncQueue;
  31749. runWithPriority$1(ImmediatePriority, function () {
  31750. for (; i < queue.length; i++) {
  31751. var callback = queue[i];
  31752. do {
  31753. callback = callback(_isSync);
  31754. } while (callback !== null);
  31755. }
  31756. });
  31757. syncQueue = null;
  31758. } catch (error) {
  31759. // If something throws, leave the remaining callbacks on the queue.
  31760. if (syncQueue !== null) {
  31761. syncQueue = syncQueue.slice(i + 1);
  31762. } // Resume flushing in the next tick
  31763. Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
  31764. throw error;
  31765. } finally {
  31766. isFlushingSyncQueue = false;
  31767. }
  31768. }
  31769. }
  31770. var NoMode = 0;
  31771. var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root
  31772. // tag instead
  31773. var BlockingMode = 2;
  31774. var ConcurrentMode = 4;
  31775. var ProfileMode = 8;
  31776. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  31777. // Math.pow(2, 30) - 1
  31778. // 0b111111111111111111111111111111
  31779. var MAX_SIGNED_31_BIT_INT = 1073741823;
  31780. var NoWork = 0; // TODO: Think of a better name for Never. The key difference with Idle is that
  31781. // Never work can be committed in an inconsistent state without tearing the UI.
  31782. // The main example is offscreen content, like a hidden subtree. So one possible
  31783. // name is Offscreen. However, it also includes dehydrated Suspense boundaries,
  31784. // which are inconsistent in the sense that they haven't finished yet, but
  31785. // aren't visibly inconsistent because the server rendered HTML matches what the
  31786. // hydrated tree would look like.
  31787. var Never = 1; // Idle is slightly higher priority than Never. It must completely finish in
  31788. // order to be consistent.
  31789. var Idle = 2; // Continuous Hydration is slightly higher than Idle and is used to increase
  31790. // priority of hover targets.
  31791. var ContinuousHydration = 3;
  31792. var Sync = MAX_SIGNED_31_BIT_INT;
  31793. var Batched = Sync - 1;
  31794. var UNIT_SIZE = 10;
  31795. var MAGIC_NUMBER_OFFSET = Batched - 1; // 1 unit of expiration time represents 10ms.
  31796. function msToExpirationTime(ms) {
  31797. // Always subtract from the offset so that we don't clash with the magic number for NoWork.
  31798. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  31799. }
  31800. function expirationTimeToMs(expirationTime) {
  31801. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  31802. }
  31803. function ceiling(num, precision) {
  31804. return ((num / precision | 0) + 1) * precision;
  31805. }
  31806. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  31807. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  31808. } // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
  31809. // the names to reflect.
  31810. var LOW_PRIORITY_EXPIRATION = 5000;
  31811. var LOW_PRIORITY_BATCH_SIZE = 250;
  31812. function computeAsyncExpiration(currentTime) {
  31813. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  31814. }
  31815. function computeSuspenseExpiration(currentTime, timeoutMs) {
  31816. // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
  31817. return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);
  31818. } // We intentionally set a higher expiration time for interactive updates in
  31819. // dev than in production.
  31820. //
  31821. // If the main thread is being blocked so long that you hit the expiration,
  31822. // it's a problem that could be solved with better scheduling.
  31823. //
  31824. // People will be more likely to notice this and fix it with the long
  31825. // expiration time in development.
  31826. //
  31827. // In production we opt for better UX at the risk of masking scheduling
  31828. // problems, by expiring fast.
  31829. var HIGH_PRIORITY_EXPIRATION = 500 ;
  31830. var HIGH_PRIORITY_BATCH_SIZE = 100;
  31831. function computeInteractiveExpiration(currentTime) {
  31832. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  31833. }
  31834. function inferPriorityFromExpirationTime(currentTime, expirationTime) {
  31835. if (expirationTime === Sync) {
  31836. return ImmediatePriority;
  31837. }
  31838. if (expirationTime === Never || expirationTime === Idle) {
  31839. return IdlePriority;
  31840. }
  31841. var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);
  31842. if (msUntil <= 0) {
  31843. return ImmediatePriority;
  31844. }
  31845. if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
  31846. return UserBlockingPriority$1;
  31847. }
  31848. if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
  31849. return NormalPriority;
  31850. } // TODO: Handle LowPriority
  31851. // Assume anything lower has idle priority
  31852. return IdlePriority;
  31853. }
  31854. var ReactStrictModeWarnings = {
  31855. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  31856. flushPendingUnsafeLifecycleWarnings: function () {},
  31857. recordLegacyContextWarning: function (fiber, instance) {},
  31858. flushLegacyContextWarning: function () {},
  31859. discardPendingWarnings: function () {}
  31860. };
  31861. {
  31862. var findStrictRoot = function (fiber) {
  31863. var maybeStrictRoot = null;
  31864. var node = fiber;
  31865. while (node !== null) {
  31866. if (node.mode & StrictMode) {
  31867. maybeStrictRoot = node;
  31868. }
  31869. node = node.return;
  31870. }
  31871. return maybeStrictRoot;
  31872. };
  31873. var setToSortedString = function (set) {
  31874. var array = [];
  31875. set.forEach(function (value) {
  31876. array.push(value);
  31877. });
  31878. return array.sort().join(', ');
  31879. };
  31880. var pendingComponentWillMountWarnings = [];
  31881. var pendingUNSAFE_ComponentWillMountWarnings = [];
  31882. var pendingComponentWillReceivePropsWarnings = [];
  31883. var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  31884. var pendingComponentWillUpdateWarnings = [];
  31885. var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.
  31886. var didWarnAboutUnsafeLifecycles = new Set();
  31887. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  31888. // Dedup strategy: Warn once per component.
  31889. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  31890. return;
  31891. }
  31892. if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
  31893. instance.componentWillMount.__suppressDeprecationWarning !== true) {
  31894. pendingComponentWillMountWarnings.push(fiber);
  31895. }
  31896. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
  31897. pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
  31898. }
  31899. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  31900. pendingComponentWillReceivePropsWarnings.push(fiber);
  31901. }
  31902. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  31903. pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
  31904. }
  31905. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  31906. pendingComponentWillUpdateWarnings.push(fiber);
  31907. }
  31908. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
  31909. pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
  31910. }
  31911. };
  31912. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  31913. // We do an initial pass to gather component names
  31914. var componentWillMountUniqueNames = new Set();
  31915. if (pendingComponentWillMountWarnings.length > 0) {
  31916. pendingComponentWillMountWarnings.forEach(function (fiber) {
  31917. componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  31918. didWarnAboutUnsafeLifecycles.add(fiber.type);
  31919. });
  31920. pendingComponentWillMountWarnings = [];
  31921. }
  31922. var UNSAFE_componentWillMountUniqueNames = new Set();
  31923. if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
  31924. pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
  31925. UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  31926. didWarnAboutUnsafeLifecycles.add(fiber.type);
  31927. });
  31928. pendingUNSAFE_ComponentWillMountWarnings = [];
  31929. }
  31930. var componentWillReceivePropsUniqueNames = new Set();
  31931. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  31932. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  31933. componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  31934. didWarnAboutUnsafeLifecycles.add(fiber.type);
  31935. });
  31936. pendingComponentWillReceivePropsWarnings = [];
  31937. }
  31938. var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
  31939. if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
  31940. pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
  31941. UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  31942. didWarnAboutUnsafeLifecycles.add(fiber.type);
  31943. });
  31944. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  31945. }
  31946. var componentWillUpdateUniqueNames = new Set();
  31947. if (pendingComponentWillUpdateWarnings.length > 0) {
  31948. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  31949. componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  31950. didWarnAboutUnsafeLifecycles.add(fiber.type);
  31951. });
  31952. pendingComponentWillUpdateWarnings = [];
  31953. }
  31954. var UNSAFE_componentWillUpdateUniqueNames = new Set();
  31955. if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
  31956. pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
  31957. UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  31958. didWarnAboutUnsafeLifecycles.add(fiber.type);
  31959. });
  31960. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  31961. } // Finally, we flush all the warnings
  31962. // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
  31963. if (UNSAFE_componentWillMountUniqueNames.size > 0) {
  31964. var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
  31965. error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  31966. }
  31967. if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
  31968. var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
  31969. error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  31970. }
  31971. if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
  31972. var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
  31973. error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
  31974. }
  31975. if (componentWillMountUniqueNames.size > 0) {
  31976. var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
  31977. warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  31978. }
  31979. if (componentWillReceivePropsUniqueNames.size > 0) {
  31980. var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
  31981. warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  31982. }
  31983. if (componentWillUpdateUniqueNames.size > 0) {
  31984. var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
  31985. warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles 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);
  31986. }
  31987. };
  31988. var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.
  31989. var didWarnAboutLegacyContext = new Set();
  31990. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  31991. var strictRoot = findStrictRoot(fiber);
  31992. if (strictRoot === null) {
  31993. error('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.');
  31994. return;
  31995. } // Dedup strategy: Warn once per component.
  31996. if (didWarnAboutLegacyContext.has(fiber.type)) {
  31997. return;
  31998. }
  31999. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  32000. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  32001. if (warningsForRoot === undefined) {
  32002. warningsForRoot = [];
  32003. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  32004. }
  32005. warningsForRoot.push(fiber);
  32006. }
  32007. };
  32008. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  32009. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  32010. if (fiberArray.length === 0) {
  32011. return;
  32012. }
  32013. var firstFiber = fiberArray[0];
  32014. var uniqueNames = new Set();
  32015. fiberArray.forEach(function (fiber) {
  32016. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  32017. didWarnAboutLegacyContext.add(fiber.type);
  32018. });
  32019. var sortedNames = setToSortedString(uniqueNames);
  32020. var firstComponentStack = getStackByFiberInDevAndProd(firstFiber);
  32021. error('Legacy context API has been detected within a strict-mode tree.' + '\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: https://fb.me/react-legacy-context' + '%s', sortedNames, firstComponentStack);
  32022. });
  32023. };
  32024. ReactStrictModeWarnings.discardPendingWarnings = function () {
  32025. pendingComponentWillMountWarnings = [];
  32026. pendingUNSAFE_ComponentWillMountWarnings = [];
  32027. pendingComponentWillReceivePropsWarnings = [];
  32028. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  32029. pendingComponentWillUpdateWarnings = [];
  32030. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  32031. pendingLegacyContextWarning = new Map();
  32032. };
  32033. }
  32034. var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.
  32035. var failedBoundaries = null;
  32036. var setRefreshHandler = function (handler) {
  32037. {
  32038. resolveFamily = handler;
  32039. }
  32040. };
  32041. function resolveFunctionForHotReloading(type) {
  32042. {
  32043. if (resolveFamily === null) {
  32044. // Hot reloading is disabled.
  32045. return type;
  32046. }
  32047. var family = resolveFamily(type);
  32048. if (family === undefined) {
  32049. return type;
  32050. } // Use the latest known implementation.
  32051. return family.current;
  32052. }
  32053. }
  32054. function resolveClassForHotReloading(type) {
  32055. // No implementation differences.
  32056. return resolveFunctionForHotReloading(type);
  32057. }
  32058. function resolveForwardRefForHotReloading(type) {
  32059. {
  32060. if (resolveFamily === null) {
  32061. // Hot reloading is disabled.
  32062. return type;
  32063. }
  32064. var family = resolveFamily(type);
  32065. if (family === undefined) {
  32066. // Check if we're dealing with a real forwardRef. Don't want to crash early.
  32067. if (type !== null && type !== undefined && typeof type.render === 'function') {
  32068. // ForwardRef is special because its resolved .type is an object,
  32069. // but it's possible that we only have its inner render function in the map.
  32070. // If that inner render function is different, we'll build a new forwardRef type.
  32071. var currentRender = resolveFunctionForHotReloading(type.render);
  32072. if (type.render !== currentRender) {
  32073. var syntheticType = {
  32074. $$typeof: REACT_FORWARD_REF_TYPE,
  32075. render: currentRender
  32076. };
  32077. if (type.displayName !== undefined) {
  32078. syntheticType.displayName = type.displayName;
  32079. }
  32080. return syntheticType;
  32081. }
  32082. }
  32083. return type;
  32084. } // Use the latest known implementation.
  32085. return family.current;
  32086. }
  32087. }
  32088. function isCompatibleFamilyForHotReloading(fiber, element) {
  32089. {
  32090. if (resolveFamily === null) {
  32091. // Hot reloading is disabled.
  32092. return false;
  32093. }
  32094. var prevType = fiber.elementType;
  32095. var nextType = element.type; // If we got here, we know types aren't === equal.
  32096. var needsCompareFamilies = false;
  32097. var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
  32098. switch (fiber.tag) {
  32099. case ClassComponent:
  32100. {
  32101. if (typeof nextType === 'function') {
  32102. needsCompareFamilies = true;
  32103. }
  32104. break;
  32105. }
  32106. case FunctionComponent:
  32107. {
  32108. if (typeof nextType === 'function') {
  32109. needsCompareFamilies = true;
  32110. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  32111. // We don't know the inner type yet.
  32112. // We're going to assume that the lazy inner type is stable,
  32113. // and so it is sufficient to avoid reconciling it away.
  32114. // We're not going to unwrap or actually use the new lazy type.
  32115. needsCompareFamilies = true;
  32116. }
  32117. break;
  32118. }
  32119. case ForwardRef:
  32120. {
  32121. if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
  32122. needsCompareFamilies = true;
  32123. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  32124. needsCompareFamilies = true;
  32125. }
  32126. break;
  32127. }
  32128. case MemoComponent:
  32129. case SimpleMemoComponent:
  32130. {
  32131. if ($$typeofNextType === REACT_MEMO_TYPE) {
  32132. // TODO: if it was but can no longer be simple,
  32133. // we shouldn't set this.
  32134. needsCompareFamilies = true;
  32135. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  32136. needsCompareFamilies = true;
  32137. }
  32138. break;
  32139. }
  32140. default:
  32141. return false;
  32142. } // Check if both types have a family and it's the same one.
  32143. if (needsCompareFamilies) {
  32144. // Note: memo() and forwardRef() we'll compare outer rather than inner type.
  32145. // This means both of them need to be registered to preserve state.
  32146. // If we unwrapped and compared the inner types for wrappers instead,
  32147. // then we would risk falsely saying two separate memo(Foo)
  32148. // calls are equivalent because they wrap the same Foo function.
  32149. var prevFamily = resolveFamily(prevType);
  32150. if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
  32151. return true;
  32152. }
  32153. }
  32154. return false;
  32155. }
  32156. }
  32157. function markFailedErrorBoundaryForHotReloading(fiber) {
  32158. {
  32159. if (resolveFamily === null) {
  32160. // Hot reloading is disabled.
  32161. return;
  32162. }
  32163. if (typeof WeakSet !== 'function') {
  32164. return;
  32165. }
  32166. if (failedBoundaries === null) {
  32167. failedBoundaries = new WeakSet();
  32168. }
  32169. failedBoundaries.add(fiber);
  32170. }
  32171. }
  32172. var scheduleRefresh = function (root, update) {
  32173. {
  32174. if (resolveFamily === null) {
  32175. // Hot reloading is disabled.
  32176. return;
  32177. }
  32178. var staleFamilies = update.staleFamilies,
  32179. updatedFamilies = update.updatedFamilies;
  32180. flushPassiveEffects();
  32181. flushSync(function () {
  32182. scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
  32183. });
  32184. }
  32185. };
  32186. var scheduleRoot = function (root, element) {
  32187. {
  32188. if (root.context !== emptyContextObject) {
  32189. // Super edge case: root has a legacy _renderSubtree context
  32190. // but we don't know the parentComponent so we can't pass it.
  32191. // Just ignore. We'll delete this with _renderSubtree code path later.
  32192. return;
  32193. }
  32194. flushPassiveEffects();
  32195. syncUpdates(function () {
  32196. updateContainer(element, root, null, null);
  32197. });
  32198. }
  32199. };
  32200. function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  32201. {
  32202. var alternate = fiber.alternate,
  32203. child = fiber.child,
  32204. sibling = fiber.sibling,
  32205. tag = fiber.tag,
  32206. type = fiber.type;
  32207. var candidateType = null;
  32208. switch (tag) {
  32209. case FunctionComponent:
  32210. case SimpleMemoComponent:
  32211. case ClassComponent:
  32212. candidateType = type;
  32213. break;
  32214. case ForwardRef:
  32215. candidateType = type.render;
  32216. break;
  32217. }
  32218. if (resolveFamily === null) {
  32219. throw new Error('Expected resolveFamily to be set during hot reload.');
  32220. }
  32221. var needsRender = false;
  32222. var needsRemount = false;
  32223. if (candidateType !== null) {
  32224. var family = resolveFamily(candidateType);
  32225. if (family !== undefined) {
  32226. if (staleFamilies.has(family)) {
  32227. needsRemount = true;
  32228. } else if (updatedFamilies.has(family)) {
  32229. if (tag === ClassComponent) {
  32230. needsRemount = true;
  32231. } else {
  32232. needsRender = true;
  32233. }
  32234. }
  32235. }
  32236. }
  32237. if (failedBoundaries !== null) {
  32238. if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
  32239. needsRemount = true;
  32240. }
  32241. }
  32242. if (needsRemount) {
  32243. fiber._debugNeedsRemount = true;
  32244. }
  32245. if (needsRemount || needsRender) {
  32246. scheduleWork(fiber, Sync);
  32247. }
  32248. if (child !== null && !needsRemount) {
  32249. scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
  32250. }
  32251. if (sibling !== null) {
  32252. scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
  32253. }
  32254. }
  32255. }
  32256. var findHostInstancesForRefresh = function (root, families) {
  32257. {
  32258. var hostInstances = new Set();
  32259. var types = new Set(families.map(function (family) {
  32260. return family.current;
  32261. }));
  32262. findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
  32263. return hostInstances;
  32264. }
  32265. };
  32266. function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  32267. {
  32268. var child = fiber.child,
  32269. sibling = fiber.sibling,
  32270. tag = fiber.tag,
  32271. type = fiber.type;
  32272. var candidateType = null;
  32273. switch (tag) {
  32274. case FunctionComponent:
  32275. case SimpleMemoComponent:
  32276. case ClassComponent:
  32277. candidateType = type;
  32278. break;
  32279. case ForwardRef:
  32280. candidateType = type.render;
  32281. break;
  32282. }
  32283. var didMatch = false;
  32284. if (candidateType !== null) {
  32285. if (types.has(candidateType)) {
  32286. didMatch = true;
  32287. }
  32288. }
  32289. if (didMatch) {
  32290. // We have a match. This only drills down to the closest host components.
  32291. // There's no need to search deeper because for the purpose of giving
  32292. // visual feedback, "flashing" outermost parent rectangles is sufficient.
  32293. findHostInstancesForFiberShallowly(fiber, hostInstances);
  32294. } else {
  32295. // If there's no match, maybe there will be one further down in the child tree.
  32296. if (child !== null) {
  32297. findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
  32298. }
  32299. }
  32300. if (sibling !== null) {
  32301. findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
  32302. }
  32303. }
  32304. }
  32305. function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  32306. {
  32307. var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
  32308. if (foundHostInstances) {
  32309. return;
  32310. } // If we didn't find any host children, fallback to closest host parent.
  32311. var node = fiber;
  32312. while (true) {
  32313. switch (node.tag) {
  32314. case HostComponent:
  32315. hostInstances.add(node.stateNode);
  32316. return;
  32317. case HostPortal:
  32318. hostInstances.add(node.stateNode.containerInfo);
  32319. return;
  32320. case HostRoot:
  32321. hostInstances.add(node.stateNode.containerInfo);
  32322. return;
  32323. }
  32324. if (node.return === null) {
  32325. throw new Error('Expected to reach root first.');
  32326. }
  32327. node = node.return;
  32328. }
  32329. }
  32330. }
  32331. function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  32332. {
  32333. var node = fiber;
  32334. var foundHostInstances = false;
  32335. while (true) {
  32336. if (node.tag === HostComponent) {
  32337. // We got a match.
  32338. foundHostInstances = true;
  32339. hostInstances.add(node.stateNode); // There may still be more, so keep searching.
  32340. } else if (node.child !== null) {
  32341. node.child.return = node;
  32342. node = node.child;
  32343. continue;
  32344. }
  32345. if (node === fiber) {
  32346. return foundHostInstances;
  32347. }
  32348. while (node.sibling === null) {
  32349. if (node.return === null || node.return === fiber) {
  32350. return foundHostInstances;
  32351. }
  32352. node = node.return;
  32353. }
  32354. node.sibling.return = node.return;
  32355. node = node.sibling;
  32356. }
  32357. }
  32358. return false;
  32359. }
  32360. function resolveDefaultProps(Component, baseProps) {
  32361. if (Component && Component.defaultProps) {
  32362. // Resolve default props. Taken from ReactElement
  32363. var props = _assign({}, baseProps);
  32364. var defaultProps = Component.defaultProps;
  32365. for (var propName in defaultProps) {
  32366. if (props[propName] === undefined) {
  32367. props[propName] = defaultProps[propName];
  32368. }
  32369. }
  32370. return props;
  32371. }
  32372. return baseProps;
  32373. }
  32374. function readLazyComponentType(lazyComponent) {
  32375. initializeLazyComponentType(lazyComponent);
  32376. if (lazyComponent._status !== Resolved) {
  32377. throw lazyComponent._result;
  32378. }
  32379. return lazyComponent._result;
  32380. }
  32381. var valueCursor = createCursor(null);
  32382. var rendererSigil;
  32383. {
  32384. // Use this to detect multiple renderers using the same context
  32385. rendererSigil = {};
  32386. }
  32387. var currentlyRenderingFiber = null;
  32388. var lastContextDependency = null;
  32389. var lastContextWithAllBitsObserved = null;
  32390. var isDisallowedContextReadInDEV = false;
  32391. function resetContextDependencies() {
  32392. // This is called right before React yields execution, to ensure `readContext`
  32393. // cannot be called outside the render phase.
  32394. currentlyRenderingFiber = null;
  32395. lastContextDependency = null;
  32396. lastContextWithAllBitsObserved = null;
  32397. {
  32398. isDisallowedContextReadInDEV = false;
  32399. }
  32400. }
  32401. function enterDisallowedContextReadInDEV() {
  32402. {
  32403. isDisallowedContextReadInDEV = true;
  32404. }
  32405. }
  32406. function exitDisallowedContextReadInDEV() {
  32407. {
  32408. isDisallowedContextReadInDEV = false;
  32409. }
  32410. }
  32411. function pushProvider(providerFiber, nextValue) {
  32412. var context = providerFiber.type._context;
  32413. {
  32414. push(valueCursor, context._currentValue, providerFiber);
  32415. context._currentValue = nextValue;
  32416. {
  32417. if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
  32418. error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
  32419. }
  32420. context._currentRenderer = rendererSigil;
  32421. }
  32422. }
  32423. }
  32424. function popProvider(providerFiber) {
  32425. var currentValue = valueCursor.current;
  32426. pop(valueCursor, providerFiber);
  32427. var context = providerFiber.type._context;
  32428. {
  32429. context._currentValue = currentValue;
  32430. }
  32431. }
  32432. function calculateChangedBits(context, newValue, oldValue) {
  32433. if (objectIs(oldValue, newValue)) {
  32434. // No change
  32435. return 0;
  32436. } else {
  32437. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
  32438. {
  32439. if ((changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits) {
  32440. error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
  32441. }
  32442. }
  32443. return changedBits | 0;
  32444. }
  32445. }
  32446. function scheduleWorkOnParentPath(parent, renderExpirationTime) {
  32447. // Update the child expiration time of all the ancestors, including
  32448. // the alternates.
  32449. var node = parent;
  32450. while (node !== null) {
  32451. var alternate = node.alternate;
  32452. if (node.childExpirationTime < renderExpirationTime) {
  32453. node.childExpirationTime = renderExpirationTime;
  32454. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  32455. alternate.childExpirationTime = renderExpirationTime;
  32456. }
  32457. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  32458. alternate.childExpirationTime = renderExpirationTime;
  32459. } else {
  32460. // Neither alternate was updated, which means the rest of the
  32461. // ancestor path already has sufficient priority.
  32462. break;
  32463. }
  32464. node = node.return;
  32465. }
  32466. }
  32467. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  32468. var fiber = workInProgress.child;
  32469. if (fiber !== null) {
  32470. // Set the return pointer of the child to the work-in-progress fiber.
  32471. fiber.return = workInProgress;
  32472. }
  32473. while (fiber !== null) {
  32474. var nextFiber = void 0; // Visit this fiber.
  32475. var list = fiber.dependencies;
  32476. if (list !== null) {
  32477. nextFiber = fiber.child;
  32478. var dependency = list.firstContext;
  32479. while (dependency !== null) {
  32480. // Check if the context matches.
  32481. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  32482. // Match! Schedule an update on this fiber.
  32483. if (fiber.tag === ClassComponent) {
  32484. // Schedule a force update on the work-in-progress.
  32485. var update = createUpdate(renderExpirationTime, null);
  32486. update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the
  32487. // update to the current fiber, too, which means it will persist even if
  32488. // this render is thrown away. Since it's a race condition, not sure it's
  32489. // worth fixing.
  32490. enqueueUpdate(fiber, update);
  32491. }
  32492. if (fiber.expirationTime < renderExpirationTime) {
  32493. fiber.expirationTime = renderExpirationTime;
  32494. }
  32495. var alternate = fiber.alternate;
  32496. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  32497. alternate.expirationTime = renderExpirationTime;
  32498. }
  32499. scheduleWorkOnParentPath(fiber.return, renderExpirationTime); // Mark the expiration time on the list, too.
  32500. if (list.expirationTime < renderExpirationTime) {
  32501. list.expirationTime = renderExpirationTime;
  32502. } // Since we already found a match, we can stop traversing the
  32503. // dependency list.
  32504. break;
  32505. }
  32506. dependency = dependency.next;
  32507. }
  32508. } else if (fiber.tag === ContextProvider) {
  32509. // Don't scan deeper if this is a matching provider
  32510. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  32511. } else {
  32512. // Traverse down.
  32513. nextFiber = fiber.child;
  32514. }
  32515. if (nextFiber !== null) {
  32516. // Set the return pointer of the child to the work-in-progress fiber.
  32517. nextFiber.return = fiber;
  32518. } else {
  32519. // No child. Traverse to next sibling.
  32520. nextFiber = fiber;
  32521. while (nextFiber !== null) {
  32522. if (nextFiber === workInProgress) {
  32523. // We're back to the root of this subtree. Exit.
  32524. nextFiber = null;
  32525. break;
  32526. }
  32527. var sibling = nextFiber.sibling;
  32528. if (sibling !== null) {
  32529. // Set the return pointer of the sibling to the work-in-progress fiber.
  32530. sibling.return = nextFiber.return;
  32531. nextFiber = sibling;
  32532. break;
  32533. } // No more siblings. Traverse up.
  32534. nextFiber = nextFiber.return;
  32535. }
  32536. }
  32537. fiber = nextFiber;
  32538. }
  32539. }
  32540. function prepareToReadContext(workInProgress, renderExpirationTime) {
  32541. currentlyRenderingFiber = workInProgress;
  32542. lastContextDependency = null;
  32543. lastContextWithAllBitsObserved = null;
  32544. var dependencies = workInProgress.dependencies;
  32545. if (dependencies !== null) {
  32546. var firstContext = dependencies.firstContext;
  32547. if (firstContext !== null) {
  32548. if (dependencies.expirationTime >= renderExpirationTime) {
  32549. // Context list has a pending update. Mark that this fiber performed work.
  32550. markWorkInProgressReceivedUpdate();
  32551. } // Reset the work-in-progress list
  32552. dependencies.firstContext = null;
  32553. }
  32554. }
  32555. }
  32556. function readContext(context, observedBits) {
  32557. {
  32558. // This warning would fire if you read context inside a Hook like useMemo.
  32559. // Unlike the class check below, it's not enforced in production for perf.
  32560. if (isDisallowedContextReadInDEV) {
  32561. 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().');
  32562. }
  32563. }
  32564. if (lastContextWithAllBitsObserved === context) ; else if (observedBits === false || observedBits === 0) ; else {
  32565. var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types.
  32566. if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
  32567. // Observe all updates.
  32568. lastContextWithAllBitsObserved = context;
  32569. resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
  32570. } else {
  32571. resolvedObservedBits = observedBits;
  32572. }
  32573. var contextItem = {
  32574. context: context,
  32575. observedBits: resolvedObservedBits,
  32576. next: null
  32577. };
  32578. if (lastContextDependency === null) {
  32579. if (!(currentlyRenderingFiber !== null)) {
  32580. {
  32581. throw 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()." );
  32582. }
  32583. } // This is the first dependency for this component. Create a new list.
  32584. lastContextDependency = contextItem;
  32585. currentlyRenderingFiber.dependencies = {
  32586. expirationTime: NoWork,
  32587. firstContext: contextItem,
  32588. responders: null
  32589. };
  32590. } else {
  32591. // Append a new context item.
  32592. lastContextDependency = lastContextDependency.next = contextItem;
  32593. }
  32594. }
  32595. return context._currentValue ;
  32596. }
  32597. var UpdateState = 0;
  32598. var ReplaceState = 1;
  32599. var ForceUpdate = 2;
  32600. var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.
  32601. // It should only be read right after calling `processUpdateQueue`, via
  32602. // `checkHasForceUpdateAfterProcessing`.
  32603. var hasForceUpdate = false;
  32604. var didWarnUpdateInsideUpdate;
  32605. var currentlyProcessingQueue;
  32606. {
  32607. didWarnUpdateInsideUpdate = false;
  32608. currentlyProcessingQueue = null;
  32609. }
  32610. function initializeUpdateQueue(fiber) {
  32611. var queue = {
  32612. baseState: fiber.memoizedState,
  32613. baseQueue: null,
  32614. shared: {
  32615. pending: null
  32616. },
  32617. effects: null
  32618. };
  32619. fiber.updateQueue = queue;
  32620. }
  32621. function cloneUpdateQueue(current, workInProgress) {
  32622. // Clone the update queue from current. Unless it's already a clone.
  32623. var queue = workInProgress.updateQueue;
  32624. var currentQueue = current.updateQueue;
  32625. if (queue === currentQueue) {
  32626. var clone = {
  32627. baseState: currentQueue.baseState,
  32628. baseQueue: currentQueue.baseQueue,
  32629. shared: currentQueue.shared,
  32630. effects: currentQueue.effects
  32631. };
  32632. workInProgress.updateQueue = clone;
  32633. }
  32634. }
  32635. function createUpdate(expirationTime, suspenseConfig) {
  32636. var update = {
  32637. expirationTime: expirationTime,
  32638. suspenseConfig: suspenseConfig,
  32639. tag: UpdateState,
  32640. payload: null,
  32641. callback: null,
  32642. next: null
  32643. };
  32644. update.next = update;
  32645. {
  32646. update.priority = getCurrentPriorityLevel();
  32647. }
  32648. return update;
  32649. }
  32650. function enqueueUpdate(fiber, update) {
  32651. var updateQueue = fiber.updateQueue;
  32652. if (updateQueue === null) {
  32653. // Only occurs if the fiber has been unmounted.
  32654. return;
  32655. }
  32656. var sharedQueue = updateQueue.shared;
  32657. var pending = sharedQueue.pending;
  32658. if (pending === null) {
  32659. // This is the first update. Create a circular list.
  32660. update.next = update;
  32661. } else {
  32662. update.next = pending.next;
  32663. pending.next = update;
  32664. }
  32665. sharedQueue.pending = update;
  32666. {
  32667. if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
  32668. error('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.');
  32669. didWarnUpdateInsideUpdate = true;
  32670. }
  32671. }
  32672. }
  32673. function enqueueCapturedUpdate(workInProgress, update) {
  32674. var current = workInProgress.alternate;
  32675. if (current !== null) {
  32676. // Ensure the work-in-progress queue is a clone
  32677. cloneUpdateQueue(current, workInProgress);
  32678. } // Captured updates go only on the work-in-progress queue.
  32679. var queue = workInProgress.updateQueue; // Append the update to the end of the list.
  32680. var last = queue.baseQueue;
  32681. if (last === null) {
  32682. queue.baseQueue = update.next = update;
  32683. update.next = update;
  32684. } else {
  32685. update.next = last.next;
  32686. last.next = update;
  32687. }
  32688. }
  32689. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  32690. switch (update.tag) {
  32691. case ReplaceState:
  32692. {
  32693. var payload = update.payload;
  32694. if (typeof payload === 'function') {
  32695. // Updater function
  32696. {
  32697. enterDisallowedContextReadInDEV();
  32698. if ( workInProgress.mode & StrictMode) {
  32699. payload.call(instance, prevState, nextProps);
  32700. }
  32701. }
  32702. var nextState = payload.call(instance, prevState, nextProps);
  32703. {
  32704. exitDisallowedContextReadInDEV();
  32705. }
  32706. return nextState;
  32707. } // State object
  32708. return payload;
  32709. }
  32710. case CaptureUpdate:
  32711. {
  32712. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  32713. }
  32714. // Intentional fallthrough
  32715. case UpdateState:
  32716. {
  32717. var _payload = update.payload;
  32718. var partialState;
  32719. if (typeof _payload === 'function') {
  32720. // Updater function
  32721. {
  32722. enterDisallowedContextReadInDEV();
  32723. if ( workInProgress.mode & StrictMode) {
  32724. _payload.call(instance, prevState, nextProps);
  32725. }
  32726. }
  32727. partialState = _payload.call(instance, prevState, nextProps);
  32728. {
  32729. exitDisallowedContextReadInDEV();
  32730. }
  32731. } else {
  32732. // Partial state object
  32733. partialState = _payload;
  32734. }
  32735. if (partialState === null || partialState === undefined) {
  32736. // Null and undefined are treated as no-ops.
  32737. return prevState;
  32738. } // Merge the partial state and the previous state.
  32739. return _assign({}, prevState, partialState);
  32740. }
  32741. case ForceUpdate:
  32742. {
  32743. hasForceUpdate = true;
  32744. return prevState;
  32745. }
  32746. }
  32747. return prevState;
  32748. }
  32749. function processUpdateQueue(workInProgress, props, instance, renderExpirationTime) {
  32750. // This is always non-null on a ClassComponent or HostRoot
  32751. var queue = workInProgress.updateQueue;
  32752. hasForceUpdate = false;
  32753. {
  32754. currentlyProcessingQueue = queue.shared;
  32755. } // The last rebase update that is NOT part of the base state.
  32756. var baseQueue = queue.baseQueue; // The last pending update that hasn't been processed yet.
  32757. var pendingQueue = queue.shared.pending;
  32758. if (pendingQueue !== null) {
  32759. // We have new updates that haven't been processed yet.
  32760. // We'll add them to the base queue.
  32761. if (baseQueue !== null) {
  32762. // Merge the pending queue and the base queue.
  32763. var baseFirst = baseQueue.next;
  32764. var pendingFirst = pendingQueue.next;
  32765. baseQueue.next = pendingFirst;
  32766. pendingQueue.next = baseFirst;
  32767. }
  32768. baseQueue = pendingQueue;
  32769. queue.shared.pending = null; // TODO: Pass `current` as argument
  32770. var current = workInProgress.alternate;
  32771. if (current !== null) {
  32772. var currentQueue = current.updateQueue;
  32773. if (currentQueue !== null) {
  32774. currentQueue.baseQueue = pendingQueue;
  32775. }
  32776. }
  32777. } // These values may change as we process the queue.
  32778. if (baseQueue !== null) {
  32779. var first = baseQueue.next; // Iterate through the list of updates to compute the result.
  32780. var newState = queue.baseState;
  32781. var newExpirationTime = NoWork;
  32782. var newBaseState = null;
  32783. var newBaseQueueFirst = null;
  32784. var newBaseQueueLast = null;
  32785. if (first !== null) {
  32786. var update = first;
  32787. do {
  32788. var updateExpirationTime = update.expirationTime;
  32789. if (updateExpirationTime < renderExpirationTime) {
  32790. // Priority is insufficient. Skip this update. If this is the first
  32791. // skipped update, the previous update/state is the new base
  32792. // update/state.
  32793. var clone = {
  32794. expirationTime: update.expirationTime,
  32795. suspenseConfig: update.suspenseConfig,
  32796. tag: update.tag,
  32797. payload: update.payload,
  32798. callback: update.callback,
  32799. next: null
  32800. };
  32801. if (newBaseQueueLast === null) {
  32802. newBaseQueueFirst = newBaseQueueLast = clone;
  32803. newBaseState = newState;
  32804. } else {
  32805. newBaseQueueLast = newBaseQueueLast.next = clone;
  32806. } // Update the remaining priority in the queue.
  32807. if (updateExpirationTime > newExpirationTime) {
  32808. newExpirationTime = updateExpirationTime;
  32809. }
  32810. } else {
  32811. // This update does have sufficient priority.
  32812. if (newBaseQueueLast !== null) {
  32813. var _clone = {
  32814. expirationTime: Sync,
  32815. // This update is going to be committed so we never want uncommit it.
  32816. suspenseConfig: update.suspenseConfig,
  32817. tag: update.tag,
  32818. payload: update.payload,
  32819. callback: update.callback,
  32820. next: null
  32821. };
  32822. newBaseQueueLast = newBaseQueueLast.next = _clone;
  32823. } // Mark the event time of this update as relevant to this render pass.
  32824. // TODO: This should ideally use the true event time of this update rather than
  32825. // its priority which is a derived and not reverseable value.
  32826. // TODO: We should skip this update if it was already committed but currently
  32827. // we have no way of detecting the difference between a committed and suspended
  32828. // update here.
  32829. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.
  32830. newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
  32831. var callback = update.callback;
  32832. if (callback !== null) {
  32833. workInProgress.effectTag |= Callback;
  32834. var effects = queue.effects;
  32835. if (effects === null) {
  32836. queue.effects = [update];
  32837. } else {
  32838. effects.push(update);
  32839. }
  32840. }
  32841. }
  32842. update = update.next;
  32843. if (update === null || update === first) {
  32844. pendingQueue = queue.shared.pending;
  32845. if (pendingQueue === null) {
  32846. break;
  32847. } else {
  32848. // An update was scheduled from inside a reducer. Add the new
  32849. // pending updates to the end of the list and keep processing.
  32850. update = baseQueue.next = pendingQueue.next;
  32851. pendingQueue.next = first;
  32852. queue.baseQueue = baseQueue = pendingQueue;
  32853. queue.shared.pending = null;
  32854. }
  32855. }
  32856. } while (true);
  32857. }
  32858. if (newBaseQueueLast === null) {
  32859. newBaseState = newState;
  32860. } else {
  32861. newBaseQueueLast.next = newBaseQueueFirst;
  32862. }
  32863. queue.baseState = newBaseState;
  32864. queue.baseQueue = newBaseQueueLast; // Set the remaining expiration time to be whatever is remaining in the queue.
  32865. // This should be fine because the only two other things that contribute to
  32866. // expiration time are props and context. We're already in the middle of the
  32867. // begin phase by the time we start processing the queue, so we've already
  32868. // dealt with the props. Context in components that specify
  32869. // shouldComponentUpdate is tricky; but we'll have to account for
  32870. // that regardless.
  32871. markUnprocessedUpdateTime(newExpirationTime);
  32872. workInProgress.expirationTime = newExpirationTime;
  32873. workInProgress.memoizedState = newState;
  32874. }
  32875. {
  32876. currentlyProcessingQueue = null;
  32877. }
  32878. }
  32879. function callCallback(callback, context) {
  32880. if (!(typeof callback === 'function')) {
  32881. {
  32882. throw Error( "Invalid argument passed as callback. Expected a function. Instead received: " + callback );
  32883. }
  32884. }
  32885. callback.call(context);
  32886. }
  32887. function resetHasForceUpdateBeforeProcessing() {
  32888. hasForceUpdate = false;
  32889. }
  32890. function checkHasForceUpdateAfterProcessing() {
  32891. return hasForceUpdate;
  32892. }
  32893. function commitUpdateQueue(finishedWork, finishedQueue, instance) {
  32894. // Commit the effects
  32895. var effects = finishedQueue.effects;
  32896. finishedQueue.effects = null;
  32897. if (effects !== null) {
  32898. for (var i = 0; i < effects.length; i++) {
  32899. var effect = effects[i];
  32900. var callback = effect.callback;
  32901. if (callback !== null) {
  32902. effect.callback = null;
  32903. callCallback(callback, instance);
  32904. }
  32905. }
  32906. }
  32907. }
  32908. var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
  32909. function requestCurrentSuspenseConfig() {
  32910. return ReactCurrentBatchConfig.suspense;
  32911. }
  32912. var fakeInternalInstance = {};
  32913. var isArray = Array.isArray; // React.Component uses a shared frozen object by default.
  32914. // We'll use it to determine whether we need to initialize legacy refs.
  32915. var emptyRefsObject = new React.Component().refs;
  32916. var didWarnAboutStateAssignmentForComponent;
  32917. var didWarnAboutUninitializedState;
  32918. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
  32919. var didWarnAboutLegacyLifecyclesAndDerivedState;
  32920. var didWarnAboutUndefinedDerivedState;
  32921. var warnOnUndefinedDerivedState;
  32922. var warnOnInvalidCallback;
  32923. var didWarnAboutDirectlyAssigningPropsToState;
  32924. var didWarnAboutContextTypeAndContextTypes;
  32925. var didWarnAboutInvalidateContextType;
  32926. {
  32927. didWarnAboutStateAssignmentForComponent = new Set();
  32928. didWarnAboutUninitializedState = new Set();
  32929. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  32930. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  32931. didWarnAboutDirectlyAssigningPropsToState = new Set();
  32932. didWarnAboutUndefinedDerivedState = new Set();
  32933. didWarnAboutContextTypeAndContextTypes = new Set();
  32934. didWarnAboutInvalidateContextType = new Set();
  32935. var didWarnOnInvalidCallback = new Set();
  32936. warnOnInvalidCallback = function (callback, callerName) {
  32937. if (callback === null || typeof callback === 'function') {
  32938. return;
  32939. }
  32940. var key = callerName + "_" + callback;
  32941. if (!didWarnOnInvalidCallback.has(key)) {
  32942. didWarnOnInvalidCallback.add(key);
  32943. error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  32944. }
  32945. };
  32946. warnOnUndefinedDerivedState = function (type, partialState) {
  32947. if (partialState === undefined) {
  32948. var componentName = getComponentName(type) || 'Component';
  32949. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  32950. didWarnAboutUndefinedDerivedState.add(componentName);
  32951. error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  32952. }
  32953. }
  32954. }; // This is so gross but it's at least non-critical and can be removed if
  32955. // it causes problems. This is meant to give a nicer error message for
  32956. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  32957. // ...)) which otherwise throws a "_processChildContext is not a function"
  32958. // exception.
  32959. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  32960. enumerable: false,
  32961. value: function () {
  32962. {
  32963. {
  32964. throw 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)." );
  32965. }
  32966. }
  32967. }
  32968. });
  32969. Object.freeze(fakeInternalInstance);
  32970. }
  32971. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  32972. var prevState = workInProgress.memoizedState;
  32973. {
  32974. if ( workInProgress.mode & StrictMode) {
  32975. // Invoke the function an extra time to help detect side-effects.
  32976. getDerivedStateFromProps(nextProps, prevState);
  32977. }
  32978. }
  32979. var partialState = getDerivedStateFromProps(nextProps, prevState);
  32980. {
  32981. warnOnUndefinedDerivedState(ctor, partialState);
  32982. } // Merge the partial state and the previous state.
  32983. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  32984. workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the
  32985. // base state.
  32986. if (workInProgress.expirationTime === NoWork) {
  32987. // Queue is always non-null for classes
  32988. var updateQueue = workInProgress.updateQueue;
  32989. updateQueue.baseState = memoizedState;
  32990. }
  32991. }
  32992. var classComponentUpdater = {
  32993. isMounted: isMounted,
  32994. enqueueSetState: function (inst, payload, callback) {
  32995. var fiber = get(inst);
  32996. var currentTime = requestCurrentTimeForUpdate();
  32997. var suspenseConfig = requestCurrentSuspenseConfig();
  32998. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  32999. var update = createUpdate(expirationTime, suspenseConfig);
  33000. update.payload = payload;
  33001. if (callback !== undefined && callback !== null) {
  33002. {
  33003. warnOnInvalidCallback(callback, 'setState');
  33004. }
  33005. update.callback = callback;
  33006. }
  33007. enqueueUpdate(fiber, update);
  33008. scheduleWork(fiber, expirationTime);
  33009. },
  33010. enqueueReplaceState: function (inst, payload, callback) {
  33011. var fiber = get(inst);
  33012. var currentTime = requestCurrentTimeForUpdate();
  33013. var suspenseConfig = requestCurrentSuspenseConfig();
  33014. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  33015. var update = createUpdate(expirationTime, suspenseConfig);
  33016. update.tag = ReplaceState;
  33017. update.payload = payload;
  33018. if (callback !== undefined && callback !== null) {
  33019. {
  33020. warnOnInvalidCallback(callback, 'replaceState');
  33021. }
  33022. update.callback = callback;
  33023. }
  33024. enqueueUpdate(fiber, update);
  33025. scheduleWork(fiber, expirationTime);
  33026. },
  33027. enqueueForceUpdate: function (inst, callback) {
  33028. var fiber = get(inst);
  33029. var currentTime = requestCurrentTimeForUpdate();
  33030. var suspenseConfig = requestCurrentSuspenseConfig();
  33031. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  33032. var update = createUpdate(expirationTime, suspenseConfig);
  33033. update.tag = ForceUpdate;
  33034. if (callback !== undefined && callback !== null) {
  33035. {
  33036. warnOnInvalidCallback(callback, 'forceUpdate');
  33037. }
  33038. update.callback = callback;
  33039. }
  33040. enqueueUpdate(fiber, update);
  33041. scheduleWork(fiber, expirationTime);
  33042. }
  33043. };
  33044. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  33045. var instance = workInProgress.stateNode;
  33046. if (typeof instance.shouldComponentUpdate === 'function') {
  33047. {
  33048. if ( workInProgress.mode & StrictMode) {
  33049. // Invoke the function an extra time to help detect side-effects.
  33050. instance.shouldComponentUpdate(newProps, newState, nextContext);
  33051. }
  33052. }
  33053. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  33054. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  33055. stopPhaseTimer();
  33056. {
  33057. if (shouldUpdate === undefined) {
  33058. error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component');
  33059. }
  33060. }
  33061. return shouldUpdate;
  33062. }
  33063. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  33064. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  33065. }
  33066. return true;
  33067. }
  33068. function checkClassInstance(workInProgress, ctor, newProps) {
  33069. var instance = workInProgress.stateNode;
  33070. {
  33071. var name = getComponentName(ctor) || 'Component';
  33072. var renderPresent = instance.render;
  33073. if (!renderPresent) {
  33074. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  33075. error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  33076. } else {
  33077. error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  33078. }
  33079. }
  33080. if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
  33081. error('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);
  33082. }
  33083. if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
  33084. error('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);
  33085. }
  33086. if (instance.propTypes) {
  33087. error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
  33088. }
  33089. if (instance.contextType) {
  33090. error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
  33091. }
  33092. {
  33093. if (instance.contextTypes) {
  33094. error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
  33095. }
  33096. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  33097. didWarnAboutContextTypeAndContextTypes.add(ctor);
  33098. error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  33099. }
  33100. }
  33101. if (typeof instance.componentShouldUpdate === 'function') {
  33102. error('%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);
  33103. }
  33104. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  33105. error('%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');
  33106. }
  33107. if (typeof instance.componentDidUnmount === 'function') {
  33108. error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
  33109. }
  33110. if (typeof instance.componentDidReceiveProps === 'function') {
  33111. error('%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);
  33112. }
  33113. if (typeof instance.componentWillRecieveProps === 'function') {
  33114. error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
  33115. }
  33116. if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
  33117. error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
  33118. }
  33119. var hasMutatedProps = instance.props !== newProps;
  33120. if (instance.props !== undefined && hasMutatedProps) {
  33121. error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
  33122. }
  33123. if (instance.defaultProps) {
  33124. error('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);
  33125. }
  33126. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  33127. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  33128. error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  33129. }
  33130. if (typeof instance.getDerivedStateFromProps === 'function') {
  33131. error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
  33132. }
  33133. if (typeof instance.getDerivedStateFromError === 'function') {
  33134. error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
  33135. }
  33136. if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
  33137. error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
  33138. }
  33139. var _state = instance.state;
  33140. if (_state && (typeof _state !== 'object' || isArray(_state))) {
  33141. error('%s.state: must be set to an object or null', name);
  33142. }
  33143. if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
  33144. error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
  33145. }
  33146. }
  33147. }
  33148. function adoptClassInstance(workInProgress, instance) {
  33149. instance.updater = classComponentUpdater;
  33150. workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates
  33151. set(instance, workInProgress);
  33152. {
  33153. instance._reactInternalInstance = fakeInternalInstance;
  33154. }
  33155. }
  33156. function constructClassInstance(workInProgress, ctor, props) {
  33157. var isLegacyContextConsumer = false;
  33158. var unmaskedContext = emptyContextObject;
  33159. var context = emptyContextObject;
  33160. var contextType = ctor.contextType;
  33161. {
  33162. if ('contextType' in ctor) {
  33163. var isValid = // Allow null for conditional declaration
  33164. contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
  33165. if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
  33166. didWarnAboutInvalidateContextType.add(ctor);
  33167. var addendum = '';
  33168. if (contextType === undefined) {
  33169. 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.';
  33170. } else if (typeof contextType !== 'object') {
  33171. addendum = ' However, it is set to a ' + typeof contextType + '.';
  33172. } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
  33173. addendum = ' Did you accidentally pass the Context.Provider instead?';
  33174. } else if (contextType._context !== undefined) {
  33175. // <Context.Consumer>
  33176. addendum = ' Did you accidentally pass the Context.Consumer instead?';
  33177. } else {
  33178. addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
  33179. }
  33180. error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
  33181. }
  33182. }
  33183. }
  33184. if (typeof contextType === 'object' && contextType !== null) {
  33185. context = readContext(contextType);
  33186. } else {
  33187. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  33188. var contextTypes = ctor.contextTypes;
  33189. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  33190. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  33191. } // Instantiate twice to help detect side-effects.
  33192. {
  33193. if ( workInProgress.mode & StrictMode) {
  33194. new ctor(props, context); // eslint-disable-line no-new
  33195. }
  33196. }
  33197. var instance = new ctor(props, context);
  33198. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  33199. adoptClassInstance(workInProgress, instance);
  33200. {
  33201. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  33202. var componentName = getComponentName(ctor) || 'Component';
  33203. if (!didWarnAboutUninitializedState.has(componentName)) {
  33204. didWarnAboutUninitializedState.add(componentName);
  33205. error('`%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);
  33206. }
  33207. } // If new component APIs are defined, "unsafe" lifecycles won't be called.
  33208. // Warn about these lifecycles if they are present.
  33209. // Don't warn about react-lifecycles-compat polyfilled methods though.
  33210. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  33211. var foundWillMountName = null;
  33212. var foundWillReceivePropsName = null;
  33213. var foundWillUpdateName = null;
  33214. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  33215. foundWillMountName = 'componentWillMount';
  33216. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  33217. foundWillMountName = 'UNSAFE_componentWillMount';
  33218. }
  33219. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  33220. foundWillReceivePropsName = 'componentWillReceiveProps';
  33221. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  33222. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  33223. }
  33224. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  33225. foundWillUpdateName = 'componentWillUpdate';
  33226. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  33227. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  33228. }
  33229. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  33230. var _componentName = getComponentName(ctor) || 'Component';
  33231. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  33232. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  33233. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  33234. error('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-unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n " + foundWillUpdateName : '');
  33235. }
  33236. }
  33237. }
  33238. } // Cache unmasked context so we can avoid recreating masked context unless necessary.
  33239. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  33240. if (isLegacyContextConsumer) {
  33241. cacheContext(workInProgress, unmaskedContext, context);
  33242. }
  33243. return instance;
  33244. }
  33245. function callComponentWillMount(workInProgress, instance) {
  33246. startPhaseTimer(workInProgress, 'componentWillMount');
  33247. var oldState = instance.state;
  33248. if (typeof instance.componentWillMount === 'function') {
  33249. instance.componentWillMount();
  33250. }
  33251. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  33252. instance.UNSAFE_componentWillMount();
  33253. }
  33254. stopPhaseTimer();
  33255. if (oldState !== instance.state) {
  33256. {
  33257. error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
  33258. }
  33259. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  33260. }
  33261. }
  33262. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  33263. var oldState = instance.state;
  33264. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  33265. if (typeof instance.componentWillReceiveProps === 'function') {
  33266. instance.componentWillReceiveProps(newProps, nextContext);
  33267. }
  33268. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  33269. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  33270. }
  33271. stopPhaseTimer();
  33272. if (instance.state !== oldState) {
  33273. {
  33274. var componentName = getComponentName(workInProgress.type) || 'Component';
  33275. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  33276. didWarnAboutStateAssignmentForComponent.add(componentName);
  33277. error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  33278. }
  33279. }
  33280. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  33281. }
  33282. } // Invokes the mount life-cycles on a previously never rendered instance.
  33283. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  33284. {
  33285. checkClassInstance(workInProgress, ctor, newProps);
  33286. }
  33287. var instance = workInProgress.stateNode;
  33288. instance.props = newProps;
  33289. instance.state = workInProgress.memoizedState;
  33290. instance.refs = emptyRefsObject;
  33291. initializeUpdateQueue(workInProgress);
  33292. var contextType = ctor.contextType;
  33293. if (typeof contextType === 'object' && contextType !== null) {
  33294. instance.context = readContext(contextType);
  33295. } else {
  33296. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  33297. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  33298. }
  33299. {
  33300. if (instance.state === newProps) {
  33301. var componentName = getComponentName(ctor) || 'Component';
  33302. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  33303. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  33304. error('%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);
  33305. }
  33306. }
  33307. if (workInProgress.mode & StrictMode) {
  33308. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  33309. }
  33310. {
  33311. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  33312. }
  33313. }
  33314. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  33315. instance.state = workInProgress.memoizedState;
  33316. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  33317. if (typeof getDerivedStateFromProps === 'function') {
  33318. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  33319. instance.state = workInProgress.memoizedState;
  33320. } // In order to support react-lifecycles-compat polyfilled components,
  33321. // Unsafe lifecycles should not be invoked for components using the new APIs.
  33322. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  33323. callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's
  33324. // process them now.
  33325. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  33326. instance.state = workInProgress.memoizedState;
  33327. }
  33328. if (typeof instance.componentDidMount === 'function') {
  33329. workInProgress.effectTag |= Update;
  33330. }
  33331. }
  33332. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  33333. var instance = workInProgress.stateNode;
  33334. var oldProps = workInProgress.memoizedProps;
  33335. instance.props = oldProps;
  33336. var oldContext = instance.context;
  33337. var contextType = ctor.contextType;
  33338. var nextContext = emptyContextObject;
  33339. if (typeof contextType === 'object' && contextType !== null) {
  33340. nextContext = readContext(contextType);
  33341. } else {
  33342. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  33343. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  33344. }
  33345. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  33346. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  33347. // ever the previously attempted to render - not the "current". However,
  33348. // during componentDidUpdate we pass the "current" props.
  33349. // In order to support react-lifecycles-compat polyfilled components,
  33350. // Unsafe lifecycles should not be invoked for components using the new APIs.
  33351. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  33352. if (oldProps !== newProps || oldContext !== nextContext) {
  33353. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  33354. }
  33355. }
  33356. resetHasForceUpdateBeforeProcessing();
  33357. var oldState = workInProgress.memoizedState;
  33358. var newState = instance.state = oldState;
  33359. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  33360. newState = workInProgress.memoizedState;
  33361. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  33362. // If an update was already in progress, we should schedule an Update
  33363. // effect even though we're bailing out, so that cWU/cDU are called.
  33364. if (typeof instance.componentDidMount === 'function') {
  33365. workInProgress.effectTag |= Update;
  33366. }
  33367. return false;
  33368. }
  33369. if (typeof getDerivedStateFromProps === 'function') {
  33370. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  33371. newState = workInProgress.memoizedState;
  33372. }
  33373. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  33374. if (shouldUpdate) {
  33375. // In order to support react-lifecycles-compat polyfilled components,
  33376. // Unsafe lifecycles should not be invoked for components using the new APIs.
  33377. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  33378. startPhaseTimer(workInProgress, 'componentWillMount');
  33379. if (typeof instance.componentWillMount === 'function') {
  33380. instance.componentWillMount();
  33381. }
  33382. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  33383. instance.UNSAFE_componentWillMount();
  33384. }
  33385. stopPhaseTimer();
  33386. }
  33387. if (typeof instance.componentDidMount === 'function') {
  33388. workInProgress.effectTag |= Update;
  33389. }
  33390. } else {
  33391. // If an update was already in progress, we should schedule an Update
  33392. // effect even though we're bailing out, so that cWU/cDU are called.
  33393. if (typeof instance.componentDidMount === 'function') {
  33394. workInProgress.effectTag |= Update;
  33395. } // If shouldComponentUpdate returned false, we should still update the
  33396. // memoized state to indicate that this work can be reused.
  33397. workInProgress.memoizedProps = newProps;
  33398. workInProgress.memoizedState = newState;
  33399. } // Update the existing instance's state, props, and context pointers even
  33400. // if shouldComponentUpdate returns false.
  33401. instance.props = newProps;
  33402. instance.state = newState;
  33403. instance.context = nextContext;
  33404. return shouldUpdate;
  33405. } // Invokes the update life-cycles and returns false if it shouldn't rerender.
  33406. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  33407. var instance = workInProgress.stateNode;
  33408. cloneUpdateQueue(current, workInProgress);
  33409. var oldProps = workInProgress.memoizedProps;
  33410. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  33411. var oldContext = instance.context;
  33412. var contextType = ctor.contextType;
  33413. var nextContext = emptyContextObject;
  33414. if (typeof contextType === 'object' && contextType !== null) {
  33415. nextContext = readContext(contextType);
  33416. } else {
  33417. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  33418. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  33419. }
  33420. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  33421. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  33422. // ever the previously attempted to render - not the "current". However,
  33423. // during componentDidUpdate we pass the "current" props.
  33424. // In order to support react-lifecycles-compat polyfilled components,
  33425. // Unsafe lifecycles should not be invoked for components using the new APIs.
  33426. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  33427. if (oldProps !== newProps || oldContext !== nextContext) {
  33428. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  33429. }
  33430. }
  33431. resetHasForceUpdateBeforeProcessing();
  33432. var oldState = workInProgress.memoizedState;
  33433. var newState = instance.state = oldState;
  33434. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  33435. newState = workInProgress.memoizedState;
  33436. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  33437. // If an update was already in progress, we should schedule an Update
  33438. // effect even though we're bailing out, so that cWU/cDU are called.
  33439. if (typeof instance.componentDidUpdate === 'function') {
  33440. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33441. workInProgress.effectTag |= Update;
  33442. }
  33443. }
  33444. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  33445. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33446. workInProgress.effectTag |= Snapshot;
  33447. }
  33448. }
  33449. return false;
  33450. }
  33451. if (typeof getDerivedStateFromProps === 'function') {
  33452. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  33453. newState = workInProgress.memoizedState;
  33454. }
  33455. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  33456. if (shouldUpdate) {
  33457. // In order to support react-lifecycles-compat polyfilled components,
  33458. // Unsafe lifecycles should not be invoked for components using the new APIs.
  33459. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  33460. startPhaseTimer(workInProgress, 'componentWillUpdate');
  33461. if (typeof instance.componentWillUpdate === 'function') {
  33462. instance.componentWillUpdate(newProps, newState, nextContext);
  33463. }
  33464. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  33465. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  33466. }
  33467. stopPhaseTimer();
  33468. }
  33469. if (typeof instance.componentDidUpdate === 'function') {
  33470. workInProgress.effectTag |= Update;
  33471. }
  33472. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  33473. workInProgress.effectTag |= Snapshot;
  33474. }
  33475. } else {
  33476. // If an update was already in progress, we should schedule an Update
  33477. // effect even though we're bailing out, so that cWU/cDU are called.
  33478. if (typeof instance.componentDidUpdate === 'function') {
  33479. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33480. workInProgress.effectTag |= Update;
  33481. }
  33482. }
  33483. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  33484. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  33485. workInProgress.effectTag |= Snapshot;
  33486. }
  33487. } // If shouldComponentUpdate returned false, we should still update the
  33488. // memoized props/state to indicate that this work can be reused.
  33489. workInProgress.memoizedProps = newProps;
  33490. workInProgress.memoizedState = newState;
  33491. } // Update the existing instance's state, props, and context pointers even
  33492. // if shouldComponentUpdate returns false.
  33493. instance.props = newProps;
  33494. instance.state = newState;
  33495. instance.context = nextContext;
  33496. return shouldUpdate;
  33497. }
  33498. var didWarnAboutMaps;
  33499. var didWarnAboutGenerators;
  33500. var didWarnAboutStringRefs;
  33501. var ownerHasKeyUseWarning;
  33502. var ownerHasFunctionTypeWarning;
  33503. var warnForMissingKey = function (child) {};
  33504. {
  33505. didWarnAboutMaps = false;
  33506. didWarnAboutGenerators = false;
  33507. didWarnAboutStringRefs = {};
  33508. /**
  33509. * Warn if there's no key explicitly set on dynamic arrays of children or
  33510. * object keys are not valid. This allows us to keep track of children between
  33511. * updates.
  33512. */
  33513. ownerHasKeyUseWarning = {};
  33514. ownerHasFunctionTypeWarning = {};
  33515. warnForMissingKey = function (child) {
  33516. if (child === null || typeof child !== 'object') {
  33517. return;
  33518. }
  33519. if (!child._store || child._store.validated || child.key != null) {
  33520. return;
  33521. }
  33522. if (!(typeof child._store === 'object')) {
  33523. {
  33524. throw Error( "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." );
  33525. }
  33526. }
  33527. child._store.validated = true;
  33528. var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  33529. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  33530. return;
  33531. }
  33532. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  33533. error('Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  33534. };
  33535. }
  33536. var isArray$1 = Array.isArray;
  33537. function coerceRef(returnFiber, current, element) {
  33538. var mixedRef = element.ref;
  33539. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  33540. {
  33541. // TODO: Clean this up once we turn on the string ref warning for
  33542. // everyone, because the strict mode case will no longer be relevant
  33543. if ((returnFiber.mode & StrictMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
  33544. // because these cannot be automatically converted to an arrow function
  33545. // using a codemod. Therefore, we don't have to warn about string refs again.
  33546. !(element._owner && element._self && element._owner.stateNode !== element._self)) {
  33547. var componentName = getComponentName(returnFiber.type) || 'Component';
  33548. if (!didWarnAboutStringRefs[componentName]) {
  33549. {
  33550. error('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 useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref%s', mixedRef, getStackByFiberInDevAndProd(returnFiber));
  33551. }
  33552. didWarnAboutStringRefs[componentName] = true;
  33553. }
  33554. }
  33555. }
  33556. if (element._owner) {
  33557. var owner = element._owner;
  33558. var inst;
  33559. if (owner) {
  33560. var ownerFiber = owner;
  33561. if (!(ownerFiber.tag === ClassComponent)) {
  33562. {
  33563. throw Error( "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref" );
  33564. }
  33565. }
  33566. inst = ownerFiber.stateNode;
  33567. }
  33568. if (!inst) {
  33569. {
  33570. throw Error( "Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue." );
  33571. }
  33572. }
  33573. var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref
  33574. if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
  33575. return current.ref;
  33576. }
  33577. var ref = function (value) {
  33578. var refs = inst.refs;
  33579. if (refs === emptyRefsObject) {
  33580. // This is a lazy pooled frozen object, so we need to initialize.
  33581. refs = inst.refs = {};
  33582. }
  33583. if (value === null) {
  33584. delete refs[stringRef];
  33585. } else {
  33586. refs[stringRef] = value;
  33587. }
  33588. };
  33589. ref._stringRef = stringRef;
  33590. return ref;
  33591. } else {
  33592. if (!(typeof mixedRef === 'string')) {
  33593. {
  33594. throw Error( "Expected ref to be a function, a string, an object returned by React.createRef(), or null." );
  33595. }
  33596. }
  33597. if (!element._owner) {
  33598. {
  33599. throw 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." );
  33600. }
  33601. }
  33602. }
  33603. }
  33604. return mixedRef;
  33605. }
  33606. function throwOnInvalidObjectType(returnFiber, newChild) {
  33607. if (returnFiber.type !== 'textarea') {
  33608. var addendum = '';
  33609. {
  33610. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  33611. }
  33612. {
  33613. {
  33614. throw 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 );
  33615. }
  33616. }
  33617. }
  33618. }
  33619. function warnOnFunctionType() {
  33620. {
  33621. 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();
  33622. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  33623. return;
  33624. }
  33625. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  33626. error('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.');
  33627. }
  33628. } // This wrapper function exists because I expect to clone the code in each path
  33629. // to be able to optimize each path individually by branching early. This needs
  33630. // a compiler or we can do it manually. Helpers that don't need this branching
  33631. // live outside of this function.
  33632. function ChildReconciler(shouldTrackSideEffects) {
  33633. function deleteChild(returnFiber, childToDelete) {
  33634. if (!shouldTrackSideEffects) {
  33635. // Noop.
  33636. return;
  33637. } // Deletions are added in reversed order so we add it to the front.
  33638. // At this point, the return fiber's effect list is empty except for
  33639. // deletions, so we can just append the deletion to the list. The remaining
  33640. // effects aren't added until the complete phase. Once we implement
  33641. // resuming, this may not be true.
  33642. var last = returnFiber.lastEffect;
  33643. if (last !== null) {
  33644. last.nextEffect = childToDelete;
  33645. returnFiber.lastEffect = childToDelete;
  33646. } else {
  33647. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  33648. }
  33649. childToDelete.nextEffect = null;
  33650. childToDelete.effectTag = Deletion;
  33651. }
  33652. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  33653. if (!shouldTrackSideEffects) {
  33654. // Noop.
  33655. return null;
  33656. } // TODO: For the shouldClone case, this could be micro-optimized a bit by
  33657. // assuming that after the first child we've already added everything.
  33658. var childToDelete = currentFirstChild;
  33659. while (childToDelete !== null) {
  33660. deleteChild(returnFiber, childToDelete);
  33661. childToDelete = childToDelete.sibling;
  33662. }
  33663. return null;
  33664. }
  33665. function mapRemainingChildren(returnFiber, currentFirstChild) {
  33666. // Add the remaining children to a temporary map so that we can find them by
  33667. // keys quickly. Implicit (null) keys get added to this set with their index
  33668. // instead.
  33669. var existingChildren = new Map();
  33670. var existingChild = currentFirstChild;
  33671. while (existingChild !== null) {
  33672. if (existingChild.key !== null) {
  33673. existingChildren.set(existingChild.key, existingChild);
  33674. } else {
  33675. existingChildren.set(existingChild.index, existingChild);
  33676. }
  33677. existingChild = existingChild.sibling;
  33678. }
  33679. return existingChildren;
  33680. }
  33681. function useFiber(fiber, pendingProps) {
  33682. // We currently set sibling to null and index to 0 here because it is easy
  33683. // to forget to do before returning it. E.g. for the single child case.
  33684. var clone = createWorkInProgress(fiber, pendingProps);
  33685. clone.index = 0;
  33686. clone.sibling = null;
  33687. return clone;
  33688. }
  33689. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  33690. newFiber.index = newIndex;
  33691. if (!shouldTrackSideEffects) {
  33692. // Noop.
  33693. return lastPlacedIndex;
  33694. }
  33695. var current = newFiber.alternate;
  33696. if (current !== null) {
  33697. var oldIndex = current.index;
  33698. if (oldIndex < lastPlacedIndex) {
  33699. // This is a move.
  33700. newFiber.effectTag = Placement;
  33701. return lastPlacedIndex;
  33702. } else {
  33703. // This item can stay in place.
  33704. return oldIndex;
  33705. }
  33706. } else {
  33707. // This is an insertion.
  33708. newFiber.effectTag = Placement;
  33709. return lastPlacedIndex;
  33710. }
  33711. }
  33712. function placeSingleChild(newFiber) {
  33713. // This is simpler for the single child case. We only need to do a
  33714. // placement for inserting new children.
  33715. if (shouldTrackSideEffects && newFiber.alternate === null) {
  33716. newFiber.effectTag = Placement;
  33717. }
  33718. return newFiber;
  33719. }
  33720. function updateTextNode(returnFiber, current, textContent, expirationTime) {
  33721. if (current === null || current.tag !== HostText) {
  33722. // Insert
  33723. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  33724. created.return = returnFiber;
  33725. return created;
  33726. } else {
  33727. // Update
  33728. var existing = useFiber(current, textContent);
  33729. existing.return = returnFiber;
  33730. return existing;
  33731. }
  33732. }
  33733. function updateElement(returnFiber, current, element, expirationTime) {
  33734. if (current !== null) {
  33735. if (current.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
  33736. isCompatibleFamilyForHotReloading(current, element) )) {
  33737. // Move based on index
  33738. var existing = useFiber(current, element.props);
  33739. existing.ref = coerceRef(returnFiber, current, element);
  33740. existing.return = returnFiber;
  33741. {
  33742. existing._debugSource = element._source;
  33743. existing._debugOwner = element._owner;
  33744. }
  33745. return existing;
  33746. }
  33747. } // Insert
  33748. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  33749. created.ref = coerceRef(returnFiber, current, element);
  33750. created.return = returnFiber;
  33751. return created;
  33752. }
  33753. function updatePortal(returnFiber, current, portal, expirationTime) {
  33754. if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
  33755. // Insert
  33756. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  33757. created.return = returnFiber;
  33758. return created;
  33759. } else {
  33760. // Update
  33761. var existing = useFiber(current, portal.children || []);
  33762. existing.return = returnFiber;
  33763. return existing;
  33764. }
  33765. }
  33766. function updateFragment(returnFiber, current, fragment, expirationTime, key) {
  33767. if (current === null || current.tag !== Fragment) {
  33768. // Insert
  33769. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  33770. created.return = returnFiber;
  33771. return created;
  33772. } else {
  33773. // Update
  33774. var existing = useFiber(current, fragment);
  33775. existing.return = returnFiber;
  33776. return existing;
  33777. }
  33778. }
  33779. function createChild(returnFiber, newChild, expirationTime) {
  33780. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33781. // Text nodes don't have keys. If the previous node is implicitly keyed
  33782. // we can continue to replace it without aborting even if it is not a text
  33783. // node.
  33784. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  33785. created.return = returnFiber;
  33786. return created;
  33787. }
  33788. if (typeof newChild === 'object' && newChild !== null) {
  33789. switch (newChild.$$typeof) {
  33790. case REACT_ELEMENT_TYPE:
  33791. {
  33792. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  33793. _created.ref = coerceRef(returnFiber, null, newChild);
  33794. _created.return = returnFiber;
  33795. return _created;
  33796. }
  33797. case REACT_PORTAL_TYPE:
  33798. {
  33799. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  33800. _created2.return = returnFiber;
  33801. return _created2;
  33802. }
  33803. }
  33804. if (isArray$1(newChild) || getIteratorFn(newChild)) {
  33805. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  33806. _created3.return = returnFiber;
  33807. return _created3;
  33808. }
  33809. throwOnInvalidObjectType(returnFiber, newChild);
  33810. }
  33811. {
  33812. if (typeof newChild === 'function') {
  33813. warnOnFunctionType();
  33814. }
  33815. }
  33816. return null;
  33817. }
  33818. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  33819. // Update the fiber if the keys match, otherwise return null.
  33820. var key = oldFiber !== null ? oldFiber.key : null;
  33821. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33822. // Text nodes don't have keys. If the previous node is implicitly keyed
  33823. // we can continue to replace it without aborting even if it is not a text
  33824. // node.
  33825. if (key !== null) {
  33826. return null;
  33827. }
  33828. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  33829. }
  33830. if (typeof newChild === 'object' && newChild !== null) {
  33831. switch (newChild.$$typeof) {
  33832. case REACT_ELEMENT_TYPE:
  33833. {
  33834. if (newChild.key === key) {
  33835. if (newChild.type === REACT_FRAGMENT_TYPE) {
  33836. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  33837. }
  33838. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  33839. } else {
  33840. return null;
  33841. }
  33842. }
  33843. case REACT_PORTAL_TYPE:
  33844. {
  33845. if (newChild.key === key) {
  33846. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  33847. } else {
  33848. return null;
  33849. }
  33850. }
  33851. }
  33852. if (isArray$1(newChild) || getIteratorFn(newChild)) {
  33853. if (key !== null) {
  33854. return null;
  33855. }
  33856. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  33857. }
  33858. throwOnInvalidObjectType(returnFiber, newChild);
  33859. }
  33860. {
  33861. if (typeof newChild === 'function') {
  33862. warnOnFunctionType();
  33863. }
  33864. }
  33865. return null;
  33866. }
  33867. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  33868. if (typeof newChild === 'string' || typeof newChild === 'number') {
  33869. // Text nodes don't have keys, so we neither have to check the old nor
  33870. // new node for the key. If both are text nodes, they match.
  33871. var matchedFiber = existingChildren.get(newIdx) || null;
  33872. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  33873. }
  33874. if (typeof newChild === 'object' && newChild !== null) {
  33875. switch (newChild.$$typeof) {
  33876. case REACT_ELEMENT_TYPE:
  33877. {
  33878. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  33879. if (newChild.type === REACT_FRAGMENT_TYPE) {
  33880. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  33881. }
  33882. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  33883. }
  33884. case REACT_PORTAL_TYPE:
  33885. {
  33886. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  33887. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  33888. }
  33889. }
  33890. if (isArray$1(newChild) || getIteratorFn(newChild)) {
  33891. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  33892. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  33893. }
  33894. throwOnInvalidObjectType(returnFiber, newChild);
  33895. }
  33896. {
  33897. if (typeof newChild === 'function') {
  33898. warnOnFunctionType();
  33899. }
  33900. }
  33901. return null;
  33902. }
  33903. /**
  33904. * Warns if there is a duplicate or missing key
  33905. */
  33906. function warnOnInvalidKey(child, knownKeys) {
  33907. {
  33908. if (typeof child !== 'object' || child === null) {
  33909. return knownKeys;
  33910. }
  33911. switch (child.$$typeof) {
  33912. case REACT_ELEMENT_TYPE:
  33913. case REACT_PORTAL_TYPE:
  33914. warnForMissingKey(child);
  33915. var key = child.key;
  33916. if (typeof key !== 'string') {
  33917. break;
  33918. }
  33919. if (knownKeys === null) {
  33920. knownKeys = new Set();
  33921. knownKeys.add(key);
  33922. break;
  33923. }
  33924. if (!knownKeys.has(key)) {
  33925. knownKeys.add(key);
  33926. break;
  33927. }
  33928. error('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);
  33929. break;
  33930. }
  33931. }
  33932. return knownKeys;
  33933. }
  33934. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  33935. // This algorithm can't optimize by searching from both ends since we
  33936. // don't have backpointers on fibers. I'm trying to see how far we can get
  33937. // with that model. If it ends up not being worth the tradeoffs, we can
  33938. // add it later.
  33939. // Even with a two ended optimization, we'd want to optimize for the case
  33940. // where there are few changes and brute force the comparison instead of
  33941. // going for the Map. It'd like to explore hitting that path first in
  33942. // forward-only mode and only go for the Map once we notice that we need
  33943. // lots of look ahead. This doesn't handle reversal as well as two ended
  33944. // search but that's unusual. Besides, for the two ended optimization to
  33945. // work on Iterables, we'd need to copy the whole set.
  33946. // In this first iteration, we'll just live with hitting the bad case
  33947. // (adding everything to a Map) in for every insert/move.
  33948. // If you change this code, also update reconcileChildrenIterator() which
  33949. // uses the same algorithm.
  33950. {
  33951. // First, validate keys.
  33952. var knownKeys = null;
  33953. for (var i = 0; i < newChildren.length; i++) {
  33954. var child = newChildren[i];
  33955. knownKeys = warnOnInvalidKey(child, knownKeys);
  33956. }
  33957. }
  33958. var resultingFirstChild = null;
  33959. var previousNewFiber = null;
  33960. var oldFiber = currentFirstChild;
  33961. var lastPlacedIndex = 0;
  33962. var newIdx = 0;
  33963. var nextOldFiber = null;
  33964. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  33965. if (oldFiber.index > newIdx) {
  33966. nextOldFiber = oldFiber;
  33967. oldFiber = null;
  33968. } else {
  33969. nextOldFiber = oldFiber.sibling;
  33970. }
  33971. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  33972. if (newFiber === null) {
  33973. // TODO: This breaks on empty slots like null children. That's
  33974. // unfortunate because it triggers the slow path all the time. We need
  33975. // a better way to communicate whether this was a miss or null,
  33976. // boolean, undefined, etc.
  33977. if (oldFiber === null) {
  33978. oldFiber = nextOldFiber;
  33979. }
  33980. break;
  33981. }
  33982. if (shouldTrackSideEffects) {
  33983. if (oldFiber && newFiber.alternate === null) {
  33984. // We matched the slot, but we didn't reuse the existing fiber, so we
  33985. // need to delete the existing child.
  33986. deleteChild(returnFiber, oldFiber);
  33987. }
  33988. }
  33989. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  33990. if (previousNewFiber === null) {
  33991. // TODO: Move out of the loop. This only happens for the first run.
  33992. resultingFirstChild = newFiber;
  33993. } else {
  33994. // TODO: Defer siblings if we're not at the right index for this slot.
  33995. // I.e. if we had null values before, then we want to defer this
  33996. // for each null value. However, we also don't want to call updateSlot
  33997. // with the previous one.
  33998. previousNewFiber.sibling = newFiber;
  33999. }
  34000. previousNewFiber = newFiber;
  34001. oldFiber = nextOldFiber;
  34002. }
  34003. if (newIdx === newChildren.length) {
  34004. // We've reached the end of the new children. We can delete the rest.
  34005. deleteRemainingChildren(returnFiber, oldFiber);
  34006. return resultingFirstChild;
  34007. }
  34008. if (oldFiber === null) {
  34009. // If we don't have any more existing children we can choose a fast path
  34010. // since the rest will all be insertions.
  34011. for (; newIdx < newChildren.length; newIdx++) {
  34012. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  34013. if (_newFiber === null) {
  34014. continue;
  34015. }
  34016. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  34017. if (previousNewFiber === null) {
  34018. // TODO: Move out of the loop. This only happens for the first run.
  34019. resultingFirstChild = _newFiber;
  34020. } else {
  34021. previousNewFiber.sibling = _newFiber;
  34022. }
  34023. previousNewFiber = _newFiber;
  34024. }
  34025. return resultingFirstChild;
  34026. } // Add all children to a key map for quick lookups.
  34027. var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
  34028. for (; newIdx < newChildren.length; newIdx++) {
  34029. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  34030. if (_newFiber2 !== null) {
  34031. if (shouldTrackSideEffects) {
  34032. if (_newFiber2.alternate !== null) {
  34033. // The new fiber is a work in progress, but if there exists a
  34034. // current, that means that we reused the fiber. We need to delete
  34035. // it from the child list so that we don't add it to the deletion
  34036. // list.
  34037. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  34038. }
  34039. }
  34040. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  34041. if (previousNewFiber === null) {
  34042. resultingFirstChild = _newFiber2;
  34043. } else {
  34044. previousNewFiber.sibling = _newFiber2;
  34045. }
  34046. previousNewFiber = _newFiber2;
  34047. }
  34048. }
  34049. if (shouldTrackSideEffects) {
  34050. // Any existing children that weren't consumed above were deleted. We need
  34051. // to add them to the deletion list.
  34052. existingChildren.forEach(function (child) {
  34053. return deleteChild(returnFiber, child);
  34054. });
  34055. }
  34056. return resultingFirstChild;
  34057. }
  34058. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  34059. // This is the same implementation as reconcileChildrenArray(),
  34060. // but using the iterator instead.
  34061. var iteratorFn = getIteratorFn(newChildrenIterable);
  34062. if (!(typeof iteratorFn === 'function')) {
  34063. {
  34064. throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." );
  34065. }
  34066. }
  34067. {
  34068. // We don't support rendering Generators because it's a mutation.
  34069. // See https://github.com/facebook/react/issues/12995
  34070. if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag
  34071. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  34072. if (!didWarnAboutGenerators) {
  34073. error('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.');
  34074. }
  34075. didWarnAboutGenerators = true;
  34076. } // Warn about using Maps as children
  34077. if (newChildrenIterable.entries === iteratorFn) {
  34078. if (!didWarnAboutMaps) {
  34079. error('Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.');
  34080. }
  34081. didWarnAboutMaps = true;
  34082. } // First, validate keys.
  34083. // We'll get a different iterator later for the main pass.
  34084. var _newChildren = iteratorFn.call(newChildrenIterable);
  34085. if (_newChildren) {
  34086. var knownKeys = null;
  34087. var _step = _newChildren.next();
  34088. for (; !_step.done; _step = _newChildren.next()) {
  34089. var child = _step.value;
  34090. knownKeys = warnOnInvalidKey(child, knownKeys);
  34091. }
  34092. }
  34093. }
  34094. var newChildren = iteratorFn.call(newChildrenIterable);
  34095. if (!(newChildren != null)) {
  34096. {
  34097. throw Error( "An iterable object provided no iterator." );
  34098. }
  34099. }
  34100. var resultingFirstChild = null;
  34101. var previousNewFiber = null;
  34102. var oldFiber = currentFirstChild;
  34103. var lastPlacedIndex = 0;
  34104. var newIdx = 0;
  34105. var nextOldFiber = null;
  34106. var step = newChildren.next();
  34107. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  34108. if (oldFiber.index > newIdx) {
  34109. nextOldFiber = oldFiber;
  34110. oldFiber = null;
  34111. } else {
  34112. nextOldFiber = oldFiber.sibling;
  34113. }
  34114. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  34115. if (newFiber === null) {
  34116. // TODO: This breaks on empty slots like null children. That's
  34117. // unfortunate because it triggers the slow path all the time. We need
  34118. // a better way to communicate whether this was a miss or null,
  34119. // boolean, undefined, etc.
  34120. if (oldFiber === null) {
  34121. oldFiber = nextOldFiber;
  34122. }
  34123. break;
  34124. }
  34125. if (shouldTrackSideEffects) {
  34126. if (oldFiber && newFiber.alternate === null) {
  34127. // We matched the slot, but we didn't reuse the existing fiber, so we
  34128. // need to delete the existing child.
  34129. deleteChild(returnFiber, oldFiber);
  34130. }
  34131. }
  34132. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  34133. if (previousNewFiber === null) {
  34134. // TODO: Move out of the loop. This only happens for the first run.
  34135. resultingFirstChild = newFiber;
  34136. } else {
  34137. // TODO: Defer siblings if we're not at the right index for this slot.
  34138. // I.e. if we had null values before, then we want to defer this
  34139. // for each null value. However, we also don't want to call updateSlot
  34140. // with the previous one.
  34141. previousNewFiber.sibling = newFiber;
  34142. }
  34143. previousNewFiber = newFiber;
  34144. oldFiber = nextOldFiber;
  34145. }
  34146. if (step.done) {
  34147. // We've reached the end of the new children. We can delete the rest.
  34148. deleteRemainingChildren(returnFiber, oldFiber);
  34149. return resultingFirstChild;
  34150. }
  34151. if (oldFiber === null) {
  34152. // If we don't have any more existing children we can choose a fast path
  34153. // since the rest will all be insertions.
  34154. for (; !step.done; newIdx++, step = newChildren.next()) {
  34155. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  34156. if (_newFiber3 === null) {
  34157. continue;
  34158. }
  34159. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  34160. if (previousNewFiber === null) {
  34161. // TODO: Move out of the loop. This only happens for the first run.
  34162. resultingFirstChild = _newFiber3;
  34163. } else {
  34164. previousNewFiber.sibling = _newFiber3;
  34165. }
  34166. previousNewFiber = _newFiber3;
  34167. }
  34168. return resultingFirstChild;
  34169. } // Add all children to a key map for quick lookups.
  34170. var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
  34171. for (; !step.done; newIdx++, step = newChildren.next()) {
  34172. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  34173. if (_newFiber4 !== null) {
  34174. if (shouldTrackSideEffects) {
  34175. if (_newFiber4.alternate !== null) {
  34176. // The new fiber is a work in progress, but if there exists a
  34177. // current, that means that we reused the fiber. We need to delete
  34178. // it from the child list so that we don't add it to the deletion
  34179. // list.
  34180. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  34181. }
  34182. }
  34183. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  34184. if (previousNewFiber === null) {
  34185. resultingFirstChild = _newFiber4;
  34186. } else {
  34187. previousNewFiber.sibling = _newFiber4;
  34188. }
  34189. previousNewFiber = _newFiber4;
  34190. }
  34191. }
  34192. if (shouldTrackSideEffects) {
  34193. // Any existing children that weren't consumed above were deleted. We need
  34194. // to add them to the deletion list.
  34195. existingChildren.forEach(function (child) {
  34196. return deleteChild(returnFiber, child);
  34197. });
  34198. }
  34199. return resultingFirstChild;
  34200. }
  34201. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  34202. // There's no need to check for keys on text nodes since we don't have a
  34203. // way to define them.
  34204. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  34205. // We already have an existing node so let's just update it and delete
  34206. // the rest.
  34207. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  34208. var existing = useFiber(currentFirstChild, textContent);
  34209. existing.return = returnFiber;
  34210. return existing;
  34211. } // The existing first child is not a text node so we need to create one
  34212. // and delete the existing ones.
  34213. deleteRemainingChildren(returnFiber, currentFirstChild);
  34214. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  34215. created.return = returnFiber;
  34216. return created;
  34217. }
  34218. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  34219. var key = element.key;
  34220. var child = currentFirstChild;
  34221. while (child !== null) {
  34222. // TODO: If key === null and child.key === null, then this only applies to
  34223. // the first item in the list.
  34224. if (child.key === key) {
  34225. switch (child.tag) {
  34226. case Fragment:
  34227. {
  34228. if (element.type === REACT_FRAGMENT_TYPE) {
  34229. deleteRemainingChildren(returnFiber, child.sibling);
  34230. var existing = useFiber(child, element.props.children);
  34231. existing.return = returnFiber;
  34232. {
  34233. existing._debugSource = element._source;
  34234. existing._debugOwner = element._owner;
  34235. }
  34236. return existing;
  34237. }
  34238. break;
  34239. }
  34240. case Block:
  34241. // We intentionally fallthrough here if enableBlocksAPI is not on.
  34242. // eslint-disable-next-lined no-fallthrough
  34243. default:
  34244. {
  34245. if (child.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
  34246. isCompatibleFamilyForHotReloading(child, element) )) {
  34247. deleteRemainingChildren(returnFiber, child.sibling);
  34248. var _existing3 = useFiber(child, element.props);
  34249. _existing3.ref = coerceRef(returnFiber, child, element);
  34250. _existing3.return = returnFiber;
  34251. {
  34252. _existing3._debugSource = element._source;
  34253. _existing3._debugOwner = element._owner;
  34254. }
  34255. return _existing3;
  34256. }
  34257. break;
  34258. }
  34259. } // Didn't match.
  34260. deleteRemainingChildren(returnFiber, child);
  34261. break;
  34262. } else {
  34263. deleteChild(returnFiber, child);
  34264. }
  34265. child = child.sibling;
  34266. }
  34267. if (element.type === REACT_FRAGMENT_TYPE) {
  34268. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  34269. created.return = returnFiber;
  34270. return created;
  34271. } else {
  34272. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  34273. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  34274. _created4.return = returnFiber;
  34275. return _created4;
  34276. }
  34277. }
  34278. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  34279. var key = portal.key;
  34280. var child = currentFirstChild;
  34281. while (child !== null) {
  34282. // TODO: If key === null and child.key === null, then this only applies to
  34283. // the first item in the list.
  34284. if (child.key === key) {
  34285. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  34286. deleteRemainingChildren(returnFiber, child.sibling);
  34287. var existing = useFiber(child, portal.children || []);
  34288. existing.return = returnFiber;
  34289. return existing;
  34290. } else {
  34291. deleteRemainingChildren(returnFiber, child);
  34292. break;
  34293. }
  34294. } else {
  34295. deleteChild(returnFiber, child);
  34296. }
  34297. child = child.sibling;
  34298. }
  34299. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  34300. created.return = returnFiber;
  34301. return created;
  34302. } // This API will tag the children with the side-effect of the reconciliation
  34303. // itself. They will be added to the side-effect list as we pass through the
  34304. // children and the parent.
  34305. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  34306. // This function is not recursive.
  34307. // If the top level item is an array, we treat it as a set of children,
  34308. // not as a fragment. Nested arrays on the other hand will be treated as
  34309. // fragment nodes. Recursion happens at the normal flow.
  34310. // Handle top level unkeyed fragments as if they were arrays.
  34311. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  34312. // We treat the ambiguous cases above the same.
  34313. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  34314. if (isUnkeyedTopLevelFragment) {
  34315. newChild = newChild.props.children;
  34316. } // Handle object types
  34317. var isObject = typeof newChild === 'object' && newChild !== null;
  34318. if (isObject) {
  34319. switch (newChild.$$typeof) {
  34320. case REACT_ELEMENT_TYPE:
  34321. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  34322. case REACT_PORTAL_TYPE:
  34323. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  34324. }
  34325. }
  34326. if (typeof newChild === 'string' || typeof newChild === 'number') {
  34327. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  34328. }
  34329. if (isArray$1(newChild)) {
  34330. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  34331. }
  34332. if (getIteratorFn(newChild)) {
  34333. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  34334. }
  34335. if (isObject) {
  34336. throwOnInvalidObjectType(returnFiber, newChild);
  34337. }
  34338. {
  34339. if (typeof newChild === 'function') {
  34340. warnOnFunctionType();
  34341. }
  34342. }
  34343. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  34344. // If the new child is undefined, and the return fiber is a composite
  34345. // component, throw an error. If Fiber return types are disabled,
  34346. // we already threw above.
  34347. switch (returnFiber.tag) {
  34348. case ClassComponent:
  34349. {
  34350. {
  34351. var instance = returnFiber.stateNode;
  34352. if (instance.render._isMockFunction) {
  34353. // We allow auto-mocks to proceed as if they're returning null.
  34354. break;
  34355. }
  34356. }
  34357. }
  34358. // Intentionally fall through to the next case, which handles both
  34359. // functions and classes
  34360. // eslint-disable-next-lined no-fallthrough
  34361. case FunctionComponent:
  34362. {
  34363. var Component = returnFiber.type;
  34364. {
  34365. {
  34366. throw 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." );
  34367. }
  34368. }
  34369. }
  34370. }
  34371. } // Remaining cases are all treated as empty.
  34372. return deleteRemainingChildren(returnFiber, currentFirstChild);
  34373. }
  34374. return reconcileChildFibers;
  34375. }
  34376. var reconcileChildFibers = ChildReconciler(true);
  34377. var mountChildFibers = ChildReconciler(false);
  34378. function cloneChildFibers(current, workInProgress) {
  34379. if (!(current === null || workInProgress.child === current.child)) {
  34380. {
  34381. throw Error( "Resuming work not yet implemented." );
  34382. }
  34383. }
  34384. if (workInProgress.child === null) {
  34385. return;
  34386. }
  34387. var currentChild = workInProgress.child;
  34388. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
  34389. workInProgress.child = newChild;
  34390. newChild.return = workInProgress;
  34391. while (currentChild.sibling !== null) {
  34392. currentChild = currentChild.sibling;
  34393. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
  34394. newChild.return = workInProgress;
  34395. }
  34396. newChild.sibling = null;
  34397. } // Reset a workInProgress child set to prepare it for a second pass.
  34398. function resetChildFibers(workInProgress, renderExpirationTime) {
  34399. var child = workInProgress.child;
  34400. while (child !== null) {
  34401. resetWorkInProgress(child, renderExpirationTime);
  34402. child = child.sibling;
  34403. }
  34404. }
  34405. var NO_CONTEXT = {};
  34406. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  34407. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  34408. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  34409. function requiredContext(c) {
  34410. if (!(c !== NO_CONTEXT)) {
  34411. {
  34412. throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." );
  34413. }
  34414. }
  34415. return c;
  34416. }
  34417. function getRootHostContainer() {
  34418. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  34419. return rootInstance;
  34420. }
  34421. function pushHostContainer(fiber, nextRootInstance) {
  34422. // Push current root instance onto the stack;
  34423. // This allows us to reset root when portals are popped.
  34424. push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.
  34425. // This enables us to pop only Fibers that provide unique contexts.
  34426. push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.
  34427. // However, we can't just call getRootHostContext() and push it because
  34428. // we'd have a different number of entries on the stack depending on
  34429. // whether getRootHostContext() throws somewhere in renderer code or not.
  34430. // So we push an empty value first. This lets us safely unwind on errors.
  34431. push(contextStackCursor$1, NO_CONTEXT, fiber);
  34432. var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.
  34433. pop(contextStackCursor$1, fiber);
  34434. push(contextStackCursor$1, nextRootContext, fiber);
  34435. }
  34436. function popHostContainer(fiber) {
  34437. pop(contextStackCursor$1, fiber);
  34438. pop(contextFiberStackCursor, fiber);
  34439. pop(rootInstanceStackCursor, fiber);
  34440. }
  34441. function getHostContext() {
  34442. var context = requiredContext(contextStackCursor$1.current);
  34443. return context;
  34444. }
  34445. function pushHostContext(fiber) {
  34446. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  34447. var context = requiredContext(contextStackCursor$1.current);
  34448. var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.
  34449. if (context === nextContext) {
  34450. return;
  34451. } // Track the context and the Fiber that provided it.
  34452. // This enables us to pop only Fibers that provide unique contexts.
  34453. push(contextFiberStackCursor, fiber, fiber);
  34454. push(contextStackCursor$1, nextContext, fiber);
  34455. }
  34456. function popHostContext(fiber) {
  34457. // Do not pop unless this Fiber provided the current context.
  34458. // pushHostContext() only pushes Fibers that provide unique contexts.
  34459. if (contextFiberStackCursor.current !== fiber) {
  34460. return;
  34461. }
  34462. pop(contextStackCursor$1, fiber);
  34463. pop(contextFiberStackCursor, fiber);
  34464. }
  34465. var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
  34466. // inherited deeply down the subtree. The upper bits only affect
  34467. // this immediate suspense boundary and gets reset each new
  34468. // boundary or suspense list.
  34469. var SubtreeSuspenseContextMask = 1; // Subtree Flags:
  34470. // InvisibleParentSuspenseContext indicates that one of our parent Suspense
  34471. // boundaries is not currently showing visible main content.
  34472. // Either because it is already showing a fallback or is not mounted at all.
  34473. // We can use this to determine if it is desirable to trigger a fallback at
  34474. // the parent. If not, then we might need to trigger undesirable boundaries
  34475. // and/or suspend the commit to avoid hiding the parent content.
  34476. var InvisibleParentSuspenseContext = 1; // Shallow Flags:
  34477. // ForceSuspenseFallback can be used by SuspenseList to force newly added
  34478. // items into their fallback state during one of the render passes.
  34479. var ForceSuspenseFallback = 2;
  34480. var suspenseStackCursor = createCursor(DefaultSuspenseContext);
  34481. function hasSuspenseContext(parentContext, flag) {
  34482. return (parentContext & flag) !== 0;
  34483. }
  34484. function setDefaultShallowSuspenseContext(parentContext) {
  34485. return parentContext & SubtreeSuspenseContextMask;
  34486. }
  34487. function setShallowSuspenseContext(parentContext, shallowContext) {
  34488. return parentContext & SubtreeSuspenseContextMask | shallowContext;
  34489. }
  34490. function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  34491. return parentContext | subtreeContext;
  34492. }
  34493. function pushSuspenseContext(fiber, newContext) {
  34494. push(suspenseStackCursor, newContext, fiber);
  34495. }
  34496. function popSuspenseContext(fiber) {
  34497. pop(suspenseStackCursor, fiber);
  34498. }
  34499. function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  34500. // If it was the primary children that just suspended, capture and render the
  34501. // fallback. Otherwise, don't capture and bubble to the next boundary.
  34502. var nextState = workInProgress.memoizedState;
  34503. if (nextState !== null) {
  34504. if (nextState.dehydrated !== null) {
  34505. // A dehydrated boundary always captures.
  34506. return true;
  34507. }
  34508. return false;
  34509. }
  34510. var props = workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop.
  34511. if (props.fallback === undefined) {
  34512. return false;
  34513. } // Regular boundaries always capture.
  34514. if (props.unstable_avoidThisFallback !== true) {
  34515. return true;
  34516. } // If it's a boundary we should avoid, then we prefer to bubble up to the
  34517. // parent boundary if it is currently invisible.
  34518. if (hasInvisibleParent) {
  34519. return false;
  34520. } // If the parent is not able to handle it, we must handle it.
  34521. return true;
  34522. }
  34523. function findFirstSuspended(row) {
  34524. var node = row;
  34525. while (node !== null) {
  34526. if (node.tag === SuspenseComponent) {
  34527. var state = node.memoizedState;
  34528. if (state !== null) {
  34529. var dehydrated = state.dehydrated;
  34530. if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
  34531. return node;
  34532. }
  34533. }
  34534. } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
  34535. // keep track of whether it suspended or not.
  34536. node.memoizedProps.revealOrder !== undefined) {
  34537. var didSuspend = (node.effectTag & DidCapture) !== NoEffect;
  34538. if (didSuspend) {
  34539. return node;
  34540. }
  34541. } else if (node.child !== null) {
  34542. node.child.return = node;
  34543. node = node.child;
  34544. continue;
  34545. }
  34546. if (node === row) {
  34547. return null;
  34548. }
  34549. while (node.sibling === null) {
  34550. if (node.return === null || node.return === row) {
  34551. return null;
  34552. }
  34553. node = node.return;
  34554. }
  34555. node.sibling.return = node.return;
  34556. node = node.sibling;
  34557. }
  34558. return null;
  34559. }
  34560. function createDeprecatedResponderListener(responder, props) {
  34561. var eventResponderListener = {
  34562. responder: responder,
  34563. props: props
  34564. };
  34565. {
  34566. Object.freeze(eventResponderListener);
  34567. }
  34568. return eventResponderListener;
  34569. }
  34570. var HasEffect =
  34571. /* */
  34572. 1; // Represents the phase in which the effect (not the clean-up) fires.
  34573. var Layout =
  34574. /* */
  34575. 2;
  34576. var Passive$1 =
  34577. /* */
  34578. 4;
  34579. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher,
  34580. ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
  34581. var didWarnAboutMismatchedHooksForComponent;
  34582. {
  34583. didWarnAboutMismatchedHooksForComponent = new Set();
  34584. }
  34585. // These are set right before calling the component.
  34586. var renderExpirationTime = NoWork; // The work-in-progress fiber. I've named it differently to distinguish it from
  34587. // the work-in-progress hook.
  34588. var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
  34589. // current hook list is the list that belongs to the current fiber. The
  34590. // work-in-progress hook list is a new list that will be added to the
  34591. // work-in-progress fiber.
  34592. var currentHook = null;
  34593. var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
  34594. // does not get reset if we do another render pass; only when we're completely
  34595. // finished evaluating this component. This is an optimization so we know
  34596. // whether we need to clear render phase updates after a throw.
  34597. var didScheduleRenderPhaseUpdate = false;
  34598. var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook
  34599. var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
  34600. // The list stores the order of hooks used during the initial render (mount).
  34601. // Subsequent renders (updates) reference this list.
  34602. var hookTypesDev = null;
  34603. var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
  34604. // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
  34605. // When true, such Hooks will always be "remounted". Only used during hot reload.
  34606. var ignorePreviousDependencies = false;
  34607. function mountHookTypesDev() {
  34608. {
  34609. var hookName = currentHookNameInDev;
  34610. if (hookTypesDev === null) {
  34611. hookTypesDev = [hookName];
  34612. } else {
  34613. hookTypesDev.push(hookName);
  34614. }
  34615. }
  34616. }
  34617. function updateHookTypesDev() {
  34618. {
  34619. var hookName = currentHookNameInDev;
  34620. if (hookTypesDev !== null) {
  34621. hookTypesUpdateIndexDev++;
  34622. if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
  34623. warnOnHookMismatchInDev(hookName);
  34624. }
  34625. }
  34626. }
  34627. }
  34628. function checkDepsAreArrayDev(deps) {
  34629. {
  34630. if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
  34631. // Verify deps, but only on mount to avoid extra checks.
  34632. // It's unlikely their type would change as usually you define them inline.
  34633. error('%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);
  34634. }
  34635. }
  34636. }
  34637. function warnOnHookMismatchInDev(currentHookName) {
  34638. {
  34639. var componentName = getComponentName(currentlyRenderingFiber$1.type);
  34640. if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
  34641. didWarnAboutMismatchedHooksForComponent.add(componentName);
  34642. if (hookTypesDev !== null) {
  34643. var table = '';
  34644. var secondColumnStart = 30;
  34645. for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
  34646. var oldHookName = hookTypesDev[i];
  34647. var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
  34648. var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
  34649. // lol @ IE not supporting String#repeat
  34650. while (row.length < secondColumnStart) {
  34651. row += ' ';
  34652. }
  34653. row += newHookName + '\n';
  34654. table += row;
  34655. }
  34656. error('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);
  34657. }
  34658. }
  34659. }
  34660. }
  34661. function throwInvalidHookError() {
  34662. {
  34663. {
  34664. throw 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." );
  34665. }
  34666. }
  34667. }
  34668. function areHookInputsEqual(nextDeps, prevDeps) {
  34669. {
  34670. if (ignorePreviousDependencies) {
  34671. // Only true when this component is being hot reloaded.
  34672. return false;
  34673. }
  34674. }
  34675. if (prevDeps === null) {
  34676. {
  34677. error('%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);
  34678. }
  34679. return false;
  34680. }
  34681. {
  34682. // Don't bother comparing lengths in prod because these arrays should be
  34683. // passed inline.
  34684. if (nextDeps.length !== prevDeps.length) {
  34685. error('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(', ') + "]");
  34686. }
  34687. }
  34688. for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
  34689. if (objectIs(nextDeps[i], prevDeps[i])) {
  34690. continue;
  34691. }
  34692. return false;
  34693. }
  34694. return true;
  34695. }
  34696. function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderExpirationTime) {
  34697. renderExpirationTime = nextRenderExpirationTime;
  34698. currentlyRenderingFiber$1 = workInProgress;
  34699. {
  34700. hookTypesDev = current !== null ? current._debugHookTypes : null;
  34701. hookTypesUpdateIndexDev = -1; // Used for hot reloading:
  34702. ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  34703. }
  34704. workInProgress.memoizedState = null;
  34705. workInProgress.updateQueue = null;
  34706. workInProgress.expirationTime = NoWork; // The following should have already been reset
  34707. // currentHook = null;
  34708. // workInProgressHook = null;
  34709. // didScheduleRenderPhaseUpdate = false;
  34710. // TODO Warn if no hooks are used at all during mount, then some are used during update.
  34711. // Currently we will identify the update render as a mount because memoizedState === null.
  34712. // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  34713. // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
  34714. // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  34715. // so memoizedState would be null during updates and mounts.
  34716. {
  34717. if (current !== null && current.memoizedState !== null) {
  34718. ReactCurrentDispatcher.current = HooksDispatcherOnUpdateInDEV;
  34719. } else if (hookTypesDev !== null) {
  34720. // This dispatcher handles an edge case where a component is updating,
  34721. // but no stateful hooks have been used.
  34722. // We want to match the production code behavior (which will use HooksDispatcherOnMount),
  34723. // but with the extra DEV validation to ensure hooks ordering hasn't changed.
  34724. // This dispatcher does that.
  34725. ReactCurrentDispatcher.current = HooksDispatcherOnMountWithHookTypesInDEV;
  34726. } else {
  34727. ReactCurrentDispatcher.current = HooksDispatcherOnMountInDEV;
  34728. }
  34729. }
  34730. var children = Component(props, secondArg); // Check if there was a render phase update
  34731. if (workInProgress.expirationTime === renderExpirationTime) {
  34732. // Keep rendering in a loop for as long as render phase updates continue to
  34733. // be scheduled. Use a counter to prevent infinite loops.
  34734. var numberOfReRenders = 0;
  34735. do {
  34736. workInProgress.expirationTime = NoWork;
  34737. if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
  34738. {
  34739. throw Error( "Too many re-renders. React limits the number of renders to prevent an infinite loop." );
  34740. }
  34741. }
  34742. numberOfReRenders += 1;
  34743. {
  34744. // Even when hot reloading, allow dependencies to stabilize
  34745. // after first render to prevent infinite render phase updates.
  34746. ignorePreviousDependencies = false;
  34747. } // Start over from the beginning of the list
  34748. currentHook = null;
  34749. workInProgressHook = null;
  34750. workInProgress.updateQueue = null;
  34751. {
  34752. // Also validate hook order for cascading updates.
  34753. hookTypesUpdateIndexDev = -1;
  34754. }
  34755. ReactCurrentDispatcher.current = HooksDispatcherOnRerenderInDEV ;
  34756. children = Component(props, secondArg);
  34757. } while (workInProgress.expirationTime === renderExpirationTime);
  34758. } // We can assume the previous dispatcher is always this one, since we set it
  34759. // at the beginning of the render phase and there's no re-entrancy.
  34760. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  34761. {
  34762. workInProgress._debugHookTypes = hookTypesDev;
  34763. } // This check uses currentHook so that it works the same in DEV and prod bundles.
  34764. // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
  34765. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  34766. renderExpirationTime = NoWork;
  34767. currentlyRenderingFiber$1 = null;
  34768. currentHook = null;
  34769. workInProgressHook = null;
  34770. {
  34771. currentHookNameInDev = null;
  34772. hookTypesDev = null;
  34773. hookTypesUpdateIndexDev = -1;
  34774. }
  34775. didScheduleRenderPhaseUpdate = false;
  34776. if (!!didRenderTooFewHooks) {
  34777. {
  34778. throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." );
  34779. }
  34780. }
  34781. return children;
  34782. }
  34783. function bailoutHooks(current, workInProgress, expirationTime) {
  34784. workInProgress.updateQueue = current.updateQueue;
  34785. workInProgress.effectTag &= ~(Passive | Update);
  34786. if (current.expirationTime <= expirationTime) {
  34787. current.expirationTime = NoWork;
  34788. }
  34789. }
  34790. function resetHooksAfterThrow() {
  34791. // We can assume the previous dispatcher is always this one, since we set it
  34792. // at the beginning of the render phase and there's no re-entrancy.
  34793. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  34794. if (didScheduleRenderPhaseUpdate) {
  34795. // There were render phase updates. These are only valid for this render
  34796. // phase, which we are now aborting. Remove the updates from the queues so
  34797. // they do not persist to the next render. Do not remove updates from hooks
  34798. // that weren't processed.
  34799. //
  34800. // Only reset the updates from the queue if it has a clone. If it does
  34801. // not have a clone, that means it wasn't processed, and the updates were
  34802. // scheduled before we entered the render phase.
  34803. var hook = currentlyRenderingFiber$1.memoizedState;
  34804. while (hook !== null) {
  34805. var queue = hook.queue;
  34806. if (queue !== null) {
  34807. queue.pending = null;
  34808. }
  34809. hook = hook.next;
  34810. }
  34811. }
  34812. renderExpirationTime = NoWork;
  34813. currentlyRenderingFiber$1 = null;
  34814. currentHook = null;
  34815. workInProgressHook = null;
  34816. {
  34817. hookTypesDev = null;
  34818. hookTypesUpdateIndexDev = -1;
  34819. currentHookNameInDev = null;
  34820. }
  34821. didScheduleRenderPhaseUpdate = false;
  34822. }
  34823. function mountWorkInProgressHook() {
  34824. var hook = {
  34825. memoizedState: null,
  34826. baseState: null,
  34827. baseQueue: null,
  34828. queue: null,
  34829. next: null
  34830. };
  34831. if (workInProgressHook === null) {
  34832. // This is the first hook in the list
  34833. currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
  34834. } else {
  34835. // Append to the end of the list
  34836. workInProgressHook = workInProgressHook.next = hook;
  34837. }
  34838. return workInProgressHook;
  34839. }
  34840. function updateWorkInProgressHook() {
  34841. // This function is used both for updates and for re-renders triggered by a
  34842. // render phase update. It assumes there is either a current hook we can
  34843. // clone, or a work-in-progress hook from a previous render pass that we can
  34844. // use as a base. When we reach the end of the base list, we must switch to
  34845. // the dispatcher used for mounts.
  34846. var nextCurrentHook;
  34847. if (currentHook === null) {
  34848. var current = currentlyRenderingFiber$1.alternate;
  34849. if (current !== null) {
  34850. nextCurrentHook = current.memoizedState;
  34851. } else {
  34852. nextCurrentHook = null;
  34853. }
  34854. } else {
  34855. nextCurrentHook = currentHook.next;
  34856. }
  34857. var nextWorkInProgressHook;
  34858. if (workInProgressHook === null) {
  34859. nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
  34860. } else {
  34861. nextWorkInProgressHook = workInProgressHook.next;
  34862. }
  34863. if (nextWorkInProgressHook !== null) {
  34864. // There's already a work-in-progress. Reuse it.
  34865. workInProgressHook = nextWorkInProgressHook;
  34866. nextWorkInProgressHook = workInProgressHook.next;
  34867. currentHook = nextCurrentHook;
  34868. } else {
  34869. // Clone from the current hook.
  34870. if (!(nextCurrentHook !== null)) {
  34871. {
  34872. throw Error( "Rendered more hooks than during the previous render." );
  34873. }
  34874. }
  34875. currentHook = nextCurrentHook;
  34876. var newHook = {
  34877. memoizedState: currentHook.memoizedState,
  34878. baseState: currentHook.baseState,
  34879. baseQueue: currentHook.baseQueue,
  34880. queue: currentHook.queue,
  34881. next: null
  34882. };
  34883. if (workInProgressHook === null) {
  34884. // This is the first hook in the list.
  34885. currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
  34886. } else {
  34887. // Append to the end of the list.
  34888. workInProgressHook = workInProgressHook.next = newHook;
  34889. }
  34890. }
  34891. return workInProgressHook;
  34892. }
  34893. function createFunctionComponentUpdateQueue() {
  34894. return {
  34895. lastEffect: null
  34896. };
  34897. }
  34898. function basicStateReducer(state, action) {
  34899. // $FlowFixMe: Flow doesn't like mixed types
  34900. return typeof action === 'function' ? action(state) : action;
  34901. }
  34902. function mountReducer(reducer, initialArg, init) {
  34903. var hook = mountWorkInProgressHook();
  34904. var initialState;
  34905. if (init !== undefined) {
  34906. initialState = init(initialArg);
  34907. } else {
  34908. initialState = initialArg;
  34909. }
  34910. hook.memoizedState = hook.baseState = initialState;
  34911. var queue = hook.queue = {
  34912. pending: null,
  34913. dispatch: null,
  34914. lastRenderedReducer: reducer,
  34915. lastRenderedState: initialState
  34916. };
  34917. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  34918. return [hook.memoizedState, dispatch];
  34919. }
  34920. function updateReducer(reducer, initialArg, init) {
  34921. var hook = updateWorkInProgressHook();
  34922. var queue = hook.queue;
  34923. if (!(queue !== null)) {
  34924. {
  34925. throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
  34926. }
  34927. }
  34928. queue.lastRenderedReducer = reducer;
  34929. var current = currentHook; // The last rebase update that is NOT part of the base state.
  34930. var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.
  34931. var pendingQueue = queue.pending;
  34932. if (pendingQueue !== null) {
  34933. // We have new updates that haven't been processed yet.
  34934. // We'll add them to the base queue.
  34935. if (baseQueue !== null) {
  34936. // Merge the pending queue and the base queue.
  34937. var baseFirst = baseQueue.next;
  34938. var pendingFirst = pendingQueue.next;
  34939. baseQueue.next = pendingFirst;
  34940. pendingQueue.next = baseFirst;
  34941. }
  34942. current.baseQueue = baseQueue = pendingQueue;
  34943. queue.pending = null;
  34944. }
  34945. if (baseQueue !== null) {
  34946. // We have a queue to process.
  34947. var first = baseQueue.next;
  34948. var newState = current.baseState;
  34949. var newBaseState = null;
  34950. var newBaseQueueFirst = null;
  34951. var newBaseQueueLast = null;
  34952. var update = first;
  34953. do {
  34954. var updateExpirationTime = update.expirationTime;
  34955. if (updateExpirationTime < renderExpirationTime) {
  34956. // Priority is insufficient. Skip this update. If this is the first
  34957. // skipped update, the previous update/state is the new base
  34958. // update/state.
  34959. var clone = {
  34960. expirationTime: update.expirationTime,
  34961. suspenseConfig: update.suspenseConfig,
  34962. action: update.action,
  34963. eagerReducer: update.eagerReducer,
  34964. eagerState: update.eagerState,
  34965. next: null
  34966. };
  34967. if (newBaseQueueLast === null) {
  34968. newBaseQueueFirst = newBaseQueueLast = clone;
  34969. newBaseState = newState;
  34970. } else {
  34971. newBaseQueueLast = newBaseQueueLast.next = clone;
  34972. } // Update the remaining priority in the queue.
  34973. if (updateExpirationTime > currentlyRenderingFiber$1.expirationTime) {
  34974. currentlyRenderingFiber$1.expirationTime = updateExpirationTime;
  34975. markUnprocessedUpdateTime(updateExpirationTime);
  34976. }
  34977. } else {
  34978. // This update does have sufficient priority.
  34979. if (newBaseQueueLast !== null) {
  34980. var _clone = {
  34981. expirationTime: Sync,
  34982. // This update is going to be committed so we never want uncommit it.
  34983. suspenseConfig: update.suspenseConfig,
  34984. action: update.action,
  34985. eagerReducer: update.eagerReducer,
  34986. eagerState: update.eagerState,
  34987. next: null
  34988. };
  34989. newBaseQueueLast = newBaseQueueLast.next = _clone;
  34990. } // Mark the event time of this update as relevant to this render pass.
  34991. // TODO: This should ideally use the true event time of this update rather than
  34992. // its priority which is a derived and not reverseable value.
  34993. // TODO: We should skip this update if it was already committed but currently
  34994. // we have no way of detecting the difference between a committed and suspended
  34995. // update here.
  34996. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.
  34997. if (update.eagerReducer === reducer) {
  34998. // If this update was processed eagerly, and its reducer matches the
  34999. // current reducer, we can use the eagerly computed state.
  35000. newState = update.eagerState;
  35001. } else {
  35002. var action = update.action;
  35003. newState = reducer(newState, action);
  35004. }
  35005. }
  35006. update = update.next;
  35007. } while (update !== null && update !== first);
  35008. if (newBaseQueueLast === null) {
  35009. newBaseState = newState;
  35010. } else {
  35011. newBaseQueueLast.next = newBaseQueueFirst;
  35012. } // Mark that the fiber performed work, but only if the new state is
  35013. // different from the current state.
  35014. if (!objectIs(newState, hook.memoizedState)) {
  35015. markWorkInProgressReceivedUpdate();
  35016. }
  35017. hook.memoizedState = newState;
  35018. hook.baseState = newBaseState;
  35019. hook.baseQueue = newBaseQueueLast;
  35020. queue.lastRenderedState = newState;
  35021. }
  35022. var dispatch = queue.dispatch;
  35023. return [hook.memoizedState, dispatch];
  35024. }
  35025. function rerenderReducer(reducer, initialArg, init) {
  35026. var hook = updateWorkInProgressHook();
  35027. var queue = hook.queue;
  35028. if (!(queue !== null)) {
  35029. {
  35030. throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
  35031. }
  35032. }
  35033. queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
  35034. // work-in-progress hook.
  35035. var dispatch = queue.dispatch;
  35036. var lastRenderPhaseUpdate = queue.pending;
  35037. var newState = hook.memoizedState;
  35038. if (lastRenderPhaseUpdate !== null) {
  35039. // The queue doesn't persist past this render pass.
  35040. queue.pending = null;
  35041. var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  35042. var update = firstRenderPhaseUpdate;
  35043. do {
  35044. // Process this render phase update. We don't have to check the
  35045. // priority because it will always be the same as the current
  35046. // render's.
  35047. var action = update.action;
  35048. newState = reducer(newState, action);
  35049. update = update.next;
  35050. } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
  35051. // different from the current state.
  35052. if (!objectIs(newState, hook.memoizedState)) {
  35053. markWorkInProgressReceivedUpdate();
  35054. }
  35055. hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
  35056. // the base state unless the queue is empty.
  35057. // TODO: Not sure if this is the desired semantics, but it's what we
  35058. // do for gDSFP. I can't remember why.
  35059. if (hook.baseQueue === null) {
  35060. hook.baseState = newState;
  35061. }
  35062. queue.lastRenderedState = newState;
  35063. }
  35064. return [newState, dispatch];
  35065. }
  35066. function mountState(initialState) {
  35067. var hook = mountWorkInProgressHook();
  35068. if (typeof initialState === 'function') {
  35069. // $FlowFixMe: Flow doesn't like mixed types
  35070. initialState = initialState();
  35071. }
  35072. hook.memoizedState = hook.baseState = initialState;
  35073. var queue = hook.queue = {
  35074. pending: null,
  35075. dispatch: null,
  35076. lastRenderedReducer: basicStateReducer,
  35077. lastRenderedState: initialState
  35078. };
  35079. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  35080. return [hook.memoizedState, dispatch];
  35081. }
  35082. function updateState(initialState) {
  35083. return updateReducer(basicStateReducer);
  35084. }
  35085. function rerenderState(initialState) {
  35086. return rerenderReducer(basicStateReducer);
  35087. }
  35088. function pushEffect(tag, create, destroy, deps) {
  35089. var effect = {
  35090. tag: tag,
  35091. create: create,
  35092. destroy: destroy,
  35093. deps: deps,
  35094. // Circular
  35095. next: null
  35096. };
  35097. var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;
  35098. if (componentUpdateQueue === null) {
  35099. componentUpdateQueue = createFunctionComponentUpdateQueue();
  35100. currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
  35101. componentUpdateQueue.lastEffect = effect.next = effect;
  35102. } else {
  35103. var lastEffect = componentUpdateQueue.lastEffect;
  35104. if (lastEffect === null) {
  35105. componentUpdateQueue.lastEffect = effect.next = effect;
  35106. } else {
  35107. var firstEffect = lastEffect.next;
  35108. lastEffect.next = effect;
  35109. effect.next = firstEffect;
  35110. componentUpdateQueue.lastEffect = effect;
  35111. }
  35112. }
  35113. return effect;
  35114. }
  35115. function mountRef(initialValue) {
  35116. var hook = mountWorkInProgressHook();
  35117. var ref = {
  35118. current: initialValue
  35119. };
  35120. {
  35121. Object.seal(ref);
  35122. }
  35123. hook.memoizedState = ref;
  35124. return ref;
  35125. }
  35126. function updateRef(initialValue) {
  35127. var hook = updateWorkInProgressHook();
  35128. return hook.memoizedState;
  35129. }
  35130. function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  35131. var hook = mountWorkInProgressHook();
  35132. var nextDeps = deps === undefined ? null : deps;
  35133. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  35134. hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, undefined, nextDeps);
  35135. }
  35136. function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  35137. var hook = updateWorkInProgressHook();
  35138. var nextDeps = deps === undefined ? null : deps;
  35139. var destroy = undefined;
  35140. if (currentHook !== null) {
  35141. var prevEffect = currentHook.memoizedState;
  35142. destroy = prevEffect.destroy;
  35143. if (nextDeps !== null) {
  35144. var prevDeps = prevEffect.deps;
  35145. if (areHookInputsEqual(nextDeps, prevDeps)) {
  35146. pushEffect(hookEffectTag, create, destroy, nextDeps);
  35147. return;
  35148. }
  35149. }
  35150. }
  35151. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  35152. hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, destroy, nextDeps);
  35153. }
  35154. function mountEffect(create, deps) {
  35155. {
  35156. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  35157. if ('undefined' !== typeof jest) {
  35158. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  35159. }
  35160. }
  35161. return mountEffectImpl(Update | Passive, Passive$1, create, deps);
  35162. }
  35163. function updateEffect(create, deps) {
  35164. {
  35165. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  35166. if ('undefined' !== typeof jest) {
  35167. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  35168. }
  35169. }
  35170. return updateEffectImpl(Update | Passive, Passive$1, create, deps);
  35171. }
  35172. function mountLayoutEffect(create, deps) {
  35173. return mountEffectImpl(Update, Layout, create, deps);
  35174. }
  35175. function updateLayoutEffect(create, deps) {
  35176. return updateEffectImpl(Update, Layout, create, deps);
  35177. }
  35178. function imperativeHandleEffect(create, ref) {
  35179. if (typeof ref === 'function') {
  35180. var refCallback = ref;
  35181. var _inst = create();
  35182. refCallback(_inst);
  35183. return function () {
  35184. refCallback(null);
  35185. };
  35186. } else if (ref !== null && ref !== undefined) {
  35187. var refObject = ref;
  35188. {
  35189. if (!refObject.hasOwnProperty('current')) {
  35190. error('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(', ') + '}');
  35191. }
  35192. }
  35193. var _inst2 = create();
  35194. refObject.current = _inst2;
  35195. return function () {
  35196. refObject.current = null;
  35197. };
  35198. }
  35199. }
  35200. function mountImperativeHandle(ref, create, deps) {
  35201. {
  35202. if (typeof create !== 'function') {
  35203. error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
  35204. }
  35205. } // TODO: If deps are provided, should we skip comparing the ref itself?
  35206. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  35207. return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  35208. }
  35209. function updateImperativeHandle(ref, create, deps) {
  35210. {
  35211. if (typeof create !== 'function') {
  35212. error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
  35213. }
  35214. } // TODO: If deps are provided, should we skip comparing the ref itself?
  35215. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  35216. return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  35217. }
  35218. function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
  35219. // The react-debug-hooks package injects its own implementation
  35220. // so that e.g. DevTools can display custom hook values.
  35221. }
  35222. var updateDebugValue = mountDebugValue;
  35223. function mountCallback(callback, deps) {
  35224. var hook = mountWorkInProgressHook();
  35225. var nextDeps = deps === undefined ? null : deps;
  35226. hook.memoizedState = [callback, nextDeps];
  35227. return callback;
  35228. }
  35229. function updateCallback(callback, deps) {
  35230. var hook = updateWorkInProgressHook();
  35231. var nextDeps = deps === undefined ? null : deps;
  35232. var prevState = hook.memoizedState;
  35233. if (prevState !== null) {
  35234. if (nextDeps !== null) {
  35235. var prevDeps = prevState[1];
  35236. if (areHookInputsEqual(nextDeps, prevDeps)) {
  35237. return prevState[0];
  35238. }
  35239. }
  35240. }
  35241. hook.memoizedState = [callback, nextDeps];
  35242. return callback;
  35243. }
  35244. function mountMemo(nextCreate, deps) {
  35245. var hook = mountWorkInProgressHook();
  35246. var nextDeps = deps === undefined ? null : deps;
  35247. var nextValue = nextCreate();
  35248. hook.memoizedState = [nextValue, nextDeps];
  35249. return nextValue;
  35250. }
  35251. function updateMemo(nextCreate, deps) {
  35252. var hook = updateWorkInProgressHook();
  35253. var nextDeps = deps === undefined ? null : deps;
  35254. var prevState = hook.memoizedState;
  35255. if (prevState !== null) {
  35256. // Assume these are defined. If they're not, areHookInputsEqual will warn.
  35257. if (nextDeps !== null) {
  35258. var prevDeps = prevState[1];
  35259. if (areHookInputsEqual(nextDeps, prevDeps)) {
  35260. return prevState[0];
  35261. }
  35262. }
  35263. }
  35264. var nextValue = nextCreate();
  35265. hook.memoizedState = [nextValue, nextDeps];
  35266. return nextValue;
  35267. }
  35268. function mountDeferredValue(value, config) {
  35269. var _mountState = mountState(value),
  35270. prevValue = _mountState[0],
  35271. setValue = _mountState[1];
  35272. mountEffect(function () {
  35273. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  35274. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  35275. try {
  35276. setValue(value);
  35277. } finally {
  35278. ReactCurrentBatchConfig$1.suspense = previousConfig;
  35279. }
  35280. }, [value, config]);
  35281. return prevValue;
  35282. }
  35283. function updateDeferredValue(value, config) {
  35284. var _updateState = updateState(),
  35285. prevValue = _updateState[0],
  35286. setValue = _updateState[1];
  35287. updateEffect(function () {
  35288. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  35289. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  35290. try {
  35291. setValue(value);
  35292. } finally {
  35293. ReactCurrentBatchConfig$1.suspense = previousConfig;
  35294. }
  35295. }, [value, config]);
  35296. return prevValue;
  35297. }
  35298. function rerenderDeferredValue(value, config) {
  35299. var _rerenderState = rerenderState(),
  35300. prevValue = _rerenderState[0],
  35301. setValue = _rerenderState[1];
  35302. updateEffect(function () {
  35303. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  35304. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  35305. try {
  35306. setValue(value);
  35307. } finally {
  35308. ReactCurrentBatchConfig$1.suspense = previousConfig;
  35309. }
  35310. }, [value, config]);
  35311. return prevValue;
  35312. }
  35313. function startTransition(setPending, config, callback) {
  35314. var priorityLevel = getCurrentPriorityLevel();
  35315. runWithPriority$1(priorityLevel < UserBlockingPriority$1 ? UserBlockingPriority$1 : priorityLevel, function () {
  35316. setPending(true);
  35317. });
  35318. runWithPriority$1(priorityLevel > NormalPriority ? NormalPriority : priorityLevel, function () {
  35319. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  35320. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  35321. try {
  35322. setPending(false);
  35323. callback();
  35324. } finally {
  35325. ReactCurrentBatchConfig$1.suspense = previousConfig;
  35326. }
  35327. });
  35328. }
  35329. function mountTransition(config) {
  35330. var _mountState2 = mountState(false),
  35331. isPending = _mountState2[0],
  35332. setPending = _mountState2[1];
  35333. var start = mountCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  35334. return [start, isPending];
  35335. }
  35336. function updateTransition(config) {
  35337. var _updateState2 = updateState(),
  35338. isPending = _updateState2[0],
  35339. setPending = _updateState2[1];
  35340. var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  35341. return [start, isPending];
  35342. }
  35343. function rerenderTransition(config) {
  35344. var _rerenderState2 = rerenderState(),
  35345. isPending = _rerenderState2[0],
  35346. setPending = _rerenderState2[1];
  35347. var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  35348. return [start, isPending];
  35349. }
  35350. function dispatchAction(fiber, queue, action) {
  35351. {
  35352. if (typeof arguments[3] === 'function') {
  35353. error("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().');
  35354. }
  35355. }
  35356. var currentTime = requestCurrentTimeForUpdate();
  35357. var suspenseConfig = requestCurrentSuspenseConfig();
  35358. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  35359. var update = {
  35360. expirationTime: expirationTime,
  35361. suspenseConfig: suspenseConfig,
  35362. action: action,
  35363. eagerReducer: null,
  35364. eagerState: null,
  35365. next: null
  35366. };
  35367. {
  35368. update.priority = getCurrentPriorityLevel();
  35369. } // Append the update to the end of the list.
  35370. var pending = queue.pending;
  35371. if (pending === null) {
  35372. // This is the first update. Create a circular list.
  35373. update.next = update;
  35374. } else {
  35375. update.next = pending.next;
  35376. pending.next = update;
  35377. }
  35378. queue.pending = update;
  35379. var alternate = fiber.alternate;
  35380. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  35381. // This is a render phase update. Stash it in a lazily-created map of
  35382. // queue -> linked list of updates. After this render pass, we'll restart
  35383. // and apply the stashed updates on top of the work-in-progress hook.
  35384. didScheduleRenderPhaseUpdate = true;
  35385. update.expirationTime = renderExpirationTime;
  35386. currentlyRenderingFiber$1.expirationTime = renderExpirationTime;
  35387. } else {
  35388. if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
  35389. // The queue is currently empty, which means we can eagerly compute the
  35390. // next state before entering the render phase. If the new state is the
  35391. // same as the current state, we may be able to bail out entirely.
  35392. var lastRenderedReducer = queue.lastRenderedReducer;
  35393. if (lastRenderedReducer !== null) {
  35394. var prevDispatcher;
  35395. {
  35396. prevDispatcher = ReactCurrentDispatcher.current;
  35397. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  35398. }
  35399. try {
  35400. var currentState = queue.lastRenderedState;
  35401. var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
  35402. // it, on the update object. If the reducer hasn't changed by the
  35403. // time we enter the render phase, then the eager state can be used
  35404. // without calling the reducer again.
  35405. update.eagerReducer = lastRenderedReducer;
  35406. update.eagerState = eagerState;
  35407. if (objectIs(eagerState, currentState)) {
  35408. // Fast path. We can bail out without scheduling React to re-render.
  35409. // It's still possible that we'll need to rebase this update later,
  35410. // if the component re-renders for a different reason and by that
  35411. // time the reducer has changed.
  35412. return;
  35413. }
  35414. } catch (error) {// Suppress the error. It will throw again in the render phase.
  35415. } finally {
  35416. {
  35417. ReactCurrentDispatcher.current = prevDispatcher;
  35418. }
  35419. }
  35420. }
  35421. }
  35422. {
  35423. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  35424. if ('undefined' !== typeof jest) {
  35425. warnIfNotScopedWithMatchingAct(fiber);
  35426. warnIfNotCurrentlyActingUpdatesInDev(fiber);
  35427. }
  35428. }
  35429. scheduleWork(fiber, expirationTime);
  35430. }
  35431. }
  35432. var ContextOnlyDispatcher = {
  35433. readContext: readContext,
  35434. useCallback: throwInvalidHookError,
  35435. useContext: throwInvalidHookError,
  35436. useEffect: throwInvalidHookError,
  35437. useImperativeHandle: throwInvalidHookError,
  35438. useLayoutEffect: throwInvalidHookError,
  35439. useMemo: throwInvalidHookError,
  35440. useReducer: throwInvalidHookError,
  35441. useRef: throwInvalidHookError,
  35442. useState: throwInvalidHookError,
  35443. useDebugValue: throwInvalidHookError,
  35444. useResponder: throwInvalidHookError,
  35445. useDeferredValue: throwInvalidHookError,
  35446. useTransition: throwInvalidHookError
  35447. };
  35448. var HooksDispatcherOnMountInDEV = null;
  35449. var HooksDispatcherOnMountWithHookTypesInDEV = null;
  35450. var HooksDispatcherOnUpdateInDEV = null;
  35451. var HooksDispatcherOnRerenderInDEV = null;
  35452. var InvalidNestedHooksDispatcherOnMountInDEV = null;
  35453. var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
  35454. var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
  35455. {
  35456. var warnInvalidContextAccess = function () {
  35457. 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().');
  35458. };
  35459. var warnInvalidHookAccess = function () {
  35460. error('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');
  35461. };
  35462. HooksDispatcherOnMountInDEV = {
  35463. readContext: function (context, observedBits) {
  35464. return readContext(context, observedBits);
  35465. },
  35466. useCallback: function (callback, deps) {
  35467. currentHookNameInDev = 'useCallback';
  35468. mountHookTypesDev();
  35469. checkDepsAreArrayDev(deps);
  35470. return mountCallback(callback, deps);
  35471. },
  35472. useContext: function (context, observedBits) {
  35473. currentHookNameInDev = 'useContext';
  35474. mountHookTypesDev();
  35475. return readContext(context, observedBits);
  35476. },
  35477. useEffect: function (create, deps) {
  35478. currentHookNameInDev = 'useEffect';
  35479. mountHookTypesDev();
  35480. checkDepsAreArrayDev(deps);
  35481. return mountEffect(create, deps);
  35482. },
  35483. useImperativeHandle: function (ref, create, deps) {
  35484. currentHookNameInDev = 'useImperativeHandle';
  35485. mountHookTypesDev();
  35486. checkDepsAreArrayDev(deps);
  35487. return mountImperativeHandle(ref, create, deps);
  35488. },
  35489. useLayoutEffect: function (create, deps) {
  35490. currentHookNameInDev = 'useLayoutEffect';
  35491. mountHookTypesDev();
  35492. checkDepsAreArrayDev(deps);
  35493. return mountLayoutEffect(create, deps);
  35494. },
  35495. useMemo: function (create, deps) {
  35496. currentHookNameInDev = 'useMemo';
  35497. mountHookTypesDev();
  35498. checkDepsAreArrayDev(deps);
  35499. var prevDispatcher = ReactCurrentDispatcher.current;
  35500. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  35501. try {
  35502. return mountMemo(create, deps);
  35503. } finally {
  35504. ReactCurrentDispatcher.current = prevDispatcher;
  35505. }
  35506. },
  35507. useReducer: function (reducer, initialArg, init) {
  35508. currentHookNameInDev = 'useReducer';
  35509. mountHookTypesDev();
  35510. var prevDispatcher = ReactCurrentDispatcher.current;
  35511. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  35512. try {
  35513. return mountReducer(reducer, initialArg, init);
  35514. } finally {
  35515. ReactCurrentDispatcher.current = prevDispatcher;
  35516. }
  35517. },
  35518. useRef: function (initialValue) {
  35519. currentHookNameInDev = 'useRef';
  35520. mountHookTypesDev();
  35521. return mountRef(initialValue);
  35522. },
  35523. useState: function (initialState) {
  35524. currentHookNameInDev = 'useState';
  35525. mountHookTypesDev();
  35526. var prevDispatcher = ReactCurrentDispatcher.current;
  35527. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  35528. try {
  35529. return mountState(initialState);
  35530. } finally {
  35531. ReactCurrentDispatcher.current = prevDispatcher;
  35532. }
  35533. },
  35534. useDebugValue: function (value, formatterFn) {
  35535. currentHookNameInDev = 'useDebugValue';
  35536. mountHookTypesDev();
  35537. return mountDebugValue();
  35538. },
  35539. useResponder: function (responder, props) {
  35540. currentHookNameInDev = 'useResponder';
  35541. mountHookTypesDev();
  35542. return createDeprecatedResponderListener(responder, props);
  35543. },
  35544. useDeferredValue: function (value, config) {
  35545. currentHookNameInDev = 'useDeferredValue';
  35546. mountHookTypesDev();
  35547. return mountDeferredValue(value, config);
  35548. },
  35549. useTransition: function (config) {
  35550. currentHookNameInDev = 'useTransition';
  35551. mountHookTypesDev();
  35552. return mountTransition(config);
  35553. }
  35554. };
  35555. HooksDispatcherOnMountWithHookTypesInDEV = {
  35556. readContext: function (context, observedBits) {
  35557. return readContext(context, observedBits);
  35558. },
  35559. useCallback: function (callback, deps) {
  35560. currentHookNameInDev = 'useCallback';
  35561. updateHookTypesDev();
  35562. return mountCallback(callback, deps);
  35563. },
  35564. useContext: function (context, observedBits) {
  35565. currentHookNameInDev = 'useContext';
  35566. updateHookTypesDev();
  35567. return readContext(context, observedBits);
  35568. },
  35569. useEffect: function (create, deps) {
  35570. currentHookNameInDev = 'useEffect';
  35571. updateHookTypesDev();
  35572. return mountEffect(create, deps);
  35573. },
  35574. useImperativeHandle: function (ref, create, deps) {
  35575. currentHookNameInDev = 'useImperativeHandle';
  35576. updateHookTypesDev();
  35577. return mountImperativeHandle(ref, create, deps);
  35578. },
  35579. useLayoutEffect: function (create, deps) {
  35580. currentHookNameInDev = 'useLayoutEffect';
  35581. updateHookTypesDev();
  35582. return mountLayoutEffect(create, deps);
  35583. },
  35584. useMemo: function (create, deps) {
  35585. currentHookNameInDev = 'useMemo';
  35586. updateHookTypesDev();
  35587. var prevDispatcher = ReactCurrentDispatcher.current;
  35588. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  35589. try {
  35590. return mountMemo(create, deps);
  35591. } finally {
  35592. ReactCurrentDispatcher.current = prevDispatcher;
  35593. }
  35594. },
  35595. useReducer: function (reducer, initialArg, init) {
  35596. currentHookNameInDev = 'useReducer';
  35597. updateHookTypesDev();
  35598. var prevDispatcher = ReactCurrentDispatcher.current;
  35599. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  35600. try {
  35601. return mountReducer(reducer, initialArg, init);
  35602. } finally {
  35603. ReactCurrentDispatcher.current = prevDispatcher;
  35604. }
  35605. },
  35606. useRef: function (initialValue) {
  35607. currentHookNameInDev = 'useRef';
  35608. updateHookTypesDev();
  35609. return mountRef(initialValue);
  35610. },
  35611. useState: function (initialState) {
  35612. currentHookNameInDev = 'useState';
  35613. updateHookTypesDev();
  35614. var prevDispatcher = ReactCurrentDispatcher.current;
  35615. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  35616. try {
  35617. return mountState(initialState);
  35618. } finally {
  35619. ReactCurrentDispatcher.current = prevDispatcher;
  35620. }
  35621. },
  35622. useDebugValue: function (value, formatterFn) {
  35623. currentHookNameInDev = 'useDebugValue';
  35624. updateHookTypesDev();
  35625. return mountDebugValue();
  35626. },
  35627. useResponder: function (responder, props) {
  35628. currentHookNameInDev = 'useResponder';
  35629. updateHookTypesDev();
  35630. return createDeprecatedResponderListener(responder, props);
  35631. },
  35632. useDeferredValue: function (value, config) {
  35633. currentHookNameInDev = 'useDeferredValue';
  35634. updateHookTypesDev();
  35635. return mountDeferredValue(value, config);
  35636. },
  35637. useTransition: function (config) {
  35638. currentHookNameInDev = 'useTransition';
  35639. updateHookTypesDev();
  35640. return mountTransition(config);
  35641. }
  35642. };
  35643. HooksDispatcherOnUpdateInDEV = {
  35644. readContext: function (context, observedBits) {
  35645. return readContext(context, observedBits);
  35646. },
  35647. useCallback: function (callback, deps) {
  35648. currentHookNameInDev = 'useCallback';
  35649. updateHookTypesDev();
  35650. return updateCallback(callback, deps);
  35651. },
  35652. useContext: function (context, observedBits) {
  35653. currentHookNameInDev = 'useContext';
  35654. updateHookTypesDev();
  35655. return readContext(context, observedBits);
  35656. },
  35657. useEffect: function (create, deps) {
  35658. currentHookNameInDev = 'useEffect';
  35659. updateHookTypesDev();
  35660. return updateEffect(create, deps);
  35661. },
  35662. useImperativeHandle: function (ref, create, deps) {
  35663. currentHookNameInDev = 'useImperativeHandle';
  35664. updateHookTypesDev();
  35665. return updateImperativeHandle(ref, create, deps);
  35666. },
  35667. useLayoutEffect: function (create, deps) {
  35668. currentHookNameInDev = 'useLayoutEffect';
  35669. updateHookTypesDev();
  35670. return updateLayoutEffect(create, deps);
  35671. },
  35672. useMemo: function (create, deps) {
  35673. currentHookNameInDev = 'useMemo';
  35674. updateHookTypesDev();
  35675. var prevDispatcher = ReactCurrentDispatcher.current;
  35676. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  35677. try {
  35678. return updateMemo(create, deps);
  35679. } finally {
  35680. ReactCurrentDispatcher.current = prevDispatcher;
  35681. }
  35682. },
  35683. useReducer: function (reducer, initialArg, init) {
  35684. currentHookNameInDev = 'useReducer';
  35685. updateHookTypesDev();
  35686. var prevDispatcher = ReactCurrentDispatcher.current;
  35687. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  35688. try {
  35689. return updateReducer(reducer, initialArg, init);
  35690. } finally {
  35691. ReactCurrentDispatcher.current = prevDispatcher;
  35692. }
  35693. },
  35694. useRef: function (initialValue) {
  35695. currentHookNameInDev = 'useRef';
  35696. updateHookTypesDev();
  35697. return updateRef();
  35698. },
  35699. useState: function (initialState) {
  35700. currentHookNameInDev = 'useState';
  35701. updateHookTypesDev();
  35702. var prevDispatcher = ReactCurrentDispatcher.current;
  35703. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  35704. try {
  35705. return updateState(initialState);
  35706. } finally {
  35707. ReactCurrentDispatcher.current = prevDispatcher;
  35708. }
  35709. },
  35710. useDebugValue: function (value, formatterFn) {
  35711. currentHookNameInDev = 'useDebugValue';
  35712. updateHookTypesDev();
  35713. return updateDebugValue();
  35714. },
  35715. useResponder: function (responder, props) {
  35716. currentHookNameInDev = 'useResponder';
  35717. updateHookTypesDev();
  35718. return createDeprecatedResponderListener(responder, props);
  35719. },
  35720. useDeferredValue: function (value, config) {
  35721. currentHookNameInDev = 'useDeferredValue';
  35722. updateHookTypesDev();
  35723. return updateDeferredValue(value, config);
  35724. },
  35725. useTransition: function (config) {
  35726. currentHookNameInDev = 'useTransition';
  35727. updateHookTypesDev();
  35728. return updateTransition(config);
  35729. }
  35730. };
  35731. HooksDispatcherOnRerenderInDEV = {
  35732. readContext: function (context, observedBits) {
  35733. return readContext(context, observedBits);
  35734. },
  35735. useCallback: function (callback, deps) {
  35736. currentHookNameInDev = 'useCallback';
  35737. updateHookTypesDev();
  35738. return updateCallback(callback, deps);
  35739. },
  35740. useContext: function (context, observedBits) {
  35741. currentHookNameInDev = 'useContext';
  35742. updateHookTypesDev();
  35743. return readContext(context, observedBits);
  35744. },
  35745. useEffect: function (create, deps) {
  35746. currentHookNameInDev = 'useEffect';
  35747. updateHookTypesDev();
  35748. return updateEffect(create, deps);
  35749. },
  35750. useImperativeHandle: function (ref, create, deps) {
  35751. currentHookNameInDev = 'useImperativeHandle';
  35752. updateHookTypesDev();
  35753. return updateImperativeHandle(ref, create, deps);
  35754. },
  35755. useLayoutEffect: function (create, deps) {
  35756. currentHookNameInDev = 'useLayoutEffect';
  35757. updateHookTypesDev();
  35758. return updateLayoutEffect(create, deps);
  35759. },
  35760. useMemo: function (create, deps) {
  35761. currentHookNameInDev = 'useMemo';
  35762. updateHookTypesDev();
  35763. var prevDispatcher = ReactCurrentDispatcher.current;
  35764. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
  35765. try {
  35766. return updateMemo(create, deps);
  35767. } finally {
  35768. ReactCurrentDispatcher.current = prevDispatcher;
  35769. }
  35770. },
  35771. useReducer: function (reducer, initialArg, init) {
  35772. currentHookNameInDev = 'useReducer';
  35773. updateHookTypesDev();
  35774. var prevDispatcher = ReactCurrentDispatcher.current;
  35775. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
  35776. try {
  35777. return rerenderReducer(reducer, initialArg, init);
  35778. } finally {
  35779. ReactCurrentDispatcher.current = prevDispatcher;
  35780. }
  35781. },
  35782. useRef: function (initialValue) {
  35783. currentHookNameInDev = 'useRef';
  35784. updateHookTypesDev();
  35785. return updateRef();
  35786. },
  35787. useState: function (initialState) {
  35788. currentHookNameInDev = 'useState';
  35789. updateHookTypesDev();
  35790. var prevDispatcher = ReactCurrentDispatcher.current;
  35791. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
  35792. try {
  35793. return rerenderState(initialState);
  35794. } finally {
  35795. ReactCurrentDispatcher.current = prevDispatcher;
  35796. }
  35797. },
  35798. useDebugValue: function (value, formatterFn) {
  35799. currentHookNameInDev = 'useDebugValue';
  35800. updateHookTypesDev();
  35801. return updateDebugValue();
  35802. },
  35803. useResponder: function (responder, props) {
  35804. currentHookNameInDev = 'useResponder';
  35805. updateHookTypesDev();
  35806. return createDeprecatedResponderListener(responder, props);
  35807. },
  35808. useDeferredValue: function (value, config) {
  35809. currentHookNameInDev = 'useDeferredValue';
  35810. updateHookTypesDev();
  35811. return rerenderDeferredValue(value, config);
  35812. },
  35813. useTransition: function (config) {
  35814. currentHookNameInDev = 'useTransition';
  35815. updateHookTypesDev();
  35816. return rerenderTransition(config);
  35817. }
  35818. };
  35819. InvalidNestedHooksDispatcherOnMountInDEV = {
  35820. readContext: function (context, observedBits) {
  35821. warnInvalidContextAccess();
  35822. return readContext(context, observedBits);
  35823. },
  35824. useCallback: function (callback, deps) {
  35825. currentHookNameInDev = 'useCallback';
  35826. warnInvalidHookAccess();
  35827. mountHookTypesDev();
  35828. return mountCallback(callback, deps);
  35829. },
  35830. useContext: function (context, observedBits) {
  35831. currentHookNameInDev = 'useContext';
  35832. warnInvalidHookAccess();
  35833. mountHookTypesDev();
  35834. return readContext(context, observedBits);
  35835. },
  35836. useEffect: function (create, deps) {
  35837. currentHookNameInDev = 'useEffect';
  35838. warnInvalidHookAccess();
  35839. mountHookTypesDev();
  35840. return mountEffect(create, deps);
  35841. },
  35842. useImperativeHandle: function (ref, create, deps) {
  35843. currentHookNameInDev = 'useImperativeHandle';
  35844. warnInvalidHookAccess();
  35845. mountHookTypesDev();
  35846. return mountImperativeHandle(ref, create, deps);
  35847. },
  35848. useLayoutEffect: function (create, deps) {
  35849. currentHookNameInDev = 'useLayoutEffect';
  35850. warnInvalidHookAccess();
  35851. mountHookTypesDev();
  35852. return mountLayoutEffect(create, deps);
  35853. },
  35854. useMemo: function (create, deps) {
  35855. currentHookNameInDev = 'useMemo';
  35856. warnInvalidHookAccess();
  35857. mountHookTypesDev();
  35858. var prevDispatcher = ReactCurrentDispatcher.current;
  35859. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  35860. try {
  35861. return mountMemo(create, deps);
  35862. } finally {
  35863. ReactCurrentDispatcher.current = prevDispatcher;
  35864. }
  35865. },
  35866. useReducer: function (reducer, initialArg, init) {
  35867. currentHookNameInDev = 'useReducer';
  35868. warnInvalidHookAccess();
  35869. mountHookTypesDev();
  35870. var prevDispatcher = ReactCurrentDispatcher.current;
  35871. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  35872. try {
  35873. return mountReducer(reducer, initialArg, init);
  35874. } finally {
  35875. ReactCurrentDispatcher.current = prevDispatcher;
  35876. }
  35877. },
  35878. useRef: function (initialValue) {
  35879. currentHookNameInDev = 'useRef';
  35880. warnInvalidHookAccess();
  35881. mountHookTypesDev();
  35882. return mountRef(initialValue);
  35883. },
  35884. useState: function (initialState) {
  35885. currentHookNameInDev = 'useState';
  35886. warnInvalidHookAccess();
  35887. mountHookTypesDev();
  35888. var prevDispatcher = ReactCurrentDispatcher.current;
  35889. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  35890. try {
  35891. return mountState(initialState);
  35892. } finally {
  35893. ReactCurrentDispatcher.current = prevDispatcher;
  35894. }
  35895. },
  35896. useDebugValue: function (value, formatterFn) {
  35897. currentHookNameInDev = 'useDebugValue';
  35898. warnInvalidHookAccess();
  35899. mountHookTypesDev();
  35900. return mountDebugValue();
  35901. },
  35902. useResponder: function (responder, props) {
  35903. currentHookNameInDev = 'useResponder';
  35904. warnInvalidHookAccess();
  35905. mountHookTypesDev();
  35906. return createDeprecatedResponderListener(responder, props);
  35907. },
  35908. useDeferredValue: function (value, config) {
  35909. currentHookNameInDev = 'useDeferredValue';
  35910. warnInvalidHookAccess();
  35911. mountHookTypesDev();
  35912. return mountDeferredValue(value, config);
  35913. },
  35914. useTransition: function (config) {
  35915. currentHookNameInDev = 'useTransition';
  35916. warnInvalidHookAccess();
  35917. mountHookTypesDev();
  35918. return mountTransition(config);
  35919. }
  35920. };
  35921. InvalidNestedHooksDispatcherOnUpdateInDEV = {
  35922. readContext: function (context, observedBits) {
  35923. warnInvalidContextAccess();
  35924. return readContext(context, observedBits);
  35925. },
  35926. useCallback: function (callback, deps) {
  35927. currentHookNameInDev = 'useCallback';
  35928. warnInvalidHookAccess();
  35929. updateHookTypesDev();
  35930. return updateCallback(callback, deps);
  35931. },
  35932. useContext: function (context, observedBits) {
  35933. currentHookNameInDev = 'useContext';
  35934. warnInvalidHookAccess();
  35935. updateHookTypesDev();
  35936. return readContext(context, observedBits);
  35937. },
  35938. useEffect: function (create, deps) {
  35939. currentHookNameInDev = 'useEffect';
  35940. warnInvalidHookAccess();
  35941. updateHookTypesDev();
  35942. return updateEffect(create, deps);
  35943. },
  35944. useImperativeHandle: function (ref, create, deps) {
  35945. currentHookNameInDev = 'useImperativeHandle';
  35946. warnInvalidHookAccess();
  35947. updateHookTypesDev();
  35948. return updateImperativeHandle(ref, create, deps);
  35949. },
  35950. useLayoutEffect: function (create, deps) {
  35951. currentHookNameInDev = 'useLayoutEffect';
  35952. warnInvalidHookAccess();
  35953. updateHookTypesDev();
  35954. return updateLayoutEffect(create, deps);
  35955. },
  35956. useMemo: function (create, deps) {
  35957. currentHookNameInDev = 'useMemo';
  35958. warnInvalidHookAccess();
  35959. updateHookTypesDev();
  35960. var prevDispatcher = ReactCurrentDispatcher.current;
  35961. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  35962. try {
  35963. return updateMemo(create, deps);
  35964. } finally {
  35965. ReactCurrentDispatcher.current = prevDispatcher;
  35966. }
  35967. },
  35968. useReducer: function (reducer, initialArg, init) {
  35969. currentHookNameInDev = 'useReducer';
  35970. warnInvalidHookAccess();
  35971. updateHookTypesDev();
  35972. var prevDispatcher = ReactCurrentDispatcher.current;
  35973. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  35974. try {
  35975. return updateReducer(reducer, initialArg, init);
  35976. } finally {
  35977. ReactCurrentDispatcher.current = prevDispatcher;
  35978. }
  35979. },
  35980. useRef: function (initialValue) {
  35981. currentHookNameInDev = 'useRef';
  35982. warnInvalidHookAccess();
  35983. updateHookTypesDev();
  35984. return updateRef();
  35985. },
  35986. useState: function (initialState) {
  35987. currentHookNameInDev = 'useState';
  35988. warnInvalidHookAccess();
  35989. updateHookTypesDev();
  35990. var prevDispatcher = ReactCurrentDispatcher.current;
  35991. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  35992. try {
  35993. return updateState(initialState);
  35994. } finally {
  35995. ReactCurrentDispatcher.current = prevDispatcher;
  35996. }
  35997. },
  35998. useDebugValue: function (value, formatterFn) {
  35999. currentHookNameInDev = 'useDebugValue';
  36000. warnInvalidHookAccess();
  36001. updateHookTypesDev();
  36002. return updateDebugValue();
  36003. },
  36004. useResponder: function (responder, props) {
  36005. currentHookNameInDev = 'useResponder';
  36006. warnInvalidHookAccess();
  36007. updateHookTypesDev();
  36008. return createDeprecatedResponderListener(responder, props);
  36009. },
  36010. useDeferredValue: function (value, config) {
  36011. currentHookNameInDev = 'useDeferredValue';
  36012. warnInvalidHookAccess();
  36013. updateHookTypesDev();
  36014. return updateDeferredValue(value, config);
  36015. },
  36016. useTransition: function (config) {
  36017. currentHookNameInDev = 'useTransition';
  36018. warnInvalidHookAccess();
  36019. updateHookTypesDev();
  36020. return updateTransition(config);
  36021. }
  36022. };
  36023. InvalidNestedHooksDispatcherOnRerenderInDEV = {
  36024. readContext: function (context, observedBits) {
  36025. warnInvalidContextAccess();
  36026. return readContext(context, observedBits);
  36027. },
  36028. useCallback: function (callback, deps) {
  36029. currentHookNameInDev = 'useCallback';
  36030. warnInvalidHookAccess();
  36031. updateHookTypesDev();
  36032. return updateCallback(callback, deps);
  36033. },
  36034. useContext: function (context, observedBits) {
  36035. currentHookNameInDev = 'useContext';
  36036. warnInvalidHookAccess();
  36037. updateHookTypesDev();
  36038. return readContext(context, observedBits);
  36039. },
  36040. useEffect: function (create, deps) {
  36041. currentHookNameInDev = 'useEffect';
  36042. warnInvalidHookAccess();
  36043. updateHookTypesDev();
  36044. return updateEffect(create, deps);
  36045. },
  36046. useImperativeHandle: function (ref, create, deps) {
  36047. currentHookNameInDev = 'useImperativeHandle';
  36048. warnInvalidHookAccess();
  36049. updateHookTypesDev();
  36050. return updateImperativeHandle(ref, create, deps);
  36051. },
  36052. useLayoutEffect: function (create, deps) {
  36053. currentHookNameInDev = 'useLayoutEffect';
  36054. warnInvalidHookAccess();
  36055. updateHookTypesDev();
  36056. return updateLayoutEffect(create, deps);
  36057. },
  36058. useMemo: function (create, deps) {
  36059. currentHookNameInDev = 'useMemo';
  36060. warnInvalidHookAccess();
  36061. updateHookTypesDev();
  36062. var prevDispatcher = ReactCurrentDispatcher.current;
  36063. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  36064. try {
  36065. return updateMemo(create, deps);
  36066. } finally {
  36067. ReactCurrentDispatcher.current = prevDispatcher;
  36068. }
  36069. },
  36070. useReducer: function (reducer, initialArg, init) {
  36071. currentHookNameInDev = 'useReducer';
  36072. warnInvalidHookAccess();
  36073. updateHookTypesDev();
  36074. var prevDispatcher = ReactCurrentDispatcher.current;
  36075. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  36076. try {
  36077. return rerenderReducer(reducer, initialArg, init);
  36078. } finally {
  36079. ReactCurrentDispatcher.current = prevDispatcher;
  36080. }
  36081. },
  36082. useRef: function (initialValue) {
  36083. currentHookNameInDev = 'useRef';
  36084. warnInvalidHookAccess();
  36085. updateHookTypesDev();
  36086. return updateRef();
  36087. },
  36088. useState: function (initialState) {
  36089. currentHookNameInDev = 'useState';
  36090. warnInvalidHookAccess();
  36091. updateHookTypesDev();
  36092. var prevDispatcher = ReactCurrentDispatcher.current;
  36093. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  36094. try {
  36095. return rerenderState(initialState);
  36096. } finally {
  36097. ReactCurrentDispatcher.current = prevDispatcher;
  36098. }
  36099. },
  36100. useDebugValue: function (value, formatterFn) {
  36101. currentHookNameInDev = 'useDebugValue';
  36102. warnInvalidHookAccess();
  36103. updateHookTypesDev();
  36104. return updateDebugValue();
  36105. },
  36106. useResponder: function (responder, props) {
  36107. currentHookNameInDev = 'useResponder';
  36108. warnInvalidHookAccess();
  36109. updateHookTypesDev();
  36110. return createDeprecatedResponderListener(responder, props);
  36111. },
  36112. useDeferredValue: function (value, config) {
  36113. currentHookNameInDev = 'useDeferredValue';
  36114. warnInvalidHookAccess();
  36115. updateHookTypesDev();
  36116. return rerenderDeferredValue(value, config);
  36117. },
  36118. useTransition: function (config) {
  36119. currentHookNameInDev = 'useTransition';
  36120. warnInvalidHookAccess();
  36121. updateHookTypesDev();
  36122. return rerenderTransition(config);
  36123. }
  36124. };
  36125. }
  36126. var now$1 = Scheduler.unstable_now;
  36127. var commitTime = 0;
  36128. var profilerStartTime = -1;
  36129. function getCommitTime() {
  36130. return commitTime;
  36131. }
  36132. function recordCommitTime() {
  36133. commitTime = now$1();
  36134. }
  36135. function startProfilerTimer(fiber) {
  36136. profilerStartTime = now$1();
  36137. if (fiber.actualStartTime < 0) {
  36138. fiber.actualStartTime = now$1();
  36139. }
  36140. }
  36141. function stopProfilerTimerIfRunning(fiber) {
  36142. profilerStartTime = -1;
  36143. }
  36144. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  36145. if (profilerStartTime >= 0) {
  36146. var elapsedTime = now$1() - profilerStartTime;
  36147. fiber.actualDuration += elapsedTime;
  36148. if (overrideBaseTime) {
  36149. fiber.selfBaseDuration = elapsedTime;
  36150. }
  36151. profilerStartTime = -1;
  36152. }
  36153. }
  36154. // This may have been an insertion or a hydration.
  36155. var hydrationParentFiber = null;
  36156. var nextHydratableInstance = null;
  36157. var isHydrating = false;
  36158. function enterHydrationState(fiber) {
  36159. var parentInstance = fiber.stateNode.containerInfo;
  36160. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  36161. hydrationParentFiber = fiber;
  36162. isHydrating = true;
  36163. return true;
  36164. }
  36165. function deleteHydratableInstance(returnFiber, instance) {
  36166. {
  36167. switch (returnFiber.tag) {
  36168. case HostRoot:
  36169. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  36170. break;
  36171. case HostComponent:
  36172. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  36173. break;
  36174. }
  36175. }
  36176. var childToDelete = createFiberFromHostInstanceForDeletion();
  36177. childToDelete.stateNode = instance;
  36178. childToDelete.return = returnFiber;
  36179. childToDelete.effectTag = Deletion; // This might seem like it belongs on progressedFirstDeletion. However,
  36180. // these children are not part of the reconciliation list of children.
  36181. // Even if we abort and rereconcile the children, that will try to hydrate
  36182. // again and the nodes are still in the host tree so these will be
  36183. // recreated.
  36184. if (returnFiber.lastEffect !== null) {
  36185. returnFiber.lastEffect.nextEffect = childToDelete;
  36186. returnFiber.lastEffect = childToDelete;
  36187. } else {
  36188. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  36189. }
  36190. }
  36191. function insertNonHydratedInstance(returnFiber, fiber) {
  36192. fiber.effectTag = fiber.effectTag & ~Hydrating | Placement;
  36193. {
  36194. switch (returnFiber.tag) {
  36195. case HostRoot:
  36196. {
  36197. var parentContainer = returnFiber.stateNode.containerInfo;
  36198. switch (fiber.tag) {
  36199. case HostComponent:
  36200. var type = fiber.type;
  36201. var props = fiber.pendingProps;
  36202. didNotFindHydratableContainerInstance(parentContainer, type);
  36203. break;
  36204. case HostText:
  36205. var text = fiber.pendingProps;
  36206. didNotFindHydratableContainerTextInstance(parentContainer, text);
  36207. break;
  36208. }
  36209. break;
  36210. }
  36211. case HostComponent:
  36212. {
  36213. var parentType = returnFiber.type;
  36214. var parentProps = returnFiber.memoizedProps;
  36215. var parentInstance = returnFiber.stateNode;
  36216. switch (fiber.tag) {
  36217. case HostComponent:
  36218. var _type = fiber.type;
  36219. var _props = fiber.pendingProps;
  36220. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type);
  36221. break;
  36222. case HostText:
  36223. var _text = fiber.pendingProps;
  36224. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  36225. break;
  36226. case SuspenseComponent:
  36227. didNotFindHydratableSuspenseInstance(parentType, parentProps);
  36228. break;
  36229. }
  36230. break;
  36231. }
  36232. default:
  36233. return;
  36234. }
  36235. }
  36236. }
  36237. function tryHydrate(fiber, nextInstance) {
  36238. switch (fiber.tag) {
  36239. case HostComponent:
  36240. {
  36241. var type = fiber.type;
  36242. var props = fiber.pendingProps;
  36243. var instance = canHydrateInstance(nextInstance, type);
  36244. if (instance !== null) {
  36245. fiber.stateNode = instance;
  36246. return true;
  36247. }
  36248. return false;
  36249. }
  36250. case HostText:
  36251. {
  36252. var text = fiber.pendingProps;
  36253. var textInstance = canHydrateTextInstance(nextInstance, text);
  36254. if (textInstance !== null) {
  36255. fiber.stateNode = textInstance;
  36256. return true;
  36257. }
  36258. return false;
  36259. }
  36260. case SuspenseComponent:
  36261. {
  36262. return false;
  36263. }
  36264. default:
  36265. return false;
  36266. }
  36267. }
  36268. function tryToClaimNextHydratableInstance(fiber) {
  36269. if (!isHydrating) {
  36270. return;
  36271. }
  36272. var nextInstance = nextHydratableInstance;
  36273. if (!nextInstance) {
  36274. // Nothing to hydrate. Make it an insertion.
  36275. insertNonHydratedInstance(hydrationParentFiber, fiber);
  36276. isHydrating = false;
  36277. hydrationParentFiber = fiber;
  36278. return;
  36279. }
  36280. var firstAttemptedInstance = nextInstance;
  36281. if (!tryHydrate(fiber, nextInstance)) {
  36282. // If we can't hydrate this instance let's try the next one.
  36283. // We use this as a heuristic. It's based on intuition and not data so it
  36284. // might be flawed or unnecessary.
  36285. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  36286. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  36287. // Nothing to hydrate. Make it an insertion.
  36288. insertNonHydratedInstance(hydrationParentFiber, fiber);
  36289. isHydrating = false;
  36290. hydrationParentFiber = fiber;
  36291. return;
  36292. } // We matched the next one, we'll now assume that the first one was
  36293. // superfluous and we'll delete it. Since we can't eagerly delete it
  36294. // we'll have to schedule a deletion. To do that, this node needs a dummy
  36295. // fiber associated with it.
  36296. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  36297. }
  36298. hydrationParentFiber = fiber;
  36299. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  36300. }
  36301. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  36302. var instance = fiber.stateNode;
  36303. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); // TODO: Type this specific to this type of component.
  36304. fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
  36305. // is a new ref we mark this as an update.
  36306. if (updatePayload !== null) {
  36307. return true;
  36308. }
  36309. return false;
  36310. }
  36311. function prepareToHydrateHostTextInstance(fiber) {
  36312. var textInstance = fiber.stateNode;
  36313. var textContent = fiber.memoizedProps;
  36314. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  36315. {
  36316. if (shouldUpdate) {
  36317. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  36318. // hydration parent is the parent host component of this host text.
  36319. var returnFiber = hydrationParentFiber;
  36320. if (returnFiber !== null) {
  36321. switch (returnFiber.tag) {
  36322. case HostRoot:
  36323. {
  36324. var parentContainer = returnFiber.stateNode.containerInfo;
  36325. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  36326. break;
  36327. }
  36328. case HostComponent:
  36329. {
  36330. var parentType = returnFiber.type;
  36331. var parentProps = returnFiber.memoizedProps;
  36332. var parentInstance = returnFiber.stateNode;
  36333. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  36334. break;
  36335. }
  36336. }
  36337. }
  36338. }
  36339. }
  36340. return shouldUpdate;
  36341. }
  36342. function skipPastDehydratedSuspenseInstance(fiber) {
  36343. var suspenseState = fiber.memoizedState;
  36344. var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;
  36345. if (!suspenseInstance) {
  36346. {
  36347. throw Error( "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." );
  36348. }
  36349. }
  36350. return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
  36351. }
  36352. function popToNextHostParent(fiber) {
  36353. var parent = fiber.return;
  36354. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
  36355. parent = parent.return;
  36356. }
  36357. hydrationParentFiber = parent;
  36358. }
  36359. function popHydrationState(fiber) {
  36360. if (fiber !== hydrationParentFiber) {
  36361. // We're deeper than the current hydration context, inside an inserted
  36362. // tree.
  36363. return false;
  36364. }
  36365. if (!isHydrating) {
  36366. // If we're not currently hydrating but we're in a hydration context, then
  36367. // we were an insertion and now need to pop up reenter hydration of our
  36368. // siblings.
  36369. popToNextHostParent(fiber);
  36370. isHydrating = true;
  36371. return false;
  36372. }
  36373. var type = fiber.type; // If we have any remaining hydratable nodes, we need to delete them now.
  36374. // We only do this deeper than head and body since they tend to have random
  36375. // other nodes in them. We also ignore components with pure text content in
  36376. // side of them.
  36377. // TODO: Better heuristic.
  36378. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  36379. var nextInstance = nextHydratableInstance;
  36380. while (nextInstance) {
  36381. deleteHydratableInstance(fiber, nextInstance);
  36382. nextInstance = getNextHydratableSibling(nextInstance);
  36383. }
  36384. }
  36385. popToNextHostParent(fiber);
  36386. if (fiber.tag === SuspenseComponent) {
  36387. nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
  36388. } else {
  36389. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  36390. }
  36391. return true;
  36392. }
  36393. function resetHydrationState() {
  36394. hydrationParentFiber = null;
  36395. nextHydratableInstance = null;
  36396. isHydrating = false;
  36397. }
  36398. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  36399. var didReceiveUpdate = false;
  36400. var didWarnAboutBadClass;
  36401. var didWarnAboutModulePatternComponent;
  36402. var didWarnAboutContextTypeOnFunctionComponent;
  36403. var didWarnAboutGetDerivedStateOnFunctionComponent;
  36404. var didWarnAboutFunctionRefs;
  36405. var didWarnAboutReassigningProps;
  36406. var didWarnAboutRevealOrder;
  36407. var didWarnAboutTailOptions;
  36408. {
  36409. didWarnAboutBadClass = {};
  36410. didWarnAboutModulePatternComponent = {};
  36411. didWarnAboutContextTypeOnFunctionComponent = {};
  36412. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  36413. didWarnAboutFunctionRefs = {};
  36414. didWarnAboutReassigningProps = false;
  36415. didWarnAboutRevealOrder = {};
  36416. didWarnAboutTailOptions = {};
  36417. }
  36418. function reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime) {
  36419. if (current === null) {
  36420. // If this is a fresh new component that hasn't been rendered yet, we
  36421. // won't update its child set by applying minimal side-effects. Instead,
  36422. // we will add them all to the child before it gets rendered. That means
  36423. // we can optimize this reconciliation pass by not tracking side-effects.
  36424. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  36425. } else {
  36426. // If the current child is the same as the work in progress, it means that
  36427. // we haven't yet started any work on these children. Therefore, we use
  36428. // the clone algorithm to create a copy of all the current children.
  36429. // If we had any progressed work already, that is invalid at this point so
  36430. // let's throw it out.
  36431. workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime);
  36432. }
  36433. }
  36434. function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime) {
  36435. // This function is fork of reconcileChildren. It's used in cases where we
  36436. // want to reconcile without matching against the existing set. This has the
  36437. // effect of all current children being unmounted; even if the type and key
  36438. // are the same, the old child is unmounted and a new child is created.
  36439. //
  36440. // To do this, we're going to go through the reconcile algorithm twice. In
  36441. // the first pass, we schedule a deletion for all the current children by
  36442. // passing null.
  36443. workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderExpirationTime); // In the second pass, we mount the new children. The trick here is that we
  36444. // pass null in place of where we usually pass the current child set. This has
  36445. // the effect of remounting all children regardless of whether their
  36446. // identities match.
  36447. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  36448. }
  36449. function updateForwardRef(current, workInProgress, Component, nextProps, renderExpirationTime) {
  36450. // TODO: current can be non-null here even if the component
  36451. // hasn't yet mounted. This happens after the first render suspends.
  36452. // We'll need to figure out if this is fine or can cause issues.
  36453. {
  36454. if (workInProgress.type !== workInProgress.elementType) {
  36455. // Lazy component props can't be validated in createElement
  36456. // because they're only guaranteed to be resolved here.
  36457. var innerPropTypes = Component.propTypes;
  36458. if (innerPropTypes) {
  36459. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  36460. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  36461. }
  36462. }
  36463. }
  36464. var render = Component.render;
  36465. var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent
  36466. var nextChildren;
  36467. prepareToReadContext(workInProgress, renderExpirationTime);
  36468. {
  36469. ReactCurrentOwner$1.current = workInProgress;
  36470. setIsRendering(true);
  36471. nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);
  36472. if ( workInProgress.mode & StrictMode) {
  36473. // Only double-render components with Hooks
  36474. if (workInProgress.memoizedState !== null) {
  36475. nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);
  36476. }
  36477. }
  36478. setIsRendering(false);
  36479. }
  36480. if (current !== null && !didReceiveUpdate) {
  36481. bailoutHooks(current, workInProgress, renderExpirationTime);
  36482. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  36483. } // React DevTools reads this flag.
  36484. workInProgress.effectTag |= PerformedWork;
  36485. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  36486. return workInProgress.child;
  36487. }
  36488. function updateMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  36489. if (current === null) {
  36490. var type = Component.type;
  36491. if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
  36492. Component.defaultProps === undefined) {
  36493. var resolvedType = type;
  36494. {
  36495. resolvedType = resolveFunctionForHotReloading(type);
  36496. } // If this is a plain function component without default props,
  36497. // and with only the default shallow comparison, we upgrade it
  36498. // to a SimpleMemoComponent to allow fast path updates.
  36499. workInProgress.tag = SimpleMemoComponent;
  36500. workInProgress.type = resolvedType;
  36501. {
  36502. validateFunctionComponentInDev(workInProgress, type);
  36503. }
  36504. return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
  36505. }
  36506. {
  36507. var innerPropTypes = type.propTypes;
  36508. if (innerPropTypes) {
  36509. // Inner memo component props aren't currently validated in createElement.
  36510. // We could move it there, but we'd still need this for lazy code path.
  36511. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  36512. 'prop', getComponentName(type), getCurrentFiberStackInDev);
  36513. }
  36514. }
  36515. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  36516. child.ref = workInProgress.ref;
  36517. child.return = workInProgress;
  36518. workInProgress.child = child;
  36519. return child;
  36520. }
  36521. {
  36522. var _type = Component.type;
  36523. var _innerPropTypes = _type.propTypes;
  36524. if (_innerPropTypes) {
  36525. // Inner memo component props aren't currently validated in createElement.
  36526. // We could move it there, but we'd still need this for lazy code path.
  36527. checkPropTypes(_innerPropTypes, nextProps, // Resolved props
  36528. 'prop', getComponentName(_type), getCurrentFiberStackInDev);
  36529. }
  36530. }
  36531. var currentChild = current.child; // This is always exactly one child
  36532. if (updateExpirationTime < renderExpirationTime) {
  36533. // This will be the props with resolved defaultProps,
  36534. // unlike current.memoizedProps which will be the unresolved ones.
  36535. var prevProps = currentChild.memoizedProps; // Default to shallow comparison
  36536. var compare = Component.compare;
  36537. compare = compare !== null ? compare : shallowEqual;
  36538. if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
  36539. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  36540. }
  36541. } // React DevTools reads this flag.
  36542. workInProgress.effectTag |= PerformedWork;
  36543. var newChild = createWorkInProgress(currentChild, nextProps);
  36544. newChild.ref = workInProgress.ref;
  36545. newChild.return = workInProgress;
  36546. workInProgress.child = newChild;
  36547. return newChild;
  36548. }
  36549. function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  36550. // TODO: current can be non-null here even if the component
  36551. // hasn't yet mounted. This happens when the inner render suspends.
  36552. // We'll need to figure out if this is fine or can cause issues.
  36553. {
  36554. if (workInProgress.type !== workInProgress.elementType) {
  36555. // Lazy component props can't be validated in createElement
  36556. // because they're only guaranteed to be resolved here.
  36557. var outerMemoType = workInProgress.elementType;
  36558. if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
  36559. // We warn when you define propTypes on lazy()
  36560. // so let's just skip over it to find memo() outer wrapper.
  36561. // Inner props for memo are validated later.
  36562. outerMemoType = refineResolvedLazyComponent(outerMemoType);
  36563. }
  36564. var outerPropTypes = outerMemoType && outerMemoType.propTypes;
  36565. if (outerPropTypes) {
  36566. checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
  36567. 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
  36568. } // Inner propTypes will be validated in the function component path.
  36569. }
  36570. }
  36571. if (current !== null) {
  36572. var prevProps = current.memoizedProps;
  36573. if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
  36574. workInProgress.type === current.type )) {
  36575. didReceiveUpdate = false;
  36576. if (updateExpirationTime < renderExpirationTime) {
  36577. // The pending update priority was cleared at the beginning of
  36578. // beginWork. We're about to bail out, but there might be additional
  36579. // updates at a lower priority. Usually, the priority level of the
  36580. // remaining updates is accumlated during the evaluation of the
  36581. // component (i.e. when processing the update queue). But since since
  36582. // we're bailing out early *without* evaluating the component, we need
  36583. // to account for it here, too. Reset to the value of the current fiber.
  36584. // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
  36585. // because a MemoComponent fiber does not have hooks or an update queue;
  36586. // rather, it wraps around an inner component, which may or may not
  36587. // contains hooks.
  36588. // TODO: Move the reset at in beginWork out of the common path so that
  36589. // this is no longer necessary.
  36590. workInProgress.expirationTime = current.expirationTime;
  36591. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  36592. }
  36593. }
  36594. }
  36595. return updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime);
  36596. }
  36597. function updateFragment(current, workInProgress, renderExpirationTime) {
  36598. var nextChildren = workInProgress.pendingProps;
  36599. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  36600. return workInProgress.child;
  36601. }
  36602. function updateMode(current, workInProgress, renderExpirationTime) {
  36603. var nextChildren = workInProgress.pendingProps.children;
  36604. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  36605. return workInProgress.child;
  36606. }
  36607. function updateProfiler(current, workInProgress, renderExpirationTime) {
  36608. {
  36609. workInProgress.effectTag |= Update;
  36610. }
  36611. var nextProps = workInProgress.pendingProps;
  36612. var nextChildren = nextProps.children;
  36613. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  36614. return workInProgress.child;
  36615. }
  36616. function markRef(current, workInProgress) {
  36617. var ref = workInProgress.ref;
  36618. if (current === null && ref !== null || current !== null && current.ref !== ref) {
  36619. // Schedule a Ref effect
  36620. workInProgress.effectTag |= Ref;
  36621. }
  36622. }
  36623. function updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
  36624. {
  36625. if (workInProgress.type !== workInProgress.elementType) {
  36626. // Lazy component props can't be validated in createElement
  36627. // because they're only guaranteed to be resolved here.
  36628. var innerPropTypes = Component.propTypes;
  36629. if (innerPropTypes) {
  36630. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  36631. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  36632. }
  36633. }
  36634. }
  36635. var context;
  36636. {
  36637. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  36638. context = getMaskedContext(workInProgress, unmaskedContext);
  36639. }
  36640. var nextChildren;
  36641. prepareToReadContext(workInProgress, renderExpirationTime);
  36642. {
  36643. ReactCurrentOwner$1.current = workInProgress;
  36644. setIsRendering(true);
  36645. nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);
  36646. if ( workInProgress.mode & StrictMode) {
  36647. // Only double-render components with Hooks
  36648. if (workInProgress.memoizedState !== null) {
  36649. nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);
  36650. }
  36651. }
  36652. setIsRendering(false);
  36653. }
  36654. if (current !== null && !didReceiveUpdate) {
  36655. bailoutHooks(current, workInProgress, renderExpirationTime);
  36656. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  36657. } // React DevTools reads this flag.
  36658. workInProgress.effectTag |= PerformedWork;
  36659. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  36660. return workInProgress.child;
  36661. }
  36662. function updateClassComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
  36663. {
  36664. if (workInProgress.type !== workInProgress.elementType) {
  36665. // Lazy component props can't be validated in createElement
  36666. // because they're only guaranteed to be resolved here.
  36667. var innerPropTypes = Component.propTypes;
  36668. if (innerPropTypes) {
  36669. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  36670. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  36671. }
  36672. }
  36673. } // Push context providers early to prevent context stack mismatches.
  36674. // During mounting we don't know the child context yet as the instance doesn't exist.
  36675. // We will invalidate the child context in finishClassComponent() right after rendering.
  36676. var hasContext;
  36677. if (isContextProvider(Component)) {
  36678. hasContext = true;
  36679. pushContextProvider(workInProgress);
  36680. } else {
  36681. hasContext = false;
  36682. }
  36683. prepareToReadContext(workInProgress, renderExpirationTime);
  36684. var instance = workInProgress.stateNode;
  36685. var shouldUpdate;
  36686. if (instance === null) {
  36687. if (current !== null) {
  36688. // A class component without an instance only mounts if it suspended
  36689. // inside a non-concurrent tree, in an inconsistent state. We want to
  36690. // treat it like a new mount, even though an empty version of it already
  36691. // committed. Disconnect the alternate pointers.
  36692. current.alternate = null;
  36693. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  36694. workInProgress.effectTag |= Placement;
  36695. } // In the initial pass we might need to construct the instance.
  36696. constructClassInstance(workInProgress, Component, nextProps);
  36697. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  36698. shouldUpdate = true;
  36699. } else if (current === null) {
  36700. // In a resume, we'll already have an instance we can reuse.
  36701. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  36702. } else {
  36703. shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderExpirationTime);
  36704. }
  36705. var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  36706. {
  36707. var inst = workInProgress.stateNode;
  36708. if (inst.props !== nextProps) {
  36709. if (!didWarnAboutReassigningProps) {
  36710. error('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');
  36711. }
  36712. didWarnAboutReassigningProps = true;
  36713. }
  36714. }
  36715. return nextUnitOfWork;
  36716. }
  36717. function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  36718. // Refs should update even if shouldComponentUpdate returns false
  36719. markRef(current, workInProgress);
  36720. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  36721. if (!shouldUpdate && !didCaptureError) {
  36722. // Context providers should defer to sCU for rendering
  36723. if (hasContext) {
  36724. invalidateContextProvider(workInProgress, Component, false);
  36725. }
  36726. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  36727. }
  36728. var instance = workInProgress.stateNode; // Rerender
  36729. ReactCurrentOwner$1.current = workInProgress;
  36730. var nextChildren;
  36731. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  36732. // If we captured an error, but getDerivedStateFromError is not defined,
  36733. // unmount all the children. componentDidCatch will schedule an update to
  36734. // re-render a fallback. This is temporary until we migrate everyone to
  36735. // the new API.
  36736. // TODO: Warn in a future release.
  36737. nextChildren = null;
  36738. {
  36739. stopProfilerTimerIfRunning();
  36740. }
  36741. } else {
  36742. {
  36743. setIsRendering(true);
  36744. nextChildren = instance.render();
  36745. if ( workInProgress.mode & StrictMode) {
  36746. instance.render();
  36747. }
  36748. setIsRendering(false);
  36749. }
  36750. } // React DevTools reads this flag.
  36751. workInProgress.effectTag |= PerformedWork;
  36752. if (current !== null && didCaptureError) {
  36753. // If we're recovering from an error, reconcile without reusing any of
  36754. // the existing children. Conceptually, the normal children and the children
  36755. // that are shown on error are two different sets, so we shouldn't reuse
  36756. // normal children even if their identities match.
  36757. forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime);
  36758. } else {
  36759. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  36760. } // Memoize state using the values we just used to render.
  36761. // TODO: Restructure so we never read values from the instance.
  36762. workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.
  36763. if (hasContext) {
  36764. invalidateContextProvider(workInProgress, Component, true);
  36765. }
  36766. return workInProgress.child;
  36767. }
  36768. function pushHostRootContext(workInProgress) {
  36769. var root = workInProgress.stateNode;
  36770. if (root.pendingContext) {
  36771. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  36772. } else if (root.context) {
  36773. // Should always be set
  36774. pushTopLevelContextObject(workInProgress, root.context, false);
  36775. }
  36776. pushHostContainer(workInProgress, root.containerInfo);
  36777. }
  36778. function updateHostRoot(current, workInProgress, renderExpirationTime) {
  36779. pushHostRootContext(workInProgress);
  36780. var updateQueue = workInProgress.updateQueue;
  36781. if (!(current !== null && updateQueue !== null)) {
  36782. {
  36783. throw 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." );
  36784. }
  36785. }
  36786. var nextProps = workInProgress.pendingProps;
  36787. var prevState = workInProgress.memoizedState;
  36788. var prevChildren = prevState !== null ? prevState.element : null;
  36789. cloneUpdateQueue(current, workInProgress);
  36790. processUpdateQueue(workInProgress, nextProps, null, renderExpirationTime);
  36791. var nextState = workInProgress.memoizedState; // Caution: React DevTools currently depends on this property
  36792. // being called "element".
  36793. var nextChildren = nextState.element;
  36794. if (nextChildren === prevChildren) {
  36795. // If the state is the same as before, that's a bailout because we had
  36796. // no work that expires at this time.
  36797. resetHydrationState();
  36798. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  36799. }
  36800. var root = workInProgress.stateNode;
  36801. if (root.hydrate && enterHydrationState(workInProgress)) {
  36802. // If we don't have any current children this might be the first pass.
  36803. // We always try to hydrate. If this isn't a hydration pass there won't
  36804. // be any children to hydrate which is effectively the same thing as
  36805. // not hydrating.
  36806. var child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  36807. workInProgress.child = child;
  36808. var node = child;
  36809. while (node) {
  36810. // Mark each child as hydrating. This is a fast path to know whether this
  36811. // tree is part of a hydrating tree. This is used to determine if a child
  36812. // node has fully mounted yet, and for scheduling event replaying.
  36813. // Conceptually this is similar to Placement in that a new subtree is
  36814. // inserted into the React tree here. It just happens to not need DOM
  36815. // mutations because it already exists.
  36816. node.effectTag = node.effectTag & ~Placement | Hydrating;
  36817. node = node.sibling;
  36818. }
  36819. } else {
  36820. // Otherwise reset hydration state in case we aborted and resumed another
  36821. // root.
  36822. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  36823. resetHydrationState();
  36824. }
  36825. return workInProgress.child;
  36826. }
  36827. function updateHostComponent(current, workInProgress, renderExpirationTime) {
  36828. pushHostContext(workInProgress);
  36829. if (current === null) {
  36830. tryToClaimNextHydratableInstance(workInProgress);
  36831. }
  36832. var type = workInProgress.type;
  36833. var nextProps = workInProgress.pendingProps;
  36834. var prevProps = current !== null ? current.memoizedProps : null;
  36835. var nextChildren = nextProps.children;
  36836. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  36837. if (isDirectTextChild) {
  36838. // We special case a direct text child of a host node. This is a common
  36839. // case. We won't handle it as a reified child. We will instead handle
  36840. // this in the host environment that also has access to this prop. That
  36841. // avoids allocating another HostText fiber and traversing it.
  36842. nextChildren = null;
  36843. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  36844. // If we're switching from a direct text child to a normal child, or to
  36845. // empty, we need to schedule the text content to be reset.
  36846. workInProgress.effectTag |= ContentReset;
  36847. }
  36848. markRef(current, workInProgress); // Check the host config to see if the children are offscreen/hidden.
  36849. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
  36850. {
  36851. markSpawnedWork(Never);
  36852. } // Schedule this fiber to re-render at offscreen priority. Then bailout.
  36853. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  36854. return null;
  36855. }
  36856. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  36857. return workInProgress.child;
  36858. }
  36859. function updateHostText(current, workInProgress) {
  36860. if (current === null) {
  36861. tryToClaimNextHydratableInstance(workInProgress);
  36862. } // Nothing to do here. This is terminal. We'll do the completion step
  36863. // immediately after.
  36864. return null;
  36865. }
  36866. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  36867. if (_current !== null) {
  36868. // A lazy component only mounts if it suspended inside a non-
  36869. // concurrent tree, in an inconsistent state. We want to treat it like
  36870. // a new mount, even though an empty version of it already committed.
  36871. // Disconnect the alternate pointers.
  36872. _current.alternate = null;
  36873. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  36874. workInProgress.effectTag |= Placement;
  36875. }
  36876. var props = workInProgress.pendingProps; // We can't start a User Timing measurement with correct label yet.
  36877. // Cancel and resume right after we know the tag.
  36878. cancelWorkTimer(workInProgress);
  36879. var Component = readLazyComponentType(elementType); // Store the unwrapped component in the type.
  36880. workInProgress.type = Component;
  36881. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  36882. startWorkTimer(workInProgress);
  36883. var resolvedProps = resolveDefaultProps(Component, props);
  36884. var child;
  36885. switch (resolvedTag) {
  36886. case FunctionComponent:
  36887. {
  36888. {
  36889. validateFunctionComponentInDev(workInProgress, Component);
  36890. workInProgress.type = Component = resolveFunctionForHotReloading(Component);
  36891. }
  36892. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  36893. return child;
  36894. }
  36895. case ClassComponent:
  36896. {
  36897. {
  36898. workInProgress.type = Component = resolveClassForHotReloading(Component);
  36899. }
  36900. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  36901. return child;
  36902. }
  36903. case ForwardRef:
  36904. {
  36905. {
  36906. workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
  36907. }
  36908. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  36909. return child;
  36910. }
  36911. case MemoComponent:
  36912. {
  36913. {
  36914. if (workInProgress.type !== workInProgress.elementType) {
  36915. var outerPropTypes = Component.propTypes;
  36916. if (outerPropTypes) {
  36917. checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
  36918. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  36919. }
  36920. }
  36921. }
  36922. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  36923. updateExpirationTime, renderExpirationTime);
  36924. return child;
  36925. }
  36926. }
  36927. var hint = '';
  36928. {
  36929. if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
  36930. hint = ' Did you wrap a component in React.lazy() more than once?';
  36931. }
  36932. } // This message intentionally doesn't mention ForwardRef or MemoComponent
  36933. // because the fact that it's a separate type of work is an
  36934. // implementation detail.
  36935. {
  36936. {
  36937. throw Error( "Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint );
  36938. }
  36939. }
  36940. }
  36941. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  36942. if (_current !== null) {
  36943. // An incomplete component only mounts if it suspended inside a non-
  36944. // concurrent tree, in an inconsistent state. We want to treat it like
  36945. // a new mount, even though an empty version of it already committed.
  36946. // Disconnect the alternate pointers.
  36947. _current.alternate = null;
  36948. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  36949. workInProgress.effectTag |= Placement;
  36950. } // Promote the fiber to a class and try rendering again.
  36951. workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
  36952. // Push context providers early to prevent context stack mismatches.
  36953. // During mounting we don't know the child context yet as the instance doesn't exist.
  36954. // We will invalidate the child context in finishClassComponent() right after rendering.
  36955. var hasContext;
  36956. if (isContextProvider(Component)) {
  36957. hasContext = true;
  36958. pushContextProvider(workInProgress);
  36959. } else {
  36960. hasContext = false;
  36961. }
  36962. prepareToReadContext(workInProgress, renderExpirationTime);
  36963. constructClassInstance(workInProgress, Component, nextProps);
  36964. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  36965. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  36966. }
  36967. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  36968. if (_current !== null) {
  36969. // An indeterminate component only mounts if it suspended inside a non-
  36970. // concurrent tree, in an inconsistent state. We want to treat it like
  36971. // a new mount, even though an empty version of it already committed.
  36972. // Disconnect the alternate pointers.
  36973. _current.alternate = null;
  36974. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  36975. workInProgress.effectTag |= Placement;
  36976. }
  36977. var props = workInProgress.pendingProps;
  36978. var context;
  36979. {
  36980. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  36981. context = getMaskedContext(workInProgress, unmaskedContext);
  36982. }
  36983. prepareToReadContext(workInProgress, renderExpirationTime);
  36984. var value;
  36985. {
  36986. if (Component.prototype && typeof Component.prototype.render === 'function') {
  36987. var componentName = getComponentName(Component) || 'Unknown';
  36988. if (!didWarnAboutBadClass[componentName]) {
  36989. error("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);
  36990. didWarnAboutBadClass[componentName] = true;
  36991. }
  36992. }
  36993. if (workInProgress.mode & StrictMode) {
  36994. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  36995. }
  36996. setIsRendering(true);
  36997. ReactCurrentOwner$1.current = workInProgress;
  36998. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  36999. setIsRendering(false);
  37000. } // React DevTools reads this flag.
  37001. workInProgress.effectTag |= PerformedWork;
  37002. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  37003. {
  37004. var _componentName = getComponentName(Component) || 'Unknown';
  37005. if (!didWarnAboutModulePatternComponent[_componentName]) {
  37006. error('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);
  37007. didWarnAboutModulePatternComponent[_componentName] = true;
  37008. }
  37009. } // Proceed under the assumption that this is a class instance
  37010. workInProgress.tag = ClassComponent; // Throw out any hooks that were used.
  37011. workInProgress.memoizedState = null;
  37012. workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.
  37013. // During mounting we don't know the child context yet as the instance doesn't exist.
  37014. // We will invalidate the child context in finishClassComponent() right after rendering.
  37015. var hasContext = false;
  37016. if (isContextProvider(Component)) {
  37017. hasContext = true;
  37018. pushContextProvider(workInProgress);
  37019. } else {
  37020. hasContext = false;
  37021. }
  37022. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  37023. initializeUpdateQueue(workInProgress);
  37024. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  37025. if (typeof getDerivedStateFromProps === 'function') {
  37026. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  37027. }
  37028. adoptClassInstance(workInProgress, value);
  37029. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  37030. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  37031. } else {
  37032. // Proceed under the assumption that this is a function component
  37033. workInProgress.tag = FunctionComponent;
  37034. {
  37035. if ( workInProgress.mode & StrictMode) {
  37036. // Only double-render components with Hooks
  37037. if (workInProgress.memoizedState !== null) {
  37038. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  37039. }
  37040. }
  37041. }
  37042. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  37043. {
  37044. validateFunctionComponentInDev(workInProgress, Component);
  37045. }
  37046. return workInProgress.child;
  37047. }
  37048. }
  37049. function validateFunctionComponentInDev(workInProgress, Component) {
  37050. {
  37051. if (Component) {
  37052. if (Component.childContextTypes) {
  37053. error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
  37054. }
  37055. }
  37056. if (workInProgress.ref !== null) {
  37057. var info = '';
  37058. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  37059. if (ownerName) {
  37060. info += '\n\nCheck the render method of `' + ownerName + '`.';
  37061. }
  37062. var warningKey = ownerName || workInProgress._debugID || '';
  37063. var debugSource = workInProgress._debugSource;
  37064. if (debugSource) {
  37065. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  37066. }
  37067. if (!didWarnAboutFunctionRefs[warningKey]) {
  37068. didWarnAboutFunctionRefs[warningKey] = true;
  37069. error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
  37070. }
  37071. }
  37072. if (typeof Component.getDerivedStateFromProps === 'function') {
  37073. var _componentName2 = getComponentName(Component) || 'Unknown';
  37074. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
  37075. error('%s: Function components do not support getDerivedStateFromProps.', _componentName2);
  37076. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
  37077. }
  37078. }
  37079. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  37080. var _componentName3 = getComponentName(Component) || 'Unknown';
  37081. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
  37082. error('%s: Function components do not support contextType.', _componentName3);
  37083. didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
  37084. }
  37085. }
  37086. }
  37087. }
  37088. var SUSPENDED_MARKER = {
  37089. dehydrated: null,
  37090. retryTime: NoWork
  37091. };
  37092. function shouldRemainOnFallback(suspenseContext, current, workInProgress) {
  37093. // If the context is telling us that we should show a fallback, and we're not
  37094. // already showing content, then we should show the fallback instead.
  37095. return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current === null || current.memoizedState !== null);
  37096. }
  37097. function updateSuspenseComponent(current, workInProgress, renderExpirationTime) {
  37098. var mode = workInProgress.mode;
  37099. var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.
  37100. {
  37101. if (shouldSuspend(workInProgress)) {
  37102. workInProgress.effectTag |= DidCapture;
  37103. }
  37104. }
  37105. var suspenseContext = suspenseStackCursor.current;
  37106. var nextDidTimeout = false;
  37107. var didSuspend = (workInProgress.effectTag & DidCapture) !== NoEffect;
  37108. if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
  37109. // Something in this boundary's subtree already suspended. Switch to
  37110. // rendering the fallback children.
  37111. nextDidTimeout = true;
  37112. workInProgress.effectTag &= ~DidCapture;
  37113. } else {
  37114. // Attempting the main content
  37115. if (current === null || current.memoizedState !== null) {
  37116. // This is a new mount or this boundary is already showing a fallback state.
  37117. // Mark this subtree context as having at least one invisible parent that could
  37118. // handle the fallback state.
  37119. // Boundaries without fallbacks or should be avoided are not considered since
  37120. // they cannot handle preferred fallback states.
  37121. if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
  37122. suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
  37123. }
  37124. }
  37125. }
  37126. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  37127. pushSuspenseContext(workInProgress, suspenseContext); // This next part is a bit confusing. If the children timeout, we switch to
  37128. // showing the fallback children in place of the "primary" children.
  37129. // However, we don't want to delete the primary children because then their
  37130. // state will be lost (both the React state and the host state, e.g.
  37131. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  37132. // Both the fallback children AND the primary children are rendered at the
  37133. // same time. Once the primary children are un-suspended, we can delete
  37134. // the fallback children — don't need to preserve their state.
  37135. //
  37136. // The two sets of children are siblings in the host environment, but
  37137. // semantically, for purposes of reconciliation, they are two separate sets.
  37138. // So we store them using two fragment fibers.
  37139. //
  37140. // However, we want to avoid allocating extra fibers for every placeholder.
  37141. // They're only necessary when the children time out, because that's the
  37142. // only time when both sets are mounted.
  37143. //
  37144. // So, the extra fragment fibers are only used if the children time out.
  37145. // Otherwise, we render the primary children directly. This requires some
  37146. // custom reconciliation logic to preserve the state of the primary
  37147. // children. It's essentially a very basic form of re-parenting.
  37148. if (current === null) {
  37149. // If we're currently hydrating, try to hydrate this boundary.
  37150. // But only if this has a fallback.
  37151. if (nextProps.fallback !== undefined) {
  37152. tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.
  37153. } // This is the initial mount. This branch is pretty simple because there's
  37154. // no previous state that needs to be preserved.
  37155. if (nextDidTimeout) {
  37156. // Mount separate fragments for primary and fallback children.
  37157. var nextFallbackChildren = nextProps.fallback;
  37158. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  37159. primaryChildFragment.return = workInProgress;
  37160. if ((workInProgress.mode & BlockingMode) === NoMode) {
  37161. // Outside of blocking mode, we commit the effects from the
  37162. // partially completed, timed-out tree, too.
  37163. var progressedState = workInProgress.memoizedState;
  37164. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  37165. primaryChildFragment.child = progressedPrimaryChild;
  37166. var progressedChild = progressedPrimaryChild;
  37167. while (progressedChild !== null) {
  37168. progressedChild.return = primaryChildFragment;
  37169. progressedChild = progressedChild.sibling;
  37170. }
  37171. }
  37172. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  37173. fallbackChildFragment.return = workInProgress;
  37174. primaryChildFragment.sibling = fallbackChildFragment; // Skip the primary children, and continue working on the
  37175. // fallback children.
  37176. workInProgress.memoizedState = SUSPENDED_MARKER;
  37177. workInProgress.child = primaryChildFragment;
  37178. return fallbackChildFragment;
  37179. } else {
  37180. // Mount the primary children without an intermediate fragment fiber.
  37181. var nextPrimaryChildren = nextProps.children;
  37182. workInProgress.memoizedState = null;
  37183. return workInProgress.child = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  37184. }
  37185. } else {
  37186. // This is an update. This branch is more complicated because we need to
  37187. // ensure the state of the primary children is preserved.
  37188. var prevState = current.memoizedState;
  37189. if (prevState !== null) {
  37190. // wrapped in a fragment fiber.
  37191. var currentPrimaryChildFragment = current.child;
  37192. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  37193. if (nextDidTimeout) {
  37194. // Still timed out. Reuse the current primary children by cloning
  37195. // its fragment. We're going to skip over these entirely.
  37196. var _nextFallbackChildren2 = nextProps.fallback;
  37197. var _primaryChildFragment2 = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps);
  37198. _primaryChildFragment2.return = workInProgress;
  37199. if ((workInProgress.mode & BlockingMode) === NoMode) {
  37200. // Outside of blocking mode, we commit the effects from the
  37201. // partially completed, timed-out tree, too.
  37202. var _progressedState = workInProgress.memoizedState;
  37203. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  37204. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  37205. _primaryChildFragment2.child = _progressedPrimaryChild;
  37206. var _progressedChild2 = _progressedPrimaryChild;
  37207. while (_progressedChild2 !== null) {
  37208. _progressedChild2.return = _primaryChildFragment2;
  37209. _progressedChild2 = _progressedChild2.sibling;
  37210. }
  37211. }
  37212. } // Because primaryChildFragment is a new fiber that we're inserting as the
  37213. // parent of a new tree, we need to set its treeBaseDuration.
  37214. if ( workInProgress.mode & ProfileMode) {
  37215. // treeBaseDuration is the sum of all the child tree base durations.
  37216. var _treeBaseDuration = 0;
  37217. var _hiddenChild = _primaryChildFragment2.child;
  37218. while (_hiddenChild !== null) {
  37219. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  37220. _hiddenChild = _hiddenChild.sibling;
  37221. }
  37222. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  37223. } // Clone the fallback child fragment, too. These we'll continue
  37224. // working on.
  37225. var _fallbackChildFragment2 = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren2);
  37226. _fallbackChildFragment2.return = workInProgress;
  37227. _primaryChildFragment2.sibling = _fallbackChildFragment2;
  37228. _primaryChildFragment2.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
  37229. // fallback children.
  37230. workInProgress.memoizedState = SUSPENDED_MARKER;
  37231. workInProgress.child = _primaryChildFragment2;
  37232. return _fallbackChildFragment2;
  37233. } else {
  37234. // No longer suspended. Switch back to showing the primary children,
  37235. // and remove the intermediate fragment fiber.
  37236. var _nextPrimaryChildren = nextProps.children;
  37237. var currentPrimaryChild = currentPrimaryChildFragment.child;
  37238. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime); // If this render doesn't suspend, we need to delete the fallback
  37239. // children. Wait until the complete phase, after we've confirmed the
  37240. // fallback is no longer needed.
  37241. // TODO: Would it be better to store the fallback fragment on
  37242. // the stateNode?
  37243. // Continue rendering the children, like we normally do.
  37244. workInProgress.memoizedState = null;
  37245. return workInProgress.child = primaryChild;
  37246. }
  37247. } else {
  37248. // The current tree has not already timed out. That means the primary
  37249. // children are not wrapped in a fragment fiber.
  37250. var _currentPrimaryChild = current.child;
  37251. if (nextDidTimeout) {
  37252. // Timed out. Wrap the children in a fragment fiber to keep them
  37253. // separate from the fallback children.
  37254. var _nextFallbackChildren3 = nextProps.fallback;
  37255. var _primaryChildFragment3 = createFiberFromFragment( // It shouldn't matter what the pending props are because we aren't
  37256. // going to render this fragment.
  37257. null, mode, NoWork, null);
  37258. _primaryChildFragment3.return = workInProgress;
  37259. _primaryChildFragment3.child = _currentPrimaryChild;
  37260. if (_currentPrimaryChild !== null) {
  37261. _currentPrimaryChild.return = _primaryChildFragment3;
  37262. } // Even though we're creating a new fiber, there are no new children,
  37263. // because we're reusing an already mounted tree. So we don't need to
  37264. // schedule a placement.
  37265. // primaryChildFragment.effectTag |= Placement;
  37266. if ((workInProgress.mode & BlockingMode) === NoMode) {
  37267. // Outside of blocking mode, we commit the effects from the
  37268. // partially completed, timed-out tree, too.
  37269. var _progressedState2 = workInProgress.memoizedState;
  37270. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  37271. _primaryChildFragment3.child = _progressedPrimaryChild2;
  37272. var _progressedChild3 = _progressedPrimaryChild2;
  37273. while (_progressedChild3 !== null) {
  37274. _progressedChild3.return = _primaryChildFragment3;
  37275. _progressedChild3 = _progressedChild3.sibling;
  37276. }
  37277. } // Because primaryChildFragment is a new fiber that we're inserting as the
  37278. // parent of a new tree, we need to set its treeBaseDuration.
  37279. if ( workInProgress.mode & ProfileMode) {
  37280. // treeBaseDuration is the sum of all the child tree base durations.
  37281. var _treeBaseDuration2 = 0;
  37282. var _hiddenChild2 = _primaryChildFragment3.child;
  37283. while (_hiddenChild2 !== null) {
  37284. _treeBaseDuration2 += _hiddenChild2.treeBaseDuration;
  37285. _hiddenChild2 = _hiddenChild2.sibling;
  37286. }
  37287. _primaryChildFragment3.treeBaseDuration = _treeBaseDuration2;
  37288. } // Create a fragment from the fallback children, too.
  37289. var _fallbackChildFragment3 = createFiberFromFragment(_nextFallbackChildren3, mode, renderExpirationTime, null);
  37290. _fallbackChildFragment3.return = workInProgress;
  37291. _primaryChildFragment3.sibling = _fallbackChildFragment3;
  37292. _fallbackChildFragment3.effectTag |= Placement;
  37293. _primaryChildFragment3.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
  37294. // fallback children.
  37295. workInProgress.memoizedState = SUSPENDED_MARKER;
  37296. workInProgress.child = _primaryChildFragment3;
  37297. return _fallbackChildFragment3;
  37298. } else {
  37299. // Still haven't timed out. Continue rendering the children, like we
  37300. // normally do.
  37301. workInProgress.memoizedState = null;
  37302. var _nextPrimaryChildren2 = nextProps.children;
  37303. return workInProgress.child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  37304. }
  37305. }
  37306. }
  37307. }
  37308. function scheduleWorkOnFiber(fiber, renderExpirationTime) {
  37309. if (fiber.expirationTime < renderExpirationTime) {
  37310. fiber.expirationTime = renderExpirationTime;
  37311. }
  37312. var alternate = fiber.alternate;
  37313. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  37314. alternate.expirationTime = renderExpirationTime;
  37315. }
  37316. scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
  37317. }
  37318. function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
  37319. // Mark any Suspense boundaries with fallbacks as having work to do.
  37320. // If they were previously forced into fallbacks, they may now be able
  37321. // to unblock.
  37322. var node = firstChild;
  37323. while (node !== null) {
  37324. if (node.tag === SuspenseComponent) {
  37325. var state = node.memoizedState;
  37326. if (state !== null) {
  37327. scheduleWorkOnFiber(node, renderExpirationTime);
  37328. }
  37329. } else if (node.tag === SuspenseListComponent) {
  37330. // If the tail is hidden there might not be an Suspense boundaries
  37331. // to schedule work on. In this case we have to schedule it on the
  37332. // list itself.
  37333. // We don't have to traverse to the children of the list since
  37334. // the list will propagate the change when it rerenders.
  37335. scheduleWorkOnFiber(node, renderExpirationTime);
  37336. } else if (node.child !== null) {
  37337. node.child.return = node;
  37338. node = node.child;
  37339. continue;
  37340. }
  37341. if (node === workInProgress) {
  37342. return;
  37343. }
  37344. while (node.sibling === null) {
  37345. if (node.return === null || node.return === workInProgress) {
  37346. return;
  37347. }
  37348. node = node.return;
  37349. }
  37350. node.sibling.return = node.return;
  37351. node = node.sibling;
  37352. }
  37353. }
  37354. function findLastContentRow(firstChild) {
  37355. // This is going to find the last row among these children that is already
  37356. // showing content on the screen, as opposed to being in fallback state or
  37357. // new. If a row has multiple Suspense boundaries, any of them being in the
  37358. // fallback state, counts as the whole row being in a fallback state.
  37359. // Note that the "rows" will be workInProgress, but any nested children
  37360. // will still be current since we haven't rendered them yet. The mounted
  37361. // order may not be the same as the new order. We use the new order.
  37362. var row = firstChild;
  37363. var lastContentRow = null;
  37364. while (row !== null) {
  37365. var currentRow = row.alternate; // New rows can't be content rows.
  37366. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  37367. lastContentRow = row;
  37368. }
  37369. row = row.sibling;
  37370. }
  37371. return lastContentRow;
  37372. }
  37373. function validateRevealOrder(revealOrder) {
  37374. {
  37375. if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
  37376. didWarnAboutRevealOrder[revealOrder] = true;
  37377. if (typeof revealOrder === 'string') {
  37378. switch (revealOrder.toLowerCase()) {
  37379. case 'together':
  37380. case 'forwards':
  37381. case 'backwards':
  37382. {
  37383. error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
  37384. break;
  37385. }
  37386. case 'forward':
  37387. case 'backward':
  37388. {
  37389. error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());
  37390. break;
  37391. }
  37392. default:
  37393. error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  37394. break;
  37395. }
  37396. } else {
  37397. error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  37398. }
  37399. }
  37400. }
  37401. }
  37402. function validateTailOptions(tailMode, revealOrder) {
  37403. {
  37404. if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
  37405. if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
  37406. didWarnAboutTailOptions[tailMode] = true;
  37407. error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
  37408. } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
  37409. didWarnAboutTailOptions[tailMode] = true;
  37410. error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
  37411. }
  37412. }
  37413. }
  37414. }
  37415. function validateSuspenseListNestedChild(childSlot, index) {
  37416. {
  37417. var isArray = Array.isArray(childSlot);
  37418. var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
  37419. if (isArray || isIterable) {
  37420. var type = isArray ? 'array' : 'iterable';
  37421. error('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);
  37422. return false;
  37423. }
  37424. }
  37425. return true;
  37426. }
  37427. function validateSuspenseListChildren(children, revealOrder) {
  37428. {
  37429. if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
  37430. if (Array.isArray(children)) {
  37431. for (var i = 0; i < children.length; i++) {
  37432. if (!validateSuspenseListNestedChild(children[i], i)) {
  37433. return;
  37434. }
  37435. }
  37436. } else {
  37437. var iteratorFn = getIteratorFn(children);
  37438. if (typeof iteratorFn === 'function') {
  37439. var childrenIterator = iteratorFn.call(children);
  37440. if (childrenIterator) {
  37441. var step = childrenIterator.next();
  37442. var _i = 0;
  37443. for (; !step.done; step = childrenIterator.next()) {
  37444. if (!validateSuspenseListNestedChild(step.value, _i)) {
  37445. return;
  37446. }
  37447. _i++;
  37448. }
  37449. }
  37450. } else {
  37451. error('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);
  37452. }
  37453. }
  37454. }
  37455. }
  37456. }
  37457. function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) {
  37458. var renderState = workInProgress.memoizedState;
  37459. if (renderState === null) {
  37460. workInProgress.memoizedState = {
  37461. isBackwards: isBackwards,
  37462. rendering: null,
  37463. renderingStartTime: 0,
  37464. last: lastContentRow,
  37465. tail: tail,
  37466. tailExpiration: 0,
  37467. tailMode: tailMode,
  37468. lastEffect: lastEffectBeforeRendering
  37469. };
  37470. } else {
  37471. // We can reuse the existing object from previous renders.
  37472. renderState.isBackwards = isBackwards;
  37473. renderState.rendering = null;
  37474. renderState.renderingStartTime = 0;
  37475. renderState.last = lastContentRow;
  37476. renderState.tail = tail;
  37477. renderState.tailExpiration = 0;
  37478. renderState.tailMode = tailMode;
  37479. renderState.lastEffect = lastEffectBeforeRendering;
  37480. }
  37481. } // This can end up rendering this component multiple passes.
  37482. // The first pass splits the children fibers into two sets. A head and tail.
  37483. // We first render the head. If anything is in fallback state, we do another
  37484. // pass through beginWork to rerender all children (including the tail) with
  37485. // the force suspend context. If the first render didn't have anything in
  37486. // in fallback state. Then we render each row in the tail one-by-one.
  37487. // That happens in the completeWork phase without going back to beginWork.
  37488. function updateSuspenseListComponent(current, workInProgress, renderExpirationTime) {
  37489. var nextProps = workInProgress.pendingProps;
  37490. var revealOrder = nextProps.revealOrder;
  37491. var tailMode = nextProps.tail;
  37492. var newChildren = nextProps.children;
  37493. validateRevealOrder(revealOrder);
  37494. validateTailOptions(tailMode, revealOrder);
  37495. validateSuspenseListChildren(newChildren, revealOrder);
  37496. reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  37497. var suspenseContext = suspenseStackCursor.current;
  37498. var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
  37499. if (shouldForceFallback) {
  37500. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  37501. workInProgress.effectTag |= DidCapture;
  37502. } else {
  37503. var didSuspendBefore = current !== null && (current.effectTag & DidCapture) !== NoEffect;
  37504. if (didSuspendBefore) {
  37505. // If we previously forced a fallback, we need to schedule work
  37506. // on any nested boundaries to let them know to try to render
  37507. // again. This is the same as context updating.
  37508. propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
  37509. }
  37510. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  37511. }
  37512. pushSuspenseContext(workInProgress, suspenseContext);
  37513. if ((workInProgress.mode & BlockingMode) === NoMode) {
  37514. // Outside of blocking mode, SuspenseList doesn't work so we just
  37515. // use make it a noop by treating it as the default revealOrder.
  37516. workInProgress.memoizedState = null;
  37517. } else {
  37518. switch (revealOrder) {
  37519. case 'forwards':
  37520. {
  37521. var lastContentRow = findLastContentRow(workInProgress.child);
  37522. var tail;
  37523. if (lastContentRow === null) {
  37524. // The whole list is part of the tail.
  37525. // TODO: We could fast path by just rendering the tail now.
  37526. tail = workInProgress.child;
  37527. workInProgress.child = null;
  37528. } else {
  37529. // Disconnect the tail rows after the content row.
  37530. // We're going to render them separately later.
  37531. tail = lastContentRow.sibling;
  37532. lastContentRow.sibling = null;
  37533. }
  37534. initSuspenseListRenderState(workInProgress, false, // isBackwards
  37535. tail, lastContentRow, tailMode, workInProgress.lastEffect);
  37536. break;
  37537. }
  37538. case 'backwards':
  37539. {
  37540. // We're going to find the first row that has existing content.
  37541. // At the same time we're going to reverse the list of everything
  37542. // we pass in the meantime. That's going to be our tail in reverse
  37543. // order.
  37544. var _tail = null;
  37545. var row = workInProgress.child;
  37546. workInProgress.child = null;
  37547. while (row !== null) {
  37548. var currentRow = row.alternate; // New rows can't be content rows.
  37549. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  37550. // This is the beginning of the main content.
  37551. workInProgress.child = row;
  37552. break;
  37553. }
  37554. var nextRow = row.sibling;
  37555. row.sibling = _tail;
  37556. _tail = row;
  37557. row = nextRow;
  37558. } // TODO: If workInProgress.child is null, we can continue on the tail immediately.
  37559. initSuspenseListRenderState(workInProgress, true, // isBackwards
  37560. _tail, null, // last
  37561. tailMode, workInProgress.lastEffect);
  37562. break;
  37563. }
  37564. case 'together':
  37565. {
  37566. initSuspenseListRenderState(workInProgress, false, // isBackwards
  37567. null, // tail
  37568. null, // last
  37569. undefined, workInProgress.lastEffect);
  37570. break;
  37571. }
  37572. default:
  37573. {
  37574. // The default reveal order is the same as not having
  37575. // a boundary.
  37576. workInProgress.memoizedState = null;
  37577. }
  37578. }
  37579. }
  37580. return workInProgress.child;
  37581. }
  37582. function updatePortalComponent(current, workInProgress, renderExpirationTime) {
  37583. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  37584. var nextChildren = workInProgress.pendingProps;
  37585. if (current === null) {
  37586. // Portals are special because we don't append the children during mount
  37587. // but at commit. Therefore we need to track insertions which the normal
  37588. // flow doesn't do during mount. This doesn't happen at the root because
  37589. // the root always starts with a "current" with a null child.
  37590. // TODO: Consider unifying this with how the root works.
  37591. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  37592. } else {
  37593. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  37594. }
  37595. return workInProgress.child;
  37596. }
  37597. function updateContextProvider(current, workInProgress, renderExpirationTime) {
  37598. var providerType = workInProgress.type;
  37599. var context = providerType._context;
  37600. var newProps = workInProgress.pendingProps;
  37601. var oldProps = workInProgress.memoizedProps;
  37602. var newValue = newProps.value;
  37603. {
  37604. var providerPropTypes = workInProgress.type.propTypes;
  37605. if (providerPropTypes) {
  37606. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  37607. }
  37608. }
  37609. pushProvider(workInProgress, newValue);
  37610. if (oldProps !== null) {
  37611. var oldValue = oldProps.value;
  37612. var changedBits = calculateChangedBits(context, newValue, oldValue);
  37613. if (changedBits === 0) {
  37614. // No change. Bailout early if children are the same.
  37615. if (oldProps.children === newProps.children && !hasContextChanged()) {
  37616. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  37617. }
  37618. } else {
  37619. // The context value changed. Search for matching consumers and schedule
  37620. // them to update.
  37621. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  37622. }
  37623. }
  37624. var newChildren = newProps.children;
  37625. reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  37626. return workInProgress.child;
  37627. }
  37628. var hasWarnedAboutUsingContextAsConsumer = false;
  37629. function updateContextConsumer(current, workInProgress, renderExpirationTime) {
  37630. var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
  37631. // DEV mode, we create a separate object for Context.Consumer that acts
  37632. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  37633. // so we use the old behaviour (Context.Consumer references Context) to
  37634. // reduce size and overhead. The separate object references context via
  37635. // a property called "_context", which also gives us the ability to check
  37636. // in DEV mode if this property exists or not and warn if it does not.
  37637. {
  37638. if (context._context === undefined) {
  37639. // This may be because it's a Context (rather than a Consumer).
  37640. // Or it may be because it's older React where they're the same thing.
  37641. // We only want to warn if we're sure it's a new React.
  37642. if (context !== context.Consumer) {
  37643. if (!hasWarnedAboutUsingContextAsConsumer) {
  37644. hasWarnedAboutUsingContextAsConsumer = true;
  37645. error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  37646. }
  37647. }
  37648. } else {
  37649. context = context._context;
  37650. }
  37651. }
  37652. var newProps = workInProgress.pendingProps;
  37653. var render = newProps.children;
  37654. {
  37655. if (typeof render !== 'function') {
  37656. error('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.');
  37657. }
  37658. }
  37659. prepareToReadContext(workInProgress, renderExpirationTime);
  37660. var newValue = readContext(context, newProps.unstable_observedBits);
  37661. var newChildren;
  37662. {
  37663. ReactCurrentOwner$1.current = workInProgress;
  37664. setIsRendering(true);
  37665. newChildren = render(newValue);
  37666. setIsRendering(false);
  37667. } // React DevTools reads this flag.
  37668. workInProgress.effectTag |= PerformedWork;
  37669. reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  37670. return workInProgress.child;
  37671. }
  37672. function markWorkInProgressReceivedUpdate() {
  37673. didReceiveUpdate = true;
  37674. }
  37675. function bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime) {
  37676. cancelWorkTimer(workInProgress);
  37677. if (current !== null) {
  37678. // Reuse previous dependencies
  37679. workInProgress.dependencies = current.dependencies;
  37680. }
  37681. {
  37682. // Don't update "base" render times for bailouts.
  37683. stopProfilerTimerIfRunning();
  37684. }
  37685. var updateExpirationTime = workInProgress.expirationTime;
  37686. if (updateExpirationTime !== NoWork) {
  37687. markUnprocessedUpdateTime(updateExpirationTime);
  37688. } // Check if the children have any pending work.
  37689. var childExpirationTime = workInProgress.childExpirationTime;
  37690. if (childExpirationTime < renderExpirationTime) {
  37691. // The children don't have any work either. We can skip them.
  37692. // TODO: Once we add back resuming, we should check if the children are
  37693. // a work-in-progress set. If so, we need to transfer their effects.
  37694. return null;
  37695. } else {
  37696. // This fiber doesn't have work, but its subtree does. Clone the child
  37697. // fibers and continue.
  37698. cloneChildFibers(current, workInProgress);
  37699. return workInProgress.child;
  37700. }
  37701. }
  37702. function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
  37703. {
  37704. var returnFiber = oldWorkInProgress.return;
  37705. if (returnFiber === null) {
  37706. throw new Error('Cannot swap the root fiber.');
  37707. } // Disconnect from the old current.
  37708. // It will get deleted.
  37709. current.alternate = null;
  37710. oldWorkInProgress.alternate = null; // Connect to the new tree.
  37711. newWorkInProgress.index = oldWorkInProgress.index;
  37712. newWorkInProgress.sibling = oldWorkInProgress.sibling;
  37713. newWorkInProgress.return = oldWorkInProgress.return;
  37714. newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.
  37715. if (oldWorkInProgress === returnFiber.child) {
  37716. returnFiber.child = newWorkInProgress;
  37717. } else {
  37718. var prevSibling = returnFiber.child;
  37719. if (prevSibling === null) {
  37720. throw new Error('Expected parent to have a child.');
  37721. }
  37722. while (prevSibling.sibling !== oldWorkInProgress) {
  37723. prevSibling = prevSibling.sibling;
  37724. if (prevSibling === null) {
  37725. throw new Error('Expected to find the previous sibling.');
  37726. }
  37727. }
  37728. prevSibling.sibling = newWorkInProgress;
  37729. } // Delete the old fiber and place the new one.
  37730. // Since the old fiber is disconnected, we have to schedule it manually.
  37731. var last = returnFiber.lastEffect;
  37732. if (last !== null) {
  37733. last.nextEffect = current;
  37734. returnFiber.lastEffect = current;
  37735. } else {
  37736. returnFiber.firstEffect = returnFiber.lastEffect = current;
  37737. }
  37738. current.nextEffect = null;
  37739. current.effectTag = Deletion;
  37740. newWorkInProgress.effectTag |= Placement; // Restart work from the new fiber.
  37741. return newWorkInProgress;
  37742. }
  37743. }
  37744. function beginWork(current, workInProgress, renderExpirationTime) {
  37745. var updateExpirationTime = workInProgress.expirationTime;
  37746. {
  37747. if (workInProgress._debugNeedsRemount && current !== null) {
  37748. // This will restart the begin phase with a new fiber.
  37749. return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
  37750. }
  37751. }
  37752. if (current !== null) {
  37753. var oldProps = current.memoizedProps;
  37754. var newProps = workInProgress.pendingProps;
  37755. if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
  37756. workInProgress.type !== current.type )) {
  37757. // If props or context changed, mark the fiber as having performed work.
  37758. // This may be unset if the props are determined to be equal later (memo).
  37759. didReceiveUpdate = true;
  37760. } else if (updateExpirationTime < renderExpirationTime) {
  37761. didReceiveUpdate = false; // This fiber does not have any pending work. Bailout without entering
  37762. // the begin phase. There's still some bookkeeping we that needs to be done
  37763. // in this optimized path, mostly pushing stuff onto the stack.
  37764. switch (workInProgress.tag) {
  37765. case HostRoot:
  37766. pushHostRootContext(workInProgress);
  37767. resetHydrationState();
  37768. break;
  37769. case HostComponent:
  37770. pushHostContext(workInProgress);
  37771. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
  37772. {
  37773. markSpawnedWork(Never);
  37774. } // Schedule this fiber to re-render at offscreen priority. Then bailout.
  37775. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  37776. return null;
  37777. }
  37778. break;
  37779. case ClassComponent:
  37780. {
  37781. var Component = workInProgress.type;
  37782. if (isContextProvider(Component)) {
  37783. pushContextProvider(workInProgress);
  37784. }
  37785. break;
  37786. }
  37787. case HostPortal:
  37788. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  37789. break;
  37790. case ContextProvider:
  37791. {
  37792. var newValue = workInProgress.memoizedProps.value;
  37793. pushProvider(workInProgress, newValue);
  37794. break;
  37795. }
  37796. case Profiler:
  37797. {
  37798. // Profiler should only call onRender when one of its descendants actually rendered.
  37799. var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  37800. if (hasChildWork) {
  37801. workInProgress.effectTag |= Update;
  37802. }
  37803. }
  37804. break;
  37805. case SuspenseComponent:
  37806. {
  37807. var state = workInProgress.memoizedState;
  37808. if (state !== null) {
  37809. // whether to retry the primary children, or to skip over it and
  37810. // go straight to the fallback. Check the priority of the primary
  37811. // child fragment.
  37812. var primaryChildFragment = workInProgress.child;
  37813. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  37814. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  37815. // The primary children have pending work. Use the normal path
  37816. // to attempt to render the primary children again.
  37817. return updateSuspenseComponent(current, workInProgress, renderExpirationTime);
  37818. } else {
  37819. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
  37820. // priority. Bailout.
  37821. var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  37822. if (child !== null) {
  37823. // The fallback children have pending work. Skip over the
  37824. // primary children and work on the fallback.
  37825. return child.sibling;
  37826. } else {
  37827. return null;
  37828. }
  37829. }
  37830. } else {
  37831. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  37832. }
  37833. break;
  37834. }
  37835. case SuspenseListComponent:
  37836. {
  37837. var didSuspendBefore = (current.effectTag & DidCapture) !== NoEffect;
  37838. var _hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  37839. if (didSuspendBefore) {
  37840. if (_hasChildWork) {
  37841. // If something was in fallback state last time, and we have all the
  37842. // same children then we're still in progressive loading state.
  37843. // Something might get unblocked by state updates or retries in the
  37844. // tree which will affect the tail. So we need to use the normal
  37845. // path to compute the correct tail.
  37846. return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
  37847. } // If none of the children had any work, that means that none of
  37848. // them got retried so they'll still be blocked in the same way
  37849. // as before. We can fast bail out.
  37850. workInProgress.effectTag |= DidCapture;
  37851. } // If nothing suspended before and we're rendering the same children,
  37852. // then the tail doesn't matter. Anything new that suspends will work
  37853. // in the "together" mode, so we can continue from the state we had.
  37854. var renderState = workInProgress.memoizedState;
  37855. if (renderState !== null) {
  37856. // Reset to the "together" mode in case we've started a different
  37857. // update in the past but didn't complete it.
  37858. renderState.rendering = null;
  37859. renderState.tail = null;
  37860. }
  37861. pushSuspenseContext(workInProgress, suspenseStackCursor.current);
  37862. if (_hasChildWork) {
  37863. break;
  37864. } else {
  37865. // If none of the children had any work, that means that none of
  37866. // them got retried so they'll still be blocked in the same way
  37867. // as before. We can fast bail out.
  37868. return null;
  37869. }
  37870. }
  37871. }
  37872. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  37873. } else {
  37874. // An update was scheduled on this fiber, but there are no new props
  37875. // nor legacy context. Set this to false. If an update queue or context
  37876. // consumer produces a changed value, it will set this to true. Otherwise,
  37877. // the component will assume the children have not changed and bail out.
  37878. didReceiveUpdate = false;
  37879. }
  37880. } else {
  37881. didReceiveUpdate = false;
  37882. } // Before entering the begin phase, clear pending update priority.
  37883. // TODO: This assumes that we're about to evaluate the component and process
  37884. // the update queue. However, there's an exception: SimpleMemoComponent
  37885. // sometimes bails out later in the begin phase. This indicates that we should
  37886. // move this assignment out of the common path and into each branch.
  37887. workInProgress.expirationTime = NoWork;
  37888. switch (workInProgress.tag) {
  37889. case IndeterminateComponent:
  37890. {
  37891. return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderExpirationTime);
  37892. }
  37893. case LazyComponent:
  37894. {
  37895. var elementType = workInProgress.elementType;
  37896. return mountLazyComponent(current, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
  37897. }
  37898. case FunctionComponent:
  37899. {
  37900. var _Component = workInProgress.type;
  37901. var unresolvedProps = workInProgress.pendingProps;
  37902. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  37903. return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderExpirationTime);
  37904. }
  37905. case ClassComponent:
  37906. {
  37907. var _Component2 = workInProgress.type;
  37908. var _unresolvedProps = workInProgress.pendingProps;
  37909. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  37910. return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  37911. }
  37912. case HostRoot:
  37913. return updateHostRoot(current, workInProgress, renderExpirationTime);
  37914. case HostComponent:
  37915. return updateHostComponent(current, workInProgress, renderExpirationTime);
  37916. case HostText:
  37917. return updateHostText(current, workInProgress);
  37918. case SuspenseComponent:
  37919. return updateSuspenseComponent(current, workInProgress, renderExpirationTime);
  37920. case HostPortal:
  37921. return updatePortalComponent(current, workInProgress, renderExpirationTime);
  37922. case ForwardRef:
  37923. {
  37924. var type = workInProgress.type;
  37925. var _unresolvedProps2 = workInProgress.pendingProps;
  37926. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  37927. return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderExpirationTime);
  37928. }
  37929. case Fragment:
  37930. return updateFragment(current, workInProgress, renderExpirationTime);
  37931. case Mode:
  37932. return updateMode(current, workInProgress, renderExpirationTime);
  37933. case Profiler:
  37934. return updateProfiler(current, workInProgress, renderExpirationTime);
  37935. case ContextProvider:
  37936. return updateContextProvider(current, workInProgress, renderExpirationTime);
  37937. case ContextConsumer:
  37938. return updateContextConsumer(current, workInProgress, renderExpirationTime);
  37939. case MemoComponent:
  37940. {
  37941. var _type2 = workInProgress.type;
  37942. var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.
  37943. var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
  37944. {
  37945. if (workInProgress.type !== workInProgress.elementType) {
  37946. var outerPropTypes = _type2.propTypes;
  37947. if (outerPropTypes) {
  37948. checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
  37949. 'prop', getComponentName(_type2), getCurrentFiberStackInDev);
  37950. }
  37951. }
  37952. }
  37953. _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
  37954. return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  37955. }
  37956. case SimpleMemoComponent:
  37957. {
  37958. return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  37959. }
  37960. case IncompleteClassComponent:
  37961. {
  37962. var _Component3 = workInProgress.type;
  37963. var _unresolvedProps4 = workInProgress.pendingProps;
  37964. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  37965. return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  37966. }
  37967. case SuspenseListComponent:
  37968. {
  37969. return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
  37970. }
  37971. }
  37972. {
  37973. {
  37974. throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
  37975. }
  37976. }
  37977. }
  37978. function markUpdate(workInProgress) {
  37979. // Tag the fiber with an update effect. This turns a Placement into
  37980. // a PlacementAndUpdate.
  37981. workInProgress.effectTag |= Update;
  37982. }
  37983. function markRef$1(workInProgress) {
  37984. workInProgress.effectTag |= Ref;
  37985. }
  37986. var appendAllChildren;
  37987. var updateHostContainer;
  37988. var updateHostComponent$1;
  37989. var updateHostText$1;
  37990. {
  37991. // Mutation mode
  37992. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  37993. // We only have the top Fiber that was created but we need recurse down its
  37994. // children to find all the terminal nodes.
  37995. var node = workInProgress.child;
  37996. while (node !== null) {
  37997. if (node.tag === HostComponent || node.tag === HostText) {
  37998. appendInitialChild(parent, node.stateNode);
  37999. } else if (node.tag === HostPortal) ; else if (node.child !== null) {
  38000. node.child.return = node;
  38001. node = node.child;
  38002. continue;
  38003. }
  38004. if (node === workInProgress) {
  38005. return;
  38006. }
  38007. while (node.sibling === null) {
  38008. if (node.return === null || node.return === workInProgress) {
  38009. return;
  38010. }
  38011. node = node.return;
  38012. }
  38013. node.sibling.return = node.return;
  38014. node = node.sibling;
  38015. }
  38016. };
  38017. updateHostContainer = function (workInProgress) {// Noop
  38018. };
  38019. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  38020. // If we have an alternate, that means this is an update and we need to
  38021. // schedule a side-effect to do the updates.
  38022. var oldProps = current.memoizedProps;
  38023. if (oldProps === newProps) {
  38024. // In mutation mode, this is sufficient for a bailout because
  38025. // we won't touch this node even if children changed.
  38026. return;
  38027. } // If we get updated because one of our children updated, we don't
  38028. // have newProps so we'll have to reuse them.
  38029. // TODO: Split the update API as separate for the props vs. children.
  38030. // Even better would be if children weren't special cased at all tho.
  38031. var instance = workInProgress.stateNode;
  38032. var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host
  38033. // component is hitting the resume path. Figure out why. Possibly
  38034. // related to `hidden`.
  38035. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.
  38036. workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
  38037. // is a new ref we mark this as an update. All the work is done in commitWork.
  38038. if (updatePayload) {
  38039. markUpdate(workInProgress);
  38040. }
  38041. };
  38042. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  38043. // If the text differs, mark it as an update. All the work in done in commitWork.
  38044. if (oldText !== newText) {
  38045. markUpdate(workInProgress);
  38046. }
  38047. };
  38048. }
  38049. function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  38050. switch (renderState.tailMode) {
  38051. case 'hidden':
  38052. {
  38053. // Any insertions at the end of the tail list after this point
  38054. // should be invisible. If there are already mounted boundaries
  38055. // anything before them are not considered for collapsing.
  38056. // Therefore we need to go through the whole tail to find if
  38057. // there are any.
  38058. var tailNode = renderState.tail;
  38059. var lastTailNode = null;
  38060. while (tailNode !== null) {
  38061. if (tailNode.alternate !== null) {
  38062. lastTailNode = tailNode;
  38063. }
  38064. tailNode = tailNode.sibling;
  38065. } // Next we're simply going to delete all insertions after the
  38066. // last rendered item.
  38067. if (lastTailNode === null) {
  38068. // All remaining items in the tail are insertions.
  38069. renderState.tail = null;
  38070. } else {
  38071. // Detach the insertion after the last node that was already
  38072. // inserted.
  38073. lastTailNode.sibling = null;
  38074. }
  38075. break;
  38076. }
  38077. case 'collapsed':
  38078. {
  38079. // Any insertions at the end of the tail list after this point
  38080. // should be invisible. If there are already mounted boundaries
  38081. // anything before them are not considered for collapsing.
  38082. // Therefore we need to go through the whole tail to find if
  38083. // there are any.
  38084. var _tailNode = renderState.tail;
  38085. var _lastTailNode = null;
  38086. while (_tailNode !== null) {
  38087. if (_tailNode.alternate !== null) {
  38088. _lastTailNode = _tailNode;
  38089. }
  38090. _tailNode = _tailNode.sibling;
  38091. } // Next we're simply going to delete all insertions after the
  38092. // last rendered item.
  38093. if (_lastTailNode === null) {
  38094. // All remaining items in the tail are insertions.
  38095. if (!hasRenderedATailFallback && renderState.tail !== null) {
  38096. // We suspended during the head. We want to show at least one
  38097. // row at the tail. So we'll keep on and cut off the rest.
  38098. renderState.tail.sibling = null;
  38099. } else {
  38100. renderState.tail = null;
  38101. }
  38102. } else {
  38103. // Detach the insertion after the last node that was already
  38104. // inserted.
  38105. _lastTailNode.sibling = null;
  38106. }
  38107. break;
  38108. }
  38109. }
  38110. }
  38111. function completeWork(current, workInProgress, renderExpirationTime) {
  38112. var newProps = workInProgress.pendingProps;
  38113. switch (workInProgress.tag) {
  38114. case IndeterminateComponent:
  38115. case LazyComponent:
  38116. case SimpleMemoComponent:
  38117. case FunctionComponent:
  38118. case ForwardRef:
  38119. case Fragment:
  38120. case Mode:
  38121. case Profiler:
  38122. case ContextConsumer:
  38123. case MemoComponent:
  38124. return null;
  38125. case ClassComponent:
  38126. {
  38127. var Component = workInProgress.type;
  38128. if (isContextProvider(Component)) {
  38129. popContext(workInProgress);
  38130. }
  38131. return null;
  38132. }
  38133. case HostRoot:
  38134. {
  38135. popHostContainer(workInProgress);
  38136. popTopLevelContextObject(workInProgress);
  38137. var fiberRoot = workInProgress.stateNode;
  38138. if (fiberRoot.pendingContext) {
  38139. fiberRoot.context = fiberRoot.pendingContext;
  38140. fiberRoot.pendingContext = null;
  38141. }
  38142. if (current === null || current.child === null) {
  38143. // If we hydrated, pop so that we can delete any remaining children
  38144. // that weren't hydrated.
  38145. var wasHydrated = popHydrationState(workInProgress);
  38146. if (wasHydrated) {
  38147. // If we hydrated, then we'll need to schedule an update for
  38148. // the commit side-effects on the root.
  38149. markUpdate(workInProgress);
  38150. }
  38151. }
  38152. updateHostContainer(workInProgress);
  38153. return null;
  38154. }
  38155. case HostComponent:
  38156. {
  38157. popHostContext(workInProgress);
  38158. var rootContainerInstance = getRootHostContainer();
  38159. var type = workInProgress.type;
  38160. if (current !== null && workInProgress.stateNode != null) {
  38161. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  38162. if (current.ref !== workInProgress.ref) {
  38163. markRef$1(workInProgress);
  38164. }
  38165. } else {
  38166. if (!newProps) {
  38167. if (!(workInProgress.stateNode !== null)) {
  38168. {
  38169. throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
  38170. }
  38171. } // This can happen when we abort work.
  38172. return null;
  38173. }
  38174. var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
  38175. // "stack" as the parent. Then append children as we go in beginWork
  38176. // or completeWork depending on whether we want to add them top->down or
  38177. // bottom->up. Top->down is faster in IE11.
  38178. var _wasHydrated = popHydrationState(workInProgress);
  38179. if (_wasHydrated) {
  38180. // TODO: Move this and createInstance step into the beginPhase
  38181. // to consolidate.
  38182. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  38183. // If changes to the hydrated node need to be applied at the
  38184. // commit-phase we mark this as such.
  38185. markUpdate(workInProgress);
  38186. }
  38187. } else {
  38188. var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  38189. appendAllChildren(instance, workInProgress, false, false); // This needs to be set before we mount Flare event listeners
  38190. workInProgress.stateNode = instance;
  38191. // (eg DOM renderer supports auto-focus for certain elements).
  38192. // Make sure such renderers get scheduled for later work.
  38193. if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
  38194. markUpdate(workInProgress);
  38195. }
  38196. }
  38197. if (workInProgress.ref !== null) {
  38198. // If there is a ref on a host node we need to schedule a callback
  38199. markRef$1(workInProgress);
  38200. }
  38201. }
  38202. return null;
  38203. }
  38204. case HostText:
  38205. {
  38206. var newText = newProps;
  38207. if (current && workInProgress.stateNode != null) {
  38208. var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need
  38209. // to schedule a side-effect to do the updates.
  38210. updateHostText$1(current, workInProgress, oldText, newText);
  38211. } else {
  38212. if (typeof newText !== 'string') {
  38213. if (!(workInProgress.stateNode !== null)) {
  38214. {
  38215. throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
  38216. }
  38217. } // This can happen when we abort work.
  38218. }
  38219. var _rootContainerInstance = getRootHostContainer();
  38220. var _currentHostContext = getHostContext();
  38221. var _wasHydrated2 = popHydrationState(workInProgress);
  38222. if (_wasHydrated2) {
  38223. if (prepareToHydrateHostTextInstance(workInProgress)) {
  38224. markUpdate(workInProgress);
  38225. }
  38226. } else {
  38227. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  38228. }
  38229. }
  38230. return null;
  38231. }
  38232. case SuspenseComponent:
  38233. {
  38234. popSuspenseContext(workInProgress);
  38235. var nextState = workInProgress.memoizedState;
  38236. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  38237. // Something suspended. Re-render with the fallback children.
  38238. workInProgress.expirationTime = renderExpirationTime; // Do not reset the effect list.
  38239. return workInProgress;
  38240. }
  38241. var nextDidTimeout = nextState !== null;
  38242. var prevDidTimeout = false;
  38243. if (current === null) {
  38244. if (workInProgress.memoizedProps.fallback !== undefined) {
  38245. popHydrationState(workInProgress);
  38246. }
  38247. } else {
  38248. var prevState = current.memoizedState;
  38249. prevDidTimeout = prevState !== null;
  38250. if (!nextDidTimeout && prevState !== null) {
  38251. // We just switched from the fallback to the normal children.
  38252. // Delete the fallback.
  38253. // TODO: Would it be better to store the fallback fragment on
  38254. // the stateNode during the begin phase?
  38255. var currentFallbackChild = current.child.sibling;
  38256. if (currentFallbackChild !== null) {
  38257. // Deletions go at the beginning of the return fiber's effect list
  38258. var first = workInProgress.firstEffect;
  38259. if (first !== null) {
  38260. workInProgress.firstEffect = currentFallbackChild;
  38261. currentFallbackChild.nextEffect = first;
  38262. } else {
  38263. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  38264. currentFallbackChild.nextEffect = null;
  38265. }
  38266. currentFallbackChild.effectTag = Deletion;
  38267. }
  38268. }
  38269. }
  38270. if (nextDidTimeout && !prevDidTimeout) {
  38271. // If this subtreee is running in blocking mode we can suspend,
  38272. // otherwise we won't suspend.
  38273. // TODO: This will still suspend a synchronous tree if anything
  38274. // in the concurrent tree already suspended during this render.
  38275. // This is a known bug.
  38276. if ((workInProgress.mode & BlockingMode) !== NoMode) {
  38277. // TODO: Move this back to throwException because this is too late
  38278. // if this is a large tree which is common for initial loads. We
  38279. // don't know if we should restart a render or not until we get
  38280. // this marker, and this is too late.
  38281. // If this render already had a ping or lower pri updates,
  38282. // and this is the first time we know we're going to suspend we
  38283. // should be able to immediately restart from within throwException.
  38284. var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
  38285. if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
  38286. // If this was in an invisible tree or a new render, then showing
  38287. // this boundary is ok.
  38288. renderDidSuspend();
  38289. } else {
  38290. // Otherwise, we're going to have to hide content so we should
  38291. // suspend for longer if possible.
  38292. renderDidSuspendDelayIfPossible();
  38293. }
  38294. }
  38295. }
  38296. {
  38297. // TODO: Only schedule updates if these values are non equal, i.e. it changed.
  38298. if (nextDidTimeout || prevDidTimeout) {
  38299. // If this boundary just timed out, schedule an effect to attach a
  38300. // retry listener to the promise. This flag is also used to hide the
  38301. // primary children. In mutation mode, we also need the flag to
  38302. // *unhide* children that were previously hidden, so check if this
  38303. // is currently timed out, too.
  38304. workInProgress.effectTag |= Update;
  38305. }
  38306. }
  38307. return null;
  38308. }
  38309. case HostPortal:
  38310. popHostContainer(workInProgress);
  38311. updateHostContainer(workInProgress);
  38312. return null;
  38313. case ContextProvider:
  38314. // Pop provider fiber
  38315. popProvider(workInProgress);
  38316. return null;
  38317. case IncompleteClassComponent:
  38318. {
  38319. // Same as class component case. I put it down here so that the tags are
  38320. // sequential to ensure this switch is compiled to a jump table.
  38321. var _Component = workInProgress.type;
  38322. if (isContextProvider(_Component)) {
  38323. popContext(workInProgress);
  38324. }
  38325. return null;
  38326. }
  38327. case SuspenseListComponent:
  38328. {
  38329. popSuspenseContext(workInProgress);
  38330. var renderState = workInProgress.memoizedState;
  38331. if (renderState === null) {
  38332. // We're running in the default, "independent" mode.
  38333. // We don't do anything in this mode.
  38334. return null;
  38335. }
  38336. var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
  38337. var renderedTail = renderState.rendering;
  38338. if (renderedTail === null) {
  38339. // We just rendered the head.
  38340. if (!didSuspendAlready) {
  38341. // This is the first pass. We need to figure out if anything is still
  38342. // suspended in the rendered set.
  38343. // If new content unsuspended, but there's still some content that
  38344. // didn't. Then we need to do a second pass that forces everything
  38345. // to keep showing their fallbacks.
  38346. // We might be suspended if something in this render pass suspended, or
  38347. // something in the previous committed pass suspended. Otherwise,
  38348. // there's no chance so we can skip the expensive call to
  38349. // findFirstSuspended.
  38350. var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);
  38351. if (!cannotBeSuspended) {
  38352. var row = workInProgress.child;
  38353. while (row !== null) {
  38354. var suspended = findFirstSuspended(row);
  38355. if (suspended !== null) {
  38356. didSuspendAlready = true;
  38357. workInProgress.effectTag |= DidCapture;
  38358. cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
  38359. // part of the second pass. In that case nothing will subscribe to
  38360. // its thennables. Instead, we'll transfer its thennables to the
  38361. // SuspenseList so that it can retry if they resolve.
  38362. // There might be multiple of these in the list but since we're
  38363. // going to wait for all of them anyway, it doesn't really matter
  38364. // which ones gets to ping. In theory we could get clever and keep
  38365. // track of how many dependencies remain but it gets tricky because
  38366. // in the meantime, we can add/remove/change items and dependencies.
  38367. // We might bail out of the loop before finding any but that
  38368. // doesn't matter since that means that the other boundaries that
  38369. // we did find already has their listeners attached.
  38370. var newThennables = suspended.updateQueue;
  38371. if (newThennables !== null) {
  38372. workInProgress.updateQueue = newThennables;
  38373. workInProgress.effectTag |= Update;
  38374. } // Rerender the whole list, but this time, we'll force fallbacks
  38375. // to stay in place.
  38376. // Reset the effect list before doing the second pass since that's now invalid.
  38377. if (renderState.lastEffect === null) {
  38378. workInProgress.firstEffect = null;
  38379. }
  38380. workInProgress.lastEffect = renderState.lastEffect; // Reset the child fibers to their original state.
  38381. resetChildFibers(workInProgress, renderExpirationTime); // Set up the Suspense Context to force suspense and immediately
  38382. // rerender the children.
  38383. pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
  38384. return workInProgress.child;
  38385. }
  38386. row = row.sibling;
  38387. }
  38388. }
  38389. } else {
  38390. cutOffTailIfNeeded(renderState, false);
  38391. } // Next we're going to render the tail.
  38392. } else {
  38393. // Append the rendered row to the child list.
  38394. if (!didSuspendAlready) {
  38395. var _suspended = findFirstSuspended(renderedTail);
  38396. if (_suspended !== null) {
  38397. workInProgress.effectTag |= DidCapture;
  38398. didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
  38399. // get lost if this row ends up dropped during a second pass.
  38400. var _newThennables = _suspended.updateQueue;
  38401. if (_newThennables !== null) {
  38402. workInProgress.updateQueue = _newThennables;
  38403. workInProgress.effectTag |= Update;
  38404. }
  38405. cutOffTailIfNeeded(renderState, true); // This might have been modified.
  38406. if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate) {
  38407. // We need to delete the row we just rendered.
  38408. // Reset the effect list to what it was before we rendered this
  38409. // child. The nested children have already appended themselves.
  38410. var lastEffect = workInProgress.lastEffect = renderState.lastEffect; // Remove any effects that were appended after this point.
  38411. if (lastEffect !== null) {
  38412. lastEffect.nextEffect = null;
  38413. } // We're done.
  38414. return null;
  38415. }
  38416. } else if ( // The time it took to render last row is greater than time until
  38417. // the expiration.
  38418. now() * 2 - renderState.renderingStartTime > renderState.tailExpiration && renderExpirationTime > Never) {
  38419. // We have now passed our CPU deadline and we'll just give up further
  38420. // attempts to render the main content and only render fallbacks.
  38421. // The assumption is that this is usually faster.
  38422. workInProgress.effectTag |= DidCapture;
  38423. didSuspendAlready = true;
  38424. cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
  38425. // to get it started back up to attempt the next item. If we can show
  38426. // them, then they really have the same priority as this render.
  38427. // So we'll pick it back up the very next render pass once we've had
  38428. // an opportunity to yield for paint.
  38429. var nextPriority = renderExpirationTime - 1;
  38430. workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;
  38431. {
  38432. markSpawnedWork(nextPriority);
  38433. }
  38434. }
  38435. }
  38436. if (renderState.isBackwards) {
  38437. // The effect list of the backwards tail will have been added
  38438. // to the end. This breaks the guarantee that life-cycles fire in
  38439. // sibling order but that isn't a strong guarantee promised by React.
  38440. // Especially since these might also just pop in during future commits.
  38441. // Append to the beginning of the list.
  38442. renderedTail.sibling = workInProgress.child;
  38443. workInProgress.child = renderedTail;
  38444. } else {
  38445. var previousSibling = renderState.last;
  38446. if (previousSibling !== null) {
  38447. previousSibling.sibling = renderedTail;
  38448. } else {
  38449. workInProgress.child = renderedTail;
  38450. }
  38451. renderState.last = renderedTail;
  38452. }
  38453. }
  38454. if (renderState.tail !== null) {
  38455. // We still have tail rows to render.
  38456. if (renderState.tailExpiration === 0) {
  38457. // Heuristic for how long we're willing to spend rendering rows
  38458. // until we just give up and show what we have so far.
  38459. var TAIL_EXPIRATION_TIMEOUT_MS = 500;
  38460. renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS; // TODO: This is meant to mimic the train model or JND but this
  38461. // is a per component value. It should really be since the start
  38462. // of the total render or last commit. Consider using something like
  38463. // globalMostRecentFallbackTime. That doesn't account for being
  38464. // suspended for part of the time or when it's a new render.
  38465. // It should probably use a global start time value instead.
  38466. } // Pop a row.
  38467. var next = renderState.tail;
  38468. renderState.rendering = next;
  38469. renderState.tail = next.sibling;
  38470. renderState.lastEffect = workInProgress.lastEffect;
  38471. renderState.renderingStartTime = now();
  38472. next.sibling = null; // Restore the context.
  38473. // TODO: We can probably just avoid popping it instead and only
  38474. // setting it the first time we go from not suspended to suspended.
  38475. var suspenseContext = suspenseStackCursor.current;
  38476. if (didSuspendAlready) {
  38477. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  38478. } else {
  38479. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  38480. }
  38481. pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.
  38482. return next;
  38483. }
  38484. return null;
  38485. }
  38486. }
  38487. {
  38488. {
  38489. throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
  38490. }
  38491. }
  38492. }
  38493. function unwindWork(workInProgress, renderExpirationTime) {
  38494. switch (workInProgress.tag) {
  38495. case ClassComponent:
  38496. {
  38497. var Component = workInProgress.type;
  38498. if (isContextProvider(Component)) {
  38499. popContext(workInProgress);
  38500. }
  38501. var effectTag = workInProgress.effectTag;
  38502. if (effectTag & ShouldCapture) {
  38503. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  38504. return workInProgress;
  38505. }
  38506. return null;
  38507. }
  38508. case HostRoot:
  38509. {
  38510. popHostContainer(workInProgress);
  38511. popTopLevelContextObject(workInProgress);
  38512. var _effectTag = workInProgress.effectTag;
  38513. if (!((_effectTag & DidCapture) === NoEffect)) {
  38514. {
  38515. throw Error( "The root failed to unmount after an error. This is likely a bug in React. Please file an issue." );
  38516. }
  38517. }
  38518. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  38519. return workInProgress;
  38520. }
  38521. case HostComponent:
  38522. {
  38523. // TODO: popHydrationState
  38524. popHostContext(workInProgress);
  38525. return null;
  38526. }
  38527. case SuspenseComponent:
  38528. {
  38529. popSuspenseContext(workInProgress);
  38530. var _effectTag2 = workInProgress.effectTag;
  38531. if (_effectTag2 & ShouldCapture) {
  38532. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.
  38533. return workInProgress;
  38534. }
  38535. return null;
  38536. }
  38537. case SuspenseListComponent:
  38538. {
  38539. popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
  38540. // caught by a nested boundary. If not, it should bubble through.
  38541. return null;
  38542. }
  38543. case HostPortal:
  38544. popHostContainer(workInProgress);
  38545. return null;
  38546. case ContextProvider:
  38547. popProvider(workInProgress);
  38548. return null;
  38549. default:
  38550. return null;
  38551. }
  38552. }
  38553. function unwindInterruptedWork(interruptedWork) {
  38554. switch (interruptedWork.tag) {
  38555. case ClassComponent:
  38556. {
  38557. var childContextTypes = interruptedWork.type.childContextTypes;
  38558. if (childContextTypes !== null && childContextTypes !== undefined) {
  38559. popContext(interruptedWork);
  38560. }
  38561. break;
  38562. }
  38563. case HostRoot:
  38564. {
  38565. popHostContainer(interruptedWork);
  38566. popTopLevelContextObject(interruptedWork);
  38567. break;
  38568. }
  38569. case HostComponent:
  38570. {
  38571. popHostContext(interruptedWork);
  38572. break;
  38573. }
  38574. case HostPortal:
  38575. popHostContainer(interruptedWork);
  38576. break;
  38577. case SuspenseComponent:
  38578. popSuspenseContext(interruptedWork);
  38579. break;
  38580. case SuspenseListComponent:
  38581. popSuspenseContext(interruptedWork);
  38582. break;
  38583. case ContextProvider:
  38584. popProvider(interruptedWork);
  38585. break;
  38586. }
  38587. }
  38588. function createCapturedValue(value, source) {
  38589. // If the value is an error, call this function immediately after it is thrown
  38590. // so the stack is accurate.
  38591. return {
  38592. value: value,
  38593. source: source,
  38594. stack: getStackByFiberInDevAndProd(source)
  38595. };
  38596. }
  38597. function logCapturedError(capturedError) {
  38598. var error = capturedError.error;
  38599. {
  38600. var componentName = capturedError.componentName,
  38601. componentStack = capturedError.componentStack,
  38602. errorBoundaryName = capturedError.errorBoundaryName,
  38603. errorBoundaryFound = capturedError.errorBoundaryFound,
  38604. willRetry = capturedError.willRetry; // Browsers support silencing uncaught errors by calling
  38605. // `preventDefault()` in window `error` handler.
  38606. // We record this information as an expando on the error.
  38607. if (error != null && error._suppressLogging) {
  38608. if (errorBoundaryFound && willRetry) {
  38609. // The error is recoverable and was silenced.
  38610. // Ignore it and don't print the stack addendum.
  38611. // This is handy for testing error boundaries without noise.
  38612. return;
  38613. } // The error is fatal. Since the silencing might have
  38614. // been accidental, we'll surface it anyway.
  38615. // However, the browser would have silenced the original error
  38616. // so we'll print it first, and then print the stack addendum.
  38617. console['error'](error); // Don't transform to our wrapper
  38618. // For a more detailed description of this block, see:
  38619. // https://github.com/facebook/react/pull/13384
  38620. }
  38621. var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:';
  38622. var errorBoundaryMessage; // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  38623. if (errorBoundaryFound && errorBoundaryName) {
  38624. if (willRetry) {
  38625. errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".");
  38626. } else {
  38627. errorBoundaryMessage = "This error was initially handled by the error boundary " + errorBoundaryName + ".\n" + "Recreating the tree from scratch failed so React will unmount the tree.";
  38628. }
  38629. } else {
  38630. 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.';
  38631. }
  38632. var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.
  38633. // We don't include the original error message and JS stack because the browser
  38634. // has already printed it. Even if the application swallows the error, it is still
  38635. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  38636. console['error'](combinedMessage); // Don't transform to our wrapper
  38637. }
  38638. }
  38639. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  38640. {
  38641. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  38642. }
  38643. var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
  38644. function logError(boundary, errorInfo) {
  38645. var source = errorInfo.source;
  38646. var stack = errorInfo.stack;
  38647. if (stack === null && source !== null) {
  38648. stack = getStackByFiberInDevAndProd(source);
  38649. }
  38650. var capturedError = {
  38651. componentName: source !== null ? getComponentName(source.type) : null,
  38652. componentStack: stack !== null ? stack : '',
  38653. error: errorInfo.value,
  38654. errorBoundary: null,
  38655. errorBoundaryName: null,
  38656. errorBoundaryFound: false,
  38657. willRetry: false
  38658. };
  38659. if (boundary !== null && boundary.tag === ClassComponent) {
  38660. capturedError.errorBoundary = boundary.stateNode;
  38661. capturedError.errorBoundaryName = getComponentName(boundary.type);
  38662. capturedError.errorBoundaryFound = true;
  38663. capturedError.willRetry = true;
  38664. }
  38665. try {
  38666. logCapturedError(capturedError);
  38667. } catch (e) {
  38668. // This method must not throw, or React internal state will get messed up.
  38669. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  38670. // we want to report this error outside of the normal stack as a last resort.
  38671. // https://github.com/facebook/react/issues/13188
  38672. setTimeout(function () {
  38673. throw e;
  38674. });
  38675. }
  38676. }
  38677. var callComponentWillUnmountWithTimer = function (current, instance) {
  38678. startPhaseTimer(current, 'componentWillUnmount');
  38679. instance.props = current.memoizedProps;
  38680. instance.state = current.memoizedState;
  38681. instance.componentWillUnmount();
  38682. stopPhaseTimer();
  38683. }; // Capture errors so they don't interrupt unmounting.
  38684. function safelyCallComponentWillUnmount(current, instance) {
  38685. {
  38686. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance);
  38687. if (hasCaughtError()) {
  38688. var unmountError = clearCaughtError();
  38689. captureCommitPhaseError(current, unmountError);
  38690. }
  38691. }
  38692. }
  38693. function safelyDetachRef(current) {
  38694. var ref = current.ref;
  38695. if (ref !== null) {
  38696. if (typeof ref === 'function') {
  38697. {
  38698. invokeGuardedCallback(null, ref, null, null);
  38699. if (hasCaughtError()) {
  38700. var refError = clearCaughtError();
  38701. captureCommitPhaseError(current, refError);
  38702. }
  38703. }
  38704. } else {
  38705. ref.current = null;
  38706. }
  38707. }
  38708. }
  38709. function safelyCallDestroy(current, destroy) {
  38710. {
  38711. invokeGuardedCallback(null, destroy, null);
  38712. if (hasCaughtError()) {
  38713. var error = clearCaughtError();
  38714. captureCommitPhaseError(current, error);
  38715. }
  38716. }
  38717. }
  38718. function commitBeforeMutationLifeCycles(current, finishedWork) {
  38719. switch (finishedWork.tag) {
  38720. case FunctionComponent:
  38721. case ForwardRef:
  38722. case SimpleMemoComponent:
  38723. case Block:
  38724. {
  38725. return;
  38726. }
  38727. case ClassComponent:
  38728. {
  38729. if (finishedWork.effectTag & Snapshot) {
  38730. if (current !== null) {
  38731. var prevProps = current.memoizedProps;
  38732. var prevState = current.memoizedState;
  38733. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  38734. var instance = finishedWork.stateNode; // We could update instance props and state here,
  38735. // but instead we rely on them being set during last render.
  38736. // TODO: revisit this when we implement resuming.
  38737. {
  38738. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  38739. if (instance.props !== finishedWork.memoizedProps) {
  38740. error('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');
  38741. }
  38742. if (instance.state !== finishedWork.memoizedState) {
  38743. error('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');
  38744. }
  38745. }
  38746. }
  38747. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  38748. {
  38749. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  38750. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  38751. didWarnSet.add(finishedWork.type);
  38752. error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  38753. }
  38754. }
  38755. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  38756. stopPhaseTimer();
  38757. }
  38758. }
  38759. return;
  38760. }
  38761. case HostRoot:
  38762. case HostComponent:
  38763. case HostText:
  38764. case HostPortal:
  38765. case IncompleteClassComponent:
  38766. // Nothing to do for these component types
  38767. return;
  38768. }
  38769. {
  38770. {
  38771. throw 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." );
  38772. }
  38773. }
  38774. }
  38775. function commitHookEffectListUnmount(tag, finishedWork) {
  38776. var updateQueue = finishedWork.updateQueue;
  38777. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  38778. if (lastEffect !== null) {
  38779. var firstEffect = lastEffect.next;
  38780. var effect = firstEffect;
  38781. do {
  38782. if ((effect.tag & tag) === tag) {
  38783. // Unmount
  38784. var destroy = effect.destroy;
  38785. effect.destroy = undefined;
  38786. if (destroy !== undefined) {
  38787. destroy();
  38788. }
  38789. }
  38790. effect = effect.next;
  38791. } while (effect !== firstEffect);
  38792. }
  38793. }
  38794. function commitHookEffectListMount(tag, finishedWork) {
  38795. var updateQueue = finishedWork.updateQueue;
  38796. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  38797. if (lastEffect !== null) {
  38798. var firstEffect = lastEffect.next;
  38799. var effect = firstEffect;
  38800. do {
  38801. if ((effect.tag & tag) === tag) {
  38802. // Mount
  38803. var create = effect.create;
  38804. effect.destroy = create();
  38805. {
  38806. var destroy = effect.destroy;
  38807. if (destroy !== undefined && typeof destroy !== 'function') {
  38808. var addendum = void 0;
  38809. if (destroy === null) {
  38810. addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
  38811. } else if (typeof destroy.then === 'function') {
  38812. 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';
  38813. } else {
  38814. addendum = ' You returned: ' + destroy;
  38815. }
  38816. error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
  38817. }
  38818. }
  38819. }
  38820. effect = effect.next;
  38821. } while (effect !== firstEffect);
  38822. }
  38823. }
  38824. function commitPassiveHookEffects(finishedWork) {
  38825. if ((finishedWork.effectTag & Passive) !== NoEffect) {
  38826. switch (finishedWork.tag) {
  38827. case FunctionComponent:
  38828. case ForwardRef:
  38829. case SimpleMemoComponent:
  38830. case Block:
  38831. {
  38832. // TODO (#17945) We should call all passive destroy functions (for all fibers)
  38833. // before calling any create functions. The current approach only serializes
  38834. // these for a single fiber.
  38835. commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork);
  38836. commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
  38837. break;
  38838. }
  38839. }
  38840. }
  38841. }
  38842. function commitLifeCycles(finishedRoot, current, finishedWork, committedExpirationTime) {
  38843. switch (finishedWork.tag) {
  38844. case FunctionComponent:
  38845. case ForwardRef:
  38846. case SimpleMemoComponent:
  38847. case Block:
  38848. {
  38849. // At this point layout effects have already been destroyed (during mutation phase).
  38850. // This is done to prevent sibling component effects from interfering with each other,
  38851. // e.g. a destroy function in one component should never override a ref set
  38852. // by a create function in another component during the same commit.
  38853. commitHookEffectListMount(Layout | HasEffect, finishedWork);
  38854. return;
  38855. }
  38856. case ClassComponent:
  38857. {
  38858. var instance = finishedWork.stateNode;
  38859. if (finishedWork.effectTag & Update) {
  38860. if (current === null) {
  38861. startPhaseTimer(finishedWork, 'componentDidMount'); // We could update instance props and state here,
  38862. // but instead we rely on them being set during last render.
  38863. // TODO: revisit this when we implement resuming.
  38864. {
  38865. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  38866. if (instance.props !== finishedWork.memoizedProps) {
  38867. error('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');
  38868. }
  38869. if (instance.state !== finishedWork.memoizedState) {
  38870. error('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');
  38871. }
  38872. }
  38873. }
  38874. instance.componentDidMount();
  38875. stopPhaseTimer();
  38876. } else {
  38877. var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
  38878. var prevState = current.memoizedState;
  38879. startPhaseTimer(finishedWork, 'componentDidUpdate'); // We could update instance props and state here,
  38880. // but instead we rely on them being set during last render.
  38881. // TODO: revisit this when we implement resuming.
  38882. {
  38883. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  38884. if (instance.props !== finishedWork.memoizedProps) {
  38885. error('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');
  38886. }
  38887. if (instance.state !== finishedWork.memoizedState) {
  38888. error('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');
  38889. }
  38890. }
  38891. }
  38892. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  38893. stopPhaseTimer();
  38894. }
  38895. }
  38896. var updateQueue = finishedWork.updateQueue;
  38897. if (updateQueue !== null) {
  38898. {
  38899. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  38900. if (instance.props !== finishedWork.memoizedProps) {
  38901. error('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');
  38902. }
  38903. if (instance.state !== finishedWork.memoizedState) {
  38904. error('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');
  38905. }
  38906. }
  38907. } // We could update instance props and state here,
  38908. // but instead we rely on them being set during last render.
  38909. // TODO: revisit this when we implement resuming.
  38910. commitUpdateQueue(finishedWork, updateQueue, instance);
  38911. }
  38912. return;
  38913. }
  38914. case HostRoot:
  38915. {
  38916. var _updateQueue = finishedWork.updateQueue;
  38917. if (_updateQueue !== null) {
  38918. var _instance = null;
  38919. if (finishedWork.child !== null) {
  38920. switch (finishedWork.child.tag) {
  38921. case HostComponent:
  38922. _instance = getPublicInstance(finishedWork.child.stateNode);
  38923. break;
  38924. case ClassComponent:
  38925. _instance = finishedWork.child.stateNode;
  38926. break;
  38927. }
  38928. }
  38929. commitUpdateQueue(finishedWork, _updateQueue, _instance);
  38930. }
  38931. return;
  38932. }
  38933. case HostComponent:
  38934. {
  38935. var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted
  38936. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  38937. // These effects should only be committed when components are first mounted,
  38938. // aka when there is no current/alternate.
  38939. if (current === null && finishedWork.effectTag & Update) {
  38940. var type = finishedWork.type;
  38941. var props = finishedWork.memoizedProps;
  38942. commitMount(_instance2, type, props);
  38943. }
  38944. return;
  38945. }
  38946. case HostText:
  38947. {
  38948. // We have no life-cycles associated with text.
  38949. return;
  38950. }
  38951. case HostPortal:
  38952. {
  38953. // We have no life-cycles associated with portals.
  38954. return;
  38955. }
  38956. case Profiler:
  38957. {
  38958. {
  38959. var onRender = finishedWork.memoizedProps.onRender;
  38960. if (typeof onRender === 'function') {
  38961. {
  38962. onRender(finishedWork.memoizedProps.id, current === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  38963. }
  38964. }
  38965. }
  38966. return;
  38967. }
  38968. case SuspenseComponent:
  38969. {
  38970. commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
  38971. return;
  38972. }
  38973. case SuspenseListComponent:
  38974. case IncompleteClassComponent:
  38975. case FundamentalComponent:
  38976. case ScopeComponent:
  38977. return;
  38978. }
  38979. {
  38980. {
  38981. throw 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." );
  38982. }
  38983. }
  38984. }
  38985. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  38986. {
  38987. // We only have the top Fiber that was inserted but we need to recurse down its
  38988. // children to find all the terminal nodes.
  38989. var node = finishedWork;
  38990. while (true) {
  38991. if (node.tag === HostComponent) {
  38992. var instance = node.stateNode;
  38993. if (isHidden) {
  38994. hideInstance(instance);
  38995. } else {
  38996. unhideInstance(node.stateNode, node.memoizedProps);
  38997. }
  38998. } else if (node.tag === HostText) {
  38999. var _instance3 = node.stateNode;
  39000. if (isHidden) {
  39001. hideTextInstance(_instance3);
  39002. } else {
  39003. unhideTextInstance(_instance3, node.memoizedProps);
  39004. }
  39005. } else if (node.tag === SuspenseComponent && node.memoizedState !== null && node.memoizedState.dehydrated === null) {
  39006. // Found a nested Suspense component that timed out. Skip over the
  39007. // primary child fragment, which should remain hidden.
  39008. var fallbackChildFragment = node.child.sibling;
  39009. fallbackChildFragment.return = node;
  39010. node = fallbackChildFragment;
  39011. continue;
  39012. } else if (node.child !== null) {
  39013. node.child.return = node;
  39014. node = node.child;
  39015. continue;
  39016. }
  39017. if (node === finishedWork) {
  39018. return;
  39019. }
  39020. while (node.sibling === null) {
  39021. if (node.return === null || node.return === finishedWork) {
  39022. return;
  39023. }
  39024. node = node.return;
  39025. }
  39026. node.sibling.return = node.return;
  39027. node = node.sibling;
  39028. }
  39029. }
  39030. }
  39031. function commitAttachRef(finishedWork) {
  39032. var ref = finishedWork.ref;
  39033. if (ref !== null) {
  39034. var instance = finishedWork.stateNode;
  39035. var instanceToUse;
  39036. switch (finishedWork.tag) {
  39037. case HostComponent:
  39038. instanceToUse = getPublicInstance(instance);
  39039. break;
  39040. default:
  39041. instanceToUse = instance;
  39042. } // Moved outside to ensure DCE works with this flag
  39043. if (typeof ref === 'function') {
  39044. ref(instanceToUse);
  39045. } else {
  39046. {
  39047. if (!ref.hasOwnProperty('current')) {
  39048. error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  39049. }
  39050. }
  39051. ref.current = instanceToUse;
  39052. }
  39053. }
  39054. }
  39055. function commitDetachRef(current) {
  39056. var currentRef = current.ref;
  39057. if (currentRef !== null) {
  39058. if (typeof currentRef === 'function') {
  39059. currentRef(null);
  39060. } else {
  39061. currentRef.current = null;
  39062. }
  39063. }
  39064. } // User-originating errors (lifecycles and refs) should not interrupt
  39065. // deletion, so don't let them throw. Host-originating errors should
  39066. // interrupt deletion, so it's okay
  39067. function commitUnmount(finishedRoot, current, renderPriorityLevel) {
  39068. onCommitUnmount(current);
  39069. switch (current.tag) {
  39070. case FunctionComponent:
  39071. case ForwardRef:
  39072. case MemoComponent:
  39073. case SimpleMemoComponent:
  39074. case Block:
  39075. {
  39076. var updateQueue = current.updateQueue;
  39077. if (updateQueue !== null) {
  39078. var lastEffect = updateQueue.lastEffect;
  39079. if (lastEffect !== null) {
  39080. var firstEffect = lastEffect.next;
  39081. {
  39082. // When the owner fiber is deleted, the destroy function of a passive
  39083. // effect hook is called during the synchronous commit phase. This is
  39084. // a concession to implementation complexity. Calling it in the
  39085. // passive effect phase (like they usually are, when dependencies
  39086. // change during an update) would require either traversing the
  39087. // children of the deleted fiber again, or including unmount effects
  39088. // as part of the fiber effect list.
  39089. //
  39090. // Because this is during the sync commit phase, we need to change
  39091. // the priority.
  39092. //
  39093. // TODO: Reconsider this implementation trade off.
  39094. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  39095. runWithPriority$1(priorityLevel, function () {
  39096. var effect = firstEffect;
  39097. do {
  39098. var _destroy = effect.destroy;
  39099. if (_destroy !== undefined) {
  39100. safelyCallDestroy(current, _destroy);
  39101. }
  39102. effect = effect.next;
  39103. } while (effect !== firstEffect);
  39104. });
  39105. }
  39106. }
  39107. }
  39108. return;
  39109. }
  39110. case ClassComponent:
  39111. {
  39112. safelyDetachRef(current);
  39113. var instance = current.stateNode;
  39114. if (typeof instance.componentWillUnmount === 'function') {
  39115. safelyCallComponentWillUnmount(current, instance);
  39116. }
  39117. return;
  39118. }
  39119. case HostComponent:
  39120. {
  39121. safelyDetachRef(current);
  39122. return;
  39123. }
  39124. case HostPortal:
  39125. {
  39126. // TODO: this is recursive.
  39127. // We are also not using this parent because
  39128. // the portal will get pushed immediately.
  39129. {
  39130. unmountHostComponents(finishedRoot, current, renderPriorityLevel);
  39131. }
  39132. return;
  39133. }
  39134. case FundamentalComponent:
  39135. {
  39136. return;
  39137. }
  39138. case DehydratedFragment:
  39139. {
  39140. return;
  39141. }
  39142. case ScopeComponent:
  39143. {
  39144. return;
  39145. }
  39146. }
  39147. }
  39148. function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) {
  39149. // While we're inside a removed host node we don't want to call
  39150. // removeChild on the inner nodes because they're removed by the top
  39151. // call anyway. We also want to call componentWillUnmount on all
  39152. // composites before this host node is removed from the tree. Therefore
  39153. // we do an inner loop while we're still inside the host node.
  39154. var node = root;
  39155. while (true) {
  39156. commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because they may contain more composite or host nodes.
  39157. // Skip portals because commitUnmount() currently visits them recursively.
  39158. if (node.child !== null && ( // If we use mutation we drill down into portals using commitUnmount above.
  39159. // If we don't use mutation we drill down into portals here instead.
  39160. node.tag !== HostPortal)) {
  39161. node.child.return = node;
  39162. node = node.child;
  39163. continue;
  39164. }
  39165. if (node === root) {
  39166. return;
  39167. }
  39168. while (node.sibling === null) {
  39169. if (node.return === null || node.return === root) {
  39170. return;
  39171. }
  39172. node = node.return;
  39173. }
  39174. node.sibling.return = node.return;
  39175. node = node.sibling;
  39176. }
  39177. }
  39178. function detachFiber(current) {
  39179. var alternate = current.alternate; // Cut off the return pointers to disconnect it from the tree. Ideally, we
  39180. // should clear the child pointer of the parent alternate to let this
  39181. // get GC:ed but we don't know which for sure which parent is the current
  39182. // one so we'll settle for GC:ing the subtree of this child. This child
  39183. // itself will be GC:ed when the parent updates the next time.
  39184. current.return = null;
  39185. current.child = null;
  39186. current.memoizedState = null;
  39187. current.updateQueue = null;
  39188. current.dependencies = null;
  39189. current.alternate = null;
  39190. current.firstEffect = null;
  39191. current.lastEffect = null;
  39192. current.pendingProps = null;
  39193. current.memoizedProps = null;
  39194. current.stateNode = null;
  39195. if (alternate !== null) {
  39196. detachFiber(alternate);
  39197. }
  39198. }
  39199. function getHostParentFiber(fiber) {
  39200. var parent = fiber.return;
  39201. while (parent !== null) {
  39202. if (isHostParent(parent)) {
  39203. return parent;
  39204. }
  39205. parent = parent.return;
  39206. }
  39207. {
  39208. {
  39209. throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
  39210. }
  39211. }
  39212. }
  39213. function isHostParent(fiber) {
  39214. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  39215. }
  39216. function getHostSibling(fiber) {
  39217. // We're going to search forward into the tree until we find a sibling host
  39218. // node. Unfortunately, if multiple insertions are done in a row we have to
  39219. // search past them. This leads to exponential search for the next sibling.
  39220. // TODO: Find a more efficient way to do this.
  39221. var node = fiber;
  39222. siblings: while (true) {
  39223. // If we didn't find anything, let's try the next sibling.
  39224. while (node.sibling === null) {
  39225. if (node.return === null || isHostParent(node.return)) {
  39226. // If we pop out of the root or hit the parent the fiber we are the
  39227. // last sibling.
  39228. return null;
  39229. }
  39230. node = node.return;
  39231. }
  39232. node.sibling.return = node.return;
  39233. node = node.sibling;
  39234. while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {
  39235. // If it is not host node and, we might have a host node inside it.
  39236. // Try to search down until we find one.
  39237. if (node.effectTag & Placement) {
  39238. // If we don't have a child, try the siblings instead.
  39239. continue siblings;
  39240. } // If we don't have a child, try the siblings instead.
  39241. // We also skip portals because they are not part of this host tree.
  39242. if (node.child === null || node.tag === HostPortal) {
  39243. continue siblings;
  39244. } else {
  39245. node.child.return = node;
  39246. node = node.child;
  39247. }
  39248. } // Check if this host node is stable or about to be placed.
  39249. if (!(node.effectTag & Placement)) {
  39250. // Found it!
  39251. return node.stateNode;
  39252. }
  39253. }
  39254. }
  39255. function commitPlacement(finishedWork) {
  39256. var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.
  39257. var parent;
  39258. var isContainer;
  39259. var parentStateNode = parentFiber.stateNode;
  39260. switch (parentFiber.tag) {
  39261. case HostComponent:
  39262. parent = parentStateNode;
  39263. isContainer = false;
  39264. break;
  39265. case HostRoot:
  39266. parent = parentStateNode.containerInfo;
  39267. isContainer = true;
  39268. break;
  39269. case HostPortal:
  39270. parent = parentStateNode.containerInfo;
  39271. isContainer = true;
  39272. break;
  39273. case FundamentalComponent:
  39274. // eslint-disable-next-line-no-fallthrough
  39275. default:
  39276. {
  39277. {
  39278. throw Error( "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." );
  39279. }
  39280. }
  39281. }
  39282. if (parentFiber.effectTag & ContentReset) {
  39283. // Reset the text content of the parent before doing any insertions
  39284. resetTextContent(parent); // Clear ContentReset from the effect tag
  39285. parentFiber.effectTag &= ~ContentReset;
  39286. }
  39287. var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its
  39288. // children to find all the terminal nodes.
  39289. if (isContainer) {
  39290. insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);
  39291. } else {
  39292. insertOrAppendPlacementNode(finishedWork, before, parent);
  39293. }
  39294. }
  39295. function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
  39296. var tag = node.tag;
  39297. var isHost = tag === HostComponent || tag === HostText;
  39298. if (isHost || enableFundamentalAPI ) {
  39299. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  39300. if (before) {
  39301. insertInContainerBefore(parent, stateNode, before);
  39302. } else {
  39303. appendChildToContainer(parent, stateNode);
  39304. }
  39305. } else if (tag === HostPortal) ; else {
  39306. var child = node.child;
  39307. if (child !== null) {
  39308. insertOrAppendPlacementNodeIntoContainer(child, before, parent);
  39309. var sibling = child.sibling;
  39310. while (sibling !== null) {
  39311. insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
  39312. sibling = sibling.sibling;
  39313. }
  39314. }
  39315. }
  39316. }
  39317. function insertOrAppendPlacementNode(node, before, parent) {
  39318. var tag = node.tag;
  39319. var isHost = tag === HostComponent || tag === HostText;
  39320. if (isHost || enableFundamentalAPI ) {
  39321. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  39322. if (before) {
  39323. insertBefore(parent, stateNode, before);
  39324. } else {
  39325. appendChild(parent, stateNode);
  39326. }
  39327. } else if (tag === HostPortal) ; else {
  39328. var child = node.child;
  39329. if (child !== null) {
  39330. insertOrAppendPlacementNode(child, before, parent);
  39331. var sibling = child.sibling;
  39332. while (sibling !== null) {
  39333. insertOrAppendPlacementNode(sibling, before, parent);
  39334. sibling = sibling.sibling;
  39335. }
  39336. }
  39337. }
  39338. }
  39339. function unmountHostComponents(finishedRoot, current, renderPriorityLevel) {
  39340. // We only have the top Fiber that was deleted but we need to recurse down its
  39341. // children to find all the terminal nodes.
  39342. var node = current; // Each iteration, currentParent is populated with node's host parent if not
  39343. // currentParentIsValid.
  39344. var currentParentIsValid = false; // Note: these two variables *must* always be updated together.
  39345. var currentParent;
  39346. var currentParentIsContainer;
  39347. while (true) {
  39348. if (!currentParentIsValid) {
  39349. var parent = node.return;
  39350. findParent: while (true) {
  39351. if (!(parent !== null)) {
  39352. {
  39353. throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
  39354. }
  39355. }
  39356. var parentStateNode = parent.stateNode;
  39357. switch (parent.tag) {
  39358. case HostComponent:
  39359. currentParent = parentStateNode;
  39360. currentParentIsContainer = false;
  39361. break findParent;
  39362. case HostRoot:
  39363. currentParent = parentStateNode.containerInfo;
  39364. currentParentIsContainer = true;
  39365. break findParent;
  39366. case HostPortal:
  39367. currentParent = parentStateNode.containerInfo;
  39368. currentParentIsContainer = true;
  39369. break findParent;
  39370. }
  39371. parent = parent.return;
  39372. }
  39373. currentParentIsValid = true;
  39374. }
  39375. if (node.tag === HostComponent || node.tag === HostText) {
  39376. commitNestedUnmounts(finishedRoot, node, renderPriorityLevel); // After all the children have unmounted, it is now safe to remove the
  39377. // node from the tree.
  39378. if (currentParentIsContainer) {
  39379. removeChildFromContainer(currentParent, node.stateNode);
  39380. } else {
  39381. removeChild(currentParent, node.stateNode);
  39382. } // Don't visit children because we already visited them.
  39383. } else if (node.tag === HostPortal) {
  39384. if (node.child !== null) {
  39385. // When we go into a portal, it becomes the parent to remove from.
  39386. // We will reassign it back when we pop the portal on the way up.
  39387. currentParent = node.stateNode.containerInfo;
  39388. currentParentIsContainer = true; // Visit children because portals might contain host components.
  39389. node.child.return = node;
  39390. node = node.child;
  39391. continue;
  39392. }
  39393. } else {
  39394. commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because we may find more host components below.
  39395. if (node.child !== null) {
  39396. node.child.return = node;
  39397. node = node.child;
  39398. continue;
  39399. }
  39400. }
  39401. if (node === current) {
  39402. return;
  39403. }
  39404. while (node.sibling === null) {
  39405. if (node.return === null || node.return === current) {
  39406. return;
  39407. }
  39408. node = node.return;
  39409. if (node.tag === HostPortal) {
  39410. // When we go out of the portal, we need to restore the parent.
  39411. // Since we don't keep a stack of them, we will search for it.
  39412. currentParentIsValid = false;
  39413. }
  39414. }
  39415. node.sibling.return = node.return;
  39416. node = node.sibling;
  39417. }
  39418. }
  39419. function commitDeletion(finishedRoot, current, renderPriorityLevel) {
  39420. {
  39421. // Recursively delete all host nodes from the parent.
  39422. // Detach refs and call componentWillUnmount() on the whole subtree.
  39423. unmountHostComponents(finishedRoot, current, renderPriorityLevel);
  39424. }
  39425. detachFiber(current);
  39426. }
  39427. function commitWork(current, finishedWork) {
  39428. switch (finishedWork.tag) {
  39429. case FunctionComponent:
  39430. case ForwardRef:
  39431. case MemoComponent:
  39432. case SimpleMemoComponent:
  39433. case Block:
  39434. {
  39435. // Layout effects are destroyed during the mutation phase so that all
  39436. // destroy functions for all fibers are called before any create functions.
  39437. // This prevents sibling component effects from interfering with each other,
  39438. // e.g. a destroy function in one component should never override a ref set
  39439. // by a create function in another component during the same commit.
  39440. commitHookEffectListUnmount(Layout | HasEffect, finishedWork);
  39441. return;
  39442. }
  39443. case ClassComponent:
  39444. {
  39445. return;
  39446. }
  39447. case HostComponent:
  39448. {
  39449. var instance = finishedWork.stateNode;
  39450. if (instance != null) {
  39451. // Commit the work prepared earlier.
  39452. var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
  39453. // as the newProps. The updatePayload will contain the real change in
  39454. // this case.
  39455. var oldProps = current !== null ? current.memoizedProps : newProps;
  39456. var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.
  39457. var updatePayload = finishedWork.updateQueue;
  39458. finishedWork.updateQueue = null;
  39459. if (updatePayload !== null) {
  39460. commitUpdate(instance, updatePayload, type, oldProps, newProps);
  39461. }
  39462. }
  39463. return;
  39464. }
  39465. case HostText:
  39466. {
  39467. if (!(finishedWork.stateNode !== null)) {
  39468. {
  39469. throw Error( "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." );
  39470. }
  39471. }
  39472. var textInstance = finishedWork.stateNode;
  39473. var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
  39474. // as the newProps. The updatePayload will contain the real change in
  39475. // this case.
  39476. var oldText = current !== null ? current.memoizedProps : newText;
  39477. commitTextUpdate(textInstance, oldText, newText);
  39478. return;
  39479. }
  39480. case HostRoot:
  39481. {
  39482. {
  39483. var _root = finishedWork.stateNode;
  39484. if (_root.hydrate) {
  39485. // We've just hydrated. No need to hydrate again.
  39486. _root.hydrate = false;
  39487. commitHydratedContainer(_root.containerInfo);
  39488. }
  39489. }
  39490. return;
  39491. }
  39492. case Profiler:
  39493. {
  39494. return;
  39495. }
  39496. case SuspenseComponent:
  39497. {
  39498. commitSuspenseComponent(finishedWork);
  39499. attachSuspenseRetryListeners(finishedWork);
  39500. return;
  39501. }
  39502. case SuspenseListComponent:
  39503. {
  39504. attachSuspenseRetryListeners(finishedWork);
  39505. return;
  39506. }
  39507. case IncompleteClassComponent:
  39508. {
  39509. return;
  39510. }
  39511. }
  39512. {
  39513. {
  39514. throw 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." );
  39515. }
  39516. }
  39517. }
  39518. function commitSuspenseComponent(finishedWork) {
  39519. var newState = finishedWork.memoizedState;
  39520. var newDidTimeout;
  39521. var primaryChildParent = finishedWork;
  39522. if (newState === null) {
  39523. newDidTimeout = false;
  39524. } else {
  39525. newDidTimeout = true;
  39526. primaryChildParent = finishedWork.child;
  39527. markCommitTimeOfFallback();
  39528. }
  39529. if ( primaryChildParent !== null) {
  39530. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  39531. }
  39532. }
  39533. function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
  39534. var newState = finishedWork.memoizedState;
  39535. if (newState === null) {
  39536. var current = finishedWork.alternate;
  39537. if (current !== null) {
  39538. var prevState = current.memoizedState;
  39539. if (prevState !== null) {
  39540. var suspenseInstance = prevState.dehydrated;
  39541. if (suspenseInstance !== null) {
  39542. commitHydratedSuspenseInstance(suspenseInstance);
  39543. }
  39544. }
  39545. }
  39546. }
  39547. }
  39548. function attachSuspenseRetryListeners(finishedWork) {
  39549. // If this boundary just timed out, then it will have a set of thenables.
  39550. // For each thenable, attach a listener so that when it resolves, React
  39551. // attempts to re-render the boundary in the primary (pre-timeout) state.
  39552. var thenables = finishedWork.updateQueue;
  39553. if (thenables !== null) {
  39554. finishedWork.updateQueue = null;
  39555. var retryCache = finishedWork.stateNode;
  39556. if (retryCache === null) {
  39557. retryCache = finishedWork.stateNode = new PossiblyWeakSet();
  39558. }
  39559. thenables.forEach(function (thenable) {
  39560. // Memoize using the boundary fiber to prevent redundant listeners.
  39561. var retry = resolveRetryThenable.bind(null, finishedWork, thenable);
  39562. if (!retryCache.has(thenable)) {
  39563. {
  39564. if (thenable.__reactDoNotTraceInteractions !== true) {
  39565. retry = tracing.unstable_wrap(retry);
  39566. }
  39567. }
  39568. retryCache.add(thenable);
  39569. thenable.then(retry, retry);
  39570. }
  39571. });
  39572. }
  39573. }
  39574. function commitResetTextContent(current) {
  39575. resetTextContent(current.stateNode);
  39576. }
  39577. var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
  39578. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  39579. var update = createUpdate(expirationTime, null); // Unmount the root by rendering null.
  39580. update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
  39581. // being called "element".
  39582. update.payload = {
  39583. element: null
  39584. };
  39585. var error = errorInfo.value;
  39586. update.callback = function () {
  39587. onUncaughtError(error);
  39588. logError(fiber, errorInfo);
  39589. };
  39590. return update;
  39591. }
  39592. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  39593. var update = createUpdate(expirationTime, null);
  39594. update.tag = CaptureUpdate;
  39595. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  39596. if (typeof getDerivedStateFromError === 'function') {
  39597. var error$1 = errorInfo.value;
  39598. update.payload = function () {
  39599. logError(fiber, errorInfo);
  39600. return getDerivedStateFromError(error$1);
  39601. };
  39602. }
  39603. var inst = fiber.stateNode;
  39604. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  39605. update.callback = function callback() {
  39606. {
  39607. markFailedErrorBoundaryForHotReloading(fiber);
  39608. }
  39609. if (typeof getDerivedStateFromError !== 'function') {
  39610. // To preserve the preexisting retry behavior of error boundaries,
  39611. // we keep track of which ones already failed during this batch.
  39612. // This gets reset before we yield back to the browser.
  39613. // TODO: Warn in strict mode if getDerivedStateFromError is
  39614. // not defined.
  39615. markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined
  39616. logError(fiber, errorInfo);
  39617. }
  39618. var error$1 = errorInfo.value;
  39619. var stack = errorInfo.stack;
  39620. this.componentDidCatch(error$1, {
  39621. componentStack: stack !== null ? stack : ''
  39622. });
  39623. {
  39624. if (typeof getDerivedStateFromError !== 'function') {
  39625. // If componentDidCatch is the only error boundary method defined,
  39626. // then it needs to call setState to recover from errors.
  39627. // If no state update is scheduled then the boundary will swallow the error.
  39628. if (fiber.expirationTime !== Sync) {
  39629. error('%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');
  39630. }
  39631. }
  39632. }
  39633. };
  39634. } else {
  39635. update.callback = function () {
  39636. markFailedErrorBoundaryForHotReloading(fiber);
  39637. };
  39638. }
  39639. return update;
  39640. }
  39641. function attachPingListener(root, renderExpirationTime, thenable) {
  39642. // Attach a listener to the promise to "ping" the root and retry. But
  39643. // only if one does not already exist for the current render expiration
  39644. // time (which acts like a "thread ID" here).
  39645. var pingCache = root.pingCache;
  39646. var threadIDs;
  39647. if (pingCache === null) {
  39648. pingCache = root.pingCache = new PossiblyWeakMap$1();
  39649. threadIDs = new Set();
  39650. pingCache.set(thenable, threadIDs);
  39651. } else {
  39652. threadIDs = pingCache.get(thenable);
  39653. if (threadIDs === undefined) {
  39654. threadIDs = new Set();
  39655. pingCache.set(thenable, threadIDs);
  39656. }
  39657. }
  39658. if (!threadIDs.has(renderExpirationTime)) {
  39659. // Memoize using the thread ID to prevent redundant listeners.
  39660. threadIDs.add(renderExpirationTime);
  39661. var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
  39662. thenable.then(ping, ping);
  39663. }
  39664. }
  39665. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  39666. // The source fiber did not complete.
  39667. sourceFiber.effectTag |= Incomplete; // Its effect list is no longer valid.
  39668. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  39669. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  39670. // This is a thenable.
  39671. var thenable = value;
  39672. if ((sourceFiber.mode & BlockingMode) === NoMode) {
  39673. // Reset the memoizedState to what it was before we attempted
  39674. // to render it.
  39675. var currentSource = sourceFiber.alternate;
  39676. if (currentSource) {
  39677. sourceFiber.updateQueue = currentSource.updateQueue;
  39678. sourceFiber.memoizedState = currentSource.memoizedState;
  39679. sourceFiber.expirationTime = currentSource.expirationTime;
  39680. } else {
  39681. sourceFiber.updateQueue = null;
  39682. sourceFiber.memoizedState = null;
  39683. }
  39684. }
  39685. var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view.
  39686. var _workInProgress = returnFiber;
  39687. do {
  39688. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
  39689. // Found the nearest boundary.
  39690. // Stash the promise on the boundary fiber. If the boundary times out, we'll
  39691. // attach another listener to flip the boundary back to its normal state.
  39692. var thenables = _workInProgress.updateQueue;
  39693. if (thenables === null) {
  39694. var updateQueue = new Set();
  39695. updateQueue.add(thenable);
  39696. _workInProgress.updateQueue = updateQueue;
  39697. } else {
  39698. thenables.add(thenable);
  39699. } // If the boundary is outside of blocking mode, we should *not*
  39700. // suspend the commit. Pretend as if the suspended component rendered
  39701. // null and keep rendering. In the commit phase, we'll schedule a
  39702. // subsequent synchronous update to re-render the Suspense.
  39703. //
  39704. // Note: It doesn't matter whether the component that suspended was
  39705. // inside a blocking mode tree. If the Suspense is outside of it, we
  39706. // should *not* suspend the commit.
  39707. if ((_workInProgress.mode & BlockingMode) === NoMode) {
  39708. _workInProgress.effectTag |= DidCapture; // We're going to commit this fiber even though it didn't complete.
  39709. // But we shouldn't call any lifecycle methods or callbacks. Remove
  39710. // all lifecycle effect tags.
  39711. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  39712. if (sourceFiber.tag === ClassComponent) {
  39713. var currentSourceFiber = sourceFiber.alternate;
  39714. if (currentSourceFiber === null) {
  39715. // This is a new mount. Change the tag so it's not mistaken for a
  39716. // completed class component. For example, we should not call
  39717. // componentWillUnmount if it is deleted.
  39718. sourceFiber.tag = IncompleteClassComponent;
  39719. } else {
  39720. // When we try rendering again, we should not reuse the current fiber,
  39721. // since it's known to be in an inconsistent state. Use a force update to
  39722. // prevent a bail out.
  39723. var update = createUpdate(Sync, null);
  39724. update.tag = ForceUpdate;
  39725. enqueueUpdate(sourceFiber, update);
  39726. }
  39727. } // The source fiber did not complete. Mark it with Sync priority to
  39728. // indicate that it still has pending work.
  39729. sourceFiber.expirationTime = Sync; // Exit without suspending.
  39730. return;
  39731. } // Confirmed that the boundary is in a concurrent mode tree. Continue
  39732. // with the normal suspend path.
  39733. //
  39734. // After this we'll use a set of heuristics to determine whether this
  39735. // render pass will run to completion or restart or "suspend" the commit.
  39736. // The actual logic for this is spread out in different places.
  39737. //
  39738. // This first principle is that if we're going to suspend when we complete
  39739. // a root, then we should also restart if we get an update or ping that
  39740. // might unsuspend it, and vice versa. The only reason to suspend is
  39741. // because you think you might want to restart before committing. However,
  39742. // it doesn't make sense to restart only while in the period we're suspended.
  39743. //
  39744. // Restarting too aggressively is also not good because it starves out any
  39745. // intermediate loading state. So we use heuristics to determine when.
  39746. // Suspense Heuristics
  39747. //
  39748. // If nothing threw a Promise or all the same fallbacks are already showing,
  39749. // then don't suspend/restart.
  39750. //
  39751. // If this is an initial render of a new tree of Suspense boundaries and
  39752. // those trigger a fallback, then don't suspend/restart. We want to ensure
  39753. // that we can show the initial loading state as quickly as possible.
  39754. //
  39755. // If we hit a "Delayed" case, such as when we'd switch from content back into
  39756. // a fallback, then we should always suspend/restart. SuspenseConfig applies to
  39757. // this case. If none is defined, JND is used instead.
  39758. //
  39759. // If we're already showing a fallback and it gets "retried", allowing us to show
  39760. // another level, but there's still an inner boundary that would show a fallback,
  39761. // then we suspend/restart for 500ms since the last time we showed a fallback
  39762. // anywhere in the tree. This effectively throttles progressive loading into a
  39763. // consistent train of commits. This also gives us an opportunity to restart to
  39764. // get to the completed state slightly earlier.
  39765. //
  39766. // If there's ambiguity due to batching it's resolved in preference of:
  39767. // 1) "delayed", 2) "initial render", 3) "retry".
  39768. //
  39769. // We want to ensure that a "busy" state doesn't get force committed. We want to
  39770. // ensure that new initial loading states can commit as soon as possible.
  39771. attachPingListener(root, renderExpirationTime, thenable);
  39772. _workInProgress.effectTag |= ShouldCapture;
  39773. _workInProgress.expirationTime = renderExpirationTime;
  39774. return;
  39775. } // This boundary already captured during this render. Continue to the next
  39776. // boundary.
  39777. _workInProgress = _workInProgress.return;
  39778. } while (_workInProgress !== null); // No boundary was found. Fallthrough to error mode.
  39779. // TODO: Use invariant so the message is stripped in prod?
  39780. 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));
  39781. } // We didn't find a boundary that could handle this type of exception. Start
  39782. // over and traverse parent path again, this time treating the exception
  39783. // as an error.
  39784. renderDidError();
  39785. value = createCapturedValue(value, sourceFiber);
  39786. var workInProgress = returnFiber;
  39787. do {
  39788. switch (workInProgress.tag) {
  39789. case HostRoot:
  39790. {
  39791. var _errorInfo = value;
  39792. workInProgress.effectTag |= ShouldCapture;
  39793. workInProgress.expirationTime = renderExpirationTime;
  39794. var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  39795. enqueueCapturedUpdate(workInProgress, _update);
  39796. return;
  39797. }
  39798. case ClassComponent:
  39799. // Capture and retry
  39800. var errorInfo = value;
  39801. var ctor = workInProgress.type;
  39802. var instance = workInProgress.stateNode;
  39803. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  39804. workInProgress.effectTag |= ShouldCapture;
  39805. workInProgress.expirationTime = renderExpirationTime; // Schedule the error boundary to re-render using updated state
  39806. var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  39807. enqueueCapturedUpdate(workInProgress, _update2);
  39808. return;
  39809. }
  39810. break;
  39811. }
  39812. workInProgress = workInProgress.return;
  39813. } while (workInProgress !== null);
  39814. }
  39815. var ceil = Math.ceil;
  39816. var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
  39817. ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
  39818. IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
  39819. var NoContext =
  39820. /* */
  39821. 0;
  39822. var BatchedContext =
  39823. /* */
  39824. 1;
  39825. var EventContext =
  39826. /* */
  39827. 2;
  39828. var DiscreteEventContext =
  39829. /* */
  39830. 4;
  39831. var LegacyUnbatchedContext =
  39832. /* */
  39833. 8;
  39834. var RenderContext =
  39835. /* */
  39836. 16;
  39837. var CommitContext =
  39838. /* */
  39839. 32;
  39840. var RootIncomplete = 0;
  39841. var RootFatalErrored = 1;
  39842. var RootErrored = 2;
  39843. var RootSuspended = 3;
  39844. var RootSuspendedWithDelay = 4;
  39845. var RootCompleted = 5;
  39846. // Describes where we are in the React execution stack
  39847. var executionContext = NoContext; // The root we're working on
  39848. var workInProgressRoot = null; // The fiber we're working on
  39849. var workInProgress = null; // The expiration time we're rendering
  39850. var renderExpirationTime$1 = NoWork; // Whether to root completed, errored, suspended, etc.
  39851. var workInProgressRootExitStatus = RootIncomplete; // A fatal error, if one is thrown
  39852. var workInProgressRootFatalError = null; // Most recent event time among processed updates during this render.
  39853. // This is conceptually a time stamp but expressed in terms of an ExpirationTime
  39854. // because we deal mostly with expiration times in the hot path, so this avoids
  39855. // the conversion happening in the hot path.
  39856. var workInProgressRootLatestProcessedExpirationTime = Sync;
  39857. var workInProgressRootLatestSuspenseTimeout = Sync;
  39858. var workInProgressRootCanSuspendUsingConfig = null; // The work left over by components that were visited during this render. Only
  39859. // includes unprocessed updates, not work in bailed out children.
  39860. var workInProgressRootNextUnprocessedUpdateTime = NoWork; // If we're pinged while rendering we don't always restart immediately.
  39861. // This flag determines if it might be worthwhile to restart if an opportunity
  39862. // happens latere.
  39863. var workInProgressRootHasPendingPing = false; // The most recent time we committed a fallback. This lets us ensure a train
  39864. // model where we don't commit new loading states in too quick succession.
  39865. var globalMostRecentFallbackTime = 0;
  39866. var FALLBACK_THROTTLE_MS = 500;
  39867. var nextEffect = null;
  39868. var hasUncaughtError = false;
  39869. var firstUncaughtError = null;
  39870. var legacyErrorBoundariesThatAlreadyFailed = null;
  39871. var rootDoesHavePassiveEffects = false;
  39872. var rootWithPendingPassiveEffects = null;
  39873. var pendingPassiveEffectsRenderPriority = NoPriority;
  39874. var pendingPassiveEffectsExpirationTime = NoWork;
  39875. var rootsWithPendingDiscreteUpdates = null; // Use these to prevent an infinite loop of nested updates
  39876. var NESTED_UPDATE_LIMIT = 50;
  39877. var nestedUpdateCount = 0;
  39878. var rootWithNestedUpdates = null;
  39879. var NESTED_PASSIVE_UPDATE_LIMIT = 50;
  39880. var nestedPassiveUpdateCount = 0;
  39881. var interruptedBy = null; // Marks the need to reschedule pending interactions at these expiration times
  39882. // during the commit phase. This enables them to be traced across components
  39883. // that spawn new work during render. E.g. hidden boundaries, suspended SSR
  39884. // hydration or SuspenseList.
  39885. var spawnedWorkDuringRender = null; // Expiration times are computed by adding to the current time (the start
  39886. // time). However, if two updates are scheduled within the same event, we
  39887. // should treat their start times as simultaneous, even if the actual clock
  39888. // time has advanced between the first and second call.
  39889. // In other words, because expiration times determine how updates are batched,
  39890. // we want all updates of like priority that occur within the same event to
  39891. // receive the same expiration time. Otherwise we get tearing.
  39892. var currentEventTime = NoWork;
  39893. function requestCurrentTimeForUpdate() {
  39894. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  39895. // We're inside React, so it's fine to read the actual time.
  39896. return msToExpirationTime(now());
  39897. } // We're not inside React, so we may be in the middle of a browser event.
  39898. if (currentEventTime !== NoWork) {
  39899. // Use the same start time for all updates until we enter React again.
  39900. return currentEventTime;
  39901. } // This is the first update since React yielded. Compute a new start time.
  39902. currentEventTime = msToExpirationTime(now());
  39903. return currentEventTime;
  39904. }
  39905. function getCurrentTime() {
  39906. return msToExpirationTime(now());
  39907. }
  39908. function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
  39909. var mode = fiber.mode;
  39910. if ((mode & BlockingMode) === NoMode) {
  39911. return Sync;
  39912. }
  39913. var priorityLevel = getCurrentPriorityLevel();
  39914. if ((mode & ConcurrentMode) === NoMode) {
  39915. return priorityLevel === ImmediatePriority ? Sync : Batched;
  39916. }
  39917. if ((executionContext & RenderContext) !== NoContext) {
  39918. // Use whatever time we're already rendering
  39919. // TODO: Should there be a way to opt out, like with `runWithPriority`?
  39920. return renderExpirationTime$1;
  39921. }
  39922. var expirationTime;
  39923. if (suspenseConfig !== null) {
  39924. // Compute an expiration time based on the Suspense timeout.
  39925. expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  39926. } else {
  39927. // Compute an expiration time based on the Scheduler priority.
  39928. switch (priorityLevel) {
  39929. case ImmediatePriority:
  39930. expirationTime = Sync;
  39931. break;
  39932. case UserBlockingPriority$1:
  39933. // TODO: Rename this to computeUserBlockingExpiration
  39934. expirationTime = computeInteractiveExpiration(currentTime);
  39935. break;
  39936. case NormalPriority:
  39937. case LowPriority:
  39938. // TODO: Handle LowPriority
  39939. // TODO: Rename this to... something better.
  39940. expirationTime = computeAsyncExpiration(currentTime);
  39941. break;
  39942. case IdlePriority:
  39943. expirationTime = Idle;
  39944. break;
  39945. default:
  39946. {
  39947. {
  39948. throw Error( "Expected a valid priority level" );
  39949. }
  39950. }
  39951. }
  39952. } // If we're in the middle of rendering a tree, do not update at the same
  39953. // expiration time that is already rendering.
  39954. // TODO: We shouldn't have to do this if the update is on a different root.
  39955. // Refactor computeExpirationForFiber + scheduleUpdate so we have access to
  39956. // the root when we check for this condition.
  39957. if (workInProgressRoot !== null && expirationTime === renderExpirationTime$1) {
  39958. // This is a trick to move this update into a separate batch
  39959. expirationTime -= 1;
  39960. }
  39961. return expirationTime;
  39962. }
  39963. function scheduleUpdateOnFiber(fiber, expirationTime) {
  39964. checkForNestedUpdates();
  39965. warnAboutRenderPhaseUpdatesInDEV(fiber);
  39966. var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);
  39967. if (root === null) {
  39968. warnAboutUpdateOnUnmountedFiberInDEV(fiber);
  39969. return;
  39970. }
  39971. checkForInterruption(fiber, expirationTime);
  39972. recordScheduleUpdate(); // TODO: computeExpirationForFiber also reads the priority. Pass the
  39973. // priority as an argument to that function and this one.
  39974. var priorityLevel = getCurrentPriorityLevel();
  39975. if (expirationTime === Sync) {
  39976. if ( // Check if we're inside unbatchedUpdates
  39977. (executionContext & LegacyUnbatchedContext) !== NoContext && // Check if we're not already rendering
  39978. (executionContext & (RenderContext | CommitContext)) === NoContext) {
  39979. // Register pending interactions on the root to avoid losing traced interaction data.
  39980. schedulePendingInteractions(root, expirationTime); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
  39981. // root inside of batchedUpdates should be synchronous, but layout updates
  39982. // should be deferred until the end of the batch.
  39983. performSyncWorkOnRoot(root);
  39984. } else {
  39985. ensureRootIsScheduled(root);
  39986. schedulePendingInteractions(root, expirationTime);
  39987. if (executionContext === NoContext) {
  39988. // Flush the synchronous work now, unless we're already working or inside
  39989. // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
  39990. // scheduleCallbackForFiber to preserve the ability to schedule a callback
  39991. // without immediately flushing it. We only do this for user-initiated
  39992. // updates, to preserve historical behavior of legacy mode.
  39993. flushSyncCallbackQueue();
  39994. }
  39995. }
  39996. } else {
  39997. ensureRootIsScheduled(root);
  39998. schedulePendingInteractions(root, expirationTime);
  39999. }
  40000. if ((executionContext & DiscreteEventContext) !== NoContext && ( // Only updates at user-blocking priority or greater are considered
  40001. // discrete, even inside a discrete event.
  40002. priorityLevel === UserBlockingPriority$1 || priorityLevel === ImmediatePriority)) {
  40003. // This is the result of a discrete event. Track the lowest priority
  40004. // discrete update per root so we can flush them early, if needed.
  40005. if (rootsWithPendingDiscreteUpdates === null) {
  40006. rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
  40007. } else {
  40008. var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);
  40009. if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
  40010. rootsWithPendingDiscreteUpdates.set(root, expirationTime);
  40011. }
  40012. }
  40013. }
  40014. }
  40015. var scheduleWork = scheduleUpdateOnFiber; // This is split into a separate function so we can mark a fiber with pending
  40016. // work without treating it as a typical update that originates from an event;
  40017. // e.g. retrying a Suspense boundary isn't an update, but it does schedule work
  40018. // on a fiber.
  40019. function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
  40020. // Update the source fiber's expiration time
  40021. if (fiber.expirationTime < expirationTime) {
  40022. fiber.expirationTime = expirationTime;
  40023. }
  40024. var alternate = fiber.alternate;
  40025. if (alternate !== null && alternate.expirationTime < expirationTime) {
  40026. alternate.expirationTime = expirationTime;
  40027. } // Walk the parent path to the root and update the child expiration time.
  40028. var node = fiber.return;
  40029. var root = null;
  40030. if (node === null && fiber.tag === HostRoot) {
  40031. root = fiber.stateNode;
  40032. } else {
  40033. while (node !== null) {
  40034. alternate = node.alternate;
  40035. if (node.childExpirationTime < expirationTime) {
  40036. node.childExpirationTime = expirationTime;
  40037. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  40038. alternate.childExpirationTime = expirationTime;
  40039. }
  40040. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  40041. alternate.childExpirationTime = expirationTime;
  40042. }
  40043. if (node.return === null && node.tag === HostRoot) {
  40044. root = node.stateNode;
  40045. break;
  40046. }
  40047. node = node.return;
  40048. }
  40049. }
  40050. if (root !== null) {
  40051. if (workInProgressRoot === root) {
  40052. // Received an update to a tree that's in the middle of rendering. Mark
  40053. // that's unprocessed work on this root.
  40054. markUnprocessedUpdateTime(expirationTime);
  40055. if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
  40056. // The root already suspended with a delay, which means this render
  40057. // definitely won't finish. Since we have a new update, let's mark it as
  40058. // suspended now, right before marking the incoming update. This has the
  40059. // effect of interrupting the current render and switching to the update.
  40060. // TODO: This happens to work when receiving an update during the render
  40061. // phase, because of the trick inside computeExpirationForFiber to
  40062. // subtract 1 from `renderExpirationTime` to move it into a
  40063. // separate bucket. But we should probably model it with an exception,
  40064. // using the same mechanism we use to force hydration of a subtree.
  40065. // TODO: This does not account for low pri updates that were already
  40066. // scheduled before the root started rendering. Need to track the next
  40067. // pending expiration time (perhaps by backtracking the return path) and
  40068. // then trigger a restart in the `renderDidSuspendDelayIfPossible` path.
  40069. markRootSuspendedAtTime(root, renderExpirationTime$1);
  40070. }
  40071. } // Mark that the root has a pending update.
  40072. markRootUpdatedAtTime(root, expirationTime);
  40073. }
  40074. return root;
  40075. }
  40076. function getNextRootExpirationTimeToWorkOn(root) {
  40077. // Determines the next expiration time that the root should render, taking
  40078. // into account levels that may be suspended, or levels that may have
  40079. // received a ping.
  40080. var lastExpiredTime = root.lastExpiredTime;
  40081. if (lastExpiredTime !== NoWork) {
  40082. return lastExpiredTime;
  40083. } // "Pending" refers to any update that hasn't committed yet, including if it
  40084. // suspended. The "suspended" range is therefore a subset.
  40085. var firstPendingTime = root.firstPendingTime;
  40086. if (!isRootSuspendedAtTime(root, firstPendingTime)) {
  40087. // The highest priority pending time is not suspended. Let's work on that.
  40088. return firstPendingTime;
  40089. } // If the first pending time is suspended, check if there's a lower priority
  40090. // pending level that we know about. Or check if we received a ping. Work
  40091. // on whichever is higher priority.
  40092. var lastPingedTime = root.lastPingedTime;
  40093. var nextKnownPendingLevel = root.nextKnownPendingLevel;
  40094. var nextLevel = lastPingedTime > nextKnownPendingLevel ? lastPingedTime : nextKnownPendingLevel;
  40095. if ( nextLevel <= Idle && firstPendingTime !== nextLevel) {
  40096. // Don't work on Idle/Never priority unless everything else is committed.
  40097. return NoWork;
  40098. }
  40099. return nextLevel;
  40100. } // Use this function to schedule a task for a root. There's only one task per
  40101. // root; if a task was already scheduled, we'll check to make sure the
  40102. // expiration time of the existing task is the same as the expiration time of
  40103. // the next level that the root has work on. This function is called on every
  40104. // update, and right before exiting a task.
  40105. function ensureRootIsScheduled(root) {
  40106. var lastExpiredTime = root.lastExpiredTime;
  40107. if (lastExpiredTime !== NoWork) {
  40108. // Special case: Expired work should flush synchronously.
  40109. root.callbackExpirationTime = Sync;
  40110. root.callbackPriority = ImmediatePriority;
  40111. root.callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
  40112. return;
  40113. }
  40114. var expirationTime = getNextRootExpirationTimeToWorkOn(root);
  40115. var existingCallbackNode = root.callbackNode;
  40116. if (expirationTime === NoWork) {
  40117. // There's nothing to work on.
  40118. if (existingCallbackNode !== null) {
  40119. root.callbackNode = null;
  40120. root.callbackExpirationTime = NoWork;
  40121. root.callbackPriority = NoPriority;
  40122. }
  40123. return;
  40124. } // TODO: If this is an update, we already read the current time. Pass the
  40125. // time as an argument.
  40126. var currentTime = requestCurrentTimeForUpdate();
  40127. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime); // If there's an existing render task, confirm it has the correct priority and
  40128. // expiration time. Otherwise, we'll cancel it and schedule a new one.
  40129. if (existingCallbackNode !== null) {
  40130. var existingCallbackPriority = root.callbackPriority;
  40131. var existingCallbackExpirationTime = root.callbackExpirationTime;
  40132. if ( // Callback must have the exact same expiration time.
  40133. existingCallbackExpirationTime === expirationTime && // Callback must have greater or equal priority.
  40134. existingCallbackPriority >= priorityLevel) {
  40135. // Existing callback is sufficient.
  40136. return;
  40137. } // Need to schedule a new task.
  40138. // TODO: Instead of scheduling a new task, we should be able to change the
  40139. // priority of the existing one.
  40140. cancelCallback(existingCallbackNode);
  40141. }
  40142. root.callbackExpirationTime = expirationTime;
  40143. root.callbackPriority = priorityLevel;
  40144. var callbackNode;
  40145. if (expirationTime === Sync) {
  40146. // Sync React callbacks are scheduled on a special internal queue
  40147. callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
  40148. } else {
  40149. callbackNode = scheduleCallback(priorityLevel, performConcurrentWorkOnRoot.bind(null, root), // Compute a task timeout based on the expiration time. This also affects
  40150. // ordering because tasks are processed in timeout order.
  40151. {
  40152. timeout: expirationTimeToMs(expirationTime) - now()
  40153. });
  40154. }
  40155. root.callbackNode = callbackNode;
  40156. } // This is the entry point for every concurrent task, i.e. anything that
  40157. // goes through Scheduler.
  40158. function performConcurrentWorkOnRoot(root, didTimeout) {
  40159. // Since we know we're in a React event, we can clear the current
  40160. // event time. The next update will compute a new event time.
  40161. currentEventTime = NoWork;
  40162. if (didTimeout) {
  40163. // The render task took too long to complete. Mark the current time as
  40164. // expired to synchronously render all expired work in a single batch.
  40165. var currentTime = requestCurrentTimeForUpdate();
  40166. markRootExpiredAtTime(root, currentTime); // This will schedule a synchronous callback.
  40167. ensureRootIsScheduled(root);
  40168. return null;
  40169. } // Determine the next expiration time to work on, using the fields stored
  40170. // on the root.
  40171. var expirationTime = getNextRootExpirationTimeToWorkOn(root);
  40172. if (expirationTime !== NoWork) {
  40173. var originalCallbackNode = root.callbackNode;
  40174. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  40175. {
  40176. throw Error( "Should not already be working." );
  40177. }
  40178. }
  40179. flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
  40180. // and prepare a fresh one. Otherwise we'll continue where we left off.
  40181. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
  40182. prepareFreshStack(root, expirationTime);
  40183. startWorkOnPendingInteractions(root, expirationTime);
  40184. } // If we have a work-in-progress fiber, it means there's still work to do
  40185. // in this root.
  40186. if (workInProgress !== null) {
  40187. var prevExecutionContext = executionContext;
  40188. executionContext |= RenderContext;
  40189. var prevDispatcher = pushDispatcher();
  40190. var prevInteractions = pushInteractions(root);
  40191. startWorkLoopTimer(workInProgress);
  40192. do {
  40193. try {
  40194. workLoopConcurrent();
  40195. break;
  40196. } catch (thrownValue) {
  40197. handleError(root, thrownValue);
  40198. }
  40199. } while (true);
  40200. resetContextDependencies();
  40201. executionContext = prevExecutionContext;
  40202. popDispatcher(prevDispatcher);
  40203. {
  40204. popInteractions(prevInteractions);
  40205. }
  40206. if (workInProgressRootExitStatus === RootFatalErrored) {
  40207. var fatalError = workInProgressRootFatalError;
  40208. stopInterruptedWorkLoopTimer();
  40209. prepareFreshStack(root, expirationTime);
  40210. markRootSuspendedAtTime(root, expirationTime);
  40211. ensureRootIsScheduled(root);
  40212. throw fatalError;
  40213. }
  40214. if (workInProgress !== null) {
  40215. // There's still work left over. Exit without committing.
  40216. stopInterruptedWorkLoopTimer();
  40217. } else {
  40218. // We now have a consistent tree. The next step is either to commit it,
  40219. // or, if something suspended, wait to commit it after a timeout.
  40220. stopFinishedWorkLoopTimer();
  40221. var finishedWork = root.finishedWork = root.current.alternate;
  40222. root.finishedExpirationTime = expirationTime;
  40223. finishConcurrentRender(root, finishedWork, workInProgressRootExitStatus, expirationTime);
  40224. }
  40225. ensureRootIsScheduled(root);
  40226. if (root.callbackNode === originalCallbackNode) {
  40227. // The task node scheduled for this root is the same one that's
  40228. // currently executed. Need to return a continuation.
  40229. return performConcurrentWorkOnRoot.bind(null, root);
  40230. }
  40231. }
  40232. }
  40233. return null;
  40234. }
  40235. function finishConcurrentRender(root, finishedWork, exitStatus, expirationTime) {
  40236. // Set this to null to indicate there's no in-progress render.
  40237. workInProgressRoot = null;
  40238. switch (exitStatus) {
  40239. case RootIncomplete:
  40240. case RootFatalErrored:
  40241. {
  40242. {
  40243. {
  40244. throw Error( "Root did not complete. This is a bug in React." );
  40245. }
  40246. }
  40247. }
  40248. // Flow knows about invariant, so it complains if I add a break
  40249. // statement, but eslint doesn't know about invariant, so it complains
  40250. // if I do. eslint-disable-next-line no-fallthrough
  40251. case RootErrored:
  40252. {
  40253. // If this was an async render, the error may have happened due to
  40254. // a mutation in a concurrent event. Try rendering one more time,
  40255. // synchronously, to see if the error goes away. If there are
  40256. // lower priority updates, let's include those, too, in case they
  40257. // fix the inconsistency. Render at Idle to include all updates.
  40258. // If it was Idle or Never or some not-yet-invented time, render
  40259. // at that time.
  40260. markRootExpiredAtTime(root, expirationTime > Idle ? Idle : expirationTime); // We assume that this second render pass will be synchronous
  40261. // and therefore not hit this path again.
  40262. break;
  40263. }
  40264. case RootSuspended:
  40265. {
  40266. markRootSuspendedAtTime(root, expirationTime);
  40267. var lastSuspendedTime = root.lastSuspendedTime;
  40268. if (expirationTime === lastSuspendedTime) {
  40269. root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
  40270. } // We have an acceptable loading state. We need to figure out if we
  40271. // should immediately commit it or wait a bit.
  40272. // If we have processed new updates during this render, we may now
  40273. // have a new loading state ready. We want to ensure that we commit
  40274. // that as soon as possible.
  40275. var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;
  40276. if (hasNotProcessedNewUpdates && // do not delay if we're inside an act() scope
  40277. !( IsThisRendererActing.current)) {
  40278. // If we have not processed any new updates during this pass, then
  40279. // this is either a retry of an existing fallback state or a
  40280. // hidden tree. Hidden trees shouldn't be batched with other work
  40281. // and after that's fixed it can only be a retry. We're going to
  40282. // throttle committing retries so that we don't show too many
  40283. // loading states too quickly.
  40284. var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.
  40285. if (msUntilTimeout > 10) {
  40286. if (workInProgressRootHasPendingPing) {
  40287. var lastPingedTime = root.lastPingedTime;
  40288. if (lastPingedTime === NoWork || lastPingedTime >= expirationTime) {
  40289. // This render was pinged but we didn't get to restart
  40290. // earlier so try restarting now instead.
  40291. root.lastPingedTime = expirationTime;
  40292. prepareFreshStack(root, expirationTime);
  40293. break;
  40294. }
  40295. }
  40296. var nextTime = getNextRootExpirationTimeToWorkOn(root);
  40297. if (nextTime !== NoWork && nextTime !== expirationTime) {
  40298. // There's additional work on this root.
  40299. break;
  40300. }
  40301. if (lastSuspendedTime !== NoWork && lastSuspendedTime !== expirationTime) {
  40302. // We should prefer to render the fallback of at the last
  40303. // suspended level. Ping the last suspended level to try
  40304. // rendering it again.
  40305. root.lastPingedTime = lastSuspendedTime;
  40306. break;
  40307. } // The render is suspended, it hasn't timed out, and there's no
  40308. // lower priority work to do. Instead of committing the fallback
  40309. // immediately, wait for more data to arrive.
  40310. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
  40311. break;
  40312. }
  40313. } // The work expired. Commit immediately.
  40314. commitRoot(root);
  40315. break;
  40316. }
  40317. case RootSuspendedWithDelay:
  40318. {
  40319. markRootSuspendedAtTime(root, expirationTime);
  40320. var _lastSuspendedTime = root.lastSuspendedTime;
  40321. if (expirationTime === _lastSuspendedTime) {
  40322. root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
  40323. }
  40324. if ( // do not delay if we're inside an act() scope
  40325. !( IsThisRendererActing.current)) {
  40326. // We're suspended in a state that should be avoided. We'll try to
  40327. // avoid committing it for as long as the timeouts let us.
  40328. if (workInProgressRootHasPendingPing) {
  40329. var _lastPingedTime = root.lastPingedTime;
  40330. if (_lastPingedTime === NoWork || _lastPingedTime >= expirationTime) {
  40331. // This render was pinged but we didn't get to restart earlier
  40332. // so try restarting now instead.
  40333. root.lastPingedTime = expirationTime;
  40334. prepareFreshStack(root, expirationTime);
  40335. break;
  40336. }
  40337. }
  40338. var _nextTime = getNextRootExpirationTimeToWorkOn(root);
  40339. if (_nextTime !== NoWork && _nextTime !== expirationTime) {
  40340. // There's additional work on this root.
  40341. break;
  40342. }
  40343. if (_lastSuspendedTime !== NoWork && _lastSuspendedTime !== expirationTime) {
  40344. // We should prefer to render the fallback of at the last
  40345. // suspended level. Ping the last suspended level to try
  40346. // rendering it again.
  40347. root.lastPingedTime = _lastSuspendedTime;
  40348. break;
  40349. }
  40350. var _msUntilTimeout;
  40351. if (workInProgressRootLatestSuspenseTimeout !== Sync) {
  40352. // We have processed a suspense config whose expiration time we
  40353. // can use as the timeout.
  40354. _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
  40355. } else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
  40356. // This should never normally happen because only new updates
  40357. // cause delayed states, so we should have processed something.
  40358. // However, this could also happen in an offscreen tree.
  40359. _msUntilTimeout = 0;
  40360. } else {
  40361. // If we don't have a suspense config, we're going to use a
  40362. // heuristic to determine how long we can suspend.
  40363. var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
  40364. var currentTimeMs = now();
  40365. var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
  40366. var timeElapsed = currentTimeMs - eventTimeMs;
  40367. if (timeElapsed < 0) {
  40368. // We get this wrong some time since we estimate the time.
  40369. timeElapsed = 0;
  40370. }
  40371. _msUntilTimeout = jnd(timeElapsed) - timeElapsed; // Clamp the timeout to the expiration time. TODO: Once the
  40372. // event time is exact instead of inferred from expiration time
  40373. // we don't need this.
  40374. if (timeUntilExpirationMs < _msUntilTimeout) {
  40375. _msUntilTimeout = timeUntilExpirationMs;
  40376. }
  40377. } // Don't bother with a very short suspense time.
  40378. if (_msUntilTimeout > 10) {
  40379. // The render is suspended, it hasn't timed out, and there's no
  40380. // lower priority work to do. Instead of committing the fallback
  40381. // immediately, wait for more data to arrive.
  40382. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
  40383. break;
  40384. }
  40385. } // The work expired. Commit immediately.
  40386. commitRoot(root);
  40387. break;
  40388. }
  40389. case RootCompleted:
  40390. {
  40391. // The work completed. Ready to commit.
  40392. if ( // do not delay if we're inside an act() scope
  40393. !( IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
  40394. // If we have exceeded the minimum loading delay, which probably
  40395. // means we have shown a spinner already, we might have to suspend
  40396. // a bit longer to ensure that the spinner is shown for
  40397. // enough time.
  40398. var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);
  40399. if (_msUntilTimeout2 > 10) {
  40400. markRootSuspendedAtTime(root, expirationTime);
  40401. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
  40402. break;
  40403. }
  40404. }
  40405. commitRoot(root);
  40406. break;
  40407. }
  40408. default:
  40409. {
  40410. {
  40411. {
  40412. throw Error( "Unknown root exit status." );
  40413. }
  40414. }
  40415. }
  40416. }
  40417. } // This is the entry point for synchronous tasks that don't go
  40418. // through Scheduler
  40419. function performSyncWorkOnRoot(root) {
  40420. // Check if there's expired work on this root. Otherwise, render at Sync.
  40421. var lastExpiredTime = root.lastExpiredTime;
  40422. var expirationTime = lastExpiredTime !== NoWork ? lastExpiredTime : Sync;
  40423. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  40424. {
  40425. throw Error( "Should not already be working." );
  40426. }
  40427. }
  40428. flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
  40429. // and prepare a fresh one. Otherwise we'll continue where we left off.
  40430. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
  40431. prepareFreshStack(root, expirationTime);
  40432. startWorkOnPendingInteractions(root, expirationTime);
  40433. } // If we have a work-in-progress fiber, it means there's still work to do
  40434. // in this root.
  40435. if (workInProgress !== null) {
  40436. var prevExecutionContext = executionContext;
  40437. executionContext |= RenderContext;
  40438. var prevDispatcher = pushDispatcher();
  40439. var prevInteractions = pushInteractions(root);
  40440. startWorkLoopTimer(workInProgress);
  40441. do {
  40442. try {
  40443. workLoopSync();
  40444. break;
  40445. } catch (thrownValue) {
  40446. handleError(root, thrownValue);
  40447. }
  40448. } while (true);
  40449. resetContextDependencies();
  40450. executionContext = prevExecutionContext;
  40451. popDispatcher(prevDispatcher);
  40452. {
  40453. popInteractions(prevInteractions);
  40454. }
  40455. if (workInProgressRootExitStatus === RootFatalErrored) {
  40456. var fatalError = workInProgressRootFatalError;
  40457. stopInterruptedWorkLoopTimer();
  40458. prepareFreshStack(root, expirationTime);
  40459. markRootSuspendedAtTime(root, expirationTime);
  40460. ensureRootIsScheduled(root);
  40461. throw fatalError;
  40462. }
  40463. if (workInProgress !== null) {
  40464. // This is a sync render, so we should have finished the whole tree.
  40465. {
  40466. {
  40467. throw Error( "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." );
  40468. }
  40469. }
  40470. } else {
  40471. // We now have a consistent tree. Because this is a sync render, we
  40472. // will commit it even if something suspended.
  40473. stopFinishedWorkLoopTimer();
  40474. root.finishedWork = root.current.alternate;
  40475. root.finishedExpirationTime = expirationTime;
  40476. finishSyncRender(root);
  40477. } // Before exiting, make sure there's a callback scheduled for the next
  40478. // pending level.
  40479. ensureRootIsScheduled(root);
  40480. }
  40481. return null;
  40482. }
  40483. function finishSyncRender(root) {
  40484. // Set this to null to indicate there's no in-progress render.
  40485. workInProgressRoot = null;
  40486. commitRoot(root);
  40487. }
  40488. function flushDiscreteUpdates() {
  40489. // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  40490. // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  40491. // those two cases. Need to fix this before exposing flushDiscreteUpdates
  40492. // as a public API.
  40493. if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
  40494. {
  40495. if ((executionContext & RenderContext) !== NoContext) {
  40496. error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
  40497. }
  40498. } // We're already rendering, so we can't synchronously flush pending work.
  40499. // This is probably a nested event dispatch triggered by a lifecycle/effect,
  40500. // like `el.focus()`. Exit.
  40501. return;
  40502. }
  40503. flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that
  40504. // they fire before the next serial event.
  40505. flushPassiveEffects();
  40506. }
  40507. function syncUpdates(fn, a, b, c) {
  40508. return runWithPriority$1(ImmediatePriority, fn.bind(null, a, b, c));
  40509. }
  40510. function flushPendingDiscreteUpdates() {
  40511. if (rootsWithPendingDiscreteUpdates !== null) {
  40512. // For each root with pending discrete updates, schedule a callback to
  40513. // immediately flush them.
  40514. var roots = rootsWithPendingDiscreteUpdates;
  40515. rootsWithPendingDiscreteUpdates = null;
  40516. roots.forEach(function (expirationTime, root) {
  40517. markRootExpiredAtTime(root, expirationTime);
  40518. ensureRootIsScheduled(root);
  40519. }); // Now flush the immediate queue.
  40520. flushSyncCallbackQueue();
  40521. }
  40522. }
  40523. function batchedUpdates$1(fn, a) {
  40524. var prevExecutionContext = executionContext;
  40525. executionContext |= BatchedContext;
  40526. try {
  40527. return fn(a);
  40528. } finally {
  40529. executionContext = prevExecutionContext;
  40530. if (executionContext === NoContext) {
  40531. // Flush the immediate callbacks that were scheduled during this batch
  40532. flushSyncCallbackQueue();
  40533. }
  40534. }
  40535. }
  40536. function batchedEventUpdates$1(fn, a) {
  40537. var prevExecutionContext = executionContext;
  40538. executionContext |= EventContext;
  40539. try {
  40540. return fn(a);
  40541. } finally {
  40542. executionContext = prevExecutionContext;
  40543. if (executionContext === NoContext) {
  40544. // Flush the immediate callbacks that were scheduled during this batch
  40545. flushSyncCallbackQueue();
  40546. }
  40547. }
  40548. }
  40549. function discreteUpdates$1(fn, a, b, c, d) {
  40550. var prevExecutionContext = executionContext;
  40551. executionContext |= DiscreteEventContext;
  40552. try {
  40553. // Should this
  40554. return runWithPriority$1(UserBlockingPriority$1, fn.bind(null, a, b, c, d));
  40555. } finally {
  40556. executionContext = prevExecutionContext;
  40557. if (executionContext === NoContext) {
  40558. // Flush the immediate callbacks that were scheduled during this batch
  40559. flushSyncCallbackQueue();
  40560. }
  40561. }
  40562. }
  40563. function unbatchedUpdates(fn, a) {
  40564. var prevExecutionContext = executionContext;
  40565. executionContext &= ~BatchedContext;
  40566. executionContext |= LegacyUnbatchedContext;
  40567. try {
  40568. return fn(a);
  40569. } finally {
  40570. executionContext = prevExecutionContext;
  40571. if (executionContext === NoContext) {
  40572. // Flush the immediate callbacks that were scheduled during this batch
  40573. flushSyncCallbackQueue();
  40574. }
  40575. }
  40576. }
  40577. function flushSync(fn, a) {
  40578. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  40579. {
  40580. {
  40581. throw Error( "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering." );
  40582. }
  40583. }
  40584. }
  40585. var prevExecutionContext = executionContext;
  40586. executionContext |= BatchedContext;
  40587. try {
  40588. return runWithPriority$1(ImmediatePriority, fn.bind(null, a));
  40589. } finally {
  40590. executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
  40591. // Note that this will happen even if batchedUpdates is higher up
  40592. // the stack.
  40593. flushSyncCallbackQueue();
  40594. }
  40595. }
  40596. function prepareFreshStack(root, expirationTime) {
  40597. root.finishedWork = null;
  40598. root.finishedExpirationTime = NoWork;
  40599. var timeoutHandle = root.timeoutHandle;
  40600. if (timeoutHandle !== noTimeout) {
  40601. // The root previous suspended and scheduled a timeout to commit a fallback
  40602. // state. Now that we have additional work, cancel the timeout.
  40603. root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  40604. cancelTimeout(timeoutHandle);
  40605. }
  40606. if (workInProgress !== null) {
  40607. var interruptedWork = workInProgress.return;
  40608. while (interruptedWork !== null) {
  40609. unwindInterruptedWork(interruptedWork);
  40610. interruptedWork = interruptedWork.return;
  40611. }
  40612. }
  40613. workInProgressRoot = root;
  40614. workInProgress = createWorkInProgress(root.current, null);
  40615. renderExpirationTime$1 = expirationTime;
  40616. workInProgressRootExitStatus = RootIncomplete;
  40617. workInProgressRootFatalError = null;
  40618. workInProgressRootLatestProcessedExpirationTime = Sync;
  40619. workInProgressRootLatestSuspenseTimeout = Sync;
  40620. workInProgressRootCanSuspendUsingConfig = null;
  40621. workInProgressRootNextUnprocessedUpdateTime = NoWork;
  40622. workInProgressRootHasPendingPing = false;
  40623. {
  40624. spawnedWorkDuringRender = null;
  40625. }
  40626. {
  40627. ReactStrictModeWarnings.discardPendingWarnings();
  40628. }
  40629. }
  40630. function handleError(root, thrownValue) {
  40631. do {
  40632. try {
  40633. // Reset module-level state that was set during the render phase.
  40634. resetContextDependencies();
  40635. resetHooksAfterThrow();
  40636. resetCurrentFiber();
  40637. if (workInProgress === null || workInProgress.return === null) {
  40638. // Expected to be working on a non-root fiber. This is a fatal error
  40639. // because there's no ancestor that can handle it; the root is
  40640. // supposed to capture all errors that weren't caught by an error
  40641. // boundary.
  40642. workInProgressRootExitStatus = RootFatalErrored;
  40643. workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
  40644. // sibling, or the parent if there are no siblings. But since the root
  40645. // has no siblings nor a parent, we set it to null. Usually this is
  40646. // handled by `completeUnitOfWork` or `unwindWork`, but since we're
  40647. // interntionally not calling those, we need set it here.
  40648. // TODO: Consider calling `unwindWork` to pop the contexts.
  40649. workInProgress = null;
  40650. return null;
  40651. }
  40652. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  40653. // Record the time spent rendering before an error was thrown. This
  40654. // avoids inaccurate Profiler durations in the case of a
  40655. // suspended render.
  40656. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
  40657. }
  40658. throwException(root, workInProgress.return, workInProgress, thrownValue, renderExpirationTime$1);
  40659. workInProgress = completeUnitOfWork(workInProgress);
  40660. } catch (yetAnotherThrownValue) {
  40661. // Something in the return path also threw.
  40662. thrownValue = yetAnotherThrownValue;
  40663. continue;
  40664. } // Return to the normal work loop.
  40665. return;
  40666. } while (true);
  40667. }
  40668. function pushDispatcher(root) {
  40669. var prevDispatcher = ReactCurrentDispatcher$1.current;
  40670. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  40671. if (prevDispatcher === null) {
  40672. // The React isomorphic package does not include a default dispatcher.
  40673. // Instead the first renderer will lazily attach one, in order to give
  40674. // nicer error messages.
  40675. return ContextOnlyDispatcher;
  40676. } else {
  40677. return prevDispatcher;
  40678. }
  40679. }
  40680. function popDispatcher(prevDispatcher) {
  40681. ReactCurrentDispatcher$1.current = prevDispatcher;
  40682. }
  40683. function pushInteractions(root) {
  40684. {
  40685. var prevInteractions = tracing.__interactionsRef.current;
  40686. tracing.__interactionsRef.current = root.memoizedInteractions;
  40687. return prevInteractions;
  40688. }
  40689. }
  40690. function popInteractions(prevInteractions) {
  40691. {
  40692. tracing.__interactionsRef.current = prevInteractions;
  40693. }
  40694. }
  40695. function markCommitTimeOfFallback() {
  40696. globalMostRecentFallbackTime = now();
  40697. }
  40698. function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
  40699. if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Idle) {
  40700. workInProgressRootLatestProcessedExpirationTime = expirationTime;
  40701. }
  40702. if (suspenseConfig !== null) {
  40703. if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Idle) {
  40704. workInProgressRootLatestSuspenseTimeout = expirationTime; // Most of the time we only have one config and getting wrong is not bad.
  40705. workInProgressRootCanSuspendUsingConfig = suspenseConfig;
  40706. }
  40707. }
  40708. }
  40709. function markUnprocessedUpdateTime(expirationTime) {
  40710. if (expirationTime > workInProgressRootNextUnprocessedUpdateTime) {
  40711. workInProgressRootNextUnprocessedUpdateTime = expirationTime;
  40712. }
  40713. }
  40714. function renderDidSuspend() {
  40715. if (workInProgressRootExitStatus === RootIncomplete) {
  40716. workInProgressRootExitStatus = RootSuspended;
  40717. }
  40718. }
  40719. function renderDidSuspendDelayIfPossible() {
  40720. if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
  40721. workInProgressRootExitStatus = RootSuspendedWithDelay;
  40722. } // Check if there's a lower priority update somewhere else in the tree.
  40723. if (workInProgressRootNextUnprocessedUpdateTime !== NoWork && workInProgressRoot !== null) {
  40724. // Mark the current render as suspended, and then mark that there's a
  40725. // pending update.
  40726. // TODO: This should immediately interrupt the current render, instead
  40727. // of waiting until the next time we yield.
  40728. markRootSuspendedAtTime(workInProgressRoot, renderExpirationTime$1);
  40729. markRootUpdatedAtTime(workInProgressRoot, workInProgressRootNextUnprocessedUpdateTime);
  40730. }
  40731. }
  40732. function renderDidError() {
  40733. if (workInProgressRootExitStatus !== RootCompleted) {
  40734. workInProgressRootExitStatus = RootErrored;
  40735. }
  40736. } // Called during render to determine if anything has suspended.
  40737. // Returns false if we're not sure.
  40738. function renderHasNotSuspendedYet() {
  40739. // If something errored or completed, we can't really be sure,
  40740. // so those are false.
  40741. return workInProgressRootExitStatus === RootIncomplete;
  40742. }
  40743. function inferTimeFromExpirationTime(expirationTime) {
  40744. // We don't know exactly when the update was scheduled, but we can infer an
  40745. // approximate start time from the expiration time.
  40746. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  40747. return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  40748. }
  40749. function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
  40750. // We don't know exactly when the update was scheduled, but we can infer an
  40751. // approximate start time from the expiration time by subtracting the timeout
  40752. // that was added to the event time.
  40753. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  40754. return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  40755. } // The work loop is an extremely hot path. Tell Closure not to inline it.
  40756. /** @noinline */
  40757. function workLoopSync() {
  40758. // Already timed out, so perform work without checking if we need to yield.
  40759. while (workInProgress !== null) {
  40760. workInProgress = performUnitOfWork(workInProgress);
  40761. }
  40762. }
  40763. /** @noinline */
  40764. function workLoopConcurrent() {
  40765. // Perform work until Scheduler asks us to yield
  40766. while (workInProgress !== null && !shouldYield()) {
  40767. workInProgress = performUnitOfWork(workInProgress);
  40768. }
  40769. }
  40770. function performUnitOfWork(unitOfWork) {
  40771. // The current, flushed, state of this fiber is the alternate. Ideally
  40772. // nothing should rely on this, but relying on it here means that we don't
  40773. // need an additional field on the work in progress.
  40774. var current = unitOfWork.alternate;
  40775. startWorkTimer(unitOfWork);
  40776. setCurrentFiber(unitOfWork);
  40777. var next;
  40778. if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
  40779. startProfilerTimer(unitOfWork);
  40780. next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
  40781. stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  40782. } else {
  40783. next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
  40784. }
  40785. resetCurrentFiber();
  40786. unitOfWork.memoizedProps = unitOfWork.pendingProps;
  40787. if (next === null) {
  40788. // If this doesn't spawn new work, complete the current work.
  40789. next = completeUnitOfWork(unitOfWork);
  40790. }
  40791. ReactCurrentOwner$2.current = null;
  40792. return next;
  40793. }
  40794. function completeUnitOfWork(unitOfWork) {
  40795. // Attempt to complete the current unit of work, then move to the next
  40796. // sibling. If there are no more siblings, return to the parent fiber.
  40797. workInProgress = unitOfWork;
  40798. do {
  40799. // The current, flushed, state of this fiber is the alternate. Ideally
  40800. // nothing should rely on this, but relying on it here means that we don't
  40801. // need an additional field on the work in progress.
  40802. var current = workInProgress.alternate;
  40803. var returnFiber = workInProgress.return; // Check if the work completed or if something threw.
  40804. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  40805. setCurrentFiber(workInProgress);
  40806. var next = void 0;
  40807. if ( (workInProgress.mode & ProfileMode) === NoMode) {
  40808. next = completeWork(current, workInProgress, renderExpirationTime$1);
  40809. } else {
  40810. startProfilerTimer(workInProgress);
  40811. next = completeWork(current, workInProgress, renderExpirationTime$1); // Update render duration assuming we didn't error.
  40812. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  40813. }
  40814. stopWorkTimer(workInProgress);
  40815. resetCurrentFiber();
  40816. resetChildExpirationTime(workInProgress);
  40817. if (next !== null) {
  40818. // Completing this fiber spawned new work. Work on that next.
  40819. return next;
  40820. }
  40821. if (returnFiber !== null && // Do not append effects to parents if a sibling failed to complete
  40822. (returnFiber.effectTag & Incomplete) === NoEffect) {
  40823. // Append all the effects of the subtree and this fiber onto the effect
  40824. // list of the parent. The completion order of the children affects the
  40825. // side-effect order.
  40826. if (returnFiber.firstEffect === null) {
  40827. returnFiber.firstEffect = workInProgress.firstEffect;
  40828. }
  40829. if (workInProgress.lastEffect !== null) {
  40830. if (returnFiber.lastEffect !== null) {
  40831. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  40832. }
  40833. returnFiber.lastEffect = workInProgress.lastEffect;
  40834. } // If this fiber had side-effects, we append it AFTER the children's
  40835. // side-effects. We can perform certain side-effects earlier if needed,
  40836. // by doing multiple passes over the effect list. We don't want to
  40837. // schedule our own side-effect on our own list because if end up
  40838. // reusing children we'll schedule this effect onto itself since we're
  40839. // at the end.
  40840. var effectTag = workInProgress.effectTag; // Skip both NoWork and PerformedWork tags when creating the effect
  40841. // list. PerformedWork effect is read by React DevTools but shouldn't be
  40842. // committed.
  40843. if (effectTag > PerformedWork) {
  40844. if (returnFiber.lastEffect !== null) {
  40845. returnFiber.lastEffect.nextEffect = workInProgress;
  40846. } else {
  40847. returnFiber.firstEffect = workInProgress;
  40848. }
  40849. returnFiber.lastEffect = workInProgress;
  40850. }
  40851. }
  40852. } else {
  40853. // This fiber did not complete because something threw. Pop values off
  40854. // the stack without entering the complete phase. If this is a boundary,
  40855. // capture values if possible.
  40856. var _next = unwindWork(workInProgress); // Because this fiber did not complete, don't reset its expiration time.
  40857. if ( (workInProgress.mode & ProfileMode) !== NoMode) {
  40858. // Record the render duration for the fiber that errored.
  40859. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false); // Include the time spent working on failed children before continuing.
  40860. var actualDuration = workInProgress.actualDuration;
  40861. var child = workInProgress.child;
  40862. while (child !== null) {
  40863. actualDuration += child.actualDuration;
  40864. child = child.sibling;
  40865. }
  40866. workInProgress.actualDuration = actualDuration;
  40867. }
  40868. if (_next !== null) {
  40869. // If completing this work spawned new work, do that next. We'll come
  40870. // back here again.
  40871. // Since we're restarting, remove anything that is not a host effect
  40872. // from the effect tag.
  40873. // TODO: The name stopFailedWorkTimer is misleading because Suspense
  40874. // also captures and restarts.
  40875. stopFailedWorkTimer(workInProgress);
  40876. _next.effectTag &= HostEffectMask;
  40877. return _next;
  40878. }
  40879. stopWorkTimer(workInProgress);
  40880. if (returnFiber !== null) {
  40881. // Mark the parent fiber as incomplete and clear its effect list.
  40882. returnFiber.firstEffect = returnFiber.lastEffect = null;
  40883. returnFiber.effectTag |= Incomplete;
  40884. }
  40885. }
  40886. var siblingFiber = workInProgress.sibling;
  40887. if (siblingFiber !== null) {
  40888. // If there is more work to do in this returnFiber, do that next.
  40889. return siblingFiber;
  40890. } // Otherwise, return to the parent
  40891. workInProgress = returnFiber;
  40892. } while (workInProgress !== null); // We've reached the root.
  40893. if (workInProgressRootExitStatus === RootIncomplete) {
  40894. workInProgressRootExitStatus = RootCompleted;
  40895. }
  40896. return null;
  40897. }
  40898. function getRemainingExpirationTime(fiber) {
  40899. var updateExpirationTime = fiber.expirationTime;
  40900. var childExpirationTime = fiber.childExpirationTime;
  40901. return updateExpirationTime > childExpirationTime ? updateExpirationTime : childExpirationTime;
  40902. }
  40903. function resetChildExpirationTime(completedWork) {
  40904. if (renderExpirationTime$1 !== Never && completedWork.childExpirationTime === Never) {
  40905. // The children of this component are hidden. Don't bubble their
  40906. // expiration times.
  40907. return;
  40908. }
  40909. var newChildExpirationTime = NoWork; // Bubble up the earliest expiration time.
  40910. if ( (completedWork.mode & ProfileMode) !== NoMode) {
  40911. // In profiling mode, resetChildExpirationTime is also used to reset
  40912. // profiler durations.
  40913. var actualDuration = completedWork.actualDuration;
  40914. var treeBaseDuration = completedWork.selfBaseDuration; // When a fiber is cloned, its actualDuration is reset to 0. This value will
  40915. // only be updated if work is done on the fiber (i.e. it doesn't bailout).
  40916. // When work is done, it should bubble to the parent's actualDuration. If
  40917. // the fiber has not been cloned though, (meaning no work was done), then
  40918. // this value will reflect the amount of time spent working on a previous
  40919. // render. In that case it should not bubble. We determine whether it was
  40920. // cloned by comparing the child pointer.
  40921. var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
  40922. var child = completedWork.child;
  40923. while (child !== null) {
  40924. var childUpdateExpirationTime = child.expirationTime;
  40925. var childChildExpirationTime = child.childExpirationTime;
  40926. if (childUpdateExpirationTime > newChildExpirationTime) {
  40927. newChildExpirationTime = childUpdateExpirationTime;
  40928. }
  40929. if (childChildExpirationTime > newChildExpirationTime) {
  40930. newChildExpirationTime = childChildExpirationTime;
  40931. }
  40932. if (shouldBubbleActualDurations) {
  40933. actualDuration += child.actualDuration;
  40934. }
  40935. treeBaseDuration += child.treeBaseDuration;
  40936. child = child.sibling;
  40937. }
  40938. completedWork.actualDuration = actualDuration;
  40939. completedWork.treeBaseDuration = treeBaseDuration;
  40940. } else {
  40941. var _child = completedWork.child;
  40942. while (_child !== null) {
  40943. var _childUpdateExpirationTime = _child.expirationTime;
  40944. var _childChildExpirationTime = _child.childExpirationTime;
  40945. if (_childUpdateExpirationTime > newChildExpirationTime) {
  40946. newChildExpirationTime = _childUpdateExpirationTime;
  40947. }
  40948. if (_childChildExpirationTime > newChildExpirationTime) {
  40949. newChildExpirationTime = _childChildExpirationTime;
  40950. }
  40951. _child = _child.sibling;
  40952. }
  40953. }
  40954. completedWork.childExpirationTime = newChildExpirationTime;
  40955. }
  40956. function commitRoot(root) {
  40957. var renderPriorityLevel = getCurrentPriorityLevel();
  40958. runWithPriority$1(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
  40959. return null;
  40960. }
  40961. function commitRootImpl(root, renderPriorityLevel) {
  40962. do {
  40963. // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
  40964. // means `flushPassiveEffects` will sometimes result in additional
  40965. // passive effects. So we need to keep flushing in a loop until there are
  40966. // no more pending effects.
  40967. // TODO: Might be better if `flushPassiveEffects` did not automatically
  40968. // flush synchronous work at the end, to avoid factoring hazards like this.
  40969. flushPassiveEffects();
  40970. } while (rootWithPendingPassiveEffects !== null);
  40971. flushRenderPhaseStrictModeWarningsInDEV();
  40972. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  40973. {
  40974. throw Error( "Should not already be working." );
  40975. }
  40976. }
  40977. var finishedWork = root.finishedWork;
  40978. var expirationTime = root.finishedExpirationTime;
  40979. if (finishedWork === null) {
  40980. return null;
  40981. }
  40982. root.finishedWork = null;
  40983. root.finishedExpirationTime = NoWork;
  40984. if (!(finishedWork !== root.current)) {
  40985. {
  40986. throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." );
  40987. }
  40988. } // commitRoot never returns a continuation; it always finishes synchronously.
  40989. // So we can clear these now to allow a new callback to be scheduled.
  40990. root.callbackNode = null;
  40991. root.callbackExpirationTime = NoWork;
  40992. root.callbackPriority = NoPriority;
  40993. root.nextKnownPendingLevel = NoWork;
  40994. startCommitTimer(); // Update the first and last pending times on this root. The new first
  40995. // pending time is whatever is left on the root fiber.
  40996. var remainingExpirationTimeBeforeCommit = getRemainingExpirationTime(finishedWork);
  40997. markRootFinishedAtTime(root, expirationTime, remainingExpirationTimeBeforeCommit);
  40998. if (root === workInProgressRoot) {
  40999. // We can reset these now that they are finished.
  41000. workInProgressRoot = null;
  41001. workInProgress = null;
  41002. renderExpirationTime$1 = NoWork;
  41003. } // This indicates that the last root we worked on is not the same one that
  41004. // we're committing now. This most commonly happens when a suspended root
  41005. // times out.
  41006. // Get the list of effects.
  41007. var firstEffect;
  41008. if (finishedWork.effectTag > PerformedWork) {
  41009. // A fiber's effect list consists only of its children, not itself. So if
  41010. // the root has an effect, we need to add it to the end of the list. The
  41011. // resulting list is the set that would belong to the root's parent, if it
  41012. // had one; that is, all the effects in the tree including the root.
  41013. if (finishedWork.lastEffect !== null) {
  41014. finishedWork.lastEffect.nextEffect = finishedWork;
  41015. firstEffect = finishedWork.firstEffect;
  41016. } else {
  41017. firstEffect = finishedWork;
  41018. }
  41019. } else {
  41020. // There is no effect on the root.
  41021. firstEffect = finishedWork.firstEffect;
  41022. }
  41023. if (firstEffect !== null) {
  41024. var prevExecutionContext = executionContext;
  41025. executionContext |= CommitContext;
  41026. var prevInteractions = pushInteractions(root); // Reset this to null before calling lifecycles
  41027. ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
  41028. // of the effect list for each phase: all mutation effects come before all
  41029. // layout effects, and so on.
  41030. // The first phase a "before mutation" phase. We use this phase to read the
  41031. // state of the host tree right before we mutate it. This is where
  41032. // getSnapshotBeforeUpdate is called.
  41033. startCommitSnapshotEffectsTimer();
  41034. prepareForCommit(root.containerInfo);
  41035. nextEffect = firstEffect;
  41036. do {
  41037. {
  41038. invokeGuardedCallback(null, commitBeforeMutationEffects, null);
  41039. if (hasCaughtError()) {
  41040. if (!(nextEffect !== null)) {
  41041. {
  41042. throw Error( "Should be working on an effect." );
  41043. }
  41044. }
  41045. var error = clearCaughtError();
  41046. captureCommitPhaseError(nextEffect, error);
  41047. nextEffect = nextEffect.nextEffect;
  41048. }
  41049. }
  41050. } while (nextEffect !== null);
  41051. stopCommitSnapshotEffectsTimer();
  41052. {
  41053. // Mark the current commit time to be shared by all Profilers in this
  41054. // batch. This enables them to be grouped later.
  41055. recordCommitTime();
  41056. } // The next phase is the mutation phase, where we mutate the host tree.
  41057. startCommitHostEffectsTimer();
  41058. nextEffect = firstEffect;
  41059. do {
  41060. {
  41061. invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel);
  41062. if (hasCaughtError()) {
  41063. if (!(nextEffect !== null)) {
  41064. {
  41065. throw Error( "Should be working on an effect." );
  41066. }
  41067. }
  41068. var _error = clearCaughtError();
  41069. captureCommitPhaseError(nextEffect, _error);
  41070. nextEffect = nextEffect.nextEffect;
  41071. }
  41072. }
  41073. } while (nextEffect !== null);
  41074. stopCommitHostEffectsTimer();
  41075. resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
  41076. // the mutation phase, so that the previous tree is still current during
  41077. // componentWillUnmount, but before the layout phase, so that the finished
  41078. // work is current during componentDidMount/Update.
  41079. root.current = finishedWork; // The next phase is the layout phase, where we call effects that read
  41080. // the host tree after it's been mutated. The idiomatic use case for this is
  41081. // layout, but class component lifecycles also fire here for legacy reasons.
  41082. startCommitLifeCyclesTimer();
  41083. nextEffect = firstEffect;
  41084. do {
  41085. {
  41086. invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);
  41087. if (hasCaughtError()) {
  41088. if (!(nextEffect !== null)) {
  41089. {
  41090. throw Error( "Should be working on an effect." );
  41091. }
  41092. }
  41093. var _error2 = clearCaughtError();
  41094. captureCommitPhaseError(nextEffect, _error2);
  41095. nextEffect = nextEffect.nextEffect;
  41096. }
  41097. }
  41098. } while (nextEffect !== null);
  41099. stopCommitLifeCyclesTimer();
  41100. nextEffect = null; // Tell Scheduler to yield at the end of the frame, so the browser has an
  41101. // opportunity to paint.
  41102. requestPaint();
  41103. {
  41104. popInteractions(prevInteractions);
  41105. }
  41106. executionContext = prevExecutionContext;
  41107. } else {
  41108. // No effects.
  41109. root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
  41110. // no effects.
  41111. // TODO: Maybe there's a better way to report this.
  41112. startCommitSnapshotEffectsTimer();
  41113. stopCommitSnapshotEffectsTimer();
  41114. {
  41115. recordCommitTime();
  41116. }
  41117. startCommitHostEffectsTimer();
  41118. stopCommitHostEffectsTimer();
  41119. startCommitLifeCyclesTimer();
  41120. stopCommitLifeCyclesTimer();
  41121. }
  41122. stopCommitTimer();
  41123. var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
  41124. if (rootDoesHavePassiveEffects) {
  41125. // This commit has passive effects. Stash a reference to them. But don't
  41126. // schedule a callback until after flushing layout work.
  41127. rootDoesHavePassiveEffects = false;
  41128. rootWithPendingPassiveEffects = root;
  41129. pendingPassiveEffectsExpirationTime = expirationTime;
  41130. pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  41131. } else {
  41132. // We are done with the effect chain at this point so let's clear the
  41133. // nextEffect pointers to assist with GC. If we have passive effects, we'll
  41134. // clear this in flushPassiveEffects.
  41135. nextEffect = firstEffect;
  41136. while (nextEffect !== null) {
  41137. var nextNextEffect = nextEffect.nextEffect;
  41138. nextEffect.nextEffect = null;
  41139. nextEffect = nextNextEffect;
  41140. }
  41141. } // Check if there's remaining work on this root
  41142. var remainingExpirationTime = root.firstPendingTime;
  41143. if (remainingExpirationTime !== NoWork) {
  41144. {
  41145. if (spawnedWorkDuringRender !== null) {
  41146. var expirationTimes = spawnedWorkDuringRender;
  41147. spawnedWorkDuringRender = null;
  41148. for (var i = 0; i < expirationTimes.length; i++) {
  41149. scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
  41150. }
  41151. }
  41152. schedulePendingInteractions(root, remainingExpirationTime);
  41153. }
  41154. } else {
  41155. // If there's no remaining work, we can clear the set of already failed
  41156. // error boundaries.
  41157. legacyErrorBoundariesThatAlreadyFailed = null;
  41158. }
  41159. {
  41160. if (!rootDidHavePassiveEffects) {
  41161. // If there are no passive effects, then we can complete the pending interactions.
  41162. // Otherwise, we'll wait until after the passive effects are flushed.
  41163. // Wait to do this until after remaining work has been scheduled,
  41164. // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
  41165. finishPendingInteractions(root, expirationTime);
  41166. }
  41167. }
  41168. if (remainingExpirationTime === Sync) {
  41169. // Count the number of times the root synchronously re-renders without
  41170. // finishing. If there are too many, it indicates an infinite update loop.
  41171. if (root === rootWithNestedUpdates) {
  41172. nestedUpdateCount++;
  41173. } else {
  41174. nestedUpdateCount = 0;
  41175. rootWithNestedUpdates = root;
  41176. }
  41177. } else {
  41178. nestedUpdateCount = 0;
  41179. }
  41180. onCommitRoot(finishedWork.stateNode, expirationTime); // Always call this before exiting `commitRoot`, to ensure that any
  41181. // additional work on this root is scheduled.
  41182. ensureRootIsScheduled(root);
  41183. if (hasUncaughtError) {
  41184. hasUncaughtError = false;
  41185. var _error3 = firstUncaughtError;
  41186. firstUncaughtError = null;
  41187. throw _error3;
  41188. }
  41189. if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
  41190. // This is a legacy edge case. We just committed the initial mount of
  41191. // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
  41192. // synchronously, but layout updates should be deferred until the end
  41193. // of the batch.
  41194. return null;
  41195. } // If layout work was scheduled, flush it now.
  41196. flushSyncCallbackQueue();
  41197. return null;
  41198. }
  41199. function commitBeforeMutationEffects() {
  41200. while (nextEffect !== null) {
  41201. var effectTag = nextEffect.effectTag;
  41202. if ((effectTag & Snapshot) !== NoEffect) {
  41203. setCurrentFiber(nextEffect);
  41204. recordEffect();
  41205. var current = nextEffect.alternate;
  41206. commitBeforeMutationLifeCycles(current, nextEffect);
  41207. resetCurrentFiber();
  41208. }
  41209. if ((effectTag & Passive) !== NoEffect) {
  41210. // If there are passive effects, schedule a callback to flush at
  41211. // the earliest opportunity.
  41212. if (!rootDoesHavePassiveEffects) {
  41213. rootDoesHavePassiveEffects = true;
  41214. scheduleCallback(NormalPriority, function () {
  41215. flushPassiveEffects();
  41216. return null;
  41217. });
  41218. }
  41219. }
  41220. nextEffect = nextEffect.nextEffect;
  41221. }
  41222. }
  41223. function commitMutationEffects(root, renderPriorityLevel) {
  41224. // TODO: Should probably move the bulk of this function to commitWork.
  41225. while (nextEffect !== null) {
  41226. setCurrentFiber(nextEffect);
  41227. var effectTag = nextEffect.effectTag;
  41228. if (effectTag & ContentReset) {
  41229. commitResetTextContent(nextEffect);
  41230. }
  41231. if (effectTag & Ref) {
  41232. var current = nextEffect.alternate;
  41233. if (current !== null) {
  41234. commitDetachRef(current);
  41235. }
  41236. } // The following switch statement is only concerned about placement,
  41237. // updates, and deletions. To avoid needing to add a case for every possible
  41238. // bitmap value, we remove the secondary effects from the effect tag and
  41239. // switch on that value.
  41240. var primaryEffectTag = effectTag & (Placement | Update | Deletion | Hydrating);
  41241. switch (primaryEffectTag) {
  41242. case Placement:
  41243. {
  41244. commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
  41245. // inserted, before any life-cycles like componentDidMount gets called.
  41246. // TODO: findDOMNode doesn't rely on this any more but isMounted does
  41247. // and isMounted is deprecated anyway so we should be able to kill this.
  41248. nextEffect.effectTag &= ~Placement;
  41249. break;
  41250. }
  41251. case PlacementAndUpdate:
  41252. {
  41253. // Placement
  41254. commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
  41255. // inserted, before any life-cycles like componentDidMount gets called.
  41256. nextEffect.effectTag &= ~Placement; // Update
  41257. var _current = nextEffect.alternate;
  41258. commitWork(_current, nextEffect);
  41259. break;
  41260. }
  41261. case Hydrating:
  41262. {
  41263. nextEffect.effectTag &= ~Hydrating;
  41264. break;
  41265. }
  41266. case HydratingAndUpdate:
  41267. {
  41268. nextEffect.effectTag &= ~Hydrating; // Update
  41269. var _current2 = nextEffect.alternate;
  41270. commitWork(_current2, nextEffect);
  41271. break;
  41272. }
  41273. case Update:
  41274. {
  41275. var _current3 = nextEffect.alternate;
  41276. commitWork(_current3, nextEffect);
  41277. break;
  41278. }
  41279. case Deletion:
  41280. {
  41281. commitDeletion(root, nextEffect, renderPriorityLevel);
  41282. break;
  41283. }
  41284. } // TODO: Only record a mutation effect if primaryEffectTag is non-zero.
  41285. recordEffect();
  41286. resetCurrentFiber();
  41287. nextEffect = nextEffect.nextEffect;
  41288. }
  41289. }
  41290. function commitLayoutEffects(root, committedExpirationTime) {
  41291. // TODO: Should probably move the bulk of this function to commitWork.
  41292. while (nextEffect !== null) {
  41293. setCurrentFiber(nextEffect);
  41294. var effectTag = nextEffect.effectTag;
  41295. if (effectTag & (Update | Callback)) {
  41296. recordEffect();
  41297. var current = nextEffect.alternate;
  41298. commitLifeCycles(root, current, nextEffect);
  41299. }
  41300. if (effectTag & Ref) {
  41301. recordEffect();
  41302. commitAttachRef(nextEffect);
  41303. }
  41304. resetCurrentFiber();
  41305. nextEffect = nextEffect.nextEffect;
  41306. }
  41307. }
  41308. function flushPassiveEffects() {
  41309. if (pendingPassiveEffectsRenderPriority !== NoPriority) {
  41310. var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority ? NormalPriority : pendingPassiveEffectsRenderPriority;
  41311. pendingPassiveEffectsRenderPriority = NoPriority;
  41312. return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
  41313. }
  41314. }
  41315. function flushPassiveEffectsImpl() {
  41316. if (rootWithPendingPassiveEffects === null) {
  41317. return false;
  41318. }
  41319. var root = rootWithPendingPassiveEffects;
  41320. var expirationTime = pendingPassiveEffectsExpirationTime;
  41321. rootWithPendingPassiveEffects = null;
  41322. pendingPassiveEffectsExpirationTime = NoWork;
  41323. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  41324. {
  41325. throw Error( "Cannot flush passive effects while already rendering." );
  41326. }
  41327. }
  41328. var prevExecutionContext = executionContext;
  41329. executionContext |= CommitContext;
  41330. var prevInteractions = pushInteractions(root);
  41331. {
  41332. // Note: This currently assumes there are no passive effects on the root fiber
  41333. // because the root is not part of its own effect list.
  41334. // This could change in the future.
  41335. var _effect2 = root.current.firstEffect;
  41336. while (_effect2 !== null) {
  41337. {
  41338. setCurrentFiber(_effect2);
  41339. invokeGuardedCallback(null, commitPassiveHookEffects, null, _effect2);
  41340. if (hasCaughtError()) {
  41341. if (!(_effect2 !== null)) {
  41342. {
  41343. throw Error( "Should be working on an effect." );
  41344. }
  41345. }
  41346. var _error5 = clearCaughtError();
  41347. captureCommitPhaseError(_effect2, _error5);
  41348. }
  41349. resetCurrentFiber();
  41350. }
  41351. var nextNextEffect = _effect2.nextEffect; // Remove nextEffect pointer to assist GC
  41352. _effect2.nextEffect = null;
  41353. _effect2 = nextNextEffect;
  41354. }
  41355. }
  41356. {
  41357. popInteractions(prevInteractions);
  41358. finishPendingInteractions(root, expirationTime);
  41359. }
  41360. executionContext = prevExecutionContext;
  41361. flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this
  41362. // exceeds the limit, we'll fire a warning.
  41363. nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  41364. return true;
  41365. }
  41366. function isAlreadyFailedLegacyErrorBoundary(instance) {
  41367. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  41368. }
  41369. function markLegacyErrorBoundaryAsFailed(instance) {
  41370. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  41371. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  41372. } else {
  41373. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  41374. }
  41375. }
  41376. function prepareToThrowUncaughtError(error) {
  41377. if (!hasUncaughtError) {
  41378. hasUncaughtError = true;
  41379. firstUncaughtError = error;
  41380. }
  41381. }
  41382. var onUncaughtError = prepareToThrowUncaughtError;
  41383. function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  41384. var errorInfo = createCapturedValue(error, sourceFiber);
  41385. var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
  41386. enqueueUpdate(rootFiber, update);
  41387. var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);
  41388. if (root !== null) {
  41389. ensureRootIsScheduled(root);
  41390. schedulePendingInteractions(root, Sync);
  41391. }
  41392. }
  41393. function captureCommitPhaseError(sourceFiber, error) {
  41394. if (sourceFiber.tag === HostRoot) {
  41395. // Error was thrown at the root. There is no parent, so the root
  41396. // itself should capture it.
  41397. captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
  41398. return;
  41399. }
  41400. var fiber = sourceFiber.return;
  41401. while (fiber !== null) {
  41402. if (fiber.tag === HostRoot) {
  41403. captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
  41404. return;
  41405. } else if (fiber.tag === ClassComponent) {
  41406. var ctor = fiber.type;
  41407. var instance = fiber.stateNode;
  41408. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  41409. var errorInfo = createCapturedValue(error, sourceFiber);
  41410. var update = createClassErrorUpdate(fiber, errorInfo, // TODO: This is always sync
  41411. Sync);
  41412. enqueueUpdate(fiber, update);
  41413. var root = markUpdateTimeFromFiberToRoot(fiber, Sync);
  41414. if (root !== null) {
  41415. ensureRootIsScheduled(root);
  41416. schedulePendingInteractions(root, Sync);
  41417. }
  41418. return;
  41419. }
  41420. }
  41421. fiber = fiber.return;
  41422. }
  41423. }
  41424. function pingSuspendedRoot(root, thenable, suspendedTime) {
  41425. var pingCache = root.pingCache;
  41426. if (pingCache !== null) {
  41427. // The thenable resolved, so we no longer need to memoize, because it will
  41428. // never be thrown again.
  41429. pingCache.delete(thenable);
  41430. }
  41431. if (workInProgressRoot === root && renderExpirationTime$1 === suspendedTime) {
  41432. // Received a ping at the same priority level at which we're currently
  41433. // rendering. We might want to restart this render. This should mirror
  41434. // the logic of whether or not a root suspends once it completes.
  41435. // TODO: If we're rendering sync either due to Sync, Batched or expired,
  41436. // we should probably never restart.
  41437. // If we're suspended with delay, we'll always suspend so we can always
  41438. // restart. If we're suspended without any updates, it might be a retry.
  41439. // If it's early in the retry we can restart. We can't know for sure
  41440. // whether we'll eventually process an update during this render pass,
  41441. // but it's somewhat unlikely that we get to a ping before that, since
  41442. // getting to the root most update is usually very fast.
  41443. if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
  41444. // Restart from the root. Don't need to schedule a ping because
  41445. // we're already working on this tree.
  41446. prepareFreshStack(root, renderExpirationTime$1);
  41447. } else {
  41448. // Even though we can't restart right now, we might get an
  41449. // opportunity later. So we mark this render as having a ping.
  41450. workInProgressRootHasPendingPing = true;
  41451. }
  41452. return;
  41453. }
  41454. if (!isRootSuspendedAtTime(root, suspendedTime)) {
  41455. // The root is no longer suspended at this time.
  41456. return;
  41457. }
  41458. var lastPingedTime = root.lastPingedTime;
  41459. if (lastPingedTime !== NoWork && lastPingedTime < suspendedTime) {
  41460. // There's already a lower priority ping scheduled.
  41461. return;
  41462. } // Mark the time at which this ping was scheduled.
  41463. root.lastPingedTime = suspendedTime;
  41464. ensureRootIsScheduled(root);
  41465. schedulePendingInteractions(root, suspendedTime);
  41466. }
  41467. function retryTimedOutBoundary(boundaryFiber, retryTime) {
  41468. // The boundary fiber (a Suspense component or SuspenseList component)
  41469. // previously was rendered in its fallback state. One of the promises that
  41470. // suspended it has resolved, which means at least part of the tree was
  41471. // likely unblocked. Try rendering again, at a new expiration time.
  41472. if (retryTime === NoWork) {
  41473. var suspenseConfig = null; // Retries don't carry over the already committed update.
  41474. var currentTime = requestCurrentTimeForUpdate();
  41475. retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
  41476. } // TODO: Special case idle priority?
  41477. var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
  41478. if (root !== null) {
  41479. ensureRootIsScheduled(root);
  41480. schedulePendingInteractions(root, retryTime);
  41481. }
  41482. }
  41483. function resolveRetryThenable(boundaryFiber, thenable) {
  41484. var retryTime = NoWork; // Default
  41485. var retryCache;
  41486. {
  41487. retryCache = boundaryFiber.stateNode;
  41488. }
  41489. if (retryCache !== null) {
  41490. // The thenable resolved, so we no longer need to memoize, because it will
  41491. // never be thrown again.
  41492. retryCache.delete(thenable);
  41493. }
  41494. retryTimedOutBoundary(boundaryFiber, retryTime);
  41495. } // Computes the next Just Noticeable Difference (JND) boundary.
  41496. // The theory is that a person can't tell the difference between small differences in time.
  41497. // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
  41498. // difference in the experience. However, waiting for longer might mean that we can avoid
  41499. // showing an intermediate loading state. The longer we have already waited, the harder it
  41500. // is to tell small differences in time. Therefore, the longer we've already waited,
  41501. // the longer we can wait additionally. At some point we have to give up though.
  41502. // We pick a train model where the next boundary commits at a consistent schedule.
  41503. // These particular numbers are vague estimates. We expect to adjust them based on research.
  41504. function jnd(timeElapsed) {
  41505. return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
  41506. }
  41507. function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
  41508. var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;
  41509. if (busyMinDurationMs <= 0) {
  41510. return 0;
  41511. }
  41512. var busyDelayMs = suspenseConfig.busyDelayMs | 0; // Compute the time until this render pass would expire.
  41513. var currentTimeMs = now();
  41514. var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
  41515. var timeElapsed = currentTimeMs - eventTimeMs;
  41516. if (timeElapsed <= busyDelayMs) {
  41517. // If we haven't yet waited longer than the initial delay, we don't
  41518. // have to wait any additional time.
  41519. return 0;
  41520. }
  41521. var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed; // This is the value that is passed to `setTimeout`.
  41522. return msUntilTimeout;
  41523. }
  41524. function checkForNestedUpdates() {
  41525. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  41526. nestedUpdateCount = 0;
  41527. rootWithNestedUpdates = null;
  41528. {
  41529. {
  41530. throw 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." );
  41531. }
  41532. }
  41533. }
  41534. {
  41535. if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
  41536. nestedPassiveUpdateCount = 0;
  41537. error('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.');
  41538. }
  41539. }
  41540. }
  41541. function flushRenderPhaseStrictModeWarningsInDEV() {
  41542. {
  41543. ReactStrictModeWarnings.flushLegacyContextWarning();
  41544. {
  41545. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  41546. }
  41547. }
  41548. }
  41549. function stopFinishedWorkLoopTimer() {
  41550. var didCompleteRoot = true;
  41551. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  41552. interruptedBy = null;
  41553. }
  41554. function stopInterruptedWorkLoopTimer() {
  41555. // TODO: Track which fiber caused the interruption.
  41556. var didCompleteRoot = false;
  41557. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  41558. interruptedBy = null;
  41559. }
  41560. function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
  41561. if ( workInProgressRoot !== null && updateExpirationTime > renderExpirationTime$1) {
  41562. interruptedBy = fiberThatReceivedUpdate;
  41563. }
  41564. }
  41565. var didWarnStateUpdateForUnmountedComponent = null;
  41566. function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  41567. {
  41568. var tag = fiber.tag;
  41569. if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
  41570. // Only warn for user-defined components, not internal ones like Suspense.
  41571. return;
  41572. }
  41573. // the problematic code almost always lies inside that component.
  41574. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  41575. if (didWarnStateUpdateForUnmountedComponent !== null) {
  41576. if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
  41577. return;
  41578. }
  41579. didWarnStateUpdateForUnmountedComponent.add(componentName);
  41580. } else {
  41581. didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
  41582. }
  41583. error("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));
  41584. }
  41585. }
  41586. var beginWork$1;
  41587. {
  41588. var dummyFiber = null;
  41589. beginWork$1 = function (current, unitOfWork, expirationTime) {
  41590. // If a component throws an error, we replay it again in a synchronously
  41591. // dispatched event, so that the debugger will treat it as an uncaught
  41592. // error See ReactErrorUtils for more information.
  41593. // Before entering the begin phase, copy the work-in-progress onto a dummy
  41594. // fiber. If beginWork throws, we'll use this to reset the state.
  41595. var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
  41596. try {
  41597. return beginWork(current, unitOfWork, expirationTime);
  41598. } catch (originalError) {
  41599. if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
  41600. // Don't replay promises. Treat everything else like an error.
  41601. throw originalError;
  41602. } // Keep this code in sync with handleError; any changes here must have
  41603. // corresponding changes there.
  41604. resetContextDependencies();
  41605. resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
  41606. // same fiber again.
  41607. // Unwind the failed stack frame
  41608. unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber.
  41609. assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
  41610. if ( unitOfWork.mode & ProfileMode) {
  41611. // Reset the profiler timer.
  41612. startProfilerTimer(unitOfWork);
  41613. } // Run beginWork again.
  41614. invokeGuardedCallback(null, beginWork, null, current, unitOfWork, expirationTime);
  41615. if (hasCaughtError()) {
  41616. var replayError = clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
  41617. // Rethrow this error instead of the original one.
  41618. throw replayError;
  41619. } else {
  41620. // This branch is reachable if the render phase is impure.
  41621. throw originalError;
  41622. }
  41623. }
  41624. };
  41625. }
  41626. var didWarnAboutUpdateInRender = false;
  41627. var didWarnAboutUpdateInRenderForAnotherComponent;
  41628. {
  41629. didWarnAboutUpdateInRenderForAnotherComponent = new Set();
  41630. }
  41631. function warnAboutRenderPhaseUpdatesInDEV(fiber) {
  41632. {
  41633. if (isRendering && (executionContext & RenderContext) !== NoContext) {
  41634. switch (fiber.tag) {
  41635. case FunctionComponent:
  41636. case ForwardRef:
  41637. case SimpleMemoComponent:
  41638. {
  41639. var renderingComponentName = workInProgress && getComponentName(workInProgress.type) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.
  41640. var dedupeKey = renderingComponentName;
  41641. if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
  41642. didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
  41643. var setStateComponentName = getComponentName(fiber.type) || 'Unknown';
  41644. error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://fb.me/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);
  41645. }
  41646. break;
  41647. }
  41648. case ClassComponent:
  41649. {
  41650. if (!didWarnAboutUpdateInRender) {
  41651. error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');
  41652. didWarnAboutUpdateInRender = true;
  41653. }
  41654. break;
  41655. }
  41656. }
  41657. }
  41658. }
  41659. } // a 'shared' variable that changes when act() opens/closes in tests.
  41660. var IsThisRendererActing = {
  41661. current: false
  41662. };
  41663. function warnIfNotScopedWithMatchingAct(fiber) {
  41664. {
  41665. if ( IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
  41666. error("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));
  41667. }
  41668. }
  41669. }
  41670. function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  41671. {
  41672. if ( (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  41673. error('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));
  41674. }
  41675. }
  41676. }
  41677. function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  41678. {
  41679. if ( executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  41680. error('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));
  41681. }
  41682. }
  41683. }
  41684. var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler.
  41685. var didWarnAboutUnmockedScheduler = false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked
  41686. // scheduler is the actual recommendation. The alternative could be a testing build,
  41687. // a new lib, or whatever; we dunno just yet. This message is for early adopters
  41688. // to get their tests right.
  41689. function warnIfUnmockedScheduler(fiber) {
  41690. {
  41691. if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
  41692. if (fiber.mode & BlockingMode || fiber.mode & ConcurrentMode) {
  41693. didWarnAboutUnmockedScheduler = true;
  41694. error('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');
  41695. }
  41696. }
  41697. }
  41698. }
  41699. function computeThreadID(root, expirationTime) {
  41700. // Interaction threads are unique per root and expiration time.
  41701. return expirationTime * 1000 + root.interactionThreadID;
  41702. }
  41703. function markSpawnedWork(expirationTime) {
  41704. if (spawnedWorkDuringRender === null) {
  41705. spawnedWorkDuringRender = [expirationTime];
  41706. } else {
  41707. spawnedWorkDuringRender.push(expirationTime);
  41708. }
  41709. }
  41710. function scheduleInteractions(root, expirationTime, interactions) {
  41711. if (interactions.size > 0) {
  41712. var pendingInteractionMap = root.pendingInteractionMap;
  41713. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  41714. if (pendingInteractions != null) {
  41715. interactions.forEach(function (interaction) {
  41716. if (!pendingInteractions.has(interaction)) {
  41717. // Update the pending async work count for previously unscheduled interaction.
  41718. interaction.__count++;
  41719. }
  41720. pendingInteractions.add(interaction);
  41721. });
  41722. } else {
  41723. pendingInteractionMap.set(expirationTime, new Set(interactions)); // Update the pending async work count for the current interactions.
  41724. interactions.forEach(function (interaction) {
  41725. interaction.__count++;
  41726. });
  41727. }
  41728. var subscriber = tracing.__subscriberRef.current;
  41729. if (subscriber !== null) {
  41730. var threadID = computeThreadID(root, expirationTime);
  41731. subscriber.onWorkScheduled(interactions, threadID);
  41732. }
  41733. }
  41734. }
  41735. function schedulePendingInteractions(root, expirationTime) {
  41736. scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
  41737. }
  41738. function startWorkOnPendingInteractions(root, expirationTime) {
  41739. // we can accurately attribute time spent working on it, And so that cascading
  41740. // work triggered during the render phase will be associated with it.
  41741. var interactions = new Set();
  41742. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  41743. if (scheduledExpirationTime >= expirationTime) {
  41744. scheduledInteractions.forEach(function (interaction) {
  41745. return interactions.add(interaction);
  41746. });
  41747. }
  41748. }); // Store the current set of interactions on the FiberRoot for a few reasons:
  41749. // We can re-use it in hot functions like performConcurrentWorkOnRoot()
  41750. // without having to recalculate it. We will also use it in commitWork() to
  41751. // pass to any Profiler onRender() hooks. This also provides DevTools with a
  41752. // way to access it when the onCommitRoot() hook is called.
  41753. root.memoizedInteractions = interactions;
  41754. if (interactions.size > 0) {
  41755. var subscriber = tracing.__subscriberRef.current;
  41756. if (subscriber !== null) {
  41757. var threadID = computeThreadID(root, expirationTime);
  41758. try {
  41759. subscriber.onWorkStarted(interactions, threadID);
  41760. } catch (error) {
  41761. // If the subscriber throws, rethrow it in a separate task
  41762. scheduleCallback(ImmediatePriority, function () {
  41763. throw error;
  41764. });
  41765. }
  41766. }
  41767. }
  41768. }
  41769. function finishPendingInteractions(root, committedExpirationTime) {
  41770. var earliestRemainingTimeAfterCommit = root.firstPendingTime;
  41771. var subscriber;
  41772. try {
  41773. subscriber = tracing.__subscriberRef.current;
  41774. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  41775. var threadID = computeThreadID(root, committedExpirationTime);
  41776. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  41777. }
  41778. } catch (error) {
  41779. // If the subscriber throws, rethrow it in a separate task
  41780. scheduleCallback(ImmediatePriority, function () {
  41781. throw error;
  41782. });
  41783. } finally {
  41784. // Clear completed interactions from the pending Map.
  41785. // Unless the render was suspended or cascading work was scheduled,
  41786. // In which case– leave pending interactions until the subsequent render.
  41787. var pendingInteractionMap = root.pendingInteractionMap;
  41788. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  41789. // Only decrement the pending interaction count if we're done.
  41790. // If there's still work at the current priority,
  41791. // That indicates that we are waiting for suspense data.
  41792. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  41793. pendingInteractionMap.delete(scheduledExpirationTime);
  41794. scheduledInteractions.forEach(function (interaction) {
  41795. interaction.__count--;
  41796. if (subscriber !== null && interaction.__count === 0) {
  41797. try {
  41798. subscriber.onInteractionScheduledWorkCompleted(interaction);
  41799. } catch (error) {
  41800. // If the subscriber throws, rethrow it in a separate task
  41801. scheduleCallback(ImmediatePriority, function () {
  41802. throw error;
  41803. });
  41804. }
  41805. }
  41806. });
  41807. }
  41808. });
  41809. }
  41810. }
  41811. var onScheduleFiberRoot = null;
  41812. var onCommitFiberRoot = null;
  41813. var onCommitFiberUnmount = null;
  41814. var hasLoggedError = false;
  41815. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  41816. function injectInternals(internals) {
  41817. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  41818. // No DevTools
  41819. return false;
  41820. }
  41821. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  41822. if (hook.isDisabled) {
  41823. // This isn't a real property on the hook, but it can be set to opt out
  41824. // of DevTools integration and associated warnings and logs.
  41825. // https://github.com/facebook/react/issues/3877
  41826. return true;
  41827. }
  41828. if (!hook.supportsFiber) {
  41829. {
  41830. error('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');
  41831. } // DevTools exists, even though it doesn't support Fiber.
  41832. return true;
  41833. }
  41834. try {
  41835. var rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.
  41836. if (true) {
  41837. // Only used by Fast Refresh
  41838. if (typeof hook.onScheduleFiberRoot === 'function') {
  41839. onScheduleFiberRoot = function (root, children) {
  41840. try {
  41841. hook.onScheduleFiberRoot(rendererID, root, children);
  41842. } catch (err) {
  41843. if ( true && !hasLoggedError) {
  41844. hasLoggedError = true;
  41845. error('React instrumentation encountered an error: %s', err);
  41846. }
  41847. }
  41848. };
  41849. }
  41850. }
  41851. onCommitFiberRoot = function (root, expirationTime) {
  41852. try {
  41853. var didError = (root.current.effectTag & DidCapture) === DidCapture;
  41854. if (enableProfilerTimer) {
  41855. var currentTime = getCurrentTime();
  41856. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
  41857. hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
  41858. } else {
  41859. hook.onCommitFiberRoot(rendererID, root, undefined, didError);
  41860. }
  41861. } catch (err) {
  41862. if (true) {
  41863. if (!hasLoggedError) {
  41864. hasLoggedError = true;
  41865. error('React instrumentation encountered an error: %s', err);
  41866. }
  41867. }
  41868. }
  41869. };
  41870. onCommitFiberUnmount = function (fiber) {
  41871. try {
  41872. hook.onCommitFiberUnmount(rendererID, fiber);
  41873. } catch (err) {
  41874. if (true) {
  41875. if (!hasLoggedError) {
  41876. hasLoggedError = true;
  41877. error('React instrumentation encountered an error: %s', err);
  41878. }
  41879. }
  41880. }
  41881. };
  41882. } catch (err) {
  41883. // Catch all errors because it is unsafe to throw during initialization.
  41884. {
  41885. error('React instrumentation encountered an error: %s.', err);
  41886. }
  41887. } // DevTools exists
  41888. return true;
  41889. }
  41890. function onScheduleRoot(root, children) {
  41891. if (typeof onScheduleFiberRoot === 'function') {
  41892. onScheduleFiberRoot(root, children);
  41893. }
  41894. }
  41895. function onCommitRoot(root, expirationTime) {
  41896. if (typeof onCommitFiberRoot === 'function') {
  41897. onCommitFiberRoot(root, expirationTime);
  41898. }
  41899. }
  41900. function onCommitUnmount(fiber) {
  41901. if (typeof onCommitFiberUnmount === 'function') {
  41902. onCommitFiberUnmount(fiber);
  41903. }
  41904. }
  41905. var hasBadMapPolyfill;
  41906. {
  41907. hasBadMapPolyfill = false;
  41908. try {
  41909. var nonExtensibleObject = Object.preventExtensions({});
  41910. var testMap = new Map([[nonExtensibleObject, null]]);
  41911. var testSet = new Set([nonExtensibleObject]); // This is necessary for Rollup to not consider these unused.
  41912. // https://github.com/rollup/rollup/issues/1771
  41913. // TODO: we can remove these if Rollup fixes the bug.
  41914. testMap.set(0, 0);
  41915. testSet.add(0);
  41916. } catch (e) {
  41917. // TODO: Consider warning about bad polyfills
  41918. hasBadMapPolyfill = true;
  41919. }
  41920. }
  41921. var debugCounter = 1;
  41922. function FiberNode(tag, pendingProps, key, mode) {
  41923. // Instance
  41924. this.tag = tag;
  41925. this.key = key;
  41926. this.elementType = null;
  41927. this.type = null;
  41928. this.stateNode = null; // Fiber
  41929. this.return = null;
  41930. this.child = null;
  41931. this.sibling = null;
  41932. this.index = 0;
  41933. this.ref = null;
  41934. this.pendingProps = pendingProps;
  41935. this.memoizedProps = null;
  41936. this.updateQueue = null;
  41937. this.memoizedState = null;
  41938. this.dependencies = null;
  41939. this.mode = mode; // Effects
  41940. this.effectTag = NoEffect;
  41941. this.nextEffect = null;
  41942. this.firstEffect = null;
  41943. this.lastEffect = null;
  41944. this.expirationTime = NoWork;
  41945. this.childExpirationTime = NoWork;
  41946. this.alternate = null;
  41947. {
  41948. // Note: The following is done to avoid a v8 performance cliff.
  41949. //
  41950. // Initializing the fields below to smis and later updating them with
  41951. // double values will cause Fibers to end up having separate shapes.
  41952. // This behavior/bug has something to do with Object.preventExtension().
  41953. // Fortunately this only impacts DEV builds.
  41954. // Unfortunately it makes React unusably slow for some applications.
  41955. // To work around this, initialize the fields below with doubles.
  41956. //
  41957. // Learn more about this here:
  41958. // https://github.com/facebook/react/issues/14365
  41959. // https://bugs.chromium.org/p/v8/issues/detail?id=8538
  41960. this.actualDuration = Number.NaN;
  41961. this.actualStartTime = Number.NaN;
  41962. this.selfBaseDuration = Number.NaN;
  41963. this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
  41964. // This won't trigger the performance cliff mentioned above,
  41965. // and it simplifies other profiler code (including DevTools).
  41966. this.actualDuration = 0;
  41967. this.actualStartTime = -1;
  41968. this.selfBaseDuration = 0;
  41969. this.treeBaseDuration = 0;
  41970. } // This is normally DEV-only except www when it adds listeners.
  41971. // TODO: remove the User Timing integration in favor of Root Events.
  41972. {
  41973. this._debugID = debugCounter++;
  41974. this._debugIsCurrentlyTiming = false;
  41975. }
  41976. {
  41977. this._debugSource = null;
  41978. this._debugOwner = null;
  41979. this._debugNeedsRemount = false;
  41980. this._debugHookTypes = null;
  41981. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  41982. Object.preventExtensions(this);
  41983. }
  41984. }
  41985. } // This is a constructor function, rather than a POJO constructor, still
  41986. // please ensure we do the following:
  41987. // 1) Nobody should add any instance methods on this. Instance methods can be
  41988. // more difficult to predict when they get optimized and they are almost
  41989. // never inlined properly in static compilers.
  41990. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  41991. // always know when it is a fiber.
  41992. // 3) We might want to experiment with using numeric keys since they are easier
  41993. // to optimize in a non-JIT environment.
  41994. // 4) We can easily go from a constructor to a createFiber object literal if that
  41995. // is faster.
  41996. // 5) It should be easy to port this to a C struct and keep a C implementation
  41997. // compatible.
  41998. var createFiber = function (tag, pendingProps, key, mode) {
  41999. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  42000. return new FiberNode(tag, pendingProps, key, mode);
  42001. };
  42002. function shouldConstruct(Component) {
  42003. var prototype = Component.prototype;
  42004. return !!(prototype && prototype.isReactComponent);
  42005. }
  42006. function isSimpleFunctionComponent(type) {
  42007. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  42008. }
  42009. function resolveLazyComponentTag(Component) {
  42010. if (typeof Component === 'function') {
  42011. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  42012. } else if (Component !== undefined && Component !== null) {
  42013. var $$typeof = Component.$$typeof;
  42014. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  42015. return ForwardRef;
  42016. }
  42017. if ($$typeof === REACT_MEMO_TYPE) {
  42018. return MemoComponent;
  42019. }
  42020. }
  42021. return IndeterminateComponent;
  42022. } // This is used to create an alternate fiber to do work on.
  42023. function createWorkInProgress(current, pendingProps) {
  42024. var workInProgress = current.alternate;
  42025. if (workInProgress === null) {
  42026. // We use a double buffering pooling technique because we know that we'll
  42027. // only ever need at most two versions of a tree. We pool the "other" unused
  42028. // node that we're free to reuse. This is lazily created to avoid allocating
  42029. // extra objects for things that are never updated. It also allow us to
  42030. // reclaim the extra memory if needed.
  42031. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  42032. workInProgress.elementType = current.elementType;
  42033. workInProgress.type = current.type;
  42034. workInProgress.stateNode = current.stateNode;
  42035. {
  42036. // DEV-only fields
  42037. {
  42038. workInProgress._debugID = current._debugID;
  42039. }
  42040. workInProgress._debugSource = current._debugSource;
  42041. workInProgress._debugOwner = current._debugOwner;
  42042. workInProgress._debugHookTypes = current._debugHookTypes;
  42043. }
  42044. workInProgress.alternate = current;
  42045. current.alternate = workInProgress;
  42046. } else {
  42047. workInProgress.pendingProps = pendingProps; // We already have an alternate.
  42048. // Reset the effect tag.
  42049. workInProgress.effectTag = NoEffect; // The effect list is no longer valid.
  42050. workInProgress.nextEffect = null;
  42051. workInProgress.firstEffect = null;
  42052. workInProgress.lastEffect = null;
  42053. {
  42054. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  42055. // This prevents time from endlessly accumulating in new commits.
  42056. // This has the downside of resetting values for different priority renders,
  42057. // But works for yielding (the common case) and should support resuming.
  42058. workInProgress.actualDuration = 0;
  42059. workInProgress.actualStartTime = -1;
  42060. }
  42061. }
  42062. workInProgress.childExpirationTime = current.childExpirationTime;
  42063. workInProgress.expirationTime = current.expirationTime;
  42064. workInProgress.child = current.child;
  42065. workInProgress.memoizedProps = current.memoizedProps;
  42066. workInProgress.memoizedState = current.memoizedState;
  42067. workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
  42068. // it cannot be shared with the current fiber.
  42069. var currentDependencies = current.dependencies;
  42070. workInProgress.dependencies = currentDependencies === null ? null : {
  42071. expirationTime: currentDependencies.expirationTime,
  42072. firstContext: currentDependencies.firstContext,
  42073. responders: currentDependencies.responders
  42074. }; // These will be overridden during the parent's reconciliation
  42075. workInProgress.sibling = current.sibling;
  42076. workInProgress.index = current.index;
  42077. workInProgress.ref = current.ref;
  42078. {
  42079. workInProgress.selfBaseDuration = current.selfBaseDuration;
  42080. workInProgress.treeBaseDuration = current.treeBaseDuration;
  42081. }
  42082. {
  42083. workInProgress._debugNeedsRemount = current._debugNeedsRemount;
  42084. switch (workInProgress.tag) {
  42085. case IndeterminateComponent:
  42086. case FunctionComponent:
  42087. case SimpleMemoComponent:
  42088. workInProgress.type = resolveFunctionForHotReloading(current.type);
  42089. break;
  42090. case ClassComponent:
  42091. workInProgress.type = resolveClassForHotReloading(current.type);
  42092. break;
  42093. case ForwardRef:
  42094. workInProgress.type = resolveForwardRefForHotReloading(current.type);
  42095. break;
  42096. }
  42097. }
  42098. return workInProgress;
  42099. } // Used to reuse a Fiber for a second pass.
  42100. function resetWorkInProgress(workInProgress, renderExpirationTime) {
  42101. // This resets the Fiber to what createFiber or createWorkInProgress would
  42102. // have set the values to before during the first pass. Ideally this wouldn't
  42103. // be necessary but unfortunately many code paths reads from the workInProgress
  42104. // when they should be reading from current and writing to workInProgress.
  42105. // We assume pendingProps, index, key, ref, return are still untouched to
  42106. // avoid doing another reconciliation.
  42107. // Reset the effect tag but keep any Placement tags, since that's something
  42108. // that child fiber is setting, not the reconciliation.
  42109. workInProgress.effectTag &= Placement; // The effect list is no longer valid.
  42110. workInProgress.nextEffect = null;
  42111. workInProgress.firstEffect = null;
  42112. workInProgress.lastEffect = null;
  42113. var current = workInProgress.alternate;
  42114. if (current === null) {
  42115. // Reset to createFiber's initial values.
  42116. workInProgress.childExpirationTime = NoWork;
  42117. workInProgress.expirationTime = renderExpirationTime;
  42118. workInProgress.child = null;
  42119. workInProgress.memoizedProps = null;
  42120. workInProgress.memoizedState = null;
  42121. workInProgress.updateQueue = null;
  42122. workInProgress.dependencies = null;
  42123. {
  42124. // Note: We don't reset the actualTime counts. It's useful to accumulate
  42125. // actual time across multiple render passes.
  42126. workInProgress.selfBaseDuration = 0;
  42127. workInProgress.treeBaseDuration = 0;
  42128. }
  42129. } else {
  42130. // Reset to the cloned values that createWorkInProgress would've.
  42131. workInProgress.childExpirationTime = current.childExpirationTime;
  42132. workInProgress.expirationTime = current.expirationTime;
  42133. workInProgress.child = current.child;
  42134. workInProgress.memoizedProps = current.memoizedProps;
  42135. workInProgress.memoizedState = current.memoizedState;
  42136. workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
  42137. // it cannot be shared with the current fiber.
  42138. var currentDependencies = current.dependencies;
  42139. workInProgress.dependencies = currentDependencies === null ? null : {
  42140. expirationTime: currentDependencies.expirationTime,
  42141. firstContext: currentDependencies.firstContext,
  42142. responders: currentDependencies.responders
  42143. };
  42144. {
  42145. // Note: We don't reset the actualTime counts. It's useful to accumulate
  42146. // actual time across multiple render passes.
  42147. workInProgress.selfBaseDuration = current.selfBaseDuration;
  42148. workInProgress.treeBaseDuration = current.treeBaseDuration;
  42149. }
  42150. }
  42151. return workInProgress;
  42152. }
  42153. function createHostRootFiber(tag) {
  42154. var mode;
  42155. if (tag === ConcurrentRoot) {
  42156. mode = ConcurrentMode | BlockingMode | StrictMode;
  42157. } else if (tag === BlockingRoot) {
  42158. mode = BlockingMode | StrictMode;
  42159. } else {
  42160. mode = NoMode;
  42161. }
  42162. if ( isDevToolsPresent) {
  42163. // Always collect profile timings when DevTools are present.
  42164. // This enables DevTools to start capturing timing at any point–
  42165. // Without some nodes in the tree having empty base times.
  42166. mode |= ProfileMode;
  42167. }
  42168. return createFiber(HostRoot, null, null, mode);
  42169. }
  42170. function createFiberFromTypeAndProps(type, // React$ElementType
  42171. key, pendingProps, owner, mode, expirationTime) {
  42172. var fiber;
  42173. var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  42174. var resolvedType = type;
  42175. if (typeof type === 'function') {
  42176. if (shouldConstruct(type)) {
  42177. fiberTag = ClassComponent;
  42178. {
  42179. resolvedType = resolveClassForHotReloading(resolvedType);
  42180. }
  42181. } else {
  42182. {
  42183. resolvedType = resolveFunctionForHotReloading(resolvedType);
  42184. }
  42185. }
  42186. } else if (typeof type === 'string') {
  42187. fiberTag = HostComponent;
  42188. } else {
  42189. getTag: switch (type) {
  42190. case REACT_FRAGMENT_TYPE:
  42191. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  42192. case REACT_CONCURRENT_MODE_TYPE:
  42193. fiberTag = Mode;
  42194. mode |= ConcurrentMode | BlockingMode | StrictMode;
  42195. break;
  42196. case REACT_STRICT_MODE_TYPE:
  42197. fiberTag = Mode;
  42198. mode |= StrictMode;
  42199. break;
  42200. case REACT_PROFILER_TYPE:
  42201. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  42202. case REACT_SUSPENSE_TYPE:
  42203. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  42204. case REACT_SUSPENSE_LIST_TYPE:
  42205. return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);
  42206. default:
  42207. {
  42208. if (typeof type === 'object' && type !== null) {
  42209. switch (type.$$typeof) {
  42210. case REACT_PROVIDER_TYPE:
  42211. fiberTag = ContextProvider;
  42212. break getTag;
  42213. case REACT_CONTEXT_TYPE:
  42214. // This is a consumer
  42215. fiberTag = ContextConsumer;
  42216. break getTag;
  42217. case REACT_FORWARD_REF_TYPE:
  42218. fiberTag = ForwardRef;
  42219. {
  42220. resolvedType = resolveForwardRefForHotReloading(resolvedType);
  42221. }
  42222. break getTag;
  42223. case REACT_MEMO_TYPE:
  42224. fiberTag = MemoComponent;
  42225. break getTag;
  42226. case REACT_LAZY_TYPE:
  42227. fiberTag = LazyComponent;
  42228. resolvedType = null;
  42229. break getTag;
  42230. case REACT_BLOCK_TYPE:
  42231. fiberTag = Block;
  42232. break getTag;
  42233. }
  42234. }
  42235. var info = '';
  42236. {
  42237. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  42238. 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.';
  42239. }
  42240. var ownerName = owner ? getComponentName(owner.type) : null;
  42241. if (ownerName) {
  42242. info += '\n\nCheck the render method of `' + ownerName + '`.';
  42243. }
  42244. }
  42245. {
  42246. {
  42247. throw 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 );
  42248. }
  42249. }
  42250. }
  42251. }
  42252. }
  42253. fiber = createFiber(fiberTag, pendingProps, key, mode);
  42254. fiber.elementType = type;
  42255. fiber.type = resolvedType;
  42256. fiber.expirationTime = expirationTime;
  42257. return fiber;
  42258. }
  42259. function createFiberFromElement(element, mode, expirationTime) {
  42260. var owner = null;
  42261. {
  42262. owner = element._owner;
  42263. }
  42264. var type = element.type;
  42265. var key = element.key;
  42266. var pendingProps = element.props;
  42267. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  42268. {
  42269. fiber._debugSource = element._source;
  42270. fiber._debugOwner = element._owner;
  42271. }
  42272. return fiber;
  42273. }
  42274. function createFiberFromFragment(elements, mode, expirationTime, key) {
  42275. var fiber = createFiber(Fragment, elements, key, mode);
  42276. fiber.expirationTime = expirationTime;
  42277. return fiber;
  42278. }
  42279. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  42280. {
  42281. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  42282. error('Profiler must specify an "id" string and "onRender" function as props');
  42283. }
  42284. }
  42285. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  42286. fiber.elementType = REACT_PROFILER_TYPE;
  42287. fiber.type = REACT_PROFILER_TYPE;
  42288. fiber.expirationTime = expirationTime;
  42289. return fiber;
  42290. }
  42291. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  42292. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  42293. // This needs to be fixed in getComponentName so that it relies on the tag
  42294. // instead.
  42295. fiber.type = REACT_SUSPENSE_TYPE;
  42296. fiber.elementType = REACT_SUSPENSE_TYPE;
  42297. fiber.expirationTime = expirationTime;
  42298. return fiber;
  42299. }
  42300. function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
  42301. var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
  42302. {
  42303. // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
  42304. // This needs to be fixed in getComponentName so that it relies on the tag
  42305. // instead.
  42306. fiber.type = REACT_SUSPENSE_LIST_TYPE;
  42307. }
  42308. fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  42309. fiber.expirationTime = expirationTime;
  42310. return fiber;
  42311. }
  42312. function createFiberFromText(content, mode, expirationTime) {
  42313. var fiber = createFiber(HostText, content, null, mode);
  42314. fiber.expirationTime = expirationTime;
  42315. return fiber;
  42316. }
  42317. function createFiberFromHostInstanceForDeletion() {
  42318. var fiber = createFiber(HostComponent, null, null, NoMode); // TODO: These should not need a type.
  42319. fiber.elementType = 'DELETED';
  42320. fiber.type = 'DELETED';
  42321. return fiber;
  42322. }
  42323. function createFiberFromPortal(portal, mode, expirationTime) {
  42324. var pendingProps = portal.children !== null ? portal.children : [];
  42325. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  42326. fiber.expirationTime = expirationTime;
  42327. fiber.stateNode = {
  42328. containerInfo: portal.containerInfo,
  42329. pendingChildren: null,
  42330. // Used by persistent updates
  42331. implementation: portal.implementation
  42332. };
  42333. return fiber;
  42334. } // Used for stashing WIP properties to replay failed work in DEV.
  42335. function assignFiberPropertiesInDEV(target, source) {
  42336. if (target === null) {
  42337. // This Fiber's initial properties will always be overwritten.
  42338. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  42339. target = createFiber(IndeterminateComponent, null, null, NoMode);
  42340. } // This is intentionally written as a list of all properties.
  42341. // We tried to use Object.assign() instead but this is called in
  42342. // the hottest path, and Object.assign() was too slow:
  42343. // https://github.com/facebook/react/issues/12502
  42344. // This code is DEV-only so size is not a concern.
  42345. target.tag = source.tag;
  42346. target.key = source.key;
  42347. target.elementType = source.elementType;
  42348. target.type = source.type;
  42349. target.stateNode = source.stateNode;
  42350. target.return = source.return;
  42351. target.child = source.child;
  42352. target.sibling = source.sibling;
  42353. target.index = source.index;
  42354. target.ref = source.ref;
  42355. target.pendingProps = source.pendingProps;
  42356. target.memoizedProps = source.memoizedProps;
  42357. target.updateQueue = source.updateQueue;
  42358. target.memoizedState = source.memoizedState;
  42359. target.dependencies = source.dependencies;
  42360. target.mode = source.mode;
  42361. target.effectTag = source.effectTag;
  42362. target.nextEffect = source.nextEffect;
  42363. target.firstEffect = source.firstEffect;
  42364. target.lastEffect = source.lastEffect;
  42365. target.expirationTime = source.expirationTime;
  42366. target.childExpirationTime = source.childExpirationTime;
  42367. target.alternate = source.alternate;
  42368. {
  42369. target.actualDuration = source.actualDuration;
  42370. target.actualStartTime = source.actualStartTime;
  42371. target.selfBaseDuration = source.selfBaseDuration;
  42372. target.treeBaseDuration = source.treeBaseDuration;
  42373. }
  42374. {
  42375. target._debugID = source._debugID;
  42376. }
  42377. target._debugSource = source._debugSource;
  42378. target._debugOwner = source._debugOwner;
  42379. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  42380. target._debugNeedsRemount = source._debugNeedsRemount;
  42381. target._debugHookTypes = source._debugHookTypes;
  42382. return target;
  42383. }
  42384. function FiberRootNode(containerInfo, tag, hydrate) {
  42385. this.tag = tag;
  42386. this.current = null;
  42387. this.containerInfo = containerInfo;
  42388. this.pendingChildren = null;
  42389. this.pingCache = null;
  42390. this.finishedExpirationTime = NoWork;
  42391. this.finishedWork = null;
  42392. this.timeoutHandle = noTimeout;
  42393. this.context = null;
  42394. this.pendingContext = null;
  42395. this.hydrate = hydrate;
  42396. this.callbackNode = null;
  42397. this.callbackPriority = NoPriority;
  42398. this.firstPendingTime = NoWork;
  42399. this.firstSuspendedTime = NoWork;
  42400. this.lastSuspendedTime = NoWork;
  42401. this.nextKnownPendingLevel = NoWork;
  42402. this.lastPingedTime = NoWork;
  42403. this.lastExpiredTime = NoWork;
  42404. {
  42405. this.interactionThreadID = tracing.unstable_getThreadID();
  42406. this.memoizedInteractions = new Set();
  42407. this.pendingInteractionMap = new Map();
  42408. }
  42409. }
  42410. function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
  42411. var root = new FiberRootNode(containerInfo, tag, hydrate);
  42412. // stateNode is any.
  42413. var uninitializedFiber = createHostRootFiber(tag);
  42414. root.current = uninitializedFiber;
  42415. uninitializedFiber.stateNode = root;
  42416. initializeUpdateQueue(uninitializedFiber);
  42417. return root;
  42418. }
  42419. function isRootSuspendedAtTime(root, expirationTime) {
  42420. var firstSuspendedTime = root.firstSuspendedTime;
  42421. var lastSuspendedTime = root.lastSuspendedTime;
  42422. return firstSuspendedTime !== NoWork && firstSuspendedTime >= expirationTime && lastSuspendedTime <= expirationTime;
  42423. }
  42424. function markRootSuspendedAtTime(root, expirationTime) {
  42425. var firstSuspendedTime = root.firstSuspendedTime;
  42426. var lastSuspendedTime = root.lastSuspendedTime;
  42427. if (firstSuspendedTime < expirationTime) {
  42428. root.firstSuspendedTime = expirationTime;
  42429. }
  42430. if (lastSuspendedTime > expirationTime || firstSuspendedTime === NoWork) {
  42431. root.lastSuspendedTime = expirationTime;
  42432. }
  42433. if (expirationTime <= root.lastPingedTime) {
  42434. root.lastPingedTime = NoWork;
  42435. }
  42436. if (expirationTime <= root.lastExpiredTime) {
  42437. root.lastExpiredTime = NoWork;
  42438. }
  42439. }
  42440. function markRootUpdatedAtTime(root, expirationTime) {
  42441. // Update the range of pending times
  42442. var firstPendingTime = root.firstPendingTime;
  42443. if (expirationTime > firstPendingTime) {
  42444. root.firstPendingTime = expirationTime;
  42445. } // Update the range of suspended times. Treat everything lower priority or
  42446. // equal to this update as unsuspended.
  42447. var firstSuspendedTime = root.firstSuspendedTime;
  42448. if (firstSuspendedTime !== NoWork) {
  42449. if (expirationTime >= firstSuspendedTime) {
  42450. // The entire suspended range is now unsuspended.
  42451. root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
  42452. } else if (expirationTime >= root.lastSuspendedTime) {
  42453. root.lastSuspendedTime = expirationTime + 1;
  42454. } // This is a pending level. Check if it's higher priority than the next
  42455. // known pending level.
  42456. if (expirationTime > root.nextKnownPendingLevel) {
  42457. root.nextKnownPendingLevel = expirationTime;
  42458. }
  42459. }
  42460. }
  42461. function markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime) {
  42462. // Update the range of pending times
  42463. root.firstPendingTime = remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or
  42464. // equal to this update as unsuspended.
  42465. if (finishedExpirationTime <= root.lastSuspendedTime) {
  42466. // The entire suspended range is now unsuspended.
  42467. root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
  42468. } else if (finishedExpirationTime <= root.firstSuspendedTime) {
  42469. // Part of the suspended range is now unsuspended. Narrow the range to
  42470. // include everything between the unsuspended time (non-inclusive) and the
  42471. // last suspended time.
  42472. root.firstSuspendedTime = finishedExpirationTime - 1;
  42473. }
  42474. if (finishedExpirationTime <= root.lastPingedTime) {
  42475. // Clear the pinged time
  42476. root.lastPingedTime = NoWork;
  42477. }
  42478. if (finishedExpirationTime <= root.lastExpiredTime) {
  42479. // Clear the expired time
  42480. root.lastExpiredTime = NoWork;
  42481. }
  42482. }
  42483. function markRootExpiredAtTime(root, expirationTime) {
  42484. var lastExpiredTime = root.lastExpiredTime;
  42485. if (lastExpiredTime === NoWork || lastExpiredTime > expirationTime) {
  42486. root.lastExpiredTime = expirationTime;
  42487. }
  42488. }
  42489. var didWarnAboutNestedUpdates;
  42490. var didWarnAboutFindNodeInStrictMode;
  42491. {
  42492. didWarnAboutNestedUpdates = false;
  42493. didWarnAboutFindNodeInStrictMode = {};
  42494. }
  42495. function getContextForSubtree(parentComponent) {
  42496. if (!parentComponent) {
  42497. return emptyContextObject;
  42498. }
  42499. var fiber = get(parentComponent);
  42500. var parentContext = findCurrentUnmaskedContext(fiber);
  42501. if (fiber.tag === ClassComponent) {
  42502. var Component = fiber.type;
  42503. if (isContextProvider(Component)) {
  42504. return processChildContext(fiber, Component, parentContext);
  42505. }
  42506. }
  42507. return parentContext;
  42508. }
  42509. function findHostInstanceWithWarning(component, methodName) {
  42510. {
  42511. var fiber = get(component);
  42512. if (fiber === undefined) {
  42513. if (typeof component.render === 'function') {
  42514. {
  42515. {
  42516. throw Error( "Unable to find node on an unmounted component." );
  42517. }
  42518. }
  42519. } else {
  42520. {
  42521. {
  42522. throw Error( "Argument appears to not be a ReactComponent. Keys: " + Object.keys(component) );
  42523. }
  42524. }
  42525. }
  42526. }
  42527. var hostFiber = findCurrentHostFiber(fiber);
  42528. if (hostFiber === null) {
  42529. return null;
  42530. }
  42531. if (hostFiber.mode & StrictMode) {
  42532. var componentName = getComponentName(fiber.type) || 'Component';
  42533. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  42534. didWarnAboutFindNodeInStrictMode[componentName] = true;
  42535. if (fiber.mode & StrictMode) {
  42536. error('%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. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  42537. } else {
  42538. error('%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. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  42539. }
  42540. }
  42541. }
  42542. return hostFiber.stateNode;
  42543. }
  42544. }
  42545. function createContainer(containerInfo, tag, hydrate, hydrationCallbacks) {
  42546. return createFiberRoot(containerInfo, tag, hydrate);
  42547. }
  42548. function updateContainer(element, container, parentComponent, callback) {
  42549. {
  42550. onScheduleRoot(container, element);
  42551. }
  42552. var current$1 = container.current;
  42553. var currentTime = requestCurrentTimeForUpdate();
  42554. {
  42555. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  42556. if ('undefined' !== typeof jest) {
  42557. warnIfUnmockedScheduler(current$1);
  42558. warnIfNotScopedWithMatchingAct(current$1);
  42559. }
  42560. }
  42561. var suspenseConfig = requestCurrentSuspenseConfig();
  42562. var expirationTime = computeExpirationForFiber(currentTime, current$1, suspenseConfig);
  42563. var context = getContextForSubtree(parentComponent);
  42564. if (container.context === null) {
  42565. container.context = context;
  42566. } else {
  42567. container.pendingContext = context;
  42568. }
  42569. {
  42570. if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
  42571. didWarnAboutNestedUpdates = true;
  42572. error('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');
  42573. }
  42574. }
  42575. var update = createUpdate(expirationTime, suspenseConfig); // Caution: React DevTools currently depends on this property
  42576. // being called "element".
  42577. update.payload = {
  42578. element: element
  42579. };
  42580. callback = callback === undefined ? null : callback;
  42581. if (callback !== null) {
  42582. {
  42583. if (typeof callback !== 'function') {
  42584. error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
  42585. }
  42586. }
  42587. update.callback = callback;
  42588. }
  42589. enqueueUpdate(current$1, update);
  42590. scheduleWork(current$1, expirationTime);
  42591. return expirationTime;
  42592. }
  42593. function getPublicRootInstance(container) {
  42594. var containerFiber = container.current;
  42595. if (!containerFiber.child) {
  42596. return null;
  42597. }
  42598. switch (containerFiber.child.tag) {
  42599. case HostComponent:
  42600. return getPublicInstance(containerFiber.child.stateNode);
  42601. default:
  42602. return containerFiber.child.stateNode;
  42603. }
  42604. }
  42605. function markRetryTimeImpl(fiber, retryTime) {
  42606. var suspenseState = fiber.memoizedState;
  42607. if (suspenseState !== null && suspenseState.dehydrated !== null) {
  42608. if (suspenseState.retryTime < retryTime) {
  42609. suspenseState.retryTime = retryTime;
  42610. }
  42611. }
  42612. } // Increases the priority of thennables when they resolve within this boundary.
  42613. function markRetryTimeIfNotHydrated(fiber, retryTime) {
  42614. markRetryTimeImpl(fiber, retryTime);
  42615. var alternate = fiber.alternate;
  42616. if (alternate) {
  42617. markRetryTimeImpl(alternate, retryTime);
  42618. }
  42619. }
  42620. function attemptUserBlockingHydration$1(fiber) {
  42621. if (fiber.tag !== SuspenseComponent) {
  42622. // We ignore HostRoots here because we can't increase
  42623. // their priority and they should not suspend on I/O,
  42624. // since you have to wrap anything that might suspend in
  42625. // Suspense.
  42626. return;
  42627. }
  42628. var expTime = computeInteractiveExpiration(requestCurrentTimeForUpdate());
  42629. scheduleWork(fiber, expTime);
  42630. markRetryTimeIfNotHydrated(fiber, expTime);
  42631. }
  42632. function attemptContinuousHydration$1(fiber) {
  42633. if (fiber.tag !== SuspenseComponent) {
  42634. // We ignore HostRoots here because we can't increase
  42635. // their priority and they should not suspend on I/O,
  42636. // since you have to wrap anything that might suspend in
  42637. // Suspense.
  42638. return;
  42639. }
  42640. scheduleWork(fiber, ContinuousHydration);
  42641. markRetryTimeIfNotHydrated(fiber, ContinuousHydration);
  42642. }
  42643. function attemptHydrationAtCurrentPriority$1(fiber) {
  42644. if (fiber.tag !== SuspenseComponent) {
  42645. // We ignore HostRoots here because we can't increase
  42646. // their priority other than synchronously flush it.
  42647. return;
  42648. }
  42649. var currentTime = requestCurrentTimeForUpdate();
  42650. var expTime = computeExpirationForFiber(currentTime, fiber, null);
  42651. scheduleWork(fiber, expTime);
  42652. markRetryTimeIfNotHydrated(fiber, expTime);
  42653. }
  42654. function findHostInstanceWithNoPortals(fiber) {
  42655. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  42656. if (hostFiber === null) {
  42657. return null;
  42658. }
  42659. if (hostFiber.tag === FundamentalComponent) {
  42660. return hostFiber.stateNode.instance;
  42661. }
  42662. return hostFiber.stateNode;
  42663. }
  42664. var shouldSuspendImpl = function (fiber) {
  42665. return false;
  42666. };
  42667. function shouldSuspend(fiber) {
  42668. return shouldSuspendImpl(fiber);
  42669. }
  42670. var overrideHookState = null;
  42671. var overrideProps = null;
  42672. var scheduleUpdate = null;
  42673. var setSuspenseHandler = null;
  42674. {
  42675. var copyWithSetImpl = function (obj, path, idx, value) {
  42676. if (idx >= path.length) {
  42677. return value;
  42678. }
  42679. var key = path[idx];
  42680. var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); // $FlowFixMe number or string is fine here
  42681. updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
  42682. return updated;
  42683. };
  42684. var copyWithSet = function (obj, path, value) {
  42685. return copyWithSetImpl(obj, path, 0, value);
  42686. }; // Support DevTools editable values for useState and useReducer.
  42687. overrideHookState = function (fiber, id, path, value) {
  42688. // For now, the "id" of stateful hooks is just the stateful hook index.
  42689. // This may change in the future with e.g. nested hooks.
  42690. var currentHook = fiber.memoizedState;
  42691. while (currentHook !== null && id > 0) {
  42692. currentHook = currentHook.next;
  42693. id--;
  42694. }
  42695. if (currentHook !== null) {
  42696. var newState = copyWithSet(currentHook.memoizedState, path, value);
  42697. currentHook.memoizedState = newState;
  42698. currentHook.baseState = newState; // We aren't actually adding an update to the queue,
  42699. // because there is no update we can add for useReducer hooks that won't trigger an error.
  42700. // (There's no appropriate action type for DevTools overrides.)
  42701. // As a result though, React will see the scheduled update as a noop and bailout.
  42702. // Shallow cloning props works as a workaround for now to bypass the bailout check.
  42703. fiber.memoizedProps = _assign({}, fiber.memoizedProps);
  42704. scheduleWork(fiber, Sync);
  42705. }
  42706. }; // Support DevTools props for function components, forwardRef, memo, host components, etc.
  42707. overrideProps = function (fiber, path, value) {
  42708. fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
  42709. if (fiber.alternate) {
  42710. fiber.alternate.pendingProps = fiber.pendingProps;
  42711. }
  42712. scheduleWork(fiber, Sync);
  42713. };
  42714. scheduleUpdate = function (fiber) {
  42715. scheduleWork(fiber, Sync);
  42716. };
  42717. setSuspenseHandler = function (newShouldSuspendImpl) {
  42718. shouldSuspendImpl = newShouldSuspendImpl;
  42719. };
  42720. }
  42721. function injectIntoDevTools(devToolsConfig) {
  42722. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  42723. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  42724. return injectInternals(_assign({}, devToolsConfig, {
  42725. overrideHookState: overrideHookState,
  42726. overrideProps: overrideProps,
  42727. setSuspenseHandler: setSuspenseHandler,
  42728. scheduleUpdate: scheduleUpdate,
  42729. currentDispatcherRef: ReactCurrentDispatcher,
  42730. findHostInstanceByFiber: function (fiber) {
  42731. var hostFiber = findCurrentHostFiber(fiber);
  42732. if (hostFiber === null) {
  42733. return null;
  42734. }
  42735. return hostFiber.stateNode;
  42736. },
  42737. findFiberByHostInstance: function (instance) {
  42738. if (!findFiberByHostInstance) {
  42739. // Might not be implemented by the renderer.
  42740. return null;
  42741. }
  42742. return findFiberByHostInstance(instance);
  42743. },
  42744. // React Refresh
  42745. findHostInstancesForRefresh: findHostInstancesForRefresh ,
  42746. scheduleRefresh: scheduleRefresh ,
  42747. scheduleRoot: scheduleRoot ,
  42748. setRefreshHandler: setRefreshHandler ,
  42749. // Enables DevTools to append owner stacks to error messages in DEV mode.
  42750. getCurrentFiber: function () {
  42751. return current;
  42752. }
  42753. }));
  42754. }
  42755. var IsSomeRendererActing$1 = ReactSharedInternals.IsSomeRendererActing;
  42756. function ReactDOMRoot(container, options) {
  42757. this._internalRoot = createRootImpl(container, ConcurrentRoot, options);
  42758. }
  42759. function ReactDOMBlockingRoot(container, tag, options) {
  42760. this._internalRoot = createRootImpl(container, tag, options);
  42761. }
  42762. ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function (children) {
  42763. var root = this._internalRoot;
  42764. {
  42765. if (typeof arguments[1] === 'function') {
  42766. error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
  42767. }
  42768. var container = root.containerInfo;
  42769. if (container.nodeType !== COMMENT_NODE) {
  42770. var hostInstance = findHostInstanceWithNoPortals(root.current);
  42771. if (hostInstance) {
  42772. if (hostInstance.parentNode !== container) {
  42773. error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container.");
  42774. }
  42775. }
  42776. }
  42777. }
  42778. updateContainer(children, root, null, null);
  42779. };
  42780. ReactDOMRoot.prototype.unmount = ReactDOMBlockingRoot.prototype.unmount = function () {
  42781. {
  42782. if (typeof arguments[0] === 'function') {
  42783. error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
  42784. }
  42785. }
  42786. var root = this._internalRoot;
  42787. var container = root.containerInfo;
  42788. updateContainer(null, root, null, function () {
  42789. unmarkContainerAsRoot(container);
  42790. });
  42791. };
  42792. function createRootImpl(container, tag, options) {
  42793. // Tag is either LegacyRoot or Concurrent Root
  42794. var hydrate = options != null && options.hydrate === true;
  42795. var hydrationCallbacks = options != null && options.hydrationOptions || null;
  42796. var root = createContainer(container, tag, hydrate);
  42797. markContainerAsRoot(root.current, container);
  42798. if (hydrate && tag !== LegacyRoot) {
  42799. var doc = container.nodeType === DOCUMENT_NODE ? container : container.ownerDocument;
  42800. eagerlyTrapReplayableEvents(container, doc);
  42801. }
  42802. return root;
  42803. }
  42804. function createLegacyRoot(container, options) {
  42805. return new ReactDOMBlockingRoot(container, LegacyRoot, options);
  42806. }
  42807. function isValidContainer(node) {
  42808. 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 '));
  42809. }
  42810. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  42811. var topLevelUpdateWarnings;
  42812. var warnedAboutHydrateAPI = false;
  42813. {
  42814. topLevelUpdateWarnings = function (container) {
  42815. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  42816. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  42817. if (hostInstance) {
  42818. if (hostInstance.parentNode !== container) {
  42819. error('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.');
  42820. }
  42821. }
  42822. }
  42823. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  42824. var rootEl = getReactRootElementInContainer(container);
  42825. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  42826. if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
  42827. error('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.');
  42828. }
  42829. if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
  42830. error('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.');
  42831. }
  42832. };
  42833. }
  42834. function getReactRootElementInContainer(container) {
  42835. if (!container) {
  42836. return null;
  42837. }
  42838. if (container.nodeType === DOCUMENT_NODE) {
  42839. return container.documentElement;
  42840. } else {
  42841. return container.firstChild;
  42842. }
  42843. }
  42844. function shouldHydrateDueToLegacyHeuristic(container) {
  42845. var rootElement = getReactRootElementInContainer(container);
  42846. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  42847. }
  42848. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  42849. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content.
  42850. if (!shouldHydrate) {
  42851. var warned = false;
  42852. var rootSibling;
  42853. while (rootSibling = container.lastChild) {
  42854. {
  42855. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  42856. warned = true;
  42857. error('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.');
  42858. }
  42859. }
  42860. container.removeChild(rootSibling);
  42861. }
  42862. }
  42863. {
  42864. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  42865. warnedAboutHydrateAPI = true;
  42866. warn('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.');
  42867. }
  42868. }
  42869. return createLegacyRoot(container, shouldHydrate ? {
  42870. hydrate: true
  42871. } : undefined);
  42872. }
  42873. function warnOnInvalidCallback$1(callback, callerName) {
  42874. {
  42875. if (callback !== null && typeof callback !== 'function') {
  42876. error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  42877. }
  42878. }
  42879. }
  42880. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  42881. {
  42882. topLevelUpdateWarnings(container);
  42883. warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
  42884. } // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  42885. // member of intersection type." Whyyyyyy.
  42886. var root = container._reactRootContainer;
  42887. var fiberRoot;
  42888. if (!root) {
  42889. // Initial mount
  42890. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  42891. fiberRoot = root._internalRoot;
  42892. if (typeof callback === 'function') {
  42893. var originalCallback = callback;
  42894. callback = function () {
  42895. var instance = getPublicRootInstance(fiberRoot);
  42896. originalCallback.call(instance);
  42897. };
  42898. } // Initial mount should not be batched.
  42899. unbatchedUpdates(function () {
  42900. updateContainer(children, fiberRoot, parentComponent, callback);
  42901. });
  42902. } else {
  42903. fiberRoot = root._internalRoot;
  42904. if (typeof callback === 'function') {
  42905. var _originalCallback = callback;
  42906. callback = function () {
  42907. var instance = getPublicRootInstance(fiberRoot);
  42908. _originalCallback.call(instance);
  42909. };
  42910. } // Update
  42911. updateContainer(children, fiberRoot, parentComponent, callback);
  42912. }
  42913. return getPublicRootInstance(fiberRoot);
  42914. }
  42915. function findDOMNode(componentOrElement) {
  42916. {
  42917. var owner = ReactCurrentOwner$3.current;
  42918. if (owner !== null && owner.stateNode !== null) {
  42919. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  42920. if (!warnedAboutRefsInRender) {
  42921. error('%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');
  42922. }
  42923. owner.stateNode._warnedAboutRefsInRender = true;
  42924. }
  42925. }
  42926. if (componentOrElement == null) {
  42927. return null;
  42928. }
  42929. if (componentOrElement.nodeType === ELEMENT_NODE) {
  42930. return componentOrElement;
  42931. }
  42932. {
  42933. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  42934. }
  42935. }
  42936. function hydrate(element, container, callback) {
  42937. if (!isValidContainer(container)) {
  42938. {
  42939. throw Error( "Target container is not a DOM element." );
  42940. }
  42941. }
  42942. {
  42943. var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
  42944. if (isModernRoot) {
  42945. error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?');
  42946. }
  42947. } // TODO: throw or warn if we couldn't hydrate?
  42948. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  42949. }
  42950. function render(element, container, callback) {
  42951. if (!isValidContainer(container)) {
  42952. {
  42953. throw Error( "Target container is not a DOM element." );
  42954. }
  42955. }
  42956. {
  42957. var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
  42958. if (isModernRoot) {
  42959. error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');
  42960. }
  42961. }
  42962. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  42963. }
  42964. function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  42965. if (!isValidContainer(containerNode)) {
  42966. {
  42967. throw Error( "Target container is not a DOM element." );
  42968. }
  42969. }
  42970. if (!(parentComponent != null && has(parentComponent))) {
  42971. {
  42972. throw Error( "parentComponent must be a valid React Component" );
  42973. }
  42974. }
  42975. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  42976. }
  42977. function unmountComponentAtNode(container) {
  42978. if (!isValidContainer(container)) {
  42979. {
  42980. throw Error( "unmountComponentAtNode(...): Target container is not a DOM element." );
  42981. }
  42982. }
  42983. {
  42984. var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
  42985. if (isModernRoot) {
  42986. error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?');
  42987. }
  42988. }
  42989. if (container._reactRootContainer) {
  42990. {
  42991. var rootEl = getReactRootElementInContainer(container);
  42992. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  42993. if (renderedByDifferentReact) {
  42994. error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
  42995. }
  42996. } // Unmount should not be batched.
  42997. unbatchedUpdates(function () {
  42998. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  42999. // $FlowFixMe This should probably use `delete container._reactRootContainer`
  43000. container._reactRootContainer = null;
  43001. unmarkContainerAsRoot(container);
  43002. });
  43003. }); // If you call unmountComponentAtNode twice in quick succession, you'll
  43004. // get `true` twice. That's probably fine?
  43005. return true;
  43006. } else {
  43007. {
  43008. var _rootEl = getReactRootElementInContainer(container);
  43009. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl)); // Check if the container itself is a React root node.
  43010. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  43011. if (hasNonRootReactChild) {
  43012. error("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.');
  43013. }
  43014. }
  43015. return false;
  43016. }
  43017. }
  43018. function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
  43019. implementation) {
  43020. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  43021. return {
  43022. // This tag allow us to uniquely identify this as a React Portal
  43023. $$typeof: REACT_PORTAL_TYPE,
  43024. key: key == null ? null : '' + key,
  43025. children: children,
  43026. containerInfo: containerInfo,
  43027. implementation: implementation
  43028. };
  43029. }
  43030. var ReactVersion = '16.13.1';
  43031. setAttemptUserBlockingHydration(attemptUserBlockingHydration$1);
  43032. setAttemptContinuousHydration(attemptContinuousHydration$1);
  43033. setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
  43034. var didWarnAboutUnstableCreatePortal = false;
  43035. {
  43036. if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype
  43037. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype
  43038. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  43039. error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  43040. }
  43041. }
  43042. setRestoreImplementation(restoreControlledState$3);
  43043. setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
  43044. function createPortal$1(children, container) {
  43045. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  43046. if (!isValidContainer(container)) {
  43047. {
  43048. throw Error( "Target container is not a DOM element." );
  43049. }
  43050. } // TODO: pass ReactDOM portal implementation as third argument
  43051. // $FlowFixMe The Flow type is opaque but there's no way to actually create it.
  43052. return createPortal(children, container, null, key);
  43053. }
  43054. function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  43055. return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
  43056. }
  43057. function unstable_createPortal(children, container) {
  43058. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  43059. {
  43060. if (!didWarnAboutUnstableCreatePortal) {
  43061. didWarnAboutUnstableCreatePortal = true;
  43062. warn('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.');
  43063. }
  43064. }
  43065. return createPortal$1(children, container, key);
  43066. }
  43067. var Internals = {
  43068. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  43069. // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
  43070. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
  43071. };
  43072. var foundDevTools = injectIntoDevTools({
  43073. findFiberByHostInstance: getClosestInstanceFromNode,
  43074. bundleType: 1 ,
  43075. version: ReactVersion,
  43076. rendererPackageName: 'react-dom'
  43077. });
  43078. {
  43079. if (!foundDevTools && canUseDOM && window.top === window.self) {
  43080. // If we're in Chrome or Firefox, provide a download link if not installed.
  43081. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  43082. var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.
  43083. if (/^(https?|file):$/.test(protocol)) {
  43084. // eslint-disable-next-line react-internal/no-production-logging
  43085. 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');
  43086. }
  43087. }
  43088. }
  43089. }
  43090. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
  43091. exports.createPortal = createPortal$1;
  43092. exports.findDOMNode = findDOMNode;
  43093. exports.flushSync = flushSync;
  43094. exports.hydrate = hydrate;
  43095. exports.render = render;
  43096. exports.unmountComponentAtNode = unmountComponentAtNode;
  43097. exports.unstable_batchedUpdates = batchedUpdates$1;
  43098. exports.unstable_createPortal = unstable_createPortal;
  43099. exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
  43100. exports.version = ReactVersion;
  43101. })();
  43102. }
  43103. /***/ }),
  43104. /***/ "../../node_modules/react-dom/index.js":
  43105. /*!***********************************************************!*\
  43106. !*** C:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  43107. \***********************************************************/
  43108. /*! no static exports found */
  43109. /***/ (function(module, exports, __webpack_require__) {
  43110. "use strict";
  43111. function checkDCE() {
  43112. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  43113. if (
  43114. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  43115. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  43116. ) {
  43117. return;
  43118. }
  43119. if (true) {
  43120. // This branch is unreachable because this function is only called
  43121. // in production, but the condition is true only in development.
  43122. // Therefore if the branch is still here, dead code elimination wasn't
  43123. // properly applied.
  43124. // Don't change the message. React DevTools relies on it. Also make sure
  43125. // this message doesn't occur elsewhere in this function, or it will cause
  43126. // a false positive.
  43127. throw new Error('^_^');
  43128. }
  43129. try {
  43130. // Verify that the code above has been dead code eliminated (DCE'd).
  43131. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  43132. } catch (err) {
  43133. // DevTools shouldn't crash React, no matter what.
  43134. // We should still report in case we break this code.
  43135. console.error(err);
  43136. }
  43137. }
  43138. if (false) {} else {
  43139. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  43140. }
  43141. /***/ }),
  43142. /***/ "../../node_modules/react-is/cjs/react-is.development.js":
  43143. /*!*****************************************************************************!*\
  43144. !*** C:/Repos/Babylon.js/node_modules/react-is/cjs/react-is.development.js ***!
  43145. \*****************************************************************************/
  43146. /*! no static exports found */
  43147. /***/ (function(module, exports, __webpack_require__) {
  43148. "use strict";
  43149. /** @license React v16.13.1
  43150. * react-is.development.js
  43151. *
  43152. * Copyright (c) Facebook, Inc. and its affiliates.
  43153. *
  43154. * This source code is licensed under the MIT license found in the
  43155. * LICENSE file in the root directory of this source tree.
  43156. */
  43157. if (true) {
  43158. (function() {
  43159. 'use strict';
  43160. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  43161. // nor polyfill, then a plain number is used for performance.
  43162. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  43163. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  43164. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  43165. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  43166. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  43167. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  43168. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  43169. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  43170. // (unstable) APIs that have been removed. Can we remove the symbols?
  43171. var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
  43172. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  43173. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  43174. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  43175. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  43176. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  43177. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  43178. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
  43179. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  43180. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  43181. var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
  43182. function isValidElementType(type) {
  43183. return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  43184. 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 || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
  43185. }
  43186. function typeOf(object) {
  43187. if (typeof object === 'object' && object !== null) {
  43188. var $$typeof = object.$$typeof;
  43189. switch ($$typeof) {
  43190. case REACT_ELEMENT_TYPE:
  43191. var type = object.type;
  43192. switch (type) {
  43193. case REACT_ASYNC_MODE_TYPE:
  43194. case REACT_CONCURRENT_MODE_TYPE:
  43195. case REACT_FRAGMENT_TYPE:
  43196. case REACT_PROFILER_TYPE:
  43197. case REACT_STRICT_MODE_TYPE:
  43198. case REACT_SUSPENSE_TYPE:
  43199. return type;
  43200. default:
  43201. var $$typeofType = type && type.$$typeof;
  43202. switch ($$typeofType) {
  43203. case REACT_CONTEXT_TYPE:
  43204. case REACT_FORWARD_REF_TYPE:
  43205. case REACT_LAZY_TYPE:
  43206. case REACT_MEMO_TYPE:
  43207. case REACT_PROVIDER_TYPE:
  43208. return $$typeofType;
  43209. default:
  43210. return $$typeof;
  43211. }
  43212. }
  43213. case REACT_PORTAL_TYPE:
  43214. return $$typeof;
  43215. }
  43216. }
  43217. return undefined;
  43218. } // AsyncMode is deprecated along with isAsyncMode
  43219. var AsyncMode = REACT_ASYNC_MODE_TYPE;
  43220. var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  43221. var ContextConsumer = REACT_CONTEXT_TYPE;
  43222. var ContextProvider = REACT_PROVIDER_TYPE;
  43223. var Element = REACT_ELEMENT_TYPE;
  43224. var ForwardRef = REACT_FORWARD_REF_TYPE;
  43225. var Fragment = REACT_FRAGMENT_TYPE;
  43226. var Lazy = REACT_LAZY_TYPE;
  43227. var Memo = REACT_MEMO_TYPE;
  43228. var Portal = REACT_PORTAL_TYPE;
  43229. var Profiler = REACT_PROFILER_TYPE;
  43230. var StrictMode = REACT_STRICT_MODE_TYPE;
  43231. var Suspense = REACT_SUSPENSE_TYPE;
  43232. var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
  43233. function isAsyncMode(object) {
  43234. {
  43235. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  43236. hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
  43237. console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
  43238. }
  43239. }
  43240. return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
  43241. }
  43242. function isConcurrentMode(object) {
  43243. return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
  43244. }
  43245. function isContextConsumer(object) {
  43246. return typeOf(object) === REACT_CONTEXT_TYPE;
  43247. }
  43248. function isContextProvider(object) {
  43249. return typeOf(object) === REACT_PROVIDER_TYPE;
  43250. }
  43251. function isElement(object) {
  43252. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  43253. }
  43254. function isForwardRef(object) {
  43255. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  43256. }
  43257. function isFragment(object) {
  43258. return typeOf(object) === REACT_FRAGMENT_TYPE;
  43259. }
  43260. function isLazy(object) {
  43261. return typeOf(object) === REACT_LAZY_TYPE;
  43262. }
  43263. function isMemo(object) {
  43264. return typeOf(object) === REACT_MEMO_TYPE;
  43265. }
  43266. function isPortal(object) {
  43267. return typeOf(object) === REACT_PORTAL_TYPE;
  43268. }
  43269. function isProfiler(object) {
  43270. return typeOf(object) === REACT_PROFILER_TYPE;
  43271. }
  43272. function isStrictMode(object) {
  43273. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  43274. }
  43275. function isSuspense(object) {
  43276. return typeOf(object) === REACT_SUSPENSE_TYPE;
  43277. }
  43278. exports.AsyncMode = AsyncMode;
  43279. exports.ConcurrentMode = ConcurrentMode;
  43280. exports.ContextConsumer = ContextConsumer;
  43281. exports.ContextProvider = ContextProvider;
  43282. exports.Element = Element;
  43283. exports.ForwardRef = ForwardRef;
  43284. exports.Fragment = Fragment;
  43285. exports.Lazy = Lazy;
  43286. exports.Memo = Memo;
  43287. exports.Portal = Portal;
  43288. exports.Profiler = Profiler;
  43289. exports.StrictMode = StrictMode;
  43290. exports.Suspense = Suspense;
  43291. exports.isAsyncMode = isAsyncMode;
  43292. exports.isConcurrentMode = isConcurrentMode;
  43293. exports.isContextConsumer = isContextConsumer;
  43294. exports.isContextProvider = isContextProvider;
  43295. exports.isElement = isElement;
  43296. exports.isForwardRef = isForwardRef;
  43297. exports.isFragment = isFragment;
  43298. exports.isLazy = isLazy;
  43299. exports.isMemo = isMemo;
  43300. exports.isPortal = isPortal;
  43301. exports.isProfiler = isProfiler;
  43302. exports.isStrictMode = isStrictMode;
  43303. exports.isSuspense = isSuspense;
  43304. exports.isValidElementType = isValidElementType;
  43305. exports.typeOf = typeOf;
  43306. })();
  43307. }
  43308. /***/ }),
  43309. /***/ "../../node_modules/react-is/index.js":
  43310. /*!**********************************************************!*\
  43311. !*** C:/Repos/Babylon.js/node_modules/react-is/index.js ***!
  43312. \**********************************************************/
  43313. /*! no static exports found */
  43314. /***/ (function(module, exports, __webpack_require__) {
  43315. "use strict";
  43316. if (false) {} else {
  43317. module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-is/cjs/react-is.development.js");
  43318. }
  43319. /***/ }),
  43320. /***/ "../../node_modules/react/cjs/react.development.js":
  43321. /*!***********************************************************************!*\
  43322. !*** C:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  43323. \***********************************************************************/
  43324. /*! no static exports found */
  43325. /***/ (function(module, exports, __webpack_require__) {
  43326. "use strict";
  43327. /** @license React v16.13.1
  43328. * react.development.js
  43329. *
  43330. * Copyright (c) Facebook, Inc. and its affiliates.
  43331. *
  43332. * This source code is licensed under the MIT license found in the
  43333. * LICENSE file in the root directory of this source tree.
  43334. */
  43335. if (true) {
  43336. (function() {
  43337. 'use strict';
  43338. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  43339. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  43340. var ReactVersion = '16.13.1';
  43341. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  43342. // nor polyfill, then a plain number is used for performance.
  43343. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  43344. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  43345. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  43346. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  43347. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  43348. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  43349. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  43350. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  43351. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  43352. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  43353. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  43354. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  43355. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  43356. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  43357. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
  43358. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  43359. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  43360. var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
  43361. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  43362. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  43363. function getIteratorFn(maybeIterable) {
  43364. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  43365. return null;
  43366. }
  43367. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  43368. if (typeof maybeIterator === 'function') {
  43369. return maybeIterator;
  43370. }
  43371. return null;
  43372. }
  43373. /**
  43374. * Keeps track of the current dispatcher.
  43375. */
  43376. var ReactCurrentDispatcher = {
  43377. /**
  43378. * @internal
  43379. * @type {ReactComponent}
  43380. */
  43381. current: null
  43382. };
  43383. /**
  43384. * Keeps track of the current batch's configuration such as how long an update
  43385. * should suspend for if it needs to.
  43386. */
  43387. var ReactCurrentBatchConfig = {
  43388. suspense: null
  43389. };
  43390. /**
  43391. * Keeps track of the current owner.
  43392. *
  43393. * The current owner is the component who should own any components that are
  43394. * currently being constructed.
  43395. */
  43396. var ReactCurrentOwner = {
  43397. /**
  43398. * @internal
  43399. * @type {ReactComponent}
  43400. */
  43401. current: null
  43402. };
  43403. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  43404. function describeComponentFrame (name, source, ownerName) {
  43405. var sourceInfo = '';
  43406. if (source) {
  43407. var path = source.fileName;
  43408. var fileName = path.replace(BEFORE_SLASH_RE, '');
  43409. {
  43410. // In DEV, include code for a common special case:
  43411. // prefer "folder/index.js" instead of just "index.js".
  43412. if (/^index\./.test(fileName)) {
  43413. var match = path.match(BEFORE_SLASH_RE);
  43414. if (match) {
  43415. var pathBeforeSlash = match[1];
  43416. if (pathBeforeSlash) {
  43417. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  43418. fileName = folderName + '/' + fileName;
  43419. }
  43420. }
  43421. }
  43422. }
  43423. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  43424. } else if (ownerName) {
  43425. sourceInfo = ' (created by ' + ownerName + ')';
  43426. }
  43427. return '\n in ' + (name || 'Unknown') + sourceInfo;
  43428. }
  43429. var Resolved = 1;
  43430. function refineResolvedLazyComponent(lazyComponent) {
  43431. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  43432. }
  43433. function getWrappedName(outerType, innerType, wrapperName) {
  43434. var functionName = innerType.displayName || innerType.name || '';
  43435. return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
  43436. }
  43437. function getComponentName(type) {
  43438. if (type == null) {
  43439. // Host root, text node or just invalid type.
  43440. return null;
  43441. }
  43442. {
  43443. if (typeof type.tag === 'number') {
  43444. error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  43445. }
  43446. }
  43447. if (typeof type === 'function') {
  43448. return type.displayName || type.name || null;
  43449. }
  43450. if (typeof type === 'string') {
  43451. return type;
  43452. }
  43453. switch (type) {
  43454. case REACT_FRAGMENT_TYPE:
  43455. return 'Fragment';
  43456. case REACT_PORTAL_TYPE:
  43457. return 'Portal';
  43458. case REACT_PROFILER_TYPE:
  43459. return "Profiler";
  43460. case REACT_STRICT_MODE_TYPE:
  43461. return 'StrictMode';
  43462. case REACT_SUSPENSE_TYPE:
  43463. return 'Suspense';
  43464. case REACT_SUSPENSE_LIST_TYPE:
  43465. return 'SuspenseList';
  43466. }
  43467. if (typeof type === 'object') {
  43468. switch (type.$$typeof) {
  43469. case REACT_CONTEXT_TYPE:
  43470. return 'Context.Consumer';
  43471. case REACT_PROVIDER_TYPE:
  43472. return 'Context.Provider';
  43473. case REACT_FORWARD_REF_TYPE:
  43474. return getWrappedName(type, type.render, 'ForwardRef');
  43475. case REACT_MEMO_TYPE:
  43476. return getComponentName(type.type);
  43477. case REACT_BLOCK_TYPE:
  43478. return getComponentName(type.render);
  43479. case REACT_LAZY_TYPE:
  43480. {
  43481. var thenable = type;
  43482. var resolvedThenable = refineResolvedLazyComponent(thenable);
  43483. if (resolvedThenable) {
  43484. return getComponentName(resolvedThenable);
  43485. }
  43486. break;
  43487. }
  43488. }
  43489. }
  43490. return null;
  43491. }
  43492. var ReactDebugCurrentFrame = {};
  43493. var currentlyValidatingElement = null;
  43494. function setCurrentlyValidatingElement(element) {
  43495. {
  43496. currentlyValidatingElement = element;
  43497. }
  43498. }
  43499. {
  43500. // Stack implementation injected by the current renderer.
  43501. ReactDebugCurrentFrame.getCurrentStack = null;
  43502. ReactDebugCurrentFrame.getStackAddendum = function () {
  43503. var stack = ''; // Add an extra top frame while an element is being validated
  43504. if (currentlyValidatingElement) {
  43505. var name = getComponentName(currentlyValidatingElement.type);
  43506. var owner = currentlyValidatingElement._owner;
  43507. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  43508. } // Delegate to the injected renderer-specific implementation
  43509. var impl = ReactDebugCurrentFrame.getCurrentStack;
  43510. if (impl) {
  43511. stack += impl() || '';
  43512. }
  43513. return stack;
  43514. };
  43515. }
  43516. /**
  43517. * Used by act() to track whether you're inside an act() scope.
  43518. */
  43519. var IsSomeRendererActing = {
  43520. current: false
  43521. };
  43522. var ReactSharedInternals = {
  43523. ReactCurrentDispatcher: ReactCurrentDispatcher,
  43524. ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  43525. ReactCurrentOwner: ReactCurrentOwner,
  43526. IsSomeRendererActing: IsSomeRendererActing,
  43527. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  43528. assign: _assign
  43529. };
  43530. {
  43531. _assign(ReactSharedInternals, {
  43532. // These should not be included in production.
  43533. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  43534. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  43535. // TODO: remove in React 17.0.
  43536. ReactComponentTreeHook: {}
  43537. });
  43538. }
  43539. // by calls to these methods by a Babel plugin.
  43540. //
  43541. // In PROD (or in packages without access to React internals),
  43542. // they are left as they are instead.
  43543. function warn(format) {
  43544. {
  43545. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  43546. args[_key - 1] = arguments[_key];
  43547. }
  43548. printWarning('warn', format, args);
  43549. }
  43550. }
  43551. function error(format) {
  43552. {
  43553. for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  43554. args[_key2 - 1] = arguments[_key2];
  43555. }
  43556. printWarning('error', format, args);
  43557. }
  43558. }
  43559. function printWarning(level, format, args) {
  43560. // When changing this logic, you might want to also
  43561. // update consoleWithStackDev.www.js as well.
  43562. {
  43563. var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
  43564. if (!hasExistingStack) {
  43565. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  43566. var stack = ReactDebugCurrentFrame.getStackAddendum();
  43567. if (stack !== '') {
  43568. format += '%s';
  43569. args = args.concat([stack]);
  43570. }
  43571. }
  43572. var argsWithFormat = args.map(function (item) {
  43573. return '' + item;
  43574. }); // Careful: RN currently depends on this prefix
  43575. argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
  43576. // breaks IE9: https://github.com/facebook/react/issues/13610
  43577. // eslint-disable-next-line react-internal/no-production-logging
  43578. Function.prototype.apply.call(console[level], console, argsWithFormat);
  43579. try {
  43580. // --- Welcome to debugging React ---
  43581. // This error was thrown as a convenience so that you can use this stack
  43582. // to find the callsite that caused this warning to fire.
  43583. var argIndex = 0;
  43584. var message = 'Warning: ' + format.replace(/%s/g, function () {
  43585. return args[argIndex++];
  43586. });
  43587. throw new Error(message);
  43588. } catch (x) {}
  43589. }
  43590. }
  43591. var didWarnStateUpdateForUnmountedComponent = {};
  43592. function warnNoop(publicInstance, callerName) {
  43593. {
  43594. var _constructor = publicInstance.constructor;
  43595. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  43596. var warningKey = componentName + "." + callerName;
  43597. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  43598. return;
  43599. }
  43600. error("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);
  43601. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  43602. }
  43603. }
  43604. /**
  43605. * This is the abstract API for an update queue.
  43606. */
  43607. var ReactNoopUpdateQueue = {
  43608. /**
  43609. * Checks whether or not this composite component is mounted.
  43610. * @param {ReactClass} publicInstance The instance we want to test.
  43611. * @return {boolean} True if mounted, false otherwise.
  43612. * @protected
  43613. * @final
  43614. */
  43615. isMounted: function (publicInstance) {
  43616. return false;
  43617. },
  43618. /**
  43619. * Forces an update. This should only be invoked when it is known with
  43620. * certainty that we are **not** in a DOM transaction.
  43621. *
  43622. * You may want to call this when you know that some deeper aspect of the
  43623. * component's state has changed but `setState` was not called.
  43624. *
  43625. * This will not invoke `shouldComponentUpdate`, but it will invoke
  43626. * `componentWillUpdate` and `componentDidUpdate`.
  43627. *
  43628. * @param {ReactClass} publicInstance The instance that should rerender.
  43629. * @param {?function} callback Called after component is updated.
  43630. * @param {?string} callerName name of the calling function in the public API.
  43631. * @internal
  43632. */
  43633. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  43634. warnNoop(publicInstance, 'forceUpdate');
  43635. },
  43636. /**
  43637. * Replaces all of the state. Always use this or `setState` to mutate state.
  43638. * You should treat `this.state` as immutable.
  43639. *
  43640. * There is no guarantee that `this.state` will be immediately updated, so
  43641. * accessing `this.state` after calling this method may return the old value.
  43642. *
  43643. * @param {ReactClass} publicInstance The instance that should rerender.
  43644. * @param {object} completeState Next state.
  43645. * @param {?function} callback Called after component is updated.
  43646. * @param {?string} callerName name of the calling function in the public API.
  43647. * @internal
  43648. */
  43649. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  43650. warnNoop(publicInstance, 'replaceState');
  43651. },
  43652. /**
  43653. * Sets a subset of the state. This only exists because _pendingState is
  43654. * internal. This provides a merging strategy that is not available to deep
  43655. * properties which is confusing. TODO: Expose pendingState or don't use it
  43656. * during the merge.
  43657. *
  43658. * @param {ReactClass} publicInstance The instance that should rerender.
  43659. * @param {object} partialState Next partial state to be merged with state.
  43660. * @param {?function} callback Called after component is updated.
  43661. * @param {?string} Name of the calling function in the public API.
  43662. * @internal
  43663. */
  43664. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  43665. warnNoop(publicInstance, 'setState');
  43666. }
  43667. };
  43668. var emptyObject = {};
  43669. {
  43670. Object.freeze(emptyObject);
  43671. }
  43672. /**
  43673. * Base class helpers for the updating state of a component.
  43674. */
  43675. function Component(props, context, updater) {
  43676. this.props = props;
  43677. this.context = context; // If a component has string refs, we will assign a different object later.
  43678. this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
  43679. // renderer.
  43680. this.updater = updater || ReactNoopUpdateQueue;
  43681. }
  43682. Component.prototype.isReactComponent = {};
  43683. /**
  43684. * Sets a subset of the state. Always use this to mutate
  43685. * state. You should treat `this.state` as immutable.
  43686. *
  43687. * There is no guarantee that `this.state` will be immediately updated, so
  43688. * accessing `this.state` after calling this method may return the old value.
  43689. *
  43690. * There is no guarantee that calls to `setState` will run synchronously,
  43691. * as they may eventually be batched together. You can provide an optional
  43692. * callback that will be executed when the call to setState is actually
  43693. * completed.
  43694. *
  43695. * When a function is provided to setState, it will be called at some point in
  43696. * the future (not synchronously). It will be called with the up to date
  43697. * component arguments (state, props, context). These values can be different
  43698. * from this.* because your function may be called after receiveProps but before
  43699. * shouldComponentUpdate, and this new state, props, and context will not yet be
  43700. * assigned to this.
  43701. *
  43702. * @param {object|function} partialState Next partial state or function to
  43703. * produce next partial state to be merged with current state.
  43704. * @param {?function} callback Called after state is updated.
  43705. * @final
  43706. * @protected
  43707. */
  43708. Component.prototype.setState = function (partialState, callback) {
  43709. if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
  43710. {
  43711. throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
  43712. }
  43713. }
  43714. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  43715. };
  43716. /**
  43717. * Forces an update. This should only be invoked when it is known with
  43718. * certainty that we are **not** in a DOM transaction.
  43719. *
  43720. * You may want to call this when you know that some deeper aspect of the
  43721. * component's state has changed but `setState` was not called.
  43722. *
  43723. * This will not invoke `shouldComponentUpdate`, but it will invoke
  43724. * `componentWillUpdate` and `componentDidUpdate`.
  43725. *
  43726. * @param {?function} callback Called after update is complete.
  43727. * @final
  43728. * @protected
  43729. */
  43730. Component.prototype.forceUpdate = function (callback) {
  43731. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  43732. };
  43733. /**
  43734. * Deprecated APIs. These APIs used to exist on classic React classes but since
  43735. * we would like to deprecate them, we're not going to move them over to this
  43736. * modern base class. Instead, we define a getter that warns if it's accessed.
  43737. */
  43738. {
  43739. var deprecatedAPIs = {
  43740. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  43741. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  43742. };
  43743. var defineDeprecationWarning = function (methodName, info) {
  43744. Object.defineProperty(Component.prototype, methodName, {
  43745. get: function () {
  43746. warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  43747. return undefined;
  43748. }
  43749. });
  43750. };
  43751. for (var fnName in deprecatedAPIs) {
  43752. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  43753. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  43754. }
  43755. }
  43756. }
  43757. function ComponentDummy() {}
  43758. ComponentDummy.prototype = Component.prototype;
  43759. /**
  43760. * Convenience component with default shallow equality check for sCU.
  43761. */
  43762. function PureComponent(props, context, updater) {
  43763. this.props = props;
  43764. this.context = context; // If a component has string refs, we will assign a different object later.
  43765. this.refs = emptyObject;
  43766. this.updater = updater || ReactNoopUpdateQueue;
  43767. }
  43768. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  43769. pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
  43770. _assign(pureComponentPrototype, Component.prototype);
  43771. pureComponentPrototype.isPureReactComponent = true;
  43772. // an immutable object with a single mutable value
  43773. function createRef() {
  43774. var refObject = {
  43775. current: null
  43776. };
  43777. {
  43778. Object.seal(refObject);
  43779. }
  43780. return refObject;
  43781. }
  43782. var hasOwnProperty = Object.prototype.hasOwnProperty;
  43783. var RESERVED_PROPS = {
  43784. key: true,
  43785. ref: true,
  43786. __self: true,
  43787. __source: true
  43788. };
  43789. var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
  43790. {
  43791. didWarnAboutStringRefs = {};
  43792. }
  43793. function hasValidRef(config) {
  43794. {
  43795. if (hasOwnProperty.call(config, 'ref')) {
  43796. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  43797. if (getter && getter.isReactWarning) {
  43798. return false;
  43799. }
  43800. }
  43801. }
  43802. return config.ref !== undefined;
  43803. }
  43804. function hasValidKey(config) {
  43805. {
  43806. if (hasOwnProperty.call(config, 'key')) {
  43807. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  43808. if (getter && getter.isReactWarning) {
  43809. return false;
  43810. }
  43811. }
  43812. }
  43813. return config.key !== undefined;
  43814. }
  43815. function defineKeyPropWarningGetter(props, displayName) {
  43816. var warnAboutAccessingKey = function () {
  43817. {
  43818. if (!specialPropKeyWarningShown) {
  43819. specialPropKeyWarningShown = true;
  43820. error('%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);
  43821. }
  43822. }
  43823. };
  43824. warnAboutAccessingKey.isReactWarning = true;
  43825. Object.defineProperty(props, 'key', {
  43826. get: warnAboutAccessingKey,
  43827. configurable: true
  43828. });
  43829. }
  43830. function defineRefPropWarningGetter(props, displayName) {
  43831. var warnAboutAccessingRef = function () {
  43832. {
  43833. if (!specialPropRefWarningShown) {
  43834. specialPropRefWarningShown = true;
  43835. error('%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);
  43836. }
  43837. }
  43838. };
  43839. warnAboutAccessingRef.isReactWarning = true;
  43840. Object.defineProperty(props, 'ref', {
  43841. get: warnAboutAccessingRef,
  43842. configurable: true
  43843. });
  43844. }
  43845. function warnIfStringRefCannotBeAutoConverted(config) {
  43846. {
  43847. if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
  43848. var componentName = getComponentName(ReactCurrentOwner.current.type);
  43849. if (!didWarnAboutStringRefs[componentName]) {
  43850. error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
  43851. didWarnAboutStringRefs[componentName] = true;
  43852. }
  43853. }
  43854. }
  43855. }
  43856. /**
  43857. * Factory method to create a new React element. This no longer adheres to
  43858. * the class pattern, so do not use new to call it. Also, instanceof check
  43859. * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
  43860. * if something is a React Element.
  43861. *
  43862. * @param {*} type
  43863. * @param {*} props
  43864. * @param {*} key
  43865. * @param {string|object} ref
  43866. * @param {*} owner
  43867. * @param {*} self A *temporary* helper to detect places where `this` is
  43868. * different from the `owner` when React.createElement is called, so that we
  43869. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  43870. * functions, and as long as `this` and owner are the same, there will be no
  43871. * change in behavior.
  43872. * @param {*} source An annotation object (added by a transpiler or otherwise)
  43873. * indicating filename, line number, and/or other information.
  43874. * @internal
  43875. */
  43876. var ReactElement = function (type, key, ref, self, source, owner, props) {
  43877. var element = {
  43878. // This tag allows us to uniquely identify this as a React Element
  43879. $$typeof: REACT_ELEMENT_TYPE,
  43880. // Built-in properties that belong on the element
  43881. type: type,
  43882. key: key,
  43883. ref: ref,
  43884. props: props,
  43885. // Record the component responsible for creating this element.
  43886. _owner: owner
  43887. };
  43888. {
  43889. // The validation flag is currently mutative. We put it on
  43890. // an external backing store so that we can freeze the whole object.
  43891. // This can be replaced with a WeakMap once they are implemented in
  43892. // commonly used development environments.
  43893. element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
  43894. // the validation flag non-enumerable (where possible, which should
  43895. // include every environment we run tests in), so the test framework
  43896. // ignores it.
  43897. Object.defineProperty(element._store, 'validated', {
  43898. configurable: false,
  43899. enumerable: false,
  43900. writable: true,
  43901. value: false
  43902. }); // self and source are DEV only properties.
  43903. Object.defineProperty(element, '_self', {
  43904. configurable: false,
  43905. enumerable: false,
  43906. writable: false,
  43907. value: self
  43908. }); // Two elements created in two different places should be considered
  43909. // equal for testing purposes and therefore we hide it from enumeration.
  43910. Object.defineProperty(element, '_source', {
  43911. configurable: false,
  43912. enumerable: false,
  43913. writable: false,
  43914. value: source
  43915. });
  43916. if (Object.freeze) {
  43917. Object.freeze(element.props);
  43918. Object.freeze(element);
  43919. }
  43920. }
  43921. return element;
  43922. };
  43923. /**
  43924. * Create and return a new ReactElement of the given type.
  43925. * See https://reactjs.org/docs/react-api.html#createelement
  43926. */
  43927. function createElement(type, config, children) {
  43928. var propName; // Reserved names are extracted
  43929. var props = {};
  43930. var key = null;
  43931. var ref = null;
  43932. var self = null;
  43933. var source = null;
  43934. if (config != null) {
  43935. if (hasValidRef(config)) {
  43936. ref = config.ref;
  43937. {
  43938. warnIfStringRefCannotBeAutoConverted(config);
  43939. }
  43940. }
  43941. if (hasValidKey(config)) {
  43942. key = '' + config.key;
  43943. }
  43944. self = config.__self === undefined ? null : config.__self;
  43945. source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
  43946. for (propName in config) {
  43947. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  43948. props[propName] = config[propName];
  43949. }
  43950. }
  43951. } // Children can be more than one argument, and those are transferred onto
  43952. // the newly allocated props object.
  43953. var childrenLength = arguments.length - 2;
  43954. if (childrenLength === 1) {
  43955. props.children = children;
  43956. } else if (childrenLength > 1) {
  43957. var childArray = Array(childrenLength);
  43958. for (var i = 0; i < childrenLength; i++) {
  43959. childArray[i] = arguments[i + 2];
  43960. }
  43961. {
  43962. if (Object.freeze) {
  43963. Object.freeze(childArray);
  43964. }
  43965. }
  43966. props.children = childArray;
  43967. } // Resolve default props
  43968. if (type && type.defaultProps) {
  43969. var defaultProps = type.defaultProps;
  43970. for (propName in defaultProps) {
  43971. if (props[propName] === undefined) {
  43972. props[propName] = defaultProps[propName];
  43973. }
  43974. }
  43975. }
  43976. {
  43977. if (key || ref) {
  43978. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  43979. if (key) {
  43980. defineKeyPropWarningGetter(props, displayName);
  43981. }
  43982. if (ref) {
  43983. defineRefPropWarningGetter(props, displayName);
  43984. }
  43985. }
  43986. }
  43987. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  43988. }
  43989. function cloneAndReplaceKey(oldElement, newKey) {
  43990. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  43991. return newElement;
  43992. }
  43993. /**
  43994. * Clone and return a new ReactElement using element as the starting point.
  43995. * See https://reactjs.org/docs/react-api.html#cloneelement
  43996. */
  43997. function cloneElement(element, config, children) {
  43998. if (!!(element === null || element === undefined)) {
  43999. {
  44000. throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
  44001. }
  44002. }
  44003. var propName; // Original props are copied
  44004. var props = _assign({}, element.props); // Reserved names are extracted
  44005. var key = element.key;
  44006. var ref = element.ref; // Self is preserved since the owner is preserved.
  44007. var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
  44008. // transpiler, and the original source is probably a better indicator of the
  44009. // true owner.
  44010. var source = element._source; // Owner will be preserved, unless ref is overridden
  44011. var owner = element._owner;
  44012. if (config != null) {
  44013. if (hasValidRef(config)) {
  44014. // Silently steal the ref from the parent.
  44015. ref = config.ref;
  44016. owner = ReactCurrentOwner.current;
  44017. }
  44018. if (hasValidKey(config)) {
  44019. key = '' + config.key;
  44020. } // Remaining properties override existing props
  44021. var defaultProps;
  44022. if (element.type && element.type.defaultProps) {
  44023. defaultProps = element.type.defaultProps;
  44024. }
  44025. for (propName in config) {
  44026. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  44027. if (config[propName] === undefined && defaultProps !== undefined) {
  44028. // Resolve default props
  44029. props[propName] = defaultProps[propName];
  44030. } else {
  44031. props[propName] = config[propName];
  44032. }
  44033. }
  44034. }
  44035. } // Children can be more than one argument, and those are transferred onto
  44036. // the newly allocated props object.
  44037. var childrenLength = arguments.length - 2;
  44038. if (childrenLength === 1) {
  44039. props.children = children;
  44040. } else if (childrenLength > 1) {
  44041. var childArray = Array(childrenLength);
  44042. for (var i = 0; i < childrenLength; i++) {
  44043. childArray[i] = arguments[i + 2];
  44044. }
  44045. props.children = childArray;
  44046. }
  44047. return ReactElement(element.type, key, ref, self, source, owner, props);
  44048. }
  44049. /**
  44050. * Verifies the object is a ReactElement.
  44051. * See https://reactjs.org/docs/react-api.html#isvalidelement
  44052. * @param {?object} object
  44053. * @return {boolean} True if `object` is a ReactElement.
  44054. * @final
  44055. */
  44056. function isValidElement(object) {
  44057. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  44058. }
  44059. var SEPARATOR = '.';
  44060. var SUBSEPARATOR = ':';
  44061. /**
  44062. * Escape and wrap key so it is safe to use as a reactid
  44063. *
  44064. * @param {string} key to be escaped.
  44065. * @return {string} the escaped key.
  44066. */
  44067. function escape(key) {
  44068. var escapeRegex = /[=:]/g;
  44069. var escaperLookup = {
  44070. '=': '=0',
  44071. ':': '=2'
  44072. };
  44073. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  44074. return escaperLookup[match];
  44075. });
  44076. return '$' + escapedString;
  44077. }
  44078. /**
  44079. * TODO: Test that a single child and an array with one item have the same key
  44080. * pattern.
  44081. */
  44082. var didWarnAboutMaps = false;
  44083. var userProvidedKeyEscapeRegex = /\/+/g;
  44084. function escapeUserProvidedKey(text) {
  44085. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  44086. }
  44087. var POOL_SIZE = 10;
  44088. var traverseContextPool = [];
  44089. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  44090. if (traverseContextPool.length) {
  44091. var traverseContext = traverseContextPool.pop();
  44092. traverseContext.result = mapResult;
  44093. traverseContext.keyPrefix = keyPrefix;
  44094. traverseContext.func = mapFunction;
  44095. traverseContext.context = mapContext;
  44096. traverseContext.count = 0;
  44097. return traverseContext;
  44098. } else {
  44099. return {
  44100. result: mapResult,
  44101. keyPrefix: keyPrefix,
  44102. func: mapFunction,
  44103. context: mapContext,
  44104. count: 0
  44105. };
  44106. }
  44107. }
  44108. function releaseTraverseContext(traverseContext) {
  44109. traverseContext.result = null;
  44110. traverseContext.keyPrefix = null;
  44111. traverseContext.func = null;
  44112. traverseContext.context = null;
  44113. traverseContext.count = 0;
  44114. if (traverseContextPool.length < POOL_SIZE) {
  44115. traverseContextPool.push(traverseContext);
  44116. }
  44117. }
  44118. /**
  44119. * @param {?*} children Children tree container.
  44120. * @param {!string} nameSoFar Name of the key path so far.
  44121. * @param {!function} callback Callback to invoke with each child found.
  44122. * @param {?*} traverseContext Used to pass information throughout the traversal
  44123. * process.
  44124. * @return {!number} The number of children in this subtree.
  44125. */
  44126. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  44127. var type = typeof children;
  44128. if (type === 'undefined' || type === 'boolean') {
  44129. // All of the above are perceived as null.
  44130. children = null;
  44131. }
  44132. var invokeCallback = false;
  44133. if (children === null) {
  44134. invokeCallback = true;
  44135. } else {
  44136. switch (type) {
  44137. case 'string':
  44138. case 'number':
  44139. invokeCallback = true;
  44140. break;
  44141. case 'object':
  44142. switch (children.$$typeof) {
  44143. case REACT_ELEMENT_TYPE:
  44144. case REACT_PORTAL_TYPE:
  44145. invokeCallback = true;
  44146. }
  44147. }
  44148. }
  44149. if (invokeCallback) {
  44150. callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
  44151. // so that it's consistent if the number of children grows.
  44152. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  44153. return 1;
  44154. }
  44155. var child;
  44156. var nextName;
  44157. var subtreeCount = 0; // Count of children found in the current subtree.
  44158. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  44159. if (Array.isArray(children)) {
  44160. for (var i = 0; i < children.length; i++) {
  44161. child = children[i];
  44162. nextName = nextNamePrefix + getComponentKey(child, i);
  44163. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  44164. }
  44165. } else {
  44166. var iteratorFn = getIteratorFn(children);
  44167. if (typeof iteratorFn === 'function') {
  44168. {
  44169. // Warn about using Maps as children
  44170. if (iteratorFn === children.entries) {
  44171. if (!didWarnAboutMaps) {
  44172. warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
  44173. }
  44174. didWarnAboutMaps = true;
  44175. }
  44176. }
  44177. var iterator = iteratorFn.call(children);
  44178. var step;
  44179. var ii = 0;
  44180. while (!(step = iterator.next()).done) {
  44181. child = step.value;
  44182. nextName = nextNamePrefix + getComponentKey(child, ii++);
  44183. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  44184. }
  44185. } else if (type === 'object') {
  44186. var addendum = '';
  44187. {
  44188. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  44189. }
  44190. var childrenString = '' + children;
  44191. {
  44192. {
  44193. throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
  44194. }
  44195. }
  44196. }
  44197. }
  44198. return subtreeCount;
  44199. }
  44200. /**
  44201. * Traverses children that are typically specified as `props.children`, but
  44202. * might also be specified through attributes:
  44203. *
  44204. * - `traverseAllChildren(this.props.children, ...)`
  44205. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  44206. *
  44207. * The `traverseContext` is an optional argument that is passed through the
  44208. * entire traversal. It can be used to store accumulations or anything else that
  44209. * the callback might find relevant.
  44210. *
  44211. * @param {?*} children Children tree object.
  44212. * @param {!function} callback To invoke upon traversing each child.
  44213. * @param {?*} traverseContext Context for traversal.
  44214. * @return {!number} The number of children in this subtree.
  44215. */
  44216. function traverseAllChildren(children, callback, traverseContext) {
  44217. if (children == null) {
  44218. return 0;
  44219. }
  44220. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  44221. }
  44222. /**
  44223. * Generate a key string that identifies a component within a set.
  44224. *
  44225. * @param {*} component A component that could contain a manual key.
  44226. * @param {number} index Index that is used if a manual key is not provided.
  44227. * @return {string}
  44228. */
  44229. function getComponentKey(component, index) {
  44230. // Do some typechecking here since we call this blindly. We want to ensure
  44231. // that we don't block potential future ES APIs.
  44232. if (typeof component === 'object' && component !== null && component.key != null) {
  44233. // Explicit key
  44234. return escape(component.key);
  44235. } // Implicit key determined by the index in the set
  44236. return index.toString(36);
  44237. }
  44238. function forEachSingleChild(bookKeeping, child, name) {
  44239. var func = bookKeeping.func,
  44240. context = bookKeeping.context;
  44241. func.call(context, child, bookKeeping.count++);
  44242. }
  44243. /**
  44244. * Iterates through children that are typically specified as `props.children`.
  44245. *
  44246. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  44247. *
  44248. * The provided forEachFunc(child, index) will be called for each
  44249. * leaf child.
  44250. *
  44251. * @param {?*} children Children tree container.
  44252. * @param {function(*, int)} forEachFunc
  44253. * @param {*} forEachContext Context for forEachContext.
  44254. */
  44255. function forEachChildren(children, forEachFunc, forEachContext) {
  44256. if (children == null) {
  44257. return children;
  44258. }
  44259. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  44260. traverseAllChildren(children, forEachSingleChild, traverseContext);
  44261. releaseTraverseContext(traverseContext);
  44262. }
  44263. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  44264. var result = bookKeeping.result,
  44265. keyPrefix = bookKeeping.keyPrefix,
  44266. func = bookKeeping.func,
  44267. context = bookKeeping.context;
  44268. var mappedChild = func.call(context, child, bookKeeping.count++);
  44269. if (Array.isArray(mappedChild)) {
  44270. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  44271. return c;
  44272. });
  44273. } else if (mappedChild != null) {
  44274. if (isValidElement(mappedChild)) {
  44275. mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
  44276. // traverseAllChildren used to do for objects as children
  44277. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  44278. }
  44279. result.push(mappedChild);
  44280. }
  44281. }
  44282. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  44283. var escapedPrefix = '';
  44284. if (prefix != null) {
  44285. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  44286. }
  44287. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  44288. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  44289. releaseTraverseContext(traverseContext);
  44290. }
  44291. /**
  44292. * Maps children that are typically specified as `props.children`.
  44293. *
  44294. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  44295. *
  44296. * The provided mapFunction(child, key, index) will be called for each
  44297. * leaf child.
  44298. *
  44299. * @param {?*} children Children tree container.
  44300. * @param {function(*, int)} func The map function.
  44301. * @param {*} context Context for mapFunction.
  44302. * @return {object} Object containing the ordered map of results.
  44303. */
  44304. function mapChildren(children, func, context) {
  44305. if (children == null) {
  44306. return children;
  44307. }
  44308. var result = [];
  44309. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  44310. return result;
  44311. }
  44312. /**
  44313. * Count the number of children that are typically specified as
  44314. * `props.children`.
  44315. *
  44316. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  44317. *
  44318. * @param {?*} children Children tree container.
  44319. * @return {number} The number of children.
  44320. */
  44321. function countChildren(children) {
  44322. return traverseAllChildren(children, function () {
  44323. return null;
  44324. }, null);
  44325. }
  44326. /**
  44327. * Flatten a children object (typically specified as `props.children`) and
  44328. * return an array with appropriately re-keyed children.
  44329. *
  44330. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  44331. */
  44332. function toArray(children) {
  44333. var result = [];
  44334. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  44335. return child;
  44336. });
  44337. return result;
  44338. }
  44339. /**
  44340. * Returns the first child in a collection of children and verifies that there
  44341. * is only one child in the collection.
  44342. *
  44343. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  44344. *
  44345. * The current implementation of this function assumes that a single child gets
  44346. * passed without a wrapper, but the purpose of this helper function is to
  44347. * abstract away the particular structure of children.
  44348. *
  44349. * @param {?object} children Child collection structure.
  44350. * @return {ReactElement} The first and only `ReactElement` contained in the
  44351. * structure.
  44352. */
  44353. function onlyChild(children) {
  44354. if (!isValidElement(children)) {
  44355. {
  44356. throw Error( "React.Children.only expected to receive a single React element child." );
  44357. }
  44358. }
  44359. return children;
  44360. }
  44361. function createContext(defaultValue, calculateChangedBits) {
  44362. if (calculateChangedBits === undefined) {
  44363. calculateChangedBits = null;
  44364. } else {
  44365. {
  44366. if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
  44367. error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
  44368. }
  44369. }
  44370. }
  44371. var context = {
  44372. $$typeof: REACT_CONTEXT_TYPE,
  44373. _calculateChangedBits: calculateChangedBits,
  44374. // As a workaround to support multiple concurrent renderers, we categorize
  44375. // some renderers as primary and others as secondary. We only expect
  44376. // there to be two concurrent renderers at most: React Native (primary) and
  44377. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  44378. // Secondary renderers store their context values on separate fields.
  44379. _currentValue: defaultValue,
  44380. _currentValue2: defaultValue,
  44381. // Used to track how many concurrent renderers this context currently
  44382. // supports within in a single renderer. Such as parallel server rendering.
  44383. _threadCount: 0,
  44384. // These are circular
  44385. Provider: null,
  44386. Consumer: null
  44387. };
  44388. context.Provider = {
  44389. $$typeof: REACT_PROVIDER_TYPE,
  44390. _context: context
  44391. };
  44392. var hasWarnedAboutUsingNestedContextConsumers = false;
  44393. var hasWarnedAboutUsingConsumerProvider = false;
  44394. {
  44395. // A separate object, but proxies back to the original context object for
  44396. // backwards compatibility. It has a different $$typeof, so we can properly
  44397. // warn for the incorrect usage of Context as a Consumer.
  44398. var Consumer = {
  44399. $$typeof: REACT_CONTEXT_TYPE,
  44400. _context: context,
  44401. _calculateChangedBits: context._calculateChangedBits
  44402. }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  44403. Object.defineProperties(Consumer, {
  44404. Provider: {
  44405. get: function () {
  44406. if (!hasWarnedAboutUsingConsumerProvider) {
  44407. hasWarnedAboutUsingConsumerProvider = true;
  44408. error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
  44409. }
  44410. return context.Provider;
  44411. },
  44412. set: function (_Provider) {
  44413. context.Provider = _Provider;
  44414. }
  44415. },
  44416. _currentValue: {
  44417. get: function () {
  44418. return context._currentValue;
  44419. },
  44420. set: function (_currentValue) {
  44421. context._currentValue = _currentValue;
  44422. }
  44423. },
  44424. _currentValue2: {
  44425. get: function () {
  44426. return context._currentValue2;
  44427. },
  44428. set: function (_currentValue2) {
  44429. context._currentValue2 = _currentValue2;
  44430. }
  44431. },
  44432. _threadCount: {
  44433. get: function () {
  44434. return context._threadCount;
  44435. },
  44436. set: function (_threadCount) {
  44437. context._threadCount = _threadCount;
  44438. }
  44439. },
  44440. Consumer: {
  44441. get: function () {
  44442. if (!hasWarnedAboutUsingNestedContextConsumers) {
  44443. hasWarnedAboutUsingNestedContextConsumers = true;
  44444. error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  44445. }
  44446. return context.Consumer;
  44447. }
  44448. }
  44449. }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  44450. context.Consumer = Consumer;
  44451. }
  44452. {
  44453. context._currentRenderer = null;
  44454. context._currentRenderer2 = null;
  44455. }
  44456. return context;
  44457. }
  44458. function lazy(ctor) {
  44459. var lazyType = {
  44460. $$typeof: REACT_LAZY_TYPE,
  44461. _ctor: ctor,
  44462. // React uses these fields to store the result.
  44463. _status: -1,
  44464. _result: null
  44465. };
  44466. {
  44467. // In production, this would just set it on the object.
  44468. var defaultProps;
  44469. var propTypes;
  44470. Object.defineProperties(lazyType, {
  44471. defaultProps: {
  44472. configurable: true,
  44473. get: function () {
  44474. return defaultProps;
  44475. },
  44476. set: function (newDefaultProps) {
  44477. error('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.');
  44478. defaultProps = newDefaultProps; // Match production behavior more closely:
  44479. Object.defineProperty(lazyType, 'defaultProps', {
  44480. enumerable: true
  44481. });
  44482. }
  44483. },
  44484. propTypes: {
  44485. configurable: true,
  44486. get: function () {
  44487. return propTypes;
  44488. },
  44489. set: function (newPropTypes) {
  44490. error('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.');
  44491. propTypes = newPropTypes; // Match production behavior more closely:
  44492. Object.defineProperty(lazyType, 'propTypes', {
  44493. enumerable: true
  44494. });
  44495. }
  44496. }
  44497. });
  44498. }
  44499. return lazyType;
  44500. }
  44501. function forwardRef(render) {
  44502. {
  44503. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  44504. error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  44505. } else if (typeof render !== 'function') {
  44506. error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  44507. } else {
  44508. if (render.length !== 0 && render.length !== 2) {
  44509. error('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.');
  44510. }
  44511. }
  44512. if (render != null) {
  44513. if (render.defaultProps != null || render.propTypes != null) {
  44514. error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
  44515. }
  44516. }
  44517. }
  44518. return {
  44519. $$typeof: REACT_FORWARD_REF_TYPE,
  44520. render: render
  44521. };
  44522. }
  44523. function isValidElementType(type) {
  44524. return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  44525. 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 || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
  44526. }
  44527. function memo(type, compare) {
  44528. {
  44529. if (!isValidElementType(type)) {
  44530. error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  44531. }
  44532. }
  44533. return {
  44534. $$typeof: REACT_MEMO_TYPE,
  44535. type: type,
  44536. compare: compare === undefined ? null : compare
  44537. };
  44538. }
  44539. function resolveDispatcher() {
  44540. var dispatcher = ReactCurrentDispatcher.current;
  44541. if (!(dispatcher !== null)) {
  44542. {
  44543. throw 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." );
  44544. }
  44545. }
  44546. return dispatcher;
  44547. }
  44548. function useContext(Context, unstable_observedBits) {
  44549. var dispatcher = resolveDispatcher();
  44550. {
  44551. if (unstable_observedBits !== undefined) {
  44552. error('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' : '');
  44553. } // TODO: add a more generic warning for invalid values.
  44554. if (Context._context !== undefined) {
  44555. var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
  44556. // and nobody should be using this in existing code.
  44557. if (realContext.Consumer === Context) {
  44558. error('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?');
  44559. } else if (realContext.Provider === Context) {
  44560. error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  44561. }
  44562. }
  44563. }
  44564. return dispatcher.useContext(Context, unstable_observedBits);
  44565. }
  44566. function useState(initialState) {
  44567. var dispatcher = resolveDispatcher();
  44568. return dispatcher.useState(initialState);
  44569. }
  44570. function useReducer(reducer, initialArg, init) {
  44571. var dispatcher = resolveDispatcher();
  44572. return dispatcher.useReducer(reducer, initialArg, init);
  44573. }
  44574. function useRef(initialValue) {
  44575. var dispatcher = resolveDispatcher();
  44576. return dispatcher.useRef(initialValue);
  44577. }
  44578. function useEffect(create, deps) {
  44579. var dispatcher = resolveDispatcher();
  44580. return dispatcher.useEffect(create, deps);
  44581. }
  44582. function useLayoutEffect(create, deps) {
  44583. var dispatcher = resolveDispatcher();
  44584. return dispatcher.useLayoutEffect(create, deps);
  44585. }
  44586. function useCallback(callback, deps) {
  44587. var dispatcher = resolveDispatcher();
  44588. return dispatcher.useCallback(callback, deps);
  44589. }
  44590. function useMemo(create, deps) {
  44591. var dispatcher = resolveDispatcher();
  44592. return dispatcher.useMemo(create, deps);
  44593. }
  44594. function useImperativeHandle(ref, create, deps) {
  44595. var dispatcher = resolveDispatcher();
  44596. return dispatcher.useImperativeHandle(ref, create, deps);
  44597. }
  44598. function useDebugValue(value, formatterFn) {
  44599. {
  44600. var dispatcher = resolveDispatcher();
  44601. return dispatcher.useDebugValue(value, formatterFn);
  44602. }
  44603. }
  44604. var propTypesMisspellWarningShown;
  44605. {
  44606. propTypesMisspellWarningShown = false;
  44607. }
  44608. function getDeclarationErrorAddendum() {
  44609. if (ReactCurrentOwner.current) {
  44610. var name = getComponentName(ReactCurrentOwner.current.type);
  44611. if (name) {
  44612. return '\n\nCheck the render method of `' + name + '`.';
  44613. }
  44614. }
  44615. return '';
  44616. }
  44617. function getSourceInfoErrorAddendum(source) {
  44618. if (source !== undefined) {
  44619. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  44620. var lineNumber = source.lineNumber;
  44621. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  44622. }
  44623. return '';
  44624. }
  44625. function getSourceInfoErrorAddendumForProps(elementProps) {
  44626. if (elementProps !== null && elementProps !== undefined) {
  44627. return getSourceInfoErrorAddendum(elementProps.__source);
  44628. }
  44629. return '';
  44630. }
  44631. /**
  44632. * Warn if there's no key explicitly set on dynamic arrays of children or
  44633. * object keys are not valid. This allows us to keep track of children between
  44634. * updates.
  44635. */
  44636. var ownerHasKeyUseWarning = {};
  44637. function getCurrentComponentErrorInfo(parentType) {
  44638. var info = getDeclarationErrorAddendum();
  44639. if (!info) {
  44640. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  44641. if (parentName) {
  44642. info = "\n\nCheck the top-level render call using <" + parentName + ">.";
  44643. }
  44644. }
  44645. return info;
  44646. }
  44647. /**
  44648. * Warn if the element doesn't have an explicit key assigned to it.
  44649. * This element is in an array. The array could grow and shrink or be
  44650. * reordered. All children that haven't already been validated are required to
  44651. * have a "key" property assigned to it. Error statuses are cached so a warning
  44652. * will only be shown once.
  44653. *
  44654. * @internal
  44655. * @param {ReactElement} element Element that requires a key.
  44656. * @param {*} parentType element's parent's type.
  44657. */
  44658. function validateExplicitKey(element, parentType) {
  44659. if (!element._store || element._store.validated || element.key != null) {
  44660. return;
  44661. }
  44662. element._store.validated = true;
  44663. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  44664. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  44665. return;
  44666. }
  44667. ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
  44668. // property, it may be the creator of the child that's responsible for
  44669. // assigning it a key.
  44670. var childOwner = '';
  44671. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  44672. // Give the component that originally created this child.
  44673. childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
  44674. }
  44675. setCurrentlyValidatingElement(element);
  44676. {
  44677. error('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);
  44678. }
  44679. setCurrentlyValidatingElement(null);
  44680. }
  44681. /**
  44682. * Ensure that every element either is passed in a static location, in an
  44683. * array with an explicit keys property defined, or in an object literal
  44684. * with valid key property.
  44685. *
  44686. * @internal
  44687. * @param {ReactNode} node Statically passed child of any type.
  44688. * @param {*} parentType node's parent's type.
  44689. */
  44690. function validateChildKeys(node, parentType) {
  44691. if (typeof node !== 'object') {
  44692. return;
  44693. }
  44694. if (Array.isArray(node)) {
  44695. for (var i = 0; i < node.length; i++) {
  44696. var child = node[i];
  44697. if (isValidElement(child)) {
  44698. validateExplicitKey(child, parentType);
  44699. }
  44700. }
  44701. } else if (isValidElement(node)) {
  44702. // This element was passed in a valid location.
  44703. if (node._store) {
  44704. node._store.validated = true;
  44705. }
  44706. } else if (node) {
  44707. var iteratorFn = getIteratorFn(node);
  44708. if (typeof iteratorFn === 'function') {
  44709. // Entry iterators used to provide implicit keys,
  44710. // but now we print a separate warning for them later.
  44711. if (iteratorFn !== node.entries) {
  44712. var iterator = iteratorFn.call(node);
  44713. var step;
  44714. while (!(step = iterator.next()).done) {
  44715. if (isValidElement(step.value)) {
  44716. validateExplicitKey(step.value, parentType);
  44717. }
  44718. }
  44719. }
  44720. }
  44721. }
  44722. }
  44723. /**
  44724. * Given an element, validate that its props follow the propTypes definition,
  44725. * provided by the type.
  44726. *
  44727. * @param {ReactElement} element
  44728. */
  44729. function validatePropTypes(element) {
  44730. {
  44731. var type = element.type;
  44732. if (type === null || type === undefined || typeof type === 'string') {
  44733. return;
  44734. }
  44735. var name = getComponentName(type);
  44736. var propTypes;
  44737. if (typeof type === 'function') {
  44738. propTypes = type.propTypes;
  44739. } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
  44740. // Inner props are checked in the reconciler.
  44741. type.$$typeof === REACT_MEMO_TYPE)) {
  44742. propTypes = type.propTypes;
  44743. } else {
  44744. return;
  44745. }
  44746. if (propTypes) {
  44747. setCurrentlyValidatingElement(element);
  44748. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  44749. setCurrentlyValidatingElement(null);
  44750. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  44751. propTypesMisspellWarningShown = true;
  44752. error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  44753. }
  44754. if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
  44755. error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
  44756. }
  44757. }
  44758. }
  44759. /**
  44760. * Given a fragment, validate that it can only be provided with fragment props
  44761. * @param {ReactElement} fragment
  44762. */
  44763. function validateFragmentProps(fragment) {
  44764. {
  44765. setCurrentlyValidatingElement(fragment);
  44766. var keys = Object.keys(fragment.props);
  44767. for (var i = 0; i < keys.length; i++) {
  44768. var key = keys[i];
  44769. if (key !== 'children' && key !== 'key') {
  44770. error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  44771. break;
  44772. }
  44773. }
  44774. if (fragment.ref !== null) {
  44775. error('Invalid attribute `ref` supplied to `React.Fragment`.');
  44776. }
  44777. setCurrentlyValidatingElement(null);
  44778. }
  44779. }
  44780. function createElementWithValidation(type, props, children) {
  44781. var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
  44782. // succeed and there will likely be errors in render.
  44783. if (!validType) {
  44784. var info = '';
  44785. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  44786. 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.";
  44787. }
  44788. var sourceInfo = getSourceInfoErrorAddendumForProps(props);
  44789. if (sourceInfo) {
  44790. info += sourceInfo;
  44791. } else {
  44792. info += getDeclarationErrorAddendum();
  44793. }
  44794. var typeString;
  44795. if (type === null) {
  44796. typeString = 'null';
  44797. } else if (Array.isArray(type)) {
  44798. typeString = 'array';
  44799. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  44800. typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
  44801. info = ' Did you accidentally export a JSX literal instead of a component?';
  44802. } else {
  44803. typeString = typeof type;
  44804. }
  44805. {
  44806. error('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);
  44807. }
  44808. }
  44809. var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
  44810. // TODO: Drop this when these are no longer allowed as the type argument.
  44811. if (element == null) {
  44812. return element;
  44813. } // Skip key warning if the type isn't valid since our key validation logic
  44814. // doesn't expect a non-string/function type and can throw confusing errors.
  44815. // We don't want exception behavior to differ between dev and prod.
  44816. // (Rendering will throw with a helpful message and as soon as the type is
  44817. // fixed, the key warnings will appear.)
  44818. if (validType) {
  44819. for (var i = 2; i < arguments.length; i++) {
  44820. validateChildKeys(arguments[i], type);
  44821. }
  44822. }
  44823. if (type === REACT_FRAGMENT_TYPE) {
  44824. validateFragmentProps(element);
  44825. } else {
  44826. validatePropTypes(element);
  44827. }
  44828. return element;
  44829. }
  44830. var didWarnAboutDeprecatedCreateFactory = false;
  44831. function createFactoryWithValidation(type) {
  44832. var validatedFactory = createElementWithValidation.bind(null, type);
  44833. validatedFactory.type = type;
  44834. {
  44835. if (!didWarnAboutDeprecatedCreateFactory) {
  44836. didWarnAboutDeprecatedCreateFactory = true;
  44837. warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
  44838. } // Legacy hook: remove it
  44839. Object.defineProperty(validatedFactory, 'type', {
  44840. enumerable: false,
  44841. get: function () {
  44842. warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  44843. Object.defineProperty(this, 'type', {
  44844. value: type
  44845. });
  44846. return type;
  44847. }
  44848. });
  44849. }
  44850. return validatedFactory;
  44851. }
  44852. function cloneElementWithValidation(element, props, children) {
  44853. var newElement = cloneElement.apply(this, arguments);
  44854. for (var i = 2; i < arguments.length; i++) {
  44855. validateChildKeys(arguments[i], newElement.type);
  44856. }
  44857. validatePropTypes(newElement);
  44858. return newElement;
  44859. }
  44860. {
  44861. try {
  44862. var frozenObject = Object.freeze({});
  44863. var testMap = new Map([[frozenObject, null]]);
  44864. var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
  44865. // https://github.com/rollup/rollup/issues/1771
  44866. // TODO: we can remove these if Rollup fixes the bug.
  44867. testMap.set(0, 0);
  44868. testSet.add(0);
  44869. } catch (e) {
  44870. }
  44871. }
  44872. var createElement$1 = createElementWithValidation ;
  44873. var cloneElement$1 = cloneElementWithValidation ;
  44874. var createFactory = createFactoryWithValidation ;
  44875. var Children = {
  44876. map: mapChildren,
  44877. forEach: forEachChildren,
  44878. count: countChildren,
  44879. toArray: toArray,
  44880. only: onlyChild
  44881. };
  44882. exports.Children = Children;
  44883. exports.Component = Component;
  44884. exports.Fragment = REACT_FRAGMENT_TYPE;
  44885. exports.Profiler = REACT_PROFILER_TYPE;
  44886. exports.PureComponent = PureComponent;
  44887. exports.StrictMode = REACT_STRICT_MODE_TYPE;
  44888. exports.Suspense = REACT_SUSPENSE_TYPE;
  44889. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
  44890. exports.cloneElement = cloneElement$1;
  44891. exports.createContext = createContext;
  44892. exports.createElement = createElement$1;
  44893. exports.createFactory = createFactory;
  44894. exports.createRef = createRef;
  44895. exports.forwardRef = forwardRef;
  44896. exports.isValidElement = isValidElement;
  44897. exports.lazy = lazy;
  44898. exports.memo = memo;
  44899. exports.useCallback = useCallback;
  44900. exports.useContext = useContext;
  44901. exports.useDebugValue = useDebugValue;
  44902. exports.useEffect = useEffect;
  44903. exports.useImperativeHandle = useImperativeHandle;
  44904. exports.useLayoutEffect = useLayoutEffect;
  44905. exports.useMemo = useMemo;
  44906. exports.useReducer = useReducer;
  44907. exports.useRef = useRef;
  44908. exports.useState = useState;
  44909. exports.version = ReactVersion;
  44910. })();
  44911. }
  44912. /***/ }),
  44913. /***/ "../../node_modules/react/index.js":
  44914. /*!*******************************************************!*\
  44915. !*** C:/Repos/Babylon.js/node_modules/react/index.js ***!
  44916. \*******************************************************/
  44917. /*! no static exports found */
  44918. /***/ (function(module, exports, __webpack_require__) {
  44919. "use strict";
  44920. if (false) {} else {
  44921. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  44922. }
  44923. /***/ }),
  44924. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  44925. /*!***************************************************************************************!*\
  44926. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  44927. \***************************************************************************************/
  44928. /*! no static exports found */
  44929. /***/ (function(module, exports, __webpack_require__) {
  44930. "use strict";
  44931. /** @license React v0.19.1
  44932. * scheduler-tracing.development.js
  44933. *
  44934. * Copyright (c) Facebook, Inc. and its affiliates.
  44935. *
  44936. * This source code is licensed under the MIT license found in the
  44937. * LICENSE file in the root directory of this source tree.
  44938. */
  44939. if (true) {
  44940. (function() {
  44941. 'use strict';
  44942. var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.
  44943. var interactionIDCounter = 0;
  44944. var threadIDCounter = 0; // Set of currently traced interactions.
  44945. // Interactions "stack"–
  44946. // Meaning that newly traced interactions are appended to the previously active set.
  44947. // When an interaction goes out of scope, the previous set (if any) is restored.
  44948. exports.__interactionsRef = null; // Listener(s) to notify when interactions begin and end.
  44949. exports.__subscriberRef = null;
  44950. {
  44951. exports.__interactionsRef = {
  44952. current: new Set()
  44953. };
  44954. exports.__subscriberRef = {
  44955. current: null
  44956. };
  44957. }
  44958. function unstable_clear(callback) {
  44959. var prevInteractions = exports.__interactionsRef.current;
  44960. exports.__interactionsRef.current = new Set();
  44961. try {
  44962. return callback();
  44963. } finally {
  44964. exports.__interactionsRef.current = prevInteractions;
  44965. }
  44966. }
  44967. function unstable_getCurrent() {
  44968. {
  44969. return exports.__interactionsRef.current;
  44970. }
  44971. }
  44972. function unstable_getThreadID() {
  44973. return ++threadIDCounter;
  44974. }
  44975. function unstable_trace(name, timestamp, callback) {
  44976. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  44977. var interaction = {
  44978. __count: 1,
  44979. id: interactionIDCounter++,
  44980. name: name,
  44981. timestamp: timestamp
  44982. };
  44983. var prevInteractions = exports.__interactionsRef.current; // Traced interactions should stack/accumulate.
  44984. // To do that, clone the current interactions.
  44985. // The previous set will be restored upon completion.
  44986. var interactions = new Set(prevInteractions);
  44987. interactions.add(interaction);
  44988. exports.__interactionsRef.current = interactions;
  44989. var subscriber = exports.__subscriberRef.current;
  44990. var returnValue;
  44991. try {
  44992. if (subscriber !== null) {
  44993. subscriber.onInteractionTraced(interaction);
  44994. }
  44995. } finally {
  44996. try {
  44997. if (subscriber !== null) {
  44998. subscriber.onWorkStarted(interactions, threadID);
  44999. }
  45000. } finally {
  45001. try {
  45002. returnValue = callback();
  45003. } finally {
  45004. exports.__interactionsRef.current = prevInteractions;
  45005. try {
  45006. if (subscriber !== null) {
  45007. subscriber.onWorkStopped(interactions, threadID);
  45008. }
  45009. } finally {
  45010. interaction.__count--; // If no async work was scheduled for this interaction,
  45011. // Notify subscribers that it's completed.
  45012. if (subscriber !== null && interaction.__count === 0) {
  45013. subscriber.onInteractionScheduledWorkCompleted(interaction);
  45014. }
  45015. }
  45016. }
  45017. }
  45018. }
  45019. return returnValue;
  45020. }
  45021. function unstable_wrap(callback) {
  45022. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  45023. var wrappedInteractions = exports.__interactionsRef.current;
  45024. var subscriber = exports.__subscriberRef.current;
  45025. if (subscriber !== null) {
  45026. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  45027. } // Update the pending async work count for the current interactions.
  45028. // Update after calling subscribers in case of error.
  45029. wrappedInteractions.forEach(function (interaction) {
  45030. interaction.__count++;
  45031. });
  45032. var hasRun = false;
  45033. function wrapped() {
  45034. var prevInteractions = exports.__interactionsRef.current;
  45035. exports.__interactionsRef.current = wrappedInteractions;
  45036. subscriber = exports.__subscriberRef.current;
  45037. try {
  45038. var returnValue;
  45039. try {
  45040. if (subscriber !== null) {
  45041. subscriber.onWorkStarted(wrappedInteractions, threadID);
  45042. }
  45043. } finally {
  45044. try {
  45045. returnValue = callback.apply(undefined, arguments);
  45046. } finally {
  45047. exports.__interactionsRef.current = prevInteractions;
  45048. if (subscriber !== null) {
  45049. subscriber.onWorkStopped(wrappedInteractions, threadID);
  45050. }
  45051. }
  45052. }
  45053. return returnValue;
  45054. } finally {
  45055. if (!hasRun) {
  45056. // We only expect a wrapped function to be executed once,
  45057. // But in the event that it's executed more than once–
  45058. // Only decrement the outstanding interaction counts once.
  45059. hasRun = true; // Update pending async counts for all wrapped interactions.
  45060. // If this was the last scheduled async work for any of them,
  45061. // Mark them as completed.
  45062. wrappedInteractions.forEach(function (interaction) {
  45063. interaction.__count--;
  45064. if (subscriber !== null && interaction.__count === 0) {
  45065. subscriber.onInteractionScheduledWorkCompleted(interaction);
  45066. }
  45067. });
  45068. }
  45069. }
  45070. }
  45071. wrapped.cancel = function cancel() {
  45072. subscriber = exports.__subscriberRef.current;
  45073. try {
  45074. if (subscriber !== null) {
  45075. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  45076. }
  45077. } finally {
  45078. // Update pending async counts for all wrapped interactions.
  45079. // If this was the last scheduled async work for any of them,
  45080. // Mark them as completed.
  45081. wrappedInteractions.forEach(function (interaction) {
  45082. interaction.__count--;
  45083. if (subscriber && interaction.__count === 0) {
  45084. subscriber.onInteractionScheduledWorkCompleted(interaction);
  45085. }
  45086. });
  45087. }
  45088. };
  45089. return wrapped;
  45090. }
  45091. var subscribers = null;
  45092. {
  45093. subscribers = new Set();
  45094. }
  45095. function unstable_subscribe(subscriber) {
  45096. {
  45097. subscribers.add(subscriber);
  45098. if (subscribers.size === 1) {
  45099. exports.__subscriberRef.current = {
  45100. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  45101. onInteractionTraced: onInteractionTraced,
  45102. onWorkCanceled: onWorkCanceled,
  45103. onWorkScheduled: onWorkScheduled,
  45104. onWorkStarted: onWorkStarted,
  45105. onWorkStopped: onWorkStopped
  45106. };
  45107. }
  45108. }
  45109. }
  45110. function unstable_unsubscribe(subscriber) {
  45111. {
  45112. subscribers.delete(subscriber);
  45113. if (subscribers.size === 0) {
  45114. exports.__subscriberRef.current = null;
  45115. }
  45116. }
  45117. }
  45118. function onInteractionTraced(interaction) {
  45119. var didCatchError = false;
  45120. var caughtError = null;
  45121. subscribers.forEach(function (subscriber) {
  45122. try {
  45123. subscriber.onInteractionTraced(interaction);
  45124. } catch (error) {
  45125. if (!didCatchError) {
  45126. didCatchError = true;
  45127. caughtError = error;
  45128. }
  45129. }
  45130. });
  45131. if (didCatchError) {
  45132. throw caughtError;
  45133. }
  45134. }
  45135. function onInteractionScheduledWorkCompleted(interaction) {
  45136. var didCatchError = false;
  45137. var caughtError = null;
  45138. subscribers.forEach(function (subscriber) {
  45139. try {
  45140. subscriber.onInteractionScheduledWorkCompleted(interaction);
  45141. } catch (error) {
  45142. if (!didCatchError) {
  45143. didCatchError = true;
  45144. caughtError = error;
  45145. }
  45146. }
  45147. });
  45148. if (didCatchError) {
  45149. throw caughtError;
  45150. }
  45151. }
  45152. function onWorkScheduled(interactions, threadID) {
  45153. var didCatchError = false;
  45154. var caughtError = null;
  45155. subscribers.forEach(function (subscriber) {
  45156. try {
  45157. subscriber.onWorkScheduled(interactions, threadID);
  45158. } catch (error) {
  45159. if (!didCatchError) {
  45160. didCatchError = true;
  45161. caughtError = error;
  45162. }
  45163. }
  45164. });
  45165. if (didCatchError) {
  45166. throw caughtError;
  45167. }
  45168. }
  45169. function onWorkStarted(interactions, threadID) {
  45170. var didCatchError = false;
  45171. var caughtError = null;
  45172. subscribers.forEach(function (subscriber) {
  45173. try {
  45174. subscriber.onWorkStarted(interactions, threadID);
  45175. } catch (error) {
  45176. if (!didCatchError) {
  45177. didCatchError = true;
  45178. caughtError = error;
  45179. }
  45180. }
  45181. });
  45182. if (didCatchError) {
  45183. throw caughtError;
  45184. }
  45185. }
  45186. function onWorkStopped(interactions, threadID) {
  45187. var didCatchError = false;
  45188. var caughtError = null;
  45189. subscribers.forEach(function (subscriber) {
  45190. try {
  45191. subscriber.onWorkStopped(interactions, threadID);
  45192. } catch (error) {
  45193. if (!didCatchError) {
  45194. didCatchError = true;
  45195. caughtError = error;
  45196. }
  45197. }
  45198. });
  45199. if (didCatchError) {
  45200. throw caughtError;
  45201. }
  45202. }
  45203. function onWorkCanceled(interactions, threadID) {
  45204. var didCatchError = false;
  45205. var caughtError = null;
  45206. subscribers.forEach(function (subscriber) {
  45207. try {
  45208. subscriber.onWorkCanceled(interactions, threadID);
  45209. } catch (error) {
  45210. if (!didCatchError) {
  45211. didCatchError = true;
  45212. caughtError = error;
  45213. }
  45214. }
  45215. });
  45216. if (didCatchError) {
  45217. throw caughtError;
  45218. }
  45219. }
  45220. exports.unstable_clear = unstable_clear;
  45221. exports.unstable_getCurrent = unstable_getCurrent;
  45222. exports.unstable_getThreadID = unstable_getThreadID;
  45223. exports.unstable_subscribe = unstable_subscribe;
  45224. exports.unstable_trace = unstable_trace;
  45225. exports.unstable_unsubscribe = unstable_unsubscribe;
  45226. exports.unstable_wrap = unstable_wrap;
  45227. })();
  45228. }
  45229. /***/ }),
  45230. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  45231. /*!*******************************************************************************!*\
  45232. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  45233. \*******************************************************************************/
  45234. /*! no static exports found */
  45235. /***/ (function(module, exports, __webpack_require__) {
  45236. "use strict";
  45237. /** @license React v0.19.1
  45238. * scheduler.development.js
  45239. *
  45240. * Copyright (c) Facebook, Inc. and its affiliates.
  45241. *
  45242. * This source code is licensed under the MIT license found in the
  45243. * LICENSE file in the root directory of this source tree.
  45244. */
  45245. if (true) {
  45246. (function() {
  45247. 'use strict';
  45248. var enableSchedulerDebugging = false;
  45249. var enableProfiling = true;
  45250. var requestHostCallback;
  45251. var requestHostTimeout;
  45252. var cancelHostTimeout;
  45253. var shouldYieldToHost;
  45254. var requestPaint;
  45255. if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
  45256. // implementation using setTimeout.
  45257. typeof window === 'undefined' || // Check if MessageChannel is supported, too.
  45258. typeof MessageChannel !== 'function') {
  45259. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  45260. // fallback to a naive implementation.
  45261. var _callback = null;
  45262. var _timeoutID = null;
  45263. var _flushCallback = function () {
  45264. if (_callback !== null) {
  45265. try {
  45266. var currentTime = exports.unstable_now();
  45267. var hasRemainingTime = true;
  45268. _callback(hasRemainingTime, currentTime);
  45269. _callback = null;
  45270. } catch (e) {
  45271. setTimeout(_flushCallback, 0);
  45272. throw e;
  45273. }
  45274. }
  45275. };
  45276. var initialTime = Date.now();
  45277. exports.unstable_now = function () {
  45278. return Date.now() - initialTime;
  45279. };
  45280. requestHostCallback = function (cb) {
  45281. if (_callback !== null) {
  45282. // Protect against re-entrancy.
  45283. setTimeout(requestHostCallback, 0, cb);
  45284. } else {
  45285. _callback = cb;
  45286. setTimeout(_flushCallback, 0);
  45287. }
  45288. };
  45289. requestHostTimeout = function (cb, ms) {
  45290. _timeoutID = setTimeout(cb, ms);
  45291. };
  45292. cancelHostTimeout = function () {
  45293. clearTimeout(_timeoutID);
  45294. };
  45295. shouldYieldToHost = function () {
  45296. return false;
  45297. };
  45298. requestPaint = exports.unstable_forceFrameRate = function () {};
  45299. } else {
  45300. // Capture local references to native APIs, in case a polyfill overrides them.
  45301. var performance = window.performance;
  45302. var _Date = window.Date;
  45303. var _setTimeout = window.setTimeout;
  45304. var _clearTimeout = window.clearTimeout;
  45305. if (typeof console !== 'undefined') {
  45306. // TODO: Scheduler no longer requires these methods to be polyfilled. But
  45307. // maybe we want to continue warning if they don't exist, to preserve the
  45308. // option to rely on it in the future?
  45309. var requestAnimationFrame = window.requestAnimationFrame;
  45310. var cancelAnimationFrame = window.cancelAnimationFrame; // TODO: Remove fb.me link
  45311. if (typeof requestAnimationFrame !== 'function') {
  45312. // Using console['error'] to evade Babel and ESLint
  45313. console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  45314. }
  45315. if (typeof cancelAnimationFrame !== 'function') {
  45316. // Using console['error'] to evade Babel and ESLint
  45317. console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  45318. }
  45319. }
  45320. if (typeof performance === 'object' && typeof performance.now === 'function') {
  45321. exports.unstable_now = function () {
  45322. return performance.now();
  45323. };
  45324. } else {
  45325. var _initialTime = _Date.now();
  45326. exports.unstable_now = function () {
  45327. return _Date.now() - _initialTime;
  45328. };
  45329. }
  45330. var isMessageLoopRunning = false;
  45331. var scheduledHostCallback = null;
  45332. var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
  45333. // thread, like user events. By default, it yields multiple times per frame.
  45334. // It does not attempt to align with frame boundaries, since most tasks don't
  45335. // need to be frame aligned; for those that do, use requestAnimationFrame.
  45336. var yieldInterval = 5;
  45337. var deadline = 0; // TODO: Make this configurable
  45338. {
  45339. // `isInputPending` is not available. Since we have no way of knowing if
  45340. // there's pending input, always yield at the end of the frame.
  45341. shouldYieldToHost = function () {
  45342. return exports.unstable_now() >= deadline;
  45343. }; // Since we yield every frame regardless, `requestPaint` has no effect.
  45344. requestPaint = function () {};
  45345. }
  45346. exports.unstable_forceFrameRate = function (fps) {
  45347. if (fps < 0 || fps > 125) {
  45348. // Using console['error'] to evade Babel and ESLint
  45349. console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
  45350. return;
  45351. }
  45352. if (fps > 0) {
  45353. yieldInterval = Math.floor(1000 / fps);
  45354. } else {
  45355. // reset the framerate
  45356. yieldInterval = 5;
  45357. }
  45358. };
  45359. var performWorkUntilDeadline = function () {
  45360. if (scheduledHostCallback !== null) {
  45361. var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
  45362. // cycle. This means there's always time remaining at the beginning of
  45363. // the message event.
  45364. deadline = currentTime + yieldInterval;
  45365. var hasTimeRemaining = true;
  45366. try {
  45367. var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
  45368. if (!hasMoreWork) {
  45369. isMessageLoopRunning = false;
  45370. scheduledHostCallback = null;
  45371. } else {
  45372. // If there's more work, schedule the next message event at the end
  45373. // of the preceding one.
  45374. port.postMessage(null);
  45375. }
  45376. } catch (error) {
  45377. // If a scheduler task throws, exit the current browser task so the
  45378. // error can be observed.
  45379. port.postMessage(null);
  45380. throw error;
  45381. }
  45382. } else {
  45383. isMessageLoopRunning = false;
  45384. } // Yielding to the browser will give it a chance to paint, so we can
  45385. };
  45386. var channel = new MessageChannel();
  45387. var port = channel.port2;
  45388. channel.port1.onmessage = performWorkUntilDeadline;
  45389. requestHostCallback = function (callback) {
  45390. scheduledHostCallback = callback;
  45391. if (!isMessageLoopRunning) {
  45392. isMessageLoopRunning = true;
  45393. port.postMessage(null);
  45394. }
  45395. };
  45396. requestHostTimeout = function (callback, ms) {
  45397. taskTimeoutID = _setTimeout(function () {
  45398. callback(exports.unstable_now());
  45399. }, ms);
  45400. };
  45401. cancelHostTimeout = function () {
  45402. _clearTimeout(taskTimeoutID);
  45403. taskTimeoutID = -1;
  45404. };
  45405. }
  45406. function push(heap, node) {
  45407. var index = heap.length;
  45408. heap.push(node);
  45409. siftUp(heap, node, index);
  45410. }
  45411. function peek(heap) {
  45412. var first = heap[0];
  45413. return first === undefined ? null : first;
  45414. }
  45415. function pop(heap) {
  45416. var first = heap[0];
  45417. if (first !== undefined) {
  45418. var last = heap.pop();
  45419. if (last !== first) {
  45420. heap[0] = last;
  45421. siftDown(heap, last, 0);
  45422. }
  45423. return first;
  45424. } else {
  45425. return null;
  45426. }
  45427. }
  45428. function siftUp(heap, node, i) {
  45429. var index = i;
  45430. while (true) {
  45431. var parentIndex = index - 1 >>> 1;
  45432. var parent = heap[parentIndex];
  45433. if (parent !== undefined && compare(parent, node) > 0) {
  45434. // The parent is larger. Swap positions.
  45435. heap[parentIndex] = node;
  45436. heap[index] = parent;
  45437. index = parentIndex;
  45438. } else {
  45439. // The parent is smaller. Exit.
  45440. return;
  45441. }
  45442. }
  45443. }
  45444. function siftDown(heap, node, i) {
  45445. var index = i;
  45446. var length = heap.length;
  45447. while (index < length) {
  45448. var leftIndex = (index + 1) * 2 - 1;
  45449. var left = heap[leftIndex];
  45450. var rightIndex = leftIndex + 1;
  45451. var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
  45452. if (left !== undefined && compare(left, node) < 0) {
  45453. if (right !== undefined && compare(right, left) < 0) {
  45454. heap[index] = right;
  45455. heap[rightIndex] = node;
  45456. index = rightIndex;
  45457. } else {
  45458. heap[index] = left;
  45459. heap[leftIndex] = node;
  45460. index = leftIndex;
  45461. }
  45462. } else if (right !== undefined && compare(right, node) < 0) {
  45463. heap[index] = right;
  45464. heap[rightIndex] = node;
  45465. index = rightIndex;
  45466. } else {
  45467. // Neither child is smaller. Exit.
  45468. return;
  45469. }
  45470. }
  45471. }
  45472. function compare(a, b) {
  45473. // Compare sort index first, then task id.
  45474. var diff = a.sortIndex - b.sortIndex;
  45475. return diff !== 0 ? diff : a.id - b.id;
  45476. }
  45477. // TODO: Use symbols?
  45478. var NoPriority = 0;
  45479. var ImmediatePriority = 1;
  45480. var UserBlockingPriority = 2;
  45481. var NormalPriority = 3;
  45482. var LowPriority = 4;
  45483. var IdlePriority = 5;
  45484. var runIdCounter = 0;
  45485. var mainThreadIdCounter = 0;
  45486. var profilingStateSize = 4;
  45487. var sharedProfilingBuffer = // $FlowFixMe Flow doesn't know about SharedArrayBuffer
  45488. typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer
  45489. typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9
  45490. ;
  45491. var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks
  45492. var PRIORITY = 0;
  45493. var CURRENT_TASK_ID = 1;
  45494. var CURRENT_RUN_ID = 2;
  45495. var QUEUE_SIZE = 3;
  45496. {
  45497. profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue
  45498. // array might include canceled tasks.
  45499. profilingState[QUEUE_SIZE] = 0;
  45500. profilingState[CURRENT_TASK_ID] = 0;
  45501. } // Bytes per element is 4
  45502. var INITIAL_EVENT_LOG_SIZE = 131072;
  45503. var MAX_EVENT_LOG_SIZE = 524288; // Equivalent to 2 megabytes
  45504. var eventLogSize = 0;
  45505. var eventLogBuffer = null;
  45506. var eventLog = null;
  45507. var eventLogIndex = 0;
  45508. var TaskStartEvent = 1;
  45509. var TaskCompleteEvent = 2;
  45510. var TaskErrorEvent = 3;
  45511. var TaskCancelEvent = 4;
  45512. var TaskRunEvent = 5;
  45513. var TaskYieldEvent = 6;
  45514. var SchedulerSuspendEvent = 7;
  45515. var SchedulerResumeEvent = 8;
  45516. function logEvent(entries) {
  45517. if (eventLog !== null) {
  45518. var offset = eventLogIndex;
  45519. eventLogIndex += entries.length;
  45520. if (eventLogIndex + 1 > eventLogSize) {
  45521. eventLogSize *= 2;
  45522. if (eventLogSize > MAX_EVENT_LOG_SIZE) {
  45523. // Using console['error'] to evade Babel and ESLint
  45524. console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
  45525. stopLoggingProfilingEvents();
  45526. return;
  45527. }
  45528. var newEventLog = new Int32Array(eventLogSize * 4);
  45529. newEventLog.set(eventLog);
  45530. eventLogBuffer = newEventLog.buffer;
  45531. eventLog = newEventLog;
  45532. }
  45533. eventLog.set(entries, offset);
  45534. }
  45535. }
  45536. function startLoggingProfilingEvents() {
  45537. eventLogSize = INITIAL_EVENT_LOG_SIZE;
  45538. eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
  45539. eventLog = new Int32Array(eventLogBuffer);
  45540. eventLogIndex = 0;
  45541. }
  45542. function stopLoggingProfilingEvents() {
  45543. var buffer = eventLogBuffer;
  45544. eventLogSize = 0;
  45545. eventLogBuffer = null;
  45546. eventLog = null;
  45547. eventLogIndex = 0;
  45548. return buffer;
  45549. }
  45550. function markTaskStart(task, ms) {
  45551. {
  45552. profilingState[QUEUE_SIZE]++;
  45553. if (eventLog !== null) {
  45554. // performance.now returns a float, representing milliseconds. When the
  45555. // event is logged, it's coerced to an int. Convert to microseconds to
  45556. // maintain extra degrees of precision.
  45557. logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
  45558. }
  45559. }
  45560. }
  45561. function markTaskCompleted(task, ms) {
  45562. {
  45563. profilingState[PRIORITY] = NoPriority;
  45564. profilingState[CURRENT_TASK_ID] = 0;
  45565. profilingState[QUEUE_SIZE]--;
  45566. if (eventLog !== null) {
  45567. logEvent([TaskCompleteEvent, ms * 1000, task.id]);
  45568. }
  45569. }
  45570. }
  45571. function markTaskCanceled(task, ms) {
  45572. {
  45573. profilingState[QUEUE_SIZE]--;
  45574. if (eventLog !== null) {
  45575. logEvent([TaskCancelEvent, ms * 1000, task.id]);
  45576. }
  45577. }
  45578. }
  45579. function markTaskErrored(task, ms) {
  45580. {
  45581. profilingState[PRIORITY] = NoPriority;
  45582. profilingState[CURRENT_TASK_ID] = 0;
  45583. profilingState[QUEUE_SIZE]--;
  45584. if (eventLog !== null) {
  45585. logEvent([TaskErrorEvent, ms * 1000, task.id]);
  45586. }
  45587. }
  45588. }
  45589. function markTaskRun(task, ms) {
  45590. {
  45591. runIdCounter++;
  45592. profilingState[PRIORITY] = task.priorityLevel;
  45593. profilingState[CURRENT_TASK_ID] = task.id;
  45594. profilingState[CURRENT_RUN_ID] = runIdCounter;
  45595. if (eventLog !== null) {
  45596. logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
  45597. }
  45598. }
  45599. }
  45600. function markTaskYield(task, ms) {
  45601. {
  45602. profilingState[PRIORITY] = NoPriority;
  45603. profilingState[CURRENT_TASK_ID] = 0;
  45604. profilingState[CURRENT_RUN_ID] = 0;
  45605. if (eventLog !== null) {
  45606. logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
  45607. }
  45608. }
  45609. }
  45610. function markSchedulerSuspended(ms) {
  45611. {
  45612. mainThreadIdCounter++;
  45613. if (eventLog !== null) {
  45614. logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
  45615. }
  45616. }
  45617. }
  45618. function markSchedulerUnsuspended(ms) {
  45619. {
  45620. if (eventLog !== null) {
  45621. logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
  45622. }
  45623. }
  45624. }
  45625. /* eslint-disable no-var */
  45626. // Math.pow(2, 30) - 1
  45627. // 0b111111111111111111111111111111
  45628. var maxSigned31BitInt = 1073741823; // Times out immediately
  45629. var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
  45630. var USER_BLOCKING_PRIORITY = 250;
  45631. var NORMAL_PRIORITY_TIMEOUT = 5000;
  45632. var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
  45633. var IDLE_PRIORITY = maxSigned31BitInt; // Tasks are stored on a min heap
  45634. var taskQueue = [];
  45635. var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
  45636. var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
  45637. var currentTask = null;
  45638. var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.
  45639. var isPerformingWork = false;
  45640. var isHostCallbackScheduled = false;
  45641. var isHostTimeoutScheduled = false;
  45642. function advanceTimers(currentTime) {
  45643. // Check for tasks that are no longer delayed and add them to the queue.
  45644. var timer = peek(timerQueue);
  45645. while (timer !== null) {
  45646. if (timer.callback === null) {
  45647. // Timer was cancelled.
  45648. pop(timerQueue);
  45649. } else if (timer.startTime <= currentTime) {
  45650. // Timer fired. Transfer to the task queue.
  45651. pop(timerQueue);
  45652. timer.sortIndex = timer.expirationTime;
  45653. push(taskQueue, timer);
  45654. {
  45655. markTaskStart(timer, currentTime);
  45656. timer.isQueued = true;
  45657. }
  45658. } else {
  45659. // Remaining timers are pending.
  45660. return;
  45661. }
  45662. timer = peek(timerQueue);
  45663. }
  45664. }
  45665. function handleTimeout(currentTime) {
  45666. isHostTimeoutScheduled = false;
  45667. advanceTimers(currentTime);
  45668. if (!isHostCallbackScheduled) {
  45669. if (peek(taskQueue) !== null) {
  45670. isHostCallbackScheduled = true;
  45671. requestHostCallback(flushWork);
  45672. } else {
  45673. var firstTimer = peek(timerQueue);
  45674. if (firstTimer !== null) {
  45675. requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
  45676. }
  45677. }
  45678. }
  45679. }
  45680. function flushWork(hasTimeRemaining, initialTime) {
  45681. {
  45682. markSchedulerUnsuspended(initialTime);
  45683. } // We'll need a host callback the next time work is scheduled.
  45684. isHostCallbackScheduled = false;
  45685. if (isHostTimeoutScheduled) {
  45686. // We scheduled a timeout but it's no longer needed. Cancel it.
  45687. isHostTimeoutScheduled = false;
  45688. cancelHostTimeout();
  45689. }
  45690. isPerformingWork = true;
  45691. var previousPriorityLevel = currentPriorityLevel;
  45692. try {
  45693. if (enableProfiling) {
  45694. try {
  45695. return workLoop(hasTimeRemaining, initialTime);
  45696. } catch (error) {
  45697. if (currentTask !== null) {
  45698. var currentTime = exports.unstable_now();
  45699. markTaskErrored(currentTask, currentTime);
  45700. currentTask.isQueued = false;
  45701. }
  45702. throw error;
  45703. }
  45704. } else {
  45705. // No catch in prod codepath.
  45706. return workLoop(hasTimeRemaining, initialTime);
  45707. }
  45708. } finally {
  45709. currentTask = null;
  45710. currentPriorityLevel = previousPriorityLevel;
  45711. isPerformingWork = false;
  45712. {
  45713. var _currentTime = exports.unstable_now();
  45714. markSchedulerSuspended(_currentTime);
  45715. }
  45716. }
  45717. }
  45718. function workLoop(hasTimeRemaining, initialTime) {
  45719. var currentTime = initialTime;
  45720. advanceTimers(currentTime);
  45721. currentTask = peek(taskQueue);
  45722. while (currentTask !== null && !(enableSchedulerDebugging )) {
  45723. if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
  45724. // This currentTask hasn't expired, and we've reached the deadline.
  45725. break;
  45726. }
  45727. var callback = currentTask.callback;
  45728. if (callback !== null) {
  45729. currentTask.callback = null;
  45730. currentPriorityLevel = currentTask.priorityLevel;
  45731. var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
  45732. markTaskRun(currentTask, currentTime);
  45733. var continuationCallback = callback(didUserCallbackTimeout);
  45734. currentTime = exports.unstable_now();
  45735. if (typeof continuationCallback === 'function') {
  45736. currentTask.callback = continuationCallback;
  45737. markTaskYield(currentTask, currentTime);
  45738. } else {
  45739. {
  45740. markTaskCompleted(currentTask, currentTime);
  45741. currentTask.isQueued = false;
  45742. }
  45743. if (currentTask === peek(taskQueue)) {
  45744. pop(taskQueue);
  45745. }
  45746. }
  45747. advanceTimers(currentTime);
  45748. } else {
  45749. pop(taskQueue);
  45750. }
  45751. currentTask = peek(taskQueue);
  45752. } // Return whether there's additional work
  45753. if (currentTask !== null) {
  45754. return true;
  45755. } else {
  45756. var firstTimer = peek(timerQueue);
  45757. if (firstTimer !== null) {
  45758. requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
  45759. }
  45760. return false;
  45761. }
  45762. }
  45763. function unstable_runWithPriority(priorityLevel, eventHandler) {
  45764. switch (priorityLevel) {
  45765. case ImmediatePriority:
  45766. case UserBlockingPriority:
  45767. case NormalPriority:
  45768. case LowPriority:
  45769. case IdlePriority:
  45770. break;
  45771. default:
  45772. priorityLevel = NormalPriority;
  45773. }
  45774. var previousPriorityLevel = currentPriorityLevel;
  45775. currentPriorityLevel = priorityLevel;
  45776. try {
  45777. return eventHandler();
  45778. } finally {
  45779. currentPriorityLevel = previousPriorityLevel;
  45780. }
  45781. }
  45782. function unstable_next(eventHandler) {
  45783. var priorityLevel;
  45784. switch (currentPriorityLevel) {
  45785. case ImmediatePriority:
  45786. case UserBlockingPriority:
  45787. case NormalPriority:
  45788. // Shift down to normal priority
  45789. priorityLevel = NormalPriority;
  45790. break;
  45791. default:
  45792. // Anything lower than normal priority should remain at the current level.
  45793. priorityLevel = currentPriorityLevel;
  45794. break;
  45795. }
  45796. var previousPriorityLevel = currentPriorityLevel;
  45797. currentPriorityLevel = priorityLevel;
  45798. try {
  45799. return eventHandler();
  45800. } finally {
  45801. currentPriorityLevel = previousPriorityLevel;
  45802. }
  45803. }
  45804. function unstable_wrapCallback(callback) {
  45805. var parentPriorityLevel = currentPriorityLevel;
  45806. return function () {
  45807. // This is a fork of runWithPriority, inlined for performance.
  45808. var previousPriorityLevel = currentPriorityLevel;
  45809. currentPriorityLevel = parentPriorityLevel;
  45810. try {
  45811. return callback.apply(this, arguments);
  45812. } finally {
  45813. currentPriorityLevel = previousPriorityLevel;
  45814. }
  45815. };
  45816. }
  45817. function timeoutForPriorityLevel(priorityLevel) {
  45818. switch (priorityLevel) {
  45819. case ImmediatePriority:
  45820. return IMMEDIATE_PRIORITY_TIMEOUT;
  45821. case UserBlockingPriority:
  45822. return USER_BLOCKING_PRIORITY;
  45823. case IdlePriority:
  45824. return IDLE_PRIORITY;
  45825. case LowPriority:
  45826. return LOW_PRIORITY_TIMEOUT;
  45827. case NormalPriority:
  45828. default:
  45829. return NORMAL_PRIORITY_TIMEOUT;
  45830. }
  45831. }
  45832. function unstable_scheduleCallback(priorityLevel, callback, options) {
  45833. var currentTime = exports.unstable_now();
  45834. var startTime;
  45835. var timeout;
  45836. if (typeof options === 'object' && options !== null) {
  45837. var delay = options.delay;
  45838. if (typeof delay === 'number' && delay > 0) {
  45839. startTime = currentTime + delay;
  45840. } else {
  45841. startTime = currentTime;
  45842. }
  45843. timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
  45844. } else {
  45845. timeout = timeoutForPriorityLevel(priorityLevel);
  45846. startTime = currentTime;
  45847. }
  45848. var expirationTime = startTime + timeout;
  45849. var newTask = {
  45850. id: taskIdCounter++,
  45851. callback: callback,
  45852. priorityLevel: priorityLevel,
  45853. startTime: startTime,
  45854. expirationTime: expirationTime,
  45855. sortIndex: -1
  45856. };
  45857. {
  45858. newTask.isQueued = false;
  45859. }
  45860. if (startTime > currentTime) {
  45861. // This is a delayed task.
  45862. newTask.sortIndex = startTime;
  45863. push(timerQueue, newTask);
  45864. if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
  45865. // All tasks are delayed, and this is the task with the earliest delay.
  45866. if (isHostTimeoutScheduled) {
  45867. // Cancel an existing timeout.
  45868. cancelHostTimeout();
  45869. } else {
  45870. isHostTimeoutScheduled = true;
  45871. } // Schedule a timeout.
  45872. requestHostTimeout(handleTimeout, startTime - currentTime);
  45873. }
  45874. } else {
  45875. newTask.sortIndex = expirationTime;
  45876. push(taskQueue, newTask);
  45877. {
  45878. markTaskStart(newTask, currentTime);
  45879. newTask.isQueued = true;
  45880. } // Schedule a host callback, if needed. If we're already performing work,
  45881. // wait until the next time we yield.
  45882. if (!isHostCallbackScheduled && !isPerformingWork) {
  45883. isHostCallbackScheduled = true;
  45884. requestHostCallback(flushWork);
  45885. }
  45886. }
  45887. return newTask;
  45888. }
  45889. function unstable_pauseExecution() {
  45890. }
  45891. function unstable_continueExecution() {
  45892. if (!isHostCallbackScheduled && !isPerformingWork) {
  45893. isHostCallbackScheduled = true;
  45894. requestHostCallback(flushWork);
  45895. }
  45896. }
  45897. function unstable_getFirstCallbackNode() {
  45898. return peek(taskQueue);
  45899. }
  45900. function unstable_cancelCallback(task) {
  45901. {
  45902. if (task.isQueued) {
  45903. var currentTime = exports.unstable_now();
  45904. markTaskCanceled(task, currentTime);
  45905. task.isQueued = false;
  45906. }
  45907. } // Null out the callback to indicate the task has been canceled. (Can't
  45908. // remove from the queue because you can't remove arbitrary nodes from an
  45909. // array based heap, only the first one.)
  45910. task.callback = null;
  45911. }
  45912. function unstable_getCurrentPriorityLevel() {
  45913. return currentPriorityLevel;
  45914. }
  45915. function unstable_shouldYield() {
  45916. var currentTime = exports.unstable_now();
  45917. advanceTimers(currentTime);
  45918. var firstTask = peek(taskQueue);
  45919. return firstTask !== currentTask && currentTask !== null && firstTask !== null && firstTask.callback !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
  45920. }
  45921. var unstable_requestPaint = requestPaint;
  45922. var unstable_Profiling = {
  45923. startLoggingProfilingEvents: startLoggingProfilingEvents,
  45924. stopLoggingProfilingEvents: stopLoggingProfilingEvents,
  45925. sharedProfilingBuffer: sharedProfilingBuffer
  45926. } ;
  45927. exports.unstable_IdlePriority = IdlePriority;
  45928. exports.unstable_ImmediatePriority = ImmediatePriority;
  45929. exports.unstable_LowPriority = LowPriority;
  45930. exports.unstable_NormalPriority = NormalPriority;
  45931. exports.unstable_Profiling = unstable_Profiling;
  45932. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  45933. exports.unstable_cancelCallback = unstable_cancelCallback;
  45934. exports.unstable_continueExecution = unstable_continueExecution;
  45935. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  45936. exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
  45937. exports.unstable_next = unstable_next;
  45938. exports.unstable_pauseExecution = unstable_pauseExecution;
  45939. exports.unstable_requestPaint = unstable_requestPaint;
  45940. exports.unstable_runWithPriority = unstable_runWithPriority;
  45941. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  45942. exports.unstable_shouldYield = unstable_shouldYield;
  45943. exports.unstable_wrapCallback = unstable_wrapCallback;
  45944. })();
  45945. }
  45946. /***/ }),
  45947. /***/ "../../node_modules/scheduler/index.js":
  45948. /*!***********************************************************!*\
  45949. !*** C:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  45950. \***********************************************************/
  45951. /*! no static exports found */
  45952. /***/ (function(module, exports, __webpack_require__) {
  45953. "use strict";
  45954. if (false) {} else {
  45955. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  45956. }
  45957. /***/ }),
  45958. /***/ "../../node_modules/scheduler/tracing.js":
  45959. /*!*************************************************************!*\
  45960. !*** C:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  45961. \*************************************************************/
  45962. /*! no static exports found */
  45963. /***/ (function(module, exports, __webpack_require__) {
  45964. "use strict";
  45965. if (false) {} else {
  45966. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  45967. }
  45968. /***/ }),
  45969. /***/ "../../node_modules/setimmediate/setImmediate.js":
  45970. /*!*********************************************************************!*\
  45971. !*** C:/Repos/Babylon.js/node_modules/setimmediate/setImmediate.js ***!
  45972. \*********************************************************************/
  45973. /*! no static exports found */
  45974. /***/ (function(module, exports, __webpack_require__) {
  45975. /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
  45976. "use strict";
  45977. if (global.setImmediate) {
  45978. return;
  45979. }
  45980. var nextHandle = 1; // Spec says greater than zero
  45981. var tasksByHandle = {};
  45982. var currentlyRunningATask = false;
  45983. var doc = global.document;
  45984. var registerImmediate;
  45985. function setImmediate(callback) {
  45986. // Callback can either be a function or a string
  45987. if (typeof callback !== "function") {
  45988. callback = new Function("" + callback);
  45989. }
  45990. // Copy function arguments
  45991. var args = new Array(arguments.length - 1);
  45992. for (var i = 0; i < args.length; i++) {
  45993. args[i] = arguments[i + 1];
  45994. }
  45995. // Store and register the task
  45996. var task = { callback: callback, args: args };
  45997. tasksByHandle[nextHandle] = task;
  45998. registerImmediate(nextHandle);
  45999. return nextHandle++;
  46000. }
  46001. function clearImmediate(handle) {
  46002. delete tasksByHandle[handle];
  46003. }
  46004. function run(task) {
  46005. var callback = task.callback;
  46006. var args = task.args;
  46007. switch (args.length) {
  46008. case 0:
  46009. callback();
  46010. break;
  46011. case 1:
  46012. callback(args[0]);
  46013. break;
  46014. case 2:
  46015. callback(args[0], args[1]);
  46016. break;
  46017. case 3:
  46018. callback(args[0], args[1], args[2]);
  46019. break;
  46020. default:
  46021. callback.apply(undefined, args);
  46022. break;
  46023. }
  46024. }
  46025. function runIfPresent(handle) {
  46026. // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
  46027. // So if we're currently running a task, we'll need to delay this invocation.
  46028. if (currentlyRunningATask) {
  46029. // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
  46030. // "too much recursion" error.
  46031. setTimeout(runIfPresent, 0, handle);
  46032. } else {
  46033. var task = tasksByHandle[handle];
  46034. if (task) {
  46035. currentlyRunningATask = true;
  46036. try {
  46037. run(task);
  46038. } finally {
  46039. clearImmediate(handle);
  46040. currentlyRunningATask = false;
  46041. }
  46042. }
  46043. }
  46044. }
  46045. function installNextTickImplementation() {
  46046. registerImmediate = function(handle) {
  46047. process.nextTick(function () { runIfPresent(handle); });
  46048. };
  46049. }
  46050. function canUsePostMessage() {
  46051. // The test against `importScripts` prevents this implementation from being installed inside a web worker,
  46052. // where `global.postMessage` means something completely different and can't be used for this purpose.
  46053. if (global.postMessage && !global.importScripts) {
  46054. var postMessageIsAsynchronous = true;
  46055. var oldOnMessage = global.onmessage;
  46056. global.onmessage = function() {
  46057. postMessageIsAsynchronous = false;
  46058. };
  46059. global.postMessage("", "*");
  46060. global.onmessage = oldOnMessage;
  46061. return postMessageIsAsynchronous;
  46062. }
  46063. }
  46064. function installPostMessageImplementation() {
  46065. // Installs an event handler on `global` for the `message` event: see
  46066. // * https://developer.mozilla.org/en/DOM/window.postMessage
  46067. // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  46068. var messagePrefix = "setImmediate$" + Math.random() + "$";
  46069. var onGlobalMessage = function(event) {
  46070. if (event.source === global &&
  46071. typeof event.data === "string" &&
  46072. event.data.indexOf(messagePrefix) === 0) {
  46073. runIfPresent(+event.data.slice(messagePrefix.length));
  46074. }
  46075. };
  46076. if (global.addEventListener) {
  46077. global.addEventListener("message", onGlobalMessage, false);
  46078. } else {
  46079. global.attachEvent("onmessage", onGlobalMessage);
  46080. }
  46081. registerImmediate = function(handle) {
  46082. global.postMessage(messagePrefix + handle, "*");
  46083. };
  46084. }
  46085. function installMessageChannelImplementation() {
  46086. var channel = new MessageChannel();
  46087. channel.port1.onmessage = function(event) {
  46088. var handle = event.data;
  46089. runIfPresent(handle);
  46090. };
  46091. registerImmediate = function(handle) {
  46092. channel.port2.postMessage(handle);
  46093. };
  46094. }
  46095. function installReadyStateChangeImplementation() {
  46096. var html = doc.documentElement;
  46097. registerImmediate = function(handle) {
  46098. // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
  46099. // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
  46100. var script = doc.createElement("script");
  46101. script.onreadystatechange = function () {
  46102. runIfPresent(handle);
  46103. script.onreadystatechange = null;
  46104. html.removeChild(script);
  46105. script = null;
  46106. };
  46107. html.appendChild(script);
  46108. };
  46109. }
  46110. function installSetTimeoutImplementation() {
  46111. registerImmediate = function(handle) {
  46112. setTimeout(runIfPresent, 0, handle);
  46113. };
  46114. }
  46115. // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
  46116. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
  46117. attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  46118. // Don't get fooled by e.g. browserify environments.
  46119. if ({}.toString.call(global.process) === "[object process]") {
  46120. // For Node.js before 0.9
  46121. installNextTickImplementation();
  46122. } else if (canUsePostMessage()) {
  46123. // For non-IE10 modern browsers
  46124. installPostMessageImplementation();
  46125. } else if (global.MessageChannel) {
  46126. // For web workers, where supported
  46127. installMessageChannelImplementation();
  46128. } else if (doc && "onreadystatechange" in doc.createElement("script")) {
  46129. // For IE 6–8
  46130. installReadyStateChangeImplementation();
  46131. } else {
  46132. // For older browsers
  46133. installSetTimeoutImplementation();
  46134. }
  46135. attachTo.setImmediate = setImmediate;
  46136. attachTo.clearImmediate = clearImmediate;
  46137. }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
  46138. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../process/browser.js */ "../../node_modules/process/browser.js")))
  46139. /***/ }),
  46140. /***/ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
  46141. /*!**********************************************************************************************!*\
  46142. !*** C:/Repos/Babylon.js/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
  46143. \**********************************************************************************************/
  46144. /*! no static exports found */
  46145. /***/ (function(module, exports, __webpack_require__) {
  46146. "use strict";
  46147. var isOldIE = function isOldIE() {
  46148. var memo;
  46149. return function memorize() {
  46150. if (typeof memo === 'undefined') {
  46151. // Test for IE <= 9 as proposed by Browserhacks
  46152. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  46153. // Tests for existence of standard globals is to allow style-loader
  46154. // to operate correctly into non-standard environments
  46155. // @see https://github.com/webpack-contrib/style-loader/issues/177
  46156. memo = Boolean(window && document && document.all && !window.atob);
  46157. }
  46158. return memo;
  46159. };
  46160. }();
  46161. var getTarget = function getTarget() {
  46162. var memo = {};
  46163. return function memorize(target) {
  46164. if (typeof memo[target] === 'undefined') {
  46165. var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
  46166. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  46167. try {
  46168. // This will throw an exception if access to iframe is blocked
  46169. // due to cross-origin restrictions
  46170. styleTarget = styleTarget.contentDocument.head;
  46171. } catch (e) {
  46172. // istanbul ignore next
  46173. styleTarget = null;
  46174. }
  46175. }
  46176. memo[target] = styleTarget;
  46177. }
  46178. return memo[target];
  46179. };
  46180. }();
  46181. var stylesInDom = [];
  46182. function getIndexByIdentifier(identifier) {
  46183. var result = -1;
  46184. for (var i = 0; i < stylesInDom.length; i++) {
  46185. if (stylesInDom[i].identifier === identifier) {
  46186. result = i;
  46187. break;
  46188. }
  46189. }
  46190. return result;
  46191. }
  46192. function modulesToDom(list, options) {
  46193. var idCountMap = {};
  46194. var identifiers = [];
  46195. for (var i = 0; i < list.length; i++) {
  46196. var item = list[i];
  46197. var id = options.base ? item[0] + options.base : item[0];
  46198. var count = idCountMap[id] || 0;
  46199. var identifier = "".concat(id, " ").concat(count);
  46200. idCountMap[id] = count + 1;
  46201. var index = getIndexByIdentifier(identifier);
  46202. var obj = {
  46203. css: item[1],
  46204. media: item[2],
  46205. sourceMap: item[3]
  46206. };
  46207. if (index !== -1) {
  46208. stylesInDom[index].references++;
  46209. stylesInDom[index].updater(obj);
  46210. } else {
  46211. stylesInDom.push({
  46212. identifier: identifier,
  46213. updater: addStyle(obj, options),
  46214. references: 1
  46215. });
  46216. }
  46217. identifiers.push(identifier);
  46218. }
  46219. return identifiers;
  46220. }
  46221. function insertStyleElement(options) {
  46222. var style = document.createElement('style');
  46223. var attributes = options.attributes || {};
  46224. if (typeof attributes.nonce === 'undefined') {
  46225. var nonce = true ? __webpack_require__.nc : undefined;
  46226. if (nonce) {
  46227. attributes.nonce = nonce;
  46228. }
  46229. }
  46230. Object.keys(attributes).forEach(function (key) {
  46231. style.setAttribute(key, attributes[key]);
  46232. });
  46233. if (typeof options.insert === 'function') {
  46234. options.insert(style);
  46235. } else {
  46236. var target = getTarget(options.insert || 'head');
  46237. if (!target) {
  46238. throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  46239. }
  46240. target.appendChild(style);
  46241. }
  46242. return style;
  46243. }
  46244. function removeStyleElement(style) {
  46245. // istanbul ignore if
  46246. if (style.parentNode === null) {
  46247. return false;
  46248. }
  46249. style.parentNode.removeChild(style);
  46250. }
  46251. /* istanbul ignore next */
  46252. var replaceText = function replaceText() {
  46253. var textStore = [];
  46254. return function replace(index, replacement) {
  46255. textStore[index] = replacement;
  46256. return textStore.filter(Boolean).join('\n');
  46257. };
  46258. }();
  46259. function applyToSingletonTag(style, index, remove, obj) {
  46260. var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
  46261. /* istanbul ignore if */
  46262. if (style.styleSheet) {
  46263. style.styleSheet.cssText = replaceText(index, css);
  46264. } else {
  46265. var cssNode = document.createTextNode(css);
  46266. var childNodes = style.childNodes;
  46267. if (childNodes[index]) {
  46268. style.removeChild(childNodes[index]);
  46269. }
  46270. if (childNodes.length) {
  46271. style.insertBefore(cssNode, childNodes[index]);
  46272. } else {
  46273. style.appendChild(cssNode);
  46274. }
  46275. }
  46276. }
  46277. function applyToTag(style, options, obj) {
  46278. var css = obj.css;
  46279. var media = obj.media;
  46280. var sourceMap = obj.sourceMap;
  46281. if (media) {
  46282. style.setAttribute('media', media);
  46283. } else {
  46284. style.removeAttribute('media');
  46285. }
  46286. if (sourceMap && btoa) {
  46287. css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  46288. } // For old IE
  46289. /* istanbul ignore if */
  46290. if (style.styleSheet) {
  46291. style.styleSheet.cssText = css;
  46292. } else {
  46293. while (style.firstChild) {
  46294. style.removeChild(style.firstChild);
  46295. }
  46296. style.appendChild(document.createTextNode(css));
  46297. }
  46298. }
  46299. var singleton = null;
  46300. var singletonCounter = 0;
  46301. function addStyle(obj, options) {
  46302. var style;
  46303. var update;
  46304. var remove;
  46305. if (options.singleton) {
  46306. var styleIndex = singletonCounter++;
  46307. style = singleton || (singleton = insertStyleElement(options));
  46308. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  46309. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  46310. } else {
  46311. style = insertStyleElement(options);
  46312. update = applyToTag.bind(null, style, options);
  46313. remove = function remove() {
  46314. removeStyleElement(style);
  46315. };
  46316. }
  46317. update(obj);
  46318. return function updateStyle(newObj) {
  46319. if (newObj) {
  46320. if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
  46321. return;
  46322. }
  46323. update(obj = newObj);
  46324. } else {
  46325. remove();
  46326. }
  46327. };
  46328. }
  46329. module.exports = function (list, options) {
  46330. options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  46331. // tags it will allow on a page
  46332. if (!options.singleton && typeof options.singleton !== 'boolean') {
  46333. options.singleton = isOldIE();
  46334. }
  46335. list = list || [];
  46336. var lastIdentifiers = modulesToDom(list, options);
  46337. return function update(newList) {
  46338. newList = newList || [];
  46339. if (Object.prototype.toString.call(newList) !== '[object Array]') {
  46340. return;
  46341. }
  46342. for (var i = 0; i < lastIdentifiers.length; i++) {
  46343. var identifier = lastIdentifiers[i];
  46344. var index = getIndexByIdentifier(identifier);
  46345. stylesInDom[index].references--;
  46346. }
  46347. var newLastIdentifiers = modulesToDom(newList, options);
  46348. for (var _i = 0; _i < lastIdentifiers.length; _i++) {
  46349. var _identifier = lastIdentifiers[_i];
  46350. var _index = getIndexByIdentifier(_identifier);
  46351. if (stylesInDom[_index].references === 0) {
  46352. stylesInDom[_index].updater();
  46353. stylesInDom.splice(_index, 1);
  46354. }
  46355. }
  46356. lastIdentifiers = newLastIdentifiers;
  46357. };
  46358. };
  46359. /***/ }),
  46360. /***/ "../../node_modules/timers-browserify/main.js":
  46361. /*!******************************************************************!*\
  46362. !*** C:/Repos/Babylon.js/node_modules/timers-browserify/main.js ***!
  46363. \******************************************************************/
  46364. /*! no static exports found */
  46365. /***/ (function(module, exports, __webpack_require__) {
  46366. /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
  46367. (typeof self !== "undefined" && self) ||
  46368. window;
  46369. var apply = Function.prototype.apply;
  46370. // DOM APIs, for completeness
  46371. exports.setTimeout = function() {
  46372. return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
  46373. };
  46374. exports.setInterval = function() {
  46375. return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
  46376. };
  46377. exports.clearTimeout =
  46378. exports.clearInterval = function(timeout) {
  46379. if (timeout) {
  46380. timeout.close();
  46381. }
  46382. };
  46383. function Timeout(id, clearFn) {
  46384. this._id = id;
  46385. this._clearFn = clearFn;
  46386. }
  46387. Timeout.prototype.unref = Timeout.prototype.ref = function() {};
  46388. Timeout.prototype.close = function() {
  46389. this._clearFn.call(scope, this._id);
  46390. };
  46391. // Does not start the time, just sets up the members needed.
  46392. exports.enroll = function(item, msecs) {
  46393. clearTimeout(item._idleTimeoutId);
  46394. item._idleTimeout = msecs;
  46395. };
  46396. exports.unenroll = function(item) {
  46397. clearTimeout(item._idleTimeoutId);
  46398. item._idleTimeout = -1;
  46399. };
  46400. exports._unrefActive = exports.active = function(item) {
  46401. clearTimeout(item._idleTimeoutId);
  46402. var msecs = item._idleTimeout;
  46403. if (msecs >= 0) {
  46404. item._idleTimeoutId = setTimeout(function onTimeout() {
  46405. if (item._onTimeout)
  46406. item._onTimeout();
  46407. }, msecs);
  46408. }
  46409. };
  46410. // setimmediate attaches itself to the global object
  46411. __webpack_require__(/*! setimmediate */ "../../node_modules/setimmediate/setImmediate.js");
  46412. // On some exotic environments, it's not clear which object `setimmediate` was
  46413. // able to install onto. Search each possibility in the same order as the
  46414. // `setimmediate` library.
  46415. exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
  46416. (typeof global !== "undefined" && global.setImmediate) ||
  46417. (this && this.setImmediate);
  46418. exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
  46419. (typeof global !== "undefined" && global.clearImmediate) ||
  46420. (this && this.clearImmediate);
  46421. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  46422. /***/ }),
  46423. /***/ "../../node_modules/tslib/tslib.es6.js":
  46424. /*!***********************************************************!*\
  46425. !*** C:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  46426. \***********************************************************/
  46427. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
  46428. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  46429. "use strict";
  46430. __webpack_require__.r(__webpack_exports__);
  46431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  46432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  46433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  46434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  46435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  46436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  46437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  46438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  46439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
  46440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  46441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  46442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  46443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  46444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  46445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  46446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  46447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  46448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  46449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  46450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  46451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  46452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
  46453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
  46454. /*! *****************************************************************************
  46455. Copyright (c) Microsoft Corporation.
  46456. Permission to use, copy, modify, and/or distribute this software for any
  46457. purpose with or without fee is hereby granted.
  46458. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  46459. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  46460. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  46461. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  46462. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  46463. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  46464. PERFORMANCE OF THIS SOFTWARE.
  46465. ***************************************************************************** */
  46466. /* global Reflect, Promise */
  46467. var extendStatics = function(d, b) {
  46468. extendStatics = Object.setPrototypeOf ||
  46469. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  46470. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  46471. return extendStatics(d, b);
  46472. };
  46473. function __extends(d, b) {
  46474. extendStatics(d, b);
  46475. function __() { this.constructor = d; }
  46476. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  46477. }
  46478. var __assign = function() {
  46479. __assign = Object.assign || function __assign(t) {
  46480. for (var s, i = 1, n = arguments.length; i < n; i++) {
  46481. s = arguments[i];
  46482. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  46483. }
  46484. return t;
  46485. }
  46486. return __assign.apply(this, arguments);
  46487. }
  46488. function __rest(s, e) {
  46489. var t = {};
  46490. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  46491. t[p] = s[p];
  46492. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  46493. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  46494. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  46495. t[p[i]] = s[p[i]];
  46496. }
  46497. return t;
  46498. }
  46499. function __decorate(decorators, target, key, desc) {
  46500. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  46501. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  46502. 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;
  46503. return c > 3 && r && Object.defineProperty(target, key, r), r;
  46504. }
  46505. function __param(paramIndex, decorator) {
  46506. return function (target, key) { decorator(target, key, paramIndex); }
  46507. }
  46508. function __metadata(metadataKey, metadataValue) {
  46509. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  46510. }
  46511. function __awaiter(thisArg, _arguments, P, generator) {
  46512. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  46513. return new (P || (P = Promise))(function (resolve, reject) {
  46514. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  46515. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  46516. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  46517. step((generator = generator.apply(thisArg, _arguments || [])).next());
  46518. });
  46519. }
  46520. function __generator(thisArg, body) {
  46521. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  46522. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  46523. function verb(n) { return function (v) { return step([n, v]); }; }
  46524. function step(op) {
  46525. if (f) throw new TypeError("Generator is already executing.");
  46526. while (_) try {
  46527. 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;
  46528. if (y = 0, t) op = [op[0] & 2, t.value];
  46529. switch (op[0]) {
  46530. case 0: case 1: t = op; break;
  46531. case 4: _.label++; return { value: op[1], done: false };
  46532. case 5: _.label++; y = op[1]; op = [0]; continue;
  46533. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  46534. default:
  46535. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  46536. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  46537. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  46538. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  46539. if (t[2]) _.ops.pop();
  46540. _.trys.pop(); continue;
  46541. }
  46542. op = body.call(thisArg, _);
  46543. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  46544. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  46545. }
  46546. }
  46547. var __createBinding = Object.create ? (function(o, m, k, k2) {
  46548. if (k2 === undefined) k2 = k;
  46549. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  46550. }) : (function(o, m, k, k2) {
  46551. if (k2 === undefined) k2 = k;
  46552. o[k2] = m[k];
  46553. });
  46554. function __exportStar(m, o) {
  46555. for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
  46556. }
  46557. function __values(o) {
  46558. var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  46559. if (m) return m.call(o);
  46560. if (o && typeof o.length === "number") return {
  46561. next: function () {
  46562. if (o && i >= o.length) o = void 0;
  46563. return { value: o && o[i++], done: !o };
  46564. }
  46565. };
  46566. throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
  46567. }
  46568. function __read(o, n) {
  46569. var m = typeof Symbol === "function" && o[Symbol.iterator];
  46570. if (!m) return o;
  46571. var i = m.call(o), r, ar = [], e;
  46572. try {
  46573. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  46574. }
  46575. catch (error) { e = { error: error }; }
  46576. finally {
  46577. try {
  46578. if (r && !r.done && (m = i["return"])) m.call(i);
  46579. }
  46580. finally { if (e) throw e.error; }
  46581. }
  46582. return ar;
  46583. }
  46584. function __spread() {
  46585. for (var ar = [], i = 0; i < arguments.length; i++)
  46586. ar = ar.concat(__read(arguments[i]));
  46587. return ar;
  46588. }
  46589. function __spreadArrays() {
  46590. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  46591. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  46592. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  46593. r[k] = a[j];
  46594. return r;
  46595. };
  46596. function __await(v) {
  46597. return this instanceof __await ? (this.v = v, this) : new __await(v);
  46598. }
  46599. function __asyncGenerator(thisArg, _arguments, generator) {
  46600. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  46601. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  46602. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  46603. 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); }); }; }
  46604. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  46605. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  46606. function fulfill(value) { resume("next", value); }
  46607. function reject(value) { resume("throw", value); }
  46608. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  46609. }
  46610. function __asyncDelegator(o) {
  46611. var i, p;
  46612. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  46613. 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; }
  46614. }
  46615. function __asyncValues(o) {
  46616. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  46617. var m = o[Symbol.asyncIterator], i;
  46618. 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);
  46619. 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); }); }; }
  46620. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  46621. }
  46622. function __makeTemplateObject(cooked, raw) {
  46623. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  46624. return cooked;
  46625. };
  46626. var __setModuleDefault = Object.create ? (function(o, v) {
  46627. Object.defineProperty(o, "default", { enumerable: true, value: v });
  46628. }) : function(o, v) {
  46629. o["default"] = v;
  46630. };
  46631. function __importStar(mod) {
  46632. if (mod && mod.__esModule) return mod;
  46633. var result = {};
  46634. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  46635. __setModuleDefault(result, mod);
  46636. return result;
  46637. }
  46638. function __importDefault(mod) {
  46639. return (mod && mod.__esModule) ? mod : { default: mod };
  46640. }
  46641. function __classPrivateFieldGet(receiver, privateMap) {
  46642. if (!privateMap.has(receiver)) {
  46643. throw new TypeError("attempted to get private field on non-instance");
  46644. }
  46645. return privateMap.get(receiver);
  46646. }
  46647. function __classPrivateFieldSet(receiver, privateMap, value) {
  46648. if (!privateMap.has(receiver)) {
  46649. throw new TypeError("attempted to set private field on non-instance");
  46650. }
  46651. privateMap.set(receiver, value);
  46652. return value;
  46653. }
  46654. /***/ }),
  46655. /***/ "../../node_modules/webpack/buildin/global.js":
  46656. /*!***********************************!*\
  46657. !*** (webpack)/buildin/global.js ***!
  46658. \***********************************/
  46659. /*! no static exports found */
  46660. /***/ (function(module, exports) {
  46661. var g;
  46662. // This works in non-strict mode
  46663. g = (function() {
  46664. return this;
  46665. })();
  46666. try {
  46667. // This works if eval is allowed (see CSP)
  46668. g = g || new Function("return this")();
  46669. } catch (e) {
  46670. // This works if the window reference is available
  46671. if (typeof window === "object") g = window;
  46672. }
  46673. // g can still be undefined, but nothing to do about it...
  46674. // We return undefined, instead of nothing here, so it's
  46675. // easier to handle this case. if(!global) { ...}
  46676. module.exports = g;
  46677. /***/ }),
  46678. /***/ "../../node_modules/webpack/buildin/module.js":
  46679. /*!***********************************!*\
  46680. !*** (webpack)/buildin/module.js ***!
  46681. \***********************************/
  46682. /*! no static exports found */
  46683. /***/ (function(module, exports) {
  46684. module.exports = function(module) {
  46685. if (!module.webpackPolyfill) {
  46686. module.deprecate = function() {};
  46687. module.paths = [];
  46688. // module.parent = undefined by default
  46689. if (!module.children) module.children = [];
  46690. Object.defineProperty(module, "loaded", {
  46691. enumerable: true,
  46692. get: function() {
  46693. return module.l;
  46694. }
  46695. });
  46696. Object.defineProperty(module, "id", {
  46697. enumerable: true,
  46698. get: function() {
  46699. return module.i;
  46700. }
  46701. });
  46702. module.webpackPolyfill = 1;
  46703. }
  46704. return module;
  46705. };
  46706. /***/ }),
  46707. /***/ "../imgs/add.svg":
  46708. /*!***********************!*\
  46709. !*** ../imgs/add.svg ***!
  46710. \***********************/
  46711. /*! no static exports found */
  46712. /***/ (function(module, exports) {
  46713. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 63.1 (92452) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_add_circle_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-System-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_add_circle_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M12,2 C17.5228475,2 22,6.4771525 22,12 C22,17.5228475 17.5228475,22 12,22 C6.4771525,22 2,17.5228475 2,12 C2,6.4771525 6.4771525,2 12,2 Z M12,3.5 C7.30557963,3.5 3.5,7.30557963 3.5,12 C3.5,16.6944204 7.30557963,20.5 12,20.5 C16.6944204,20.5 20.5,16.6944204 20.5,12 C20.5,7.30557963 16.6944204,3.5 12,3.5 Z M12,7 C12.4142136,7 12.75,7.33578644 12.75,7.75 L12.75,11.25 L16.25,11.25 C16.6642136,11.25 17,11.5857864 17,12 C17,12.4142136 16.6642136,12.75 16.25,12.75 L12.75,12.75 L12.75,16.25 C12.75,16.6642136 12.4142136,17 12,17 C11.5857864,17 11.25,16.6642136 11.25,16.25 L11.25,12.75 L7.75,12.75 C7.33578644,12.75 7,12.4142136 7,12 C7,11.5857864 7.33578644,11.25 7.75,11.25 L11.25,11.25 L11.25,7.75 C11.25,7.33578644 11.5857864,7 12,7 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  46714. /***/ }),
  46715. /***/ "../imgs/delete.svg":
  46716. /*!**************************!*\
  46717. !*** ../imgs/delete.svg ***!
  46718. \**************************/
  46719. /*! no static exports found */
  46720. /***/ (function(module, exports) {
  46721. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_delete_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_delete_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M12,1.75 C13.7330315,1.75 15.1492459,3.10645477 15.2448552,4.81557609 L15.25,5 L20.5,5 C20.9142136,5 21.25,5.33578644 21.25,5.75 C21.25,6.12969577 20.9678461,6.44349096 20.6017706,6.49315338 L20.5,6.5 L19.704,6.5 L18.4238627,19.5191927 C18.2911666,20.8682696 17.1984309,21.9099961 15.8626249,21.9944645 L15.6870698,22 L8.31293022,22 C6.95734302,22 5.81365352,21.0144851 5.59883106,19.6933629 L5.57613734,19.5191927 L4.295,6.5 L3.5,6.5 C3.12030423,6.5 2.80650904,6.21784612 2.75684662,5.85177056 L2.75,5.75 C2.75,5.37030423 3.03215388,5.05650904 3.39822944,5.00684662 L3.5,5 L8.75,5 C8.75,3.20507456 10.2050746,1.75 12,1.75 Z M18.197,6.5 L5.802,6.5 L7.06893346,19.3723603 C7.12767639,19.9695801 7.60033019,20.4342891 8.18584501,20.493596 L8.31293022,20.5 L15.6870698,20.5 C16.2871716,20.5 16.795916,20.0751057 16.9122531,19.4982083 L16.9310665,19.3723603 L18.197,6.5 Z M13.75,9.25 C14.1296958,9.25 14.443491,9.53215388 14.4931534,9.89822944 L14.5,10 L14.5,17 C14.5,17.4142136 14.1642136,17.75 13.75,17.75 C13.3703042,17.75 13.056509,17.4678461 13.0068466,17.1017706 L13,17 L13,10 C13,9.58578644 13.3357864,9.25 13.75,9.25 Z M10.25,9.25 C10.6296958,9.25 10.943491,9.53215388 10.9931534,9.89822944 L11,10 L11,17 C11,17.4142136 10.6642136,17.75 10.25,17.75 C9.87030423,17.75 9.55650904,17.4678461 9.50684662,17.1017706 L9.5,17 L9.5,10 C9.5,9.58578644 9.83578644,9.25 10.25,9.25 Z M12,3.25 C11.0818266,3.25 10.3288077,3.95711027 10.2558012,4.85647279 L10.25,5 L13.75,5 C13.75,4.03350169 12.9664983,3.25 12,3.25 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  46722. /***/ }),
  46723. /***/ "../imgs/downArrow.svg":
  46724. /*!*****************************!*\
  46725. !*** ../imgs/downArrow.svg ***!
  46726. \*****************************/
  46727. /*! no static exports found */
  46728. /***/ (function(module, exports) {
  46729. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg' width='17' height='17'%3E %3Cpath d='M4.21967 8.46967C4.51256 8.17678 4.98744 8.17678 5.28033 8.46967L12 15.1893L18.7197 8.46967C19.0126 8.17678 19.4874 8.17678 19.7803 8.46967C20.0732 8.76256 20.0732 9.23744 19.7803 9.53033L12.5303 16.7803C12.2374 17.0732 11.7626 17.0732 11.4697 16.7803L4.21967 9.53033C3.92678 9.23744 3.92678 8.76256 4.21967 8.46967Z' fill='white' /%3E %3C/svg%3E"
  46730. /***/ }),
  46731. /***/ "./blockTools.ts":
  46732. /*!***********************!*\
  46733. !*** ./blockTools.ts ***!
  46734. \***********************/
  46735. /*! exports provided: BlockTools */
  46736. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  46737. "use strict";
  46738. __webpack_require__.r(__webpack_exports__);
  46739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlockTools", function() { return BlockTools; });
  46740. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/discardBlock */ "babylonjs/Misc/dataStorage");
  46741. /* 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__);
  46742. var BlockTools = /** @class */ (function () {
  46743. function BlockTools() {
  46744. }
  46745. BlockTools.GetBlockFromString = function (data, scene, nodeMaterial) {
  46746. switch (data) {
  46747. case "DesaturateBlock":
  46748. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DesaturateBlock"]("Desaturate");
  46749. case "RefractBlock":
  46750. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RefractBlock"]("Refract");
  46751. case "ReflectBlock":
  46752. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectBlock"]("Reflect");
  46753. case "DerivativeBlock":
  46754. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DerivativeBlock"]("Derivative");
  46755. case "Rotate2dBlock":
  46756. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["Rotate2dBlock"]("Rotate2d");
  46757. case "NormalBlendBlock":
  46758. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NormalBlendBlock"]("NormalBlend");
  46759. case "WorleyNoise3DBlock":
  46760. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WorleyNoise3DBlock"]("WorleyNoise3D");
  46761. case "SimplexPerlin3DBlock":
  46762. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SimplexPerlin3DBlock"]("SimplexPerlin3D");
  46763. case "BonesBlock":
  46764. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["BonesBlock"]("Bones");
  46765. case "InstancesBlock":
  46766. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InstancesBlock"]("Instances");
  46767. case "MorphTargetsBlock":
  46768. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MorphTargetsBlock"]("MorphTargets");
  46769. case "DiscardBlock":
  46770. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DiscardBlock"]("Discard");
  46771. case "ImageProcessingBlock":
  46772. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ImageProcessingBlock"]("ImageProcessing");
  46773. case "ColorMergerBlock":
  46774. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorMergerBlock"]("ColorMerger");
  46775. case "VectorMergerBlock":
  46776. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorMergerBlock"]("VectorMerger");
  46777. case "ColorSplitterBlock":
  46778. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorSplitterBlock"]("ColorSplitter");
  46779. case "VectorSplitterBlock":
  46780. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorSplitterBlock"]("VectorSplitter");
  46781. case "TextureBlock":
  46782. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TextureBlock"]("Texture", nodeMaterial.mode === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Particle);
  46783. case "ReflectionTextureBlock":
  46784. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionTextureBlock"]("Reflection texture");
  46785. case "LightBlock":
  46786. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightBlock"]("Lights");
  46787. case "FogBlock":
  46788. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FogBlock"]("Fog");
  46789. case "VertexOutputBlock":
  46790. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VertexOutputBlock"]("VertexOutput");
  46791. case "FragmentOutputBlock":
  46792. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FragmentOutputBlock"]("FragmentOutput");
  46793. case "AddBlock":
  46794. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AddBlock"]("Add");
  46795. case "ClampBlock":
  46796. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ClampBlock"]("Clamp");
  46797. case "ScaleBlock":
  46798. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ScaleBlock"]("Scale");
  46799. case "CrossBlock":
  46800. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["CrossBlock"]("Cross");
  46801. case "DotBlock":
  46802. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DotBlock"]("Dot");
  46803. case "PowBlock":
  46804. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PowBlock"]("Pow");
  46805. case "MultiplyBlock":
  46806. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MultiplyBlock"]("Multiply");
  46807. case "TransformBlock":
  46808. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("Transform");
  46809. case "TrigonometryBlock":
  46810. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Trigonometry");
  46811. case "RemapBlock":
  46812. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RemapBlock"]("Remap");
  46813. case "NormalizeBlock":
  46814. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NormalizeBlock"]("Normalize");
  46815. case "FresnelBlock":
  46816. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FresnelBlock"]("Fresnel");
  46817. case "LerpBlock":
  46818. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LerpBlock"]("Lerp");
  46819. case "NLerpBlock":
  46820. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NLerpBlock"]("NLerp");
  46821. case "DivideBlock":
  46822. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DivideBlock"]("Divide");
  46823. case "SubtractBlock":
  46824. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SubtractBlock"]("Subtract");
  46825. case "ModBlock":
  46826. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ModBlock"]("Mod");
  46827. case "StepBlock":
  46828. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["StepBlock"]("Step");
  46829. case "SmoothStepBlock":
  46830. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SmoothStepBlock"]("Smooth step");
  46831. case "OneMinusBlock":
  46832. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["OneMinusBlock"]("One minus");
  46833. case "ReciprocalBlock":
  46834. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReciprocalBlock"]("Reciprocal");
  46835. case "ViewDirectionBlock":
  46836. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ViewDirectionBlock"]("View direction");
  46837. case "LightInformationBlock":
  46838. var lightInformationBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightInformationBlock"]("Light information");
  46839. lightInformationBlock.light = scene.lights.length ? scene.lights[0] : null;
  46840. return lightInformationBlock;
  46841. case "MaxBlock":
  46842. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MaxBlock"]("Max");
  46843. case "MinBlock":
  46844. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MinBlock"]("Min");
  46845. case "LengthBlock":
  46846. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LengthBlock"]("Length");
  46847. case "DistanceBlock":
  46848. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DistanceBlock"]("Distance");
  46849. case "NegateBlock":
  46850. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NegateBlock"]("Negate");
  46851. case "PerturbNormalBlock":
  46852. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PerturbNormalBlock"]("Perturb normal");
  46853. case "RandomNumberBlock":
  46854. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RandomNumberBlock"]("Random number");
  46855. case "ReplaceColorBlock":
  46856. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReplaceColorBlock"]("Replace color");
  46857. case "PosterizeBlock":
  46858. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PosterizeBlock"]("Posterize");
  46859. case "ArcTan2Block":
  46860. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ArcTan2Block"]("ArcTan2");
  46861. case "GradientBlock":
  46862. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["GradientBlock"]("Gradient");
  46863. case "FrontFacingBlock":
  46864. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FrontFacingBlock"]("Front facing");
  46865. case "CosBlock": {
  46866. var cosBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Cos");
  46867. cosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Cos;
  46868. return cosBlock;
  46869. }
  46870. case "SinBlock": {
  46871. var sinBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sin");
  46872. sinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sin;
  46873. return sinBlock;
  46874. }
  46875. case "AbsBlock": {
  46876. var absBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Abs");
  46877. absBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Abs;
  46878. return absBlock;
  46879. }
  46880. case "SqrtBlock": {
  46881. var sqrtBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sqrt");
  46882. sqrtBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sqrt;
  46883. return sqrtBlock;
  46884. }
  46885. case "ArcCosBlock": {
  46886. var acosBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcCos");
  46887. acosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcCos;
  46888. return acosBlock;
  46889. }
  46890. case "ArcSinBlock": {
  46891. var asinBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcSin");
  46892. asinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcSin;
  46893. return asinBlock;
  46894. }
  46895. case "TanBlock": {
  46896. var tanBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Tan");
  46897. tanBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Tan;
  46898. return tanBlock;
  46899. }
  46900. case "ArcTanBlock": {
  46901. var atanBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcTan");
  46902. atanBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcTan;
  46903. return atanBlock;
  46904. }
  46905. case "FractBlock": {
  46906. var fractBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Fract");
  46907. fractBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Fract;
  46908. return fractBlock;
  46909. }
  46910. case "SignBlock": {
  46911. var signBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sign");
  46912. signBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sign;
  46913. return signBlock;
  46914. }
  46915. case "LogBlock": {
  46916. var logBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Log");
  46917. logBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Log;
  46918. return logBlock;
  46919. }
  46920. case "ExpBlock": {
  46921. var expBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp");
  46922. expBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp;
  46923. return expBlock;
  46924. }
  46925. case "Exp2Block": {
  46926. var exp2Block = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp2");
  46927. exp2Block.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp2;
  46928. return exp2Block;
  46929. }
  46930. case "DegreesToRadiansBlock": {
  46931. var degreesToRadiansBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Degrees to radians");
  46932. degreesToRadiansBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Radians;
  46933. return degreesToRadiansBlock;
  46934. }
  46935. case "RadiansToDegreesBlock": {
  46936. var radiansToDegreesBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Radians to degrees");
  46937. radiansToDegreesBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Degrees;
  46938. return radiansToDegreesBlock;
  46939. }
  46940. case "RoundBlock": {
  46941. var roundBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Round");
  46942. roundBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Round;
  46943. return roundBlock;
  46944. }
  46945. case "CeilingBlock": {
  46946. var ceilingBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Ceiling");
  46947. ceilingBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Ceiling;
  46948. return ceilingBlock;
  46949. }
  46950. case "FloorBlock": {
  46951. var floorBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Floor");
  46952. floorBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Floor;
  46953. return floorBlock;
  46954. }
  46955. case "SawToothWaveBlock": {
  46956. var sawToothWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("SawTooth wave");
  46957. sawToothWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].SawTooth;
  46958. return sawToothWaveBlock;
  46959. }
  46960. case "SquareWaveBlock": {
  46961. var squareWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("Square wave");
  46962. squareWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].Square;
  46963. return squareWaveBlock;
  46964. }
  46965. case "TriangleWaveBlock": {
  46966. var triangleWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("Triangle wave");
  46967. triangleWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].Triangle;
  46968. return triangleWaveBlock;
  46969. }
  46970. case "WorldMatrixBlock": {
  46971. var worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  46972. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  46973. return worldMatrixBlock;
  46974. }
  46975. case "WorldViewMatrixBlock": {
  46976. var worldViewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View");
  46977. worldViewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView);
  46978. return worldViewMatrixBlock;
  46979. }
  46980. case "WorldViewProjectionMatrixBlock": {
  46981. var worldViewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View x Projection");
  46982. worldViewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection);
  46983. return worldViewProjectionMatrixBlock;
  46984. }
  46985. case "ViewMatrixBlock": {
  46986. var viewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View");
  46987. viewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View);
  46988. return viewMatrixBlock;
  46989. }
  46990. case "ViewProjectionMatrixBlock": {
  46991. var viewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View x Projection");
  46992. viewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection);
  46993. return viewProjectionMatrixBlock;
  46994. }
  46995. case "ProjectionMatrixBlock": {
  46996. var projectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Projection");
  46997. projectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection);
  46998. return projectionMatrixBlock;
  46999. }
  47000. case "CameraPositionBlock": {
  47001. var cameraPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Camera position");
  47002. cameraPosition.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition);
  47003. return cameraPosition;
  47004. }
  47005. case "FogColorBlock": {
  47006. var FogColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Fog color");
  47007. FogColor.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor);
  47008. return FogColor;
  47009. }
  47010. case "PositionBlock": {
  47011. var meshPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  47012. meshPosition.setAsAttribute("position");
  47013. return meshPosition;
  47014. }
  47015. case "ScreenPositionBlock": {
  47016. var meshPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  47017. meshPosition.setAsAttribute("position2d");
  47018. return meshPosition;
  47019. }
  47020. case "UVBlock": {
  47021. var meshUV = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("uv");
  47022. meshUV.setAsAttribute("uv");
  47023. return meshUV;
  47024. }
  47025. case "ColorBlock": {
  47026. var meshColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("color");
  47027. meshColor.setAsAttribute("color");
  47028. return meshColor;
  47029. }
  47030. case "NormalBlock": {
  47031. var meshNormal = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  47032. meshNormal.setAsAttribute("normal");
  47033. return meshNormal;
  47034. }
  47035. case "TangentBlock": {
  47036. var meshTangent = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  47037. meshTangent.setAsAttribute("tangent");
  47038. return meshTangent;
  47039. }
  47040. case "MatrixIndicesBlock": {
  47041. var meshMatrixIndices = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesIndices");
  47042. meshMatrixIndices.setAsAttribute("matricesIndices");
  47043. return meshMatrixIndices;
  47044. }
  47045. case "MatrixWeightsBlock": {
  47046. var meshMatrixWeights = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesWeights");
  47047. meshMatrixWeights.setAsAttribute("matricesWeights");
  47048. return meshMatrixWeights;
  47049. }
  47050. case "TimeBlock": {
  47051. 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);
  47052. timeBlock.animationType = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].Time;
  47053. return timeBlock;
  47054. }
  47055. case "DeltaTimeBlock": {
  47056. var deltaTimeBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Delta time");
  47057. deltaTimeBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].DeltaTime);
  47058. return deltaTimeBlock;
  47059. }
  47060. case "WorldPositionBlock": {
  47061. var worldPositionBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "position"; });
  47062. if (!worldPositionBlock) {
  47063. worldPositionBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  47064. worldPositionBlock.setAsAttribute("position");
  47065. }
  47066. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  47067. if (!worldMatrixBlock) {
  47068. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  47069. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  47070. }
  47071. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World position");
  47072. worldPositionBlock.connectTo(transformBlock);
  47073. worldMatrixBlock.connectTo(transformBlock);
  47074. return transformBlock;
  47075. }
  47076. case "WorldNormalBlock": {
  47077. var worldNormalBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "normal"; });
  47078. if (!worldNormalBlock) {
  47079. worldNormalBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  47080. worldNormalBlock.setAsAttribute("normal");
  47081. }
  47082. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  47083. if (!worldMatrixBlock) {
  47084. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  47085. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  47086. }
  47087. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World normal");
  47088. worldNormalBlock.connectTo(transformBlock);
  47089. worldMatrixBlock.connectTo(transformBlock);
  47090. return transformBlock;
  47091. }
  47092. case "WorldTangentBlock": {
  47093. var worldTangentBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "tangent"; });
  47094. if (!worldTangentBlock) {
  47095. worldTangentBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  47096. worldTangentBlock.setAsAttribute("tangent");
  47097. }
  47098. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  47099. if (!worldMatrixBlock) {
  47100. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  47101. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  47102. }
  47103. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World tangent");
  47104. worldTangentBlock.connectTo(transformBlock);
  47105. worldMatrixBlock.connectTo(transformBlock);
  47106. return transformBlock;
  47107. }
  47108. case "PBRMetallicRoughnessBlock":
  47109. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PBRMetallicRoughnessBlock"]("PBRMetallicRoughness");
  47110. case "SheenBlock":
  47111. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SheenBlock"]("Sheen");
  47112. case "AnisotropyBlock":
  47113. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AnisotropyBlock"]("Anisotropy");
  47114. case "ReflectionBlock":
  47115. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionBlock"]("Reflection");
  47116. case "ClearCoatBlock":
  47117. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ClearCoatBlock"]("ClearCoat");
  47118. case "RefractionBlock":
  47119. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RefractionBlock"]("Refraction");
  47120. case "SubSurfaceBlock":
  47121. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SubSurfaceBlock"]("SubSurface");
  47122. case "CurrentScreenBlock":
  47123. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["CurrentScreenBlock"]("CurrentScreen");
  47124. case "ParticleUVBlock": {
  47125. var uv = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("uv");
  47126. uv.setAsAttribute("particle_uv");
  47127. return uv;
  47128. }
  47129. case "ParticleTextureBlock":
  47130. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ParticleTextureBlock"]("ParticleTexture");
  47131. case "ParticleColorBlock": {
  47132. var color = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Color");
  47133. color.setAsAttribute("particle_color");
  47134. return color;
  47135. }
  47136. case "ParticleTextureMaskBlock": {
  47137. var u = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("TextureMask");
  47138. u.setAsAttribute("particle_texturemask");
  47139. return u;
  47140. }
  47141. case "ParticlePositionWorldBlock": {
  47142. var pos = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("PositionWorld");
  47143. pos.setAsAttribute("particle_positionw");
  47144. return pos;
  47145. }
  47146. case "ParticleRampGradientBlock":
  47147. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ParticleRampGradientBlock"]("ParticleRampGradient");
  47148. case "ParticleBlendMultiplyBlock":
  47149. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ParticleBlendMultiplyBlock"]("ParticleBlendMultiply");
  47150. case "FragCoordBlock":
  47151. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FragCoordBlock"]("FragCoord");
  47152. case "ScreenSizeBlock":
  47153. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ScreenSizeBlock"]("ScreenSize");
  47154. }
  47155. return null;
  47156. };
  47157. BlockTools.GetColorFromConnectionNodeType = function (type) {
  47158. var color = "#880000";
  47159. switch (type) {
  47160. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  47161. color = "#cb9e27";
  47162. break;
  47163. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  47164. color = "#16bcb1";
  47165. break;
  47166. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  47167. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  47168. color = "#b786cb";
  47169. break;
  47170. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  47171. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  47172. color = "#be5126";
  47173. break;
  47174. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  47175. color = "#591990";
  47176. break;
  47177. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Object:
  47178. color = "#6174FA";
  47179. break;
  47180. }
  47181. return color;
  47182. };
  47183. BlockTools.GetConnectionNodeTypeFromString = function (type) {
  47184. switch (type) {
  47185. case "Float":
  47186. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float;
  47187. case "Vector2":
  47188. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2;
  47189. case "Vector3":
  47190. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3;
  47191. case "Vector4":
  47192. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4;
  47193. case "Matrix":
  47194. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix;
  47195. case "Color3":
  47196. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3;
  47197. case "Color4":
  47198. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4;
  47199. }
  47200. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].AutoDetect;
  47201. };
  47202. BlockTools.GetStringFromConnectionNodeType = function (type) {
  47203. switch (type) {
  47204. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  47205. return "Float";
  47206. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  47207. return "Vector2";
  47208. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  47209. return "Vector3";
  47210. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  47211. return "Vector4";
  47212. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  47213. return "Color3";
  47214. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  47215. return "Color4";
  47216. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  47217. return "Matrix";
  47218. }
  47219. return "";
  47220. };
  47221. return BlockTools;
  47222. }());
  47223. /***/ }),
  47224. /***/ "./components/log/log.scss":
  47225. /*!*********************************!*\
  47226. !*** ./components/log/log.scss ***!
  47227. \*********************************/
  47228. /*! no static exports found */
  47229. /***/ (function(module, exports, __webpack_require__) {
  47230. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  47231. var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./log.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/log/log.scss");
  47232. content = content.__esModule ? content.default : content;
  47233. if (typeof content === 'string') {
  47234. content = [[module.i, content, '']];
  47235. }
  47236. var options = {};
  47237. options.insert = "head";
  47238. options.singleton = false;
  47239. var update = api(content, options);
  47240. module.exports = content.locals || {};
  47241. /***/ }),
  47242. /***/ "./components/log/logComponent.tsx":
  47243. /*!*****************************************!*\
  47244. !*** ./components/log/logComponent.tsx ***!
  47245. \*****************************************/
  47246. /*! exports provided: LogEntry, LogComponent */
  47247. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47248. "use strict";
  47249. __webpack_require__.r(__webpack_exports__);
  47250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogEntry", function() { return LogEntry; });
  47251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogComponent", function() { return LogComponent; });
  47252. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  47253. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47254. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  47255. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  47256. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  47257. __webpack_require__(/*! ./log.scss */ "./components/log/log.scss");
  47258. var LogEntry = /** @class */ (function () {
  47259. function LogEntry(message, isError) {
  47260. this.message = message;
  47261. this.isError = isError;
  47262. }
  47263. return LogEntry;
  47264. }());
  47265. var LogComponent = /** @class */ (function (_super) {
  47266. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LogComponent, _super);
  47267. function LogComponent(props) {
  47268. var _this = _super.call(this, props) || this;
  47269. _this.state = { logs: [] };
  47270. return _this;
  47271. }
  47272. LogComponent.prototype.componentDidMount = function () {
  47273. var _this = this;
  47274. this.props.globalState.onLogRequiredObservable.add(function (log) {
  47275. var currentLogs = _this.state.logs;
  47276. currentLogs.push(log);
  47277. _this.setState({ logs: currentLogs });
  47278. });
  47279. };
  47280. LogComponent.prototype.componentDidUpdate = function () {
  47281. var logConsole = react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"](this.refs["log-console"]);
  47282. if (!logConsole) {
  47283. return;
  47284. }
  47285. logConsole.scrollTop = logConsole.scrollHeight;
  47286. };
  47287. LogComponent.prototype.render = function () {
  47288. var today = new Date();
  47289. var h = today.getHours();
  47290. var m = today.getMinutes();
  47291. var s = today.getSeconds();
  47292. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "log-console", ref: "log-console" }, this.state.logs.map(function (l, i) {
  47293. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: i, className: "log" + (l.isError ? " error" : "") }, h + ":" + m + ":" + s + ": " + l.message));
  47294. })));
  47295. };
  47296. return LogComponent;
  47297. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  47298. /***/ }),
  47299. /***/ "./components/nodeList/nodeList.scss":
  47300. /*!*******************************************!*\
  47301. !*** ./components/nodeList/nodeList.scss ***!
  47302. \*******************************************/
  47303. /*! no static exports found */
  47304. /***/ (function(module, exports, __webpack_require__) {
  47305. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  47306. var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./nodeList.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/nodeList/nodeList.scss");
  47307. content = content.__esModule ? content.default : content;
  47308. if (typeof content === 'string') {
  47309. content = [[module.i, content, '']];
  47310. }
  47311. var options = {};
  47312. options.insert = "head";
  47313. options.singleton = false;
  47314. var update = api(content, options);
  47315. module.exports = content.locals || {};
  47316. /***/ }),
  47317. /***/ "./components/nodeList/nodeListComponent.tsx":
  47318. /*!***************************************************!*\
  47319. !*** ./components/nodeList/nodeListComponent.tsx ***!
  47320. \***************************************************/
  47321. /*! exports provided: NodeListComponent */
  47322. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47323. "use strict";
  47324. __webpack_require__.r(__webpack_exports__);
  47325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  47326. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  47327. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47328. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  47329. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  47330. /* harmony import */ var _sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/draggableLineComponent */ "./sharedComponents/draggableLineComponent.tsx");
  47331. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialModes */ "babylonjs/Misc/dataStorage");
  47332. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__);
  47333. /* harmony import */ var _sharedComponents_draggableLineWithButtonComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/draggableLineWithButtonComponent */ "./sharedComponents/draggableLineWithButtonComponent.tsx");
  47334. /* harmony import */ var _sharedComponents_lineWithFileButtonComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sharedComponents/lineWithFileButtonComponent */ "./sharedComponents/lineWithFileButtonComponent.tsx");
  47335. var addButton = __webpack_require__(/*! ../../../imgs/add.svg */ "../imgs/add.svg");
  47336. var deleteButton = __webpack_require__(/*! ../../../imgs/delete.svg */ "../imgs/delete.svg");
  47337. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  47338. var NodeListComponent = /** @class */ (function (_super) {
  47339. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NodeListComponent, _super);
  47340. function NodeListComponent(props) {
  47341. var _this = _super.call(this, props) || this;
  47342. _this.state = { filter: "" };
  47343. var frameJson = localStorage.getItem("Custom-Frame-List");
  47344. if (frameJson) {
  47345. _this._customFrameList = JSON.parse(frameJson);
  47346. }
  47347. _this._onResetRequiredObserver = _this.props.globalState.onResetRequiredObservable.add(function () {
  47348. _this.forceUpdate();
  47349. });
  47350. return _this;
  47351. }
  47352. NodeListComponent.prototype.componentWillUnmount = function () {
  47353. this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver);
  47354. };
  47355. NodeListComponent.prototype.filterContent = function (filter) {
  47356. this.setState({ filter: filter });
  47357. };
  47358. NodeListComponent.prototype.loadCustomFrame = function (file) {
  47359. var _this = this;
  47360. babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__["Tools"].ReadFile(file, function (data) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () {
  47361. var decoder, frameData, frameName, frameToolTip, frameJson, frameList;
  47362. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
  47363. decoder = new TextDecoder("utf-8");
  47364. frameData = JSON.parse(decoder.decode(data));
  47365. frameName = frameData.editorData.frames[0].name + "Custom";
  47366. frameToolTip = frameData.editorData.frames[0].comments || "";
  47367. try {
  47368. localStorage.setItem(frameName, JSON.stringify(frameData));
  47369. }
  47370. catch (error) {
  47371. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("Error Saving Frame");
  47372. return [2 /*return*/];
  47373. }
  47374. frameJson = localStorage.getItem("Custom-Frame-List");
  47375. frameList = {};
  47376. if (frameJson) {
  47377. frameList = JSON.parse(frameJson);
  47378. }
  47379. frameList[frameName] = frameToolTip;
  47380. localStorage.setItem("Custom-Frame-List", JSON.stringify(frameList));
  47381. this._customFrameList = frameList;
  47382. this.forceUpdate();
  47383. return [2 /*return*/];
  47384. });
  47385. }); }, undefined, true);
  47386. };
  47387. NodeListComponent.prototype.removeItem = function (value) {
  47388. var frameJson = localStorage.getItem("Custom-Frame-List");
  47389. if (frameJson) {
  47390. var frameList = JSON.parse(frameJson);
  47391. delete frameList[value];
  47392. localStorage.removeItem(value);
  47393. localStorage.setItem("Custom-Frame-List", JSON.stringify(frameList));
  47394. this._customFrameList = frameList;
  47395. this.forceUpdate();
  47396. }
  47397. };
  47398. NodeListComponent.prototype.render = function () {
  47399. var _this = this;
  47400. var customFrameNames = [];
  47401. for (var frame in this._customFrameList) {
  47402. customFrameNames.push(frame);
  47403. }
  47404. // Block types used to create the menu from
  47405. var allBlocks = {
  47406. Custom_Frames: customFrameNames,
  47407. Animation: ["BonesBlock", "MorphTargetsBlock"],
  47408. Color_Management: ["ReplaceColorBlock", "PosterizeBlock", "GradientBlock", "DesaturateBlock"],
  47409. Conversion_Blocks: ["ColorMergerBlock", "ColorSplitterBlock", "VectorMergerBlock", "VectorSplitterBlock"],
  47410. Inputs: ["Float", "Vector2", "Vector3", "Vector4", "Color3", "Color4", "TextureBlock", "ReflectionTextureBlock", "TimeBlock", "DeltaTimeBlock", "FragCoordBlock", "ScreenSizeBlock"],
  47411. Interpolation: ["LerpBlock", "StepBlock", "SmoothStepBlock", "NLerpBlock"],
  47412. Math__Standard: ["AddBlock", "DivideBlock", "MaxBlock", "MinBlock", "ModBlock", "MultiplyBlock", "NegateBlock", "OneMinusBlock", "ReciprocalBlock", "ScaleBlock", "SignBlock", "SqrtBlock", "SubtractBlock"],
  47413. Math__Scientific: ["AbsBlock", "ArcCosBlock", "ArcSinBlock", "ArcTanBlock", "ArcTan2Block", "CosBlock", "DegreesToRadiansBlock", "ExpBlock", "Exp2Block", "FractBlock", "LogBlock", "PowBlock", "RadiansToDegreesBlock", "SawToothWaveBlock", "SinBlock", "SquareWaveBlock", "TanBlock", "TriangleWaveBlock"],
  47414. Math__Vector: ["CrossBlock", "DerivativeBlock", "DistanceBlock", "DotBlock", "FresnelBlock", "LengthBlock", "ReflectBlock", "RefractBlock", "Rotate2dBlock", "TransformBlock",],
  47415. Matrices: ["Matrix", "WorldMatrixBlock", "WorldViewMatrixBlock", "WorldViewProjectionMatrixBlock", "ViewMatrixBlock", "ViewProjectionMatrixBlock", "ProjectionMatrixBlock"],
  47416. Mesh: ["InstancesBlock", "PositionBlock", "UVBlock", "ColorBlock", "NormalBlock", "PerturbNormalBlock", "NormalBlendBlock", "TangentBlock", "MatrixIndicesBlock", "MatrixWeightsBlock", "WorldPositionBlock", "WorldNormalBlock", "WorldTangentBlock", "FrontFacingBlock"],
  47417. Noises: ["RandomNumberBlock", "SimplexPerlin3DBlock", "WorleyNoise3DBlock"],
  47418. Output_Nodes: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock"],
  47419. Particle: ["ParticleBlendMultiplyBlock", "ParticleColorBlock", "ParticlePositionWorldBlock", "ParticleRampGradientBlock", "ParticleTextureBlock", "ParticleTextureMaskBlock", "ParticleUVBlock"],
  47420. PBR: ["PBRMetallicRoughnessBlock", "AnisotropyBlock", "ClearCoatBlock", "ReflectionBlock", "RefractionBlock", "SheenBlock", "SubSurfaceBlock"],
  47421. PostProcess: ["ScreenPositionBlock", "CurrentScreenBlock"],
  47422. Procedural__Texture: ["ScreenPositionBlock"],
  47423. Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"],
  47424. Round: ["RoundBlock", "CeilingBlock", "FloorBlock"],
  47425. Scene: ["FogBlock", "CameraPositionBlock", "FogColorBlock", "ImageProcessingBlock", "LightBlock", "LightInformationBlock", "ViewDirectionBlock"],
  47426. };
  47427. switch (this.props.globalState.mode) {
  47428. case babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialModes"].Material:
  47429. delete allBlocks["PostProcess"];
  47430. delete allBlocks["Particle"];
  47431. delete allBlocks["Procedural__Texture"];
  47432. break;
  47433. case babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialModes"].PostProcess:
  47434. delete allBlocks["Animation"];
  47435. delete allBlocks["Mesh"];
  47436. delete allBlocks["Particle"];
  47437. delete allBlocks["Procedural__Texture"];
  47438. delete allBlocks["PBR"];
  47439. break;
  47440. case babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialModes"].ProceduralTexture:
  47441. delete allBlocks["Animation"];
  47442. delete allBlocks["Mesh"];
  47443. delete allBlocks["Particle"];
  47444. delete allBlocks["PostProcess"];
  47445. delete allBlocks["PBR"];
  47446. break;
  47447. case babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialModes"].Particle:
  47448. delete allBlocks["Animation"];
  47449. delete allBlocks["Mesh"];
  47450. delete allBlocks["PostProcess"];
  47451. delete allBlocks["Procedural__Texture"];
  47452. delete allBlocks["PBR"];
  47453. allBlocks.Output_Nodes.splice(allBlocks.Output_Nodes.indexOf("VertexOutputBlock"), 1);
  47454. break;
  47455. }
  47456. // Create node menu
  47457. var blockMenu = [];
  47458. for (var key in allBlocks) {
  47459. var blockList = allBlocks[key].filter(function (b) { return !_this.state.filter || b.toLowerCase().indexOf(_this.state.filter.toLowerCase()) !== -1; })
  47460. .sort(function (a, b) { return a.localeCompare(b); })
  47461. .map(function (block, i) {
  47462. if (key === "Custom_Frames") {
  47463. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_draggableLineWithButtonComponent__WEBPACK_IMPORTED_MODULE_5__["DraggableLineWithButtonComponent"], { key: block, data: block, tooltip: _this._customFrameList[block] || "", iconImage: deleteButton, iconTitle: "Delete", onIconClick: function (value) { return _this.removeItem(value); } });
  47464. }
  47465. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__["DraggableLineComponent"], { key: block, data: block, tooltip: NodeListComponent._Tooltips[block] || "" });
  47466. });
  47467. if (key === "Custom_Frames") {
  47468. var line = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineWithFileButtonComponent__WEBPACK_IMPORTED_MODULE_6__["LineWithFileButtonComponent"], { key: "add...", title: "Add Custom Frame", closed: false, label: "Add...", uploadName: 'custom-frame-upload', iconImage: addButton, accept: ".json", onIconClick: function (file) {
  47469. _this.loadCustomFrame(file);
  47470. } });
  47471. blockList.push(line);
  47472. }
  47473. if (blockList.length) {
  47474. 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));
  47475. }
  47476. }
  47477. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList" },
  47478. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  47479. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  47480. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "filter" },
  47481. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", placeholder: "Filter", onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, onBlur: function (evt) {
  47482. _this.props.globalState.blockKeyboardEvents = false;
  47483. }, onChange: function (evt) { return _this.filterContent(evt.target.value); } })),
  47484. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "list-container" }, blockMenu)))));
  47485. };
  47486. NodeListComponent._Tooltips = {
  47487. "BonesBlock": "Provides a world matrix for each vertex, based on skeletal (bone/joint) animation",
  47488. "MorphTargetsBlock": "Provides the final positions, normals, tangents, and uvs based on morph targets in a mesh",
  47489. "AddBlock": "Adds the left and right inputs of the same type together",
  47490. "DistanceBlock": "Provides a distance vector based on the left and right input vectors",
  47491. "DivideBlock": "Divides the left input by the right input of the same type",
  47492. "LengthBlock": "Outputs the length of an input vector",
  47493. "MaxBlock": "Outputs the largest value between the left and right inputs of the same type",
  47494. "MinBlock": "Outputs the smallest value between the left and right inputs of the same type",
  47495. "MultiplyBlock": "Multiplies the left and right inputs of the same type together",
  47496. "NegateBlock": "Multiplies the input by -1",
  47497. "OneMinusBlock": "Subtracts each channel of the input value from 1 (1 - input)",
  47498. "RandomNumberBlock": "Provides a random number based on an input seed",
  47499. "ReciprocalBlock": "Quotient of 1 divided by the input",
  47500. "ScaleBlock": "Multiplies the input channels by a float factor",
  47501. "SubtractBlock": "Subtracts the right input from the left input of the same type",
  47502. "GradientBlock": "Returns the color in the gradient represented by the target value of the input",
  47503. "PosterizeBlock": "Reduces the number of values in each channel to the number in the corresponding channel of steps",
  47504. "ReplaceColorBlock": "Replaces a reference color in value with the color in replacement blended by distance",
  47505. "ColorMergerBlock": "Combines float input channels into a color",
  47506. "ColorSplitterBlock": "Separates color input channels into individual floats",
  47507. "VectorMergerBlock": "Combines up to four input floats into a vector",
  47508. "VectorSplitterBlock": "Separates vectors input channels into individual floats",
  47509. "Color3": "A color made up of red, green, and blue channel values",
  47510. "Color4": "A color made up of red, green, blue, and alpha channel values",
  47511. "DeltaTimeBlock": "A float representing the time that has passed since the last frame was rendered",
  47512. "Float": "A floating point number representing a value with a fractional component",
  47513. "TextureBlock": "A node for reading a linked or embedded texture file",
  47514. "TimeBlock": "A float value that represents the time that has passed since the scene was loaded",
  47515. "Vector2": "a vector composed of X and Y channels",
  47516. "Vector3": "a vector composed of X, Y, and Z channels",
  47517. "Vector4": "a vector composed of X, Y, Z, and W channels",
  47518. "LerpBlock": "Outputs a value that is a mix of the left and right inputs based on the target value",
  47519. "NLerpBlock": "Outputs a value that is a mix of the left and right inputs based on the target's normalized value",
  47520. "SmoothStepBlock": "Outputs a value based on a the input value's position on a curve between the two edge values",
  47521. "StepBlock": "Outputs 1 for any input value above the edge input, outputs 0 for any input value below the edge input",
  47522. "Matrix": "A 4x4 table of related values",
  47523. "ProjectionMatrixBlock": "A matrix to remap points in 3D space to 2D plane relative to the screen",
  47524. "ViewMatrixBlock": "A matrix to remap points in 3D space to 2D plane relative to the view of the scene camera",
  47525. "ViewProjectionMatrixBlock": "A matrix to remap points in 3D space to 2D view space before remapping to 2D screen space",
  47526. "WorldMatrixBlock": "A matrix to remap points in 3D local space to 3D world space",
  47527. "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",
  47528. "ColorBlock": "Outputs the RGBA color of each vertex in the mesh",
  47529. "InstancesBlock": "Provides the world matrix for each instance to apply this material to all instances",
  47530. "MatrixIndicesBlock": "A Vector4 representing the vertex to bone skinning assignments",
  47531. "MatrixWeightsBlock": "A Vector4 representing the vertex to bone skinning weights",
  47532. "NormalBlock": "A Vector3 representing the normal of each vertex of the attached mesh",
  47533. "PositionBlock": "A Vector3 representing the position of each vertex of the attached mesh",
  47534. "TangentBlock": "A Vector3 representing the tangent of each vertex of the attached mesh",
  47535. "UVBlock": "A Vector2 representing the UV coordinates of each vertex of the attached mesh",
  47536. "WorldNormal": "A Vector4 representing the normal of each vertex of the attached mesh transformed into world space",
  47537. "WorldTangent": "A Vector4 representing the tangent of each vertex of the attached mesh transformed into world space",
  47538. "PerturbNormalBlock": "Creates high-frequency detail normal vectors based on a normal map, the world position, and world normal",
  47539. "NormalBlend": "Outputs the result of blending two normal maps together using a per-channel screen",
  47540. "WorldPosition": "A Vector4 representing the position of each vertex of the attached mesh transformed into world space",
  47541. "DiscardBlock": "A final node that will not output a pixel below the cutoff value",
  47542. "FragmentOutputBlock": "A mandatory final node for outputing the color of each pixel",
  47543. "VertexOutputBlock": "A mandatory final node for outputing the position of each vertex",
  47544. "ClampBlock": "Outputs values above the maximum or below minimum as maximum or minimum values respectively",
  47545. "NormalizeBlock": "Remaps the length of a vector or color to 1",
  47546. "RemapBlock": "Remaps input value between sourceMin and sourceMax to a new range between targetMin and targetMax",
  47547. "CeilingBlock": "Outputs fractional values as the next higher whole number",
  47548. "FloorBlock": "Outputs fractional values as the next lower whole number",
  47549. "RoundBlock": "Outputs fractional values rounded to the nearest whole number",
  47550. "ModBlock": "Outputs the value of one parameter modulo another",
  47551. "CameraPositionBlock": "Outputs a Vector3 position of the active scene camera",
  47552. "FogBlock": "Applies fog to the scene with an increasing opacity based on distance from the camera",
  47553. "FogColorBlock": "The system value for fog color pulled from the scene",
  47554. "ImageProcessingBlock": "Provides access to all of the Babylon image processing properties",
  47555. "LightBlock": "Outputs diffuse and specular contributions from one or more scene lights",
  47556. "LightInformationBlock": "Provides the direction, color and intensity of a selected light based on its world position",
  47557. "ReflectionTextureBlock": "Creates a reflection from the input texture",
  47558. "ViewDirectionBlock": "Outputs the direction vector of where the camera is aimed",
  47559. "AbsBlock": "Outputs the absolute value of the input value",
  47560. "ArcCosBlock": "Outputs the inverse of the cosine value based on the input value",
  47561. "ArcSinBlock": "Outputs the inverse of the sine value based on the input value",
  47562. "ArcTan2Block": "Outputs the inverse of the tangent value based on the input value",
  47563. "ArcTanBlock": "Outputs the inverse of the tangent value based on the input value",
  47564. "CosBlock": "Outputs the cosine value based on the input value",
  47565. "DegreesToRadiansBlock": "Converts the input degrees value to radians",
  47566. "Exp2Block": "Outputs the input value multiplied by itself 1 time. (Exponent of 2)",
  47567. "ExpBlock": "Outputs the input value multiplied by itself 9 time. (Exponent of 10)",
  47568. "FractBlock": "Outputs only the fractional value of a floating point number",
  47569. "LogBlock": "The logarithmic value based on the input value",
  47570. "PowBlock": "Outputs the input value multiplied by itself the number of times equal to the power input (Exponent of power)",
  47571. "RadiansToDegreesBlock": "Converts the input radians value to degrees",
  47572. "SawToothWaveBlock": "Outputs a sawtooth pattern value between -1 and 1 based on the input value",
  47573. "SignBlock": "returns 1 if the input is positive, 0 if input is equal to 0, or -1 if the input is negative",
  47574. "SinBlock": "Outputs the the sine value based on the input value",
  47575. "SqrtBlock": "Outputs the the square root of the input value",
  47576. "SquareWaveBlock": "Outputs a stepped pattern value between -1 and 1 based on the input value",
  47577. "TanBlock": "Outputs the the tangent value based on the input value",
  47578. "TriangleWaveBlock": "Outputs a sawtooth pattern value between 0 and 1 based on the input value",
  47579. "CrossBlock": "Outputs a vector that is perpendicular to two input vectors",
  47580. "DotBlock": "Outputs the cos of the angle between two vectors",
  47581. "FresnelBlock": "Outputs the grazing angle of the surface of the mesh, relative to a camera influenced by the bias and power inputs",
  47582. "TransformBlock": "Transforms a input vector based on the input matrix",
  47583. "DerivativeBlock": "FRAGMENT SHADER ONLY. Provides the rate of change for an input on a given axis (x,y).",
  47584. "DesaturateBlock": "Convert a color input into a grayscale representation.",
  47585. "WorldViewMatrixBlock": "A matrix to remap points in 3D local space to 3D world space, and ending in 2D camera space.",
  47586. "FrontFacingBlock": "Returns 1 if a mesh triangle faces the normal direction and 0 if it does not.",
  47587. "SimplexPerlin3DBlock": "Creates a type of gradient noise with few directional artifacts.",
  47588. "WorleyNoise3DBlock": "Creates a random pattern resembling cells.",
  47589. "ReflectBlock": "Outputs the direction of the input vector reflected across the surface normal.",
  47590. "RefractBlock": "Outputs a direction simulating a deflection of the input vector.",
  47591. "Rotate2dBlock": "Rotates UV coordinates around the W axis.",
  47592. "PBRMetallicRoughnessBlock": "PBR metallic/roughness material",
  47593. "SheenBlock": "PBR Sheen block",
  47594. "AnisotropyBlock": "PBR Anisotropy block",
  47595. "ReflectionBlock": "PBR Reflection block",
  47596. "ClearCoatBlock": "PBR ClearCoat block",
  47597. "RefractionBlock": "PBR Refraction block",
  47598. "SubSurfaceBlock": "PBR SubSurface block",
  47599. "ScreenPositionBlock": "A Vector2 representing the position of each vertex of the screen quad (derived from UV set from the quad used to render)",
  47600. "CurrentScreenBlock": "The screen buffer used as input for the post process",
  47601. "ParticleUVBlock": "The particle uv texture coordinate",
  47602. "ParticleTextureBlock": "The particle texture",
  47603. "ParticleColorBlock": "The particle color",
  47604. "ParticleTextureMaskBlock": "The particle texture mask",
  47605. "ParticleRampGradientBlock": "The particle ramp gradient block",
  47606. "ParticleBlendMultiplyBlock": "The particle blend multiply block",
  47607. "ParticlePositionWorldBlock": "The world position of the particle",
  47608. "FragCoordBlock": "The gl_FragCoord predefined variable that contains the window relative coordinate (x, y, z, 1/w)",
  47609. "ScreenSizeBlock": "The size (in pixels) of the screen window",
  47610. };
  47611. return NodeListComponent;
  47612. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  47613. /***/ }),
  47614. /***/ "./components/preview/previewAreaComponent.tsx":
  47615. /*!*****************************************************!*\
  47616. !*** ./components/preview/previewAreaComponent.tsx ***!
  47617. \*****************************************************/
  47618. /*! exports provided: PreviewAreaComponent */
  47619. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47620. "use strict";
  47621. __webpack_require__.r(__webpack_exports__);
  47622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewAreaComponent", function() { return PreviewAreaComponent; });
  47623. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  47624. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47625. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  47626. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  47627. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__);
  47628. var doubleSided = __webpack_require__(/*! ./svgs/doubleSided.svg */ "./components/preview/svgs/doubleSided.svg");
  47629. var depthPass = __webpack_require__(/*! ./svgs/depthPass.svg */ "./components/preview/svgs/depthPass.svg");
  47630. var omni = __webpack_require__(/*! ./svgs/omni.svg */ "./components/preview/svgs/omni.svg");
  47631. var directionalRight = __webpack_require__(/*! ./svgs/directionalRight.svg */ "./components/preview/svgs/directionalRight.svg");
  47632. var directionalLeft = __webpack_require__(/*! ./svgs/directionalLeft.svg */ "./components/preview/svgs/directionalLeft.svg");
  47633. var PreviewAreaComponent = /** @class */ (function (_super) {
  47634. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PreviewAreaComponent, _super);
  47635. function PreviewAreaComponent(props) {
  47636. var _this = _super.call(this, props) || this;
  47637. _this.state = { isLoading: true };
  47638. _this._onIsLoadingChangedObserver = _this.props.globalState.onIsLoadingChanged.add(function (state) { return _this.setState({ isLoading: state }); });
  47639. _this._onResetRequiredObserver = _this.props.globalState.onResetRequiredObservable.add(function () {
  47640. _this.forceUpdate();
  47641. });
  47642. return _this;
  47643. }
  47644. PreviewAreaComponent.prototype.componentWillUnmount = function () {
  47645. this.props.globalState.onIsLoadingChanged.remove(this._onIsLoadingChangedObserver);
  47646. this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver);
  47647. };
  47648. PreviewAreaComponent.prototype.changeBackFaceCulling = function (value) {
  47649. this.props.globalState.backFaceCulling = value;
  47650. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("BackFaceCulling", value);
  47651. this.props.globalState.onBackFaceCullingChanged.notifyObservers();
  47652. this.forceUpdate();
  47653. };
  47654. PreviewAreaComponent.prototype.changeDepthPrePass = function (value) {
  47655. this.props.globalState.depthPrePass = value;
  47656. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("DepthPrePass", value);
  47657. this.props.globalState.onDepthPrePassChanged.notifyObservers();
  47658. this.forceUpdate();
  47659. };
  47660. PreviewAreaComponent.prototype.render = function () {
  47661. var _this = this;
  47662. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  47663. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview", style: { height: this.props.width + "px" } },
  47664. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "preview-canvas" }),
  47665. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "waitPanel" + (this.state.isLoading ? "" : " hidden") }, "Please wait, loading...")),
  47666. this.props.globalState.mode === babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialModes"].Material && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  47667. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-config-bar" },
  47668. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Render without back face culling", onClick: function () { return _this.changeBackFaceCulling(!_this.props.globalState.backFaceCulling); }, className: "button back-face" + (!this.props.globalState.backFaceCulling ? " selected" : "") },
  47669. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: doubleSided, alt: "" })),
  47670. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Render with depth pre-pass", onClick: function () { return _this.changeDepthPrePass(!_this.props.globalState.depthPrePass); }, className: "button depth-pass" + (this.props.globalState.depthPrePass ? " selected" : "") },
  47671. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: depthPass, alt: "" })),
  47672. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off hemispheric light", onClick: function () {
  47673. _this.props.globalState.hemisphericLight = !_this.props.globalState.hemisphericLight;
  47674. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("HemisphericLight", _this.props.globalState.hemisphericLight);
  47675. _this.props.globalState.onLightUpdated.notifyObservers();
  47676. _this.forceUpdate();
  47677. }, className: "button hemispheric-light" + (this.props.globalState.hemisphericLight ? " selected" : "") },
  47678. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: omni, alt: "" })),
  47679. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off direction light #1", onClick: function () {
  47680. _this.props.globalState.directionalLight1 = !_this.props.globalState.directionalLight1;
  47681. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("DirectionalLight1", _this.props.globalState.directionalLight1);
  47682. _this.props.globalState.onLightUpdated.notifyObservers();
  47683. _this.forceUpdate();
  47684. }, className: "button direction-light-1" + (this.props.globalState.directionalLight1 ? " selected" : "") },
  47685. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: directionalRight, alt: "" })),
  47686. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off direction light #0", onClick: function () {
  47687. _this.props.globalState.directionalLight0 = !_this.props.globalState.directionalLight0;
  47688. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("DirectionalLight0", _this.props.globalState.directionalLight0);
  47689. _this.props.globalState.onLightUpdated.notifyObservers();
  47690. _this.forceUpdate();
  47691. }, className: "button direction-light-0" + (this.props.globalState.directionalLight0 ? " selected" : "") },
  47692. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: directionalLeft, alt: "" }))))));
  47693. };
  47694. return PreviewAreaComponent;
  47695. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  47696. /***/ }),
  47697. /***/ "./components/preview/previewManager.ts":
  47698. /*!**********************************************!*\
  47699. !*** ./components/preview/previewManager.ts ***!
  47700. \**********************************************/
  47701. /*! exports provided: PreviewManager */
  47702. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47703. "use strict";
  47704. __webpack_require__.r(__webpack_exports__);
  47705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewManager", function() { return PreviewManager; });
  47706. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterial */ "babylonjs/Misc/dataStorage");
  47707. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__);
  47708. /* harmony import */ var _previewType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./previewType */ "./components/preview/previewType.ts");
  47709. /* harmony import */ var _log_logComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../log/logComponent */ "./components/log/logComponent.tsx");
  47710. var PreviewManager = /** @class */ (function () {
  47711. function PreviewManager(targetCanvas, globalState) {
  47712. var _this = this;
  47713. this._nodeMaterial = globalState.nodeMaterial;
  47714. this._globalState = globalState;
  47715. this._onBuildObserver = this._nodeMaterial.onBuildObservable.add(function (nodeMaterial) {
  47716. var serializationObject = nodeMaterial.serialize();
  47717. _this._updatePreview(serializationObject);
  47718. });
  47719. this._onPreviewCommandActivatedObserver = globalState.onPreviewCommandActivated.add(function (forceRefresh) {
  47720. if (forceRefresh) {
  47721. _this._currentType = -1;
  47722. }
  47723. _this._refreshPreviewMesh();
  47724. });
  47725. this._onLightUpdatedObserver = globalState.onLightUpdated.add(function () {
  47726. _this._prepareLights();
  47727. });
  47728. this._onUpdateRequiredObserver = globalState.onUpdateRequiredObservable.add(function () {
  47729. var serializationObject = _this._nodeMaterial.serialize();
  47730. _this._updatePreview(serializationObject);
  47731. });
  47732. this._onPreviewBackgroundChangedObserver = globalState.onPreviewBackgroundChanged.add(function () {
  47733. _this._scene.clearColor = _this._globalState.backgroundColor;
  47734. });
  47735. this._onAnimationCommandActivatedObserver = globalState.onAnimationCommandActivated.add(function () {
  47736. _this._handleAnimations();
  47737. });
  47738. this._onBackFaceCullingChangedObserver = globalState.onBackFaceCullingChanged.add(function () {
  47739. _this._material.backFaceCulling = _this._globalState.backFaceCulling;
  47740. });
  47741. this._onDepthPrePassChangedObserver = globalState.onDepthPrePassChanged.add(function () {
  47742. _this._material.needDepthPrePass = _this._globalState.depthPrePass;
  47743. });
  47744. this._engine = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Engine"](targetCanvas, true);
  47745. this._scene = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Scene"](this._engine);
  47746. this._scene.clearColor = this._globalState.backgroundColor;
  47747. this._scene.ambientColor = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](1, 1, 1);
  47748. 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);
  47749. this._camera.lowerRadiusLimit = 3;
  47750. this._camera.upperRadiusLimit = 10;
  47751. this._camera.wheelPrecision = 20;
  47752. this._camera.minZ = 0.1;
  47753. this._camera.attachControl(false);
  47754. this._lightParent = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["TransformNode"]("LightParent", this._scene);
  47755. this._refreshPreviewMesh();
  47756. this._engine.runRenderLoop(function () {
  47757. _this._engine.resize();
  47758. _this._scene.render();
  47759. });
  47760. var lastOffsetX = undefined;
  47761. var lightRotationSpeed = 0.01;
  47762. this._scene.onPointerObservable.add(function (evt) {
  47763. if (_this._globalState.controlCamera) {
  47764. return;
  47765. }
  47766. if (evt.type === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERUP) {
  47767. lastOffsetX = undefined;
  47768. return;
  47769. }
  47770. if (evt.event.buttons !== 1) {
  47771. return;
  47772. }
  47773. if (lastOffsetX === undefined) {
  47774. lastOffsetX = evt.event.offsetX;
  47775. }
  47776. var rotateLighting = (lastOffsetX - evt.event.offsetX) * lightRotationSpeed;
  47777. _this._lightParent.rotation.y += rotateLighting;
  47778. lastOffsetX = evt.event.offsetX;
  47779. });
  47780. // this._scene.registerBeforeRender(() => {
  47781. // if (this._camera.alpha === cameraLastRotation) {
  47782. // return;
  47783. // }
  47784. // if (!this._globalState.controlCamera) {
  47785. // return;
  47786. // }
  47787. // var rotateLighting = (this._camera.alpha - cameraLastRotation) * lightRotationParallaxSpeed;
  47788. // this._lightParent.rotate(Vector3.Up(), rotateLighting);
  47789. // cameraLastRotation = this._camera.alpha;
  47790. // });
  47791. }
  47792. PreviewManager.prototype._handleAnimations = function () {
  47793. this._scene.stopAllAnimations();
  47794. if (this._globalState.rotatePreview) {
  47795. for (var _i = 0, _a = this._scene.rootNodes; _i < _a.length; _i++) {
  47796. var root = _a[_i];
  47797. var transformNode = root;
  47798. if (transformNode.getClassName() === "TransformNode" || transformNode.getClassName() === "Mesh" || transformNode.getClassName() === "GroundMesh") {
  47799. if (transformNode.rotationQuaternion) {
  47800. transformNode.rotation = transformNode.rotationQuaternion.toEulerAngles();
  47801. transformNode.rotationQuaternion = null;
  47802. }
  47803. 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);
  47804. }
  47805. }
  47806. }
  47807. };
  47808. PreviewManager.prototype._prepareLights = function () {
  47809. // Remove current lights
  47810. var currentLights = this._scene.lights.slice(0);
  47811. for (var _i = 0, currentLights_1 = currentLights; _i < currentLights_1.length; _i++) {
  47812. var light = currentLights_1[_i];
  47813. light.dispose();
  47814. }
  47815. // Create new lights based on settings
  47816. if (this._globalState.hemisphericLight) {
  47817. 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);
  47818. }
  47819. if (this._globalState.directionalLight0) {
  47820. 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);
  47821. dir0.intensity = 0.9;
  47822. dir0.diffuse = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9294117647058824, 0.9725490196078431, 0.996078431372549);
  47823. dir0.specular = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9294117647058824, 0.9725490196078431, 0.996078431372549);
  47824. dir0.parent = this._lightParent;
  47825. }
  47826. if (this._globalState.directionalLight1) {
  47827. 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);
  47828. dir1.intensity = 1.2;
  47829. dir1.specular = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9803921568627451, 0.9529411764705882, 0.7725490196078432);
  47830. dir1.diffuse = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9803921568627451, 0.9529411764705882, 0.7725490196078432);
  47831. dir1.parent = this._lightParent;
  47832. }
  47833. };
  47834. PreviewManager.prototype._prepareScene = function () {
  47835. var _this = this;
  47836. this._camera.useFramingBehavior = this._globalState.mode === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Material;
  47837. switch (this._globalState.mode) {
  47838. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Material: {
  47839. this._prepareLights();
  47840. var framingBehavior = this._camera.getBehaviorByName("Framing");
  47841. setTimeout(function () {
  47842. // Let the behavior activate first
  47843. framingBehavior.framingTime = 0;
  47844. framingBehavior.elevationReturnTime = -1;
  47845. if (_this._scene.meshes.length) {
  47846. var worldExtends = _this._scene.getWorldExtends();
  47847. _this._camera.lowerRadiusLimit = null;
  47848. _this._camera.upperRadiusLimit = null;
  47849. framingBehavior.zoomOnBoundingInfo(worldExtends.min, worldExtends.max);
  47850. }
  47851. _this._camera.pinchPrecision = 200 / _this._camera.radius;
  47852. _this._camera.upperRadiusLimit = 5 * _this._camera.radius;
  47853. });
  47854. this._camera.wheelDeltaPercentage = 0.01;
  47855. this._camera.pinchDeltaPercentage = 0.01;
  47856. // Animations
  47857. this._handleAnimations();
  47858. break;
  47859. }
  47860. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].PostProcess:
  47861. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].ProceduralTexture: {
  47862. this._camera.radius = 4;
  47863. this._camera.upperRadiusLimit = 10;
  47864. break;
  47865. }
  47866. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Particle: {
  47867. this._camera.radius = this._globalState.previewType === _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Explosion ? 50 : this._globalState.previewType === _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].DefaultParticleSystem ? 6 : 20;
  47868. this._camera.upperRadiusLimit = 5000;
  47869. break;
  47870. }
  47871. }
  47872. // Material
  47873. var serializationObject = this._nodeMaterial.serialize();
  47874. this._updatePreview(serializationObject);
  47875. };
  47876. PreviewManager.prototype._refreshPreviewMesh = function () {
  47877. var _this = this;
  47878. if (this._currentType !== this._globalState.previewType || this._currentType === _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Custom) {
  47879. this._currentType = this._globalState.previewType;
  47880. if (this._meshes && this._meshes.length) {
  47881. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  47882. var mesh = _a[_i];
  47883. mesh.dispose();
  47884. }
  47885. }
  47886. this._meshes = [];
  47887. if (this._layer) {
  47888. this._layer.dispose();
  47889. this._layer = null;
  47890. }
  47891. var lights = this._scene.lights.slice(0);
  47892. for (var _b = 0, lights_1 = lights; _b < lights_1.length; _b++) {
  47893. var light = lights_1[_b];
  47894. light.dispose();
  47895. }
  47896. this._engine.releaseEffects();
  47897. if (this._particleSystem) {
  47898. this._particleSystem.onBeforeDrawParticlesObservable.clear();
  47899. this._particleSystem.onDisposeObservable.clear();
  47900. this._particleSystem.stop();
  47901. this._particleSystem.dispose();
  47902. this._particleSystem = null;
  47903. }
  47904. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].ShowLoadingScreen = false;
  47905. this._globalState.onIsLoadingChanged.notifyObservers(true);
  47906. if (this._globalState.mode === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Material) {
  47907. switch (this._globalState.previewType) {
  47908. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Box:
  47909. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCube.glb", this._scene).then(function () {
  47910. var _a;
  47911. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  47912. _this._prepareScene();
  47913. });
  47914. return;
  47915. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Sphere:
  47916. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateSphere("dummy-sphere", 32, 2, this._scene));
  47917. break;
  47918. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Torus:
  47919. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateTorus("dummy-torus", 2, 0.5, 32, this._scene));
  47920. break;
  47921. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Cylinder:
  47922. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCylinder.glb", this._scene).then(function () {
  47923. var _a;
  47924. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  47925. _this._prepareScene();
  47926. });
  47927. return;
  47928. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Plane:
  47929. var plane = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateGround("dummy-plane", 2, 2, 128, this._scene);
  47930. plane.scaling.y = -1;
  47931. plane.rotation.x = Math.PI;
  47932. this._meshes.push(plane);
  47933. break;
  47934. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].ShaderBall:
  47935. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "shaderBall.glb", this._scene).then(function () {
  47936. var _a;
  47937. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  47938. _this._prepareScene();
  47939. });
  47940. return;
  47941. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Custom:
  47942. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("file:", this._globalState.previewFile, this._scene).then(function () {
  47943. var _a;
  47944. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  47945. _this._prepareScene();
  47946. });
  47947. return;
  47948. }
  47949. }
  47950. else if (this._globalState.mode === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].ProceduralTexture) {
  47951. this._layer = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Layer"]("proceduralLayer", null, this._scene);
  47952. }
  47953. else if (this._globalState.mode === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Particle) {
  47954. switch (this._globalState.previewType) {
  47955. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].DefaultParticleSystem:
  47956. this._particleSystem = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleHelper"].CreateDefault(new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](0, 0, 0), 500, this._scene);
  47957. this._particleSystem.start();
  47958. break;
  47959. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Bubbles:
  47960. this._particleSystem = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleSystem"]("particles", 4000, this._scene);
  47961. this._particleSystem.particleTexture = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Texture"]("https://assets.babylonjs.com/particles/textures/explosion/Flare.png", this._scene);
  47962. this._particleSystem.minSize = 0.1;
  47963. this._particleSystem.maxSize = 1.0;
  47964. this._particleSystem.minLifeTime = 0.5;
  47965. this._particleSystem.maxLifeTime = 5.0;
  47966. this._particleSystem.minEmitPower = 0.5;
  47967. this._particleSystem.maxEmitPower = 3.0;
  47968. this._particleSystem.createBoxEmitter(new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](-1, 1, -1), new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](1, 1, 1), new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](-0.1, -0.1, -0.1), new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](0.1, 0.1, 0.1));
  47969. this._particleSystem.emitRate = 100;
  47970. this._particleSystem.blendMode = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleSystem"].BLENDMODE_ONEONE;
  47971. this._particleSystem.color1 = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color4"](1, 1, 0, 1);
  47972. this._particleSystem.color2 = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color4"](1, 0.5, 0, 1);
  47973. this._particleSystem.gravity = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](0, -1.0, 0);
  47974. this._particleSystem.start();
  47975. break;
  47976. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Explosion:
  47977. this._loadParticleSystem(this._globalState.previewType, 1);
  47978. return;
  47979. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Fire:
  47980. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Rain:
  47981. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Smoke:
  47982. this._loadParticleSystem(this._globalState.previewType);
  47983. return;
  47984. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Custom:
  47985. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["FileTools"].ReadFile(this._globalState.previewFile, function (json) {
  47986. _this._particleSystem = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleSystem"].Parse(JSON.parse(json), _this._scene, "");
  47987. _this._particleSystem.start();
  47988. _this._prepareScene();
  47989. }, undefined, false, function (error) {
  47990. console.log(error);
  47991. });
  47992. return;
  47993. }
  47994. }
  47995. this._prepareScene();
  47996. }
  47997. };
  47998. PreviewManager.prototype._loadParticleSystem = function (particleNumber, systemIndex, prepareScene) {
  47999. var _this = this;
  48000. if (systemIndex === void 0) { systemIndex = 0; }
  48001. if (prepareScene === void 0) { prepareScene = true; }
  48002. var name = "";
  48003. switch (particleNumber) {
  48004. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Explosion:
  48005. name = "explosion";
  48006. break;
  48007. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Fire:
  48008. name = "fire";
  48009. break;
  48010. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Rain:
  48011. name = "rain";
  48012. break;
  48013. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Smoke:
  48014. name = "smoke";
  48015. break;
  48016. }
  48017. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleHelper"].CreateAsync(name, this._scene).then(function (set) {
  48018. for (var i = 0; i < set.systems.length; ++i) {
  48019. if (i == systemIndex) {
  48020. _this._particleSystem = set.systems[i];
  48021. _this._particleSystem.disposeOnStop = true;
  48022. _this._particleSystem.onDisposeObservable.add(function () {
  48023. _this._loadParticleSystem(particleNumber, systemIndex, false);
  48024. });
  48025. _this._particleSystem.start();
  48026. }
  48027. else {
  48028. set.systems[i].dispose();
  48029. }
  48030. }
  48031. if (prepareScene) {
  48032. _this._prepareScene();
  48033. }
  48034. else {
  48035. var serializationObject = _this._nodeMaterial.serialize();
  48036. _this._updatePreview(serializationObject);
  48037. }
  48038. });
  48039. };
  48040. PreviewManager.prototype._forceCompilationAsync = function (material, mesh) {
  48041. return material.forceCompilationAsync(mesh);
  48042. };
  48043. PreviewManager.prototype._updatePreview = function (serializationObject) {
  48044. var _this = this;
  48045. try {
  48046. var store = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].IgnoreTexturesAtLoadTime;
  48047. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].IgnoreTexturesAtLoadTime = false;
  48048. var tempMaterial_1 = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].Parse(serializationObject, this._scene);
  48049. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].IgnoreTexturesAtLoadTime = store;
  48050. tempMaterial_1.backFaceCulling = this._globalState.backFaceCulling;
  48051. tempMaterial_1.needDepthPrePass = this._globalState.depthPrePass;
  48052. if (this._postprocess) {
  48053. this._postprocess.dispose(this._camera);
  48054. this._postprocess = null;
  48055. }
  48056. if (this._proceduralTexture) {
  48057. this._proceduralTexture.dispose();
  48058. this._proceduralTexture = null;
  48059. }
  48060. switch (this._globalState.mode) {
  48061. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].PostProcess: {
  48062. this._globalState.onIsLoadingChanged.notifyObservers(false);
  48063. this._postprocess = tempMaterial_1.createPostProcess(this._camera, 1.0, babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Constants"].TEXTURE_NEAREST_SAMPLINGMODE, this._engine);
  48064. var currentScreen_1 = tempMaterial_1.getBlockByPredicate(function (block) { return block instanceof babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["CurrentScreenBlock"]; });
  48065. if (currentScreen_1 && this._postprocess) {
  48066. this._postprocess.onApplyObservable.add(function (effect) {
  48067. effect.setTexture("textureSampler", currentScreen_1.texture);
  48068. });
  48069. }
  48070. if (this._material) {
  48071. this._material.dispose();
  48072. }
  48073. this._material = tempMaterial_1;
  48074. break;
  48075. }
  48076. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].ProceduralTexture: {
  48077. this._globalState.onIsLoadingChanged.notifyObservers(false);
  48078. this._proceduralTexture = tempMaterial_1.createProceduralTexture(512, this._scene);
  48079. if (this._material) {
  48080. this._material.dispose();
  48081. }
  48082. if (this._layer) {
  48083. this._layer.texture = this._proceduralTexture;
  48084. }
  48085. break;
  48086. }
  48087. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Particle: {
  48088. this._globalState.onIsLoadingChanged.notifyObservers(false);
  48089. this._particleSystem.onBeforeDrawParticlesObservable.clear();
  48090. this._particleSystem.onBeforeDrawParticlesObservable.add(function (effect) {
  48091. var textureBlock = tempMaterial_1.getBlockByPredicate(function (block) { return block instanceof babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleTextureBlock"]; });
  48092. if (textureBlock && textureBlock.texture && effect) {
  48093. effect.setTexture("diffuseSampler", textureBlock.texture);
  48094. }
  48095. });
  48096. tempMaterial_1.createEffectForParticles(this._particleSystem);
  48097. if (this._material) {
  48098. this._material.dispose();
  48099. }
  48100. this._material = tempMaterial_1;
  48101. break;
  48102. }
  48103. default: {
  48104. if (this._meshes.length) {
  48105. var tasks = this._meshes.map(function (m) { return _this._forceCompilationAsync(tempMaterial_1, m); });
  48106. Promise.all(tasks)
  48107. .then(function () {
  48108. for (var _i = 0, _a = _this._meshes; _i < _a.length; _i++) {
  48109. var mesh = _a[_i];
  48110. mesh.material = tempMaterial_1;
  48111. }
  48112. if (_this._material) {
  48113. _this._material.dispose();
  48114. }
  48115. _this._material = tempMaterial_1;
  48116. _this._globalState.onIsLoadingChanged.notifyObservers(false);
  48117. })
  48118. .catch(function (reason) {
  48119. _this._globalState.onLogRequiredObservable.notifyObservers(new _log_logComponent__WEBPACK_IMPORTED_MODULE_2__["LogEntry"]("Shader compilation error:\r\n" + reason, true));
  48120. _this._globalState.onIsLoadingChanged.notifyObservers(false);
  48121. });
  48122. }
  48123. else {
  48124. this._material = tempMaterial_1;
  48125. }
  48126. break;
  48127. }
  48128. }
  48129. }
  48130. catch (err) {
  48131. // Ignore the error
  48132. this._globalState.onIsLoadingChanged.notifyObservers(false);
  48133. }
  48134. };
  48135. PreviewManager.prototype.dispose = function () {
  48136. this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver);
  48137. this._globalState.onPreviewCommandActivated.remove(this._onPreviewCommandActivatedObserver);
  48138. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  48139. this._globalState.onAnimationCommandActivated.remove(this._onAnimationCommandActivatedObserver);
  48140. this._globalState.onPreviewBackgroundChanged.remove(this._onPreviewBackgroundChangedObserver);
  48141. this._globalState.onBackFaceCullingChanged.remove(this._onBackFaceCullingChangedObserver);
  48142. this._globalState.onDepthPrePassChanged.remove(this._onDepthPrePassChangedObserver);
  48143. this._globalState.onLightUpdated.remove(this._onLightUpdatedObserver);
  48144. if (this._material) {
  48145. this._material.dispose();
  48146. }
  48147. this._camera.dispose();
  48148. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  48149. var mesh = _a[_i];
  48150. mesh.dispose();
  48151. }
  48152. this._scene.dispose();
  48153. this._engine.dispose();
  48154. };
  48155. return PreviewManager;
  48156. }());
  48157. /***/ }),
  48158. /***/ "./components/preview/previewMeshControlComponent.tsx":
  48159. /*!************************************************************!*\
  48160. !*** ./components/preview/previewMeshControlComponent.tsx ***!
  48161. \************************************************************/
  48162. /*! exports provided: PreviewMeshControlComponent */
  48163. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48164. "use strict";
  48165. __webpack_require__.r(__webpack_exports__);
  48166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshControlComponent", function() { return PreviewMeshControlComponent; });
  48167. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48168. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48169. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48170. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  48171. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  48172. /* harmony import */ var _previewType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./previewType */ "./components/preview/previewType.ts");
  48173. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  48174. var popUpIcon = __webpack_require__(/*! ./svgs/popOut.svg */ "./components/preview/svgs/popOut.svg");
  48175. var colorPicker = __webpack_require__(/*! ./svgs/colorPicker.svg */ "./components/preview/svgs/colorPicker.svg");
  48176. var pauseIcon = __webpack_require__(/*! ./svgs/pauseIcon.svg */ "./components/preview/svgs/pauseIcon.svg");
  48177. var playIcon = __webpack_require__(/*! ./svgs/playIcon.svg */ "./components/preview/svgs/playIcon.svg");
  48178. var PreviewMeshControlComponent = /** @class */ (function (_super) {
  48179. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PreviewMeshControlComponent, _super);
  48180. function PreviewMeshControlComponent(props) {
  48181. var _this = _super.call(this, props) || this;
  48182. _this.colorInputRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  48183. _this.filePickerRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  48184. _this._onResetRequiredObserver = _this.props.globalState.onResetRequiredObservable.add(function () {
  48185. _this.forceUpdate();
  48186. });
  48187. return _this;
  48188. }
  48189. PreviewMeshControlComponent.prototype.componentWillUnmount = function () {
  48190. this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver);
  48191. };
  48192. PreviewMeshControlComponent.prototype.changeMeshType = function (newOne) {
  48193. if (this.props.globalState.previewType === newOne) {
  48194. return;
  48195. }
  48196. this.props.globalState.previewType = newOne;
  48197. this.props.globalState.onPreviewCommandActivated.notifyObservers(false);
  48198. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("PreviewType", newOne);
  48199. this.forceUpdate();
  48200. };
  48201. PreviewMeshControlComponent.prototype.useCustomMesh = function (evt) {
  48202. var files = evt.target.files;
  48203. if (files && files.length) {
  48204. var file = files[0];
  48205. this.props.globalState.previewFile = file;
  48206. this.props.globalState.previewType = _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom;
  48207. this.props.globalState.onPreviewCommandActivated.notifyObservers(false);
  48208. this.props.globalState.listOfCustomPreviewFiles = [file];
  48209. this.forceUpdate();
  48210. }
  48211. if (this.filePickerRef.current) {
  48212. this.filePickerRef.current.value = "";
  48213. }
  48214. };
  48215. PreviewMeshControlComponent.prototype.onPopUp = function () {
  48216. this.props.togglePreviewAreaComponent();
  48217. };
  48218. PreviewMeshControlComponent.prototype.changeAnimation = function () {
  48219. this.props.globalState.rotatePreview = !this.props.globalState.rotatePreview;
  48220. this.props.globalState.onAnimationCommandActivated.notifyObservers();
  48221. this.forceUpdate();
  48222. };
  48223. PreviewMeshControlComponent.prototype.changeBackground = function (value) {
  48224. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(value);
  48225. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("BackgroundColorR", newColor.r);
  48226. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("BackgroundColorG", newColor.g);
  48227. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("BackgroundColorB", newColor.b);
  48228. var newBackgroundColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromColor3(newColor, 1.0);
  48229. this.props.globalState.backgroundColor = newBackgroundColor;
  48230. this.props.globalState.onPreviewBackgroundChanged.notifyObservers();
  48231. };
  48232. PreviewMeshControlComponent.prototype.changeBackgroundClick = function () {
  48233. var _a;
  48234. (_a = this.colorInputRef.current) === null || _a === void 0 ? void 0 : _a.click();
  48235. };
  48236. PreviewMeshControlComponent.prototype.render = function () {
  48237. var _this = this;
  48238. var meshTypeOptions = [
  48239. { label: "Cube", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Box },
  48240. { label: "Cylinder", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Cylinder },
  48241. { label: "Plane", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Plane },
  48242. { label: "Shader ball", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].ShaderBall },
  48243. { label: "Sphere", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Sphere },
  48244. { label: "Load...", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom + 1 }
  48245. ];
  48246. var particleTypeOptions = [
  48247. { label: "Default", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].DefaultParticleSystem },
  48248. { label: "Bubbles", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Bubbles },
  48249. { label: "Explosion", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Explosion },
  48250. { label: "Fire", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Fire },
  48251. { label: "Rain", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Rain },
  48252. { label: "Smoke", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Smoke },
  48253. { label: "Load...", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom + 1 }
  48254. ];
  48255. if (this.props.globalState.listOfCustomPreviewFiles.length > 0) {
  48256. meshTypeOptions.splice(0, 0, {
  48257. label: "Custom", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom
  48258. });
  48259. particleTypeOptions.splice(0, 0, {
  48260. label: "Custom", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom
  48261. });
  48262. }
  48263. var options = this.props.globalState.mode === babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialModes"].Particle ? particleTypeOptions : meshTypeOptions;
  48264. var accept = this.props.globalState.mode === babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialModes"].Particle ? ".json" : ".gltf, .glb, .babylon, .obj";
  48265. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-mesh-bar" },
  48266. (this.props.globalState.mode === babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialModes"].Material || this.props.globalState.mode === babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialModes"].Particle) && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  48267. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__["OptionsLineComponent"], { label: "", options: options, target: this.props.globalState, propertyName: "previewType", noDirectUpdate: true, onSelect: function (value) {
  48268. var _a;
  48269. if (value !== _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom + 1) {
  48270. _this.changeMeshType(value);
  48271. }
  48272. else {
  48273. (_a = _this.filePickerRef.current) === null || _a === void 0 ? void 0 : _a.click();
  48274. }
  48275. } }),
  48276. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { style: {
  48277. display: "none"
  48278. }, title: "Preview with a custom mesh" },
  48279. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.filePickerRef, id: "file-picker", type: "file", onChange: function (evt) { return _this.useCustomMesh(evt); }, accept: accept }))),
  48280. this.props.globalState.mode === babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialModes"].Material && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  48281. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn-table animation", onClick: function () { return _this.changeAnimation(); }, className: "button", id: "play-button" }, this.props.globalState.rotatePreview ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: pauseIcon, alt: "" }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: playIcon, alt: "" })),
  48282. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "color-picker-button", title: "Background color", className: "button align", onClick: function (_) { return _this.changeBackgroundClick(); } },
  48283. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: colorPicker, alt: "", id: "color-picker-image" }),
  48284. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.colorInputRef, id: "color-picker", type: "color", onChange: function (evt) { return _this.changeBackground(evt.target.value); } }))),
  48285. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Open preview in new window", id: "preview-new-window", onClick: function () { return _this.onPopUp(); }, className: "button" },
  48286. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: popUpIcon, alt: "" }))));
  48287. };
  48288. return PreviewMeshControlComponent;
  48289. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48290. /***/ }),
  48291. /***/ "./components/preview/previewType.ts":
  48292. /*!*******************************************!*\
  48293. !*** ./components/preview/previewType.ts ***!
  48294. \*******************************************/
  48295. /*! exports provided: PreviewType */
  48296. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48297. "use strict";
  48298. __webpack_require__.r(__webpack_exports__);
  48299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewType", function() { return PreviewType; });
  48300. var PreviewType;
  48301. (function (PreviewType) {
  48302. // Meshes
  48303. PreviewType[PreviewType["Sphere"] = 0] = "Sphere";
  48304. PreviewType[PreviewType["Box"] = 1] = "Box";
  48305. PreviewType[PreviewType["Torus"] = 2] = "Torus";
  48306. PreviewType[PreviewType["Cylinder"] = 3] = "Cylinder";
  48307. PreviewType[PreviewType["Plane"] = 4] = "Plane";
  48308. PreviewType[PreviewType["ShaderBall"] = 5] = "ShaderBall";
  48309. // Particle systems
  48310. PreviewType[PreviewType["DefaultParticleSystem"] = 6] = "DefaultParticleSystem";
  48311. PreviewType[PreviewType["Bubbles"] = 7] = "Bubbles";
  48312. PreviewType[PreviewType["Smoke"] = 8] = "Smoke";
  48313. PreviewType[PreviewType["Rain"] = 9] = "Rain";
  48314. PreviewType[PreviewType["Explosion"] = 10] = "Explosion";
  48315. PreviewType[PreviewType["Fire"] = 11] = "Fire";
  48316. PreviewType[PreviewType["Custom"] = 12] = "Custom";
  48317. })(PreviewType || (PreviewType = {}));
  48318. /***/ }),
  48319. /***/ "./components/preview/svgs/colorPicker.svg":
  48320. /*!*************************************************!*\
  48321. !*** ./components/preview/svgs/colorPicker.svg ***!
  48322. \*************************************************/
  48323. /*! no static exports found */
  48324. /***/ (function(module, exports) {
  48325. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='5' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_color_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_color_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M3.83904058,5.85749561 C6.78004581,1.94188971 12.8686707,0.802505202 17.2029394,3.497377 C21.4827525,6.15839057 23.0567972,11.2744655 21.303866,16.0747407 C19.648689,20.6073231 15.2875295,22.403209 12.1442101,20.1231428 C10.9667425,19.2690444 10.5102901,18.1984035 10.2896576,16.4593132 L10.1842745,15.4713913 L10.1388589,15.073954 C10.0162342,14.1399065 9.82780748,13.7214296 9.43453605,13.5022264 C8.89894535,13.2036966 8.54231757,13.1967226 7.83905282,13.4692784 L7.48794193,13.6148779 L7.30920754,13.6928218 C6.29543196,14.1331038 5.62104161,14.2877923 4.76804588,14.1090543 L4.56779442,14.0618665 L4.40426138,14.0152691 C1.61529547,13.1510586 1.20220653,9.36813303 3.83904058,5.85749561 Z M4.8232597,12.5739125 L4.94616428,12.610372 L5.080113,12.6412161 C5.51918878,12.7281665 5.89444039,12.6556749 6.51713486,12.3993955 L7.11930681,12.1421347 C8.32144994,11.6492191 9.1045463,11.6010233 10.1648305,12.1920088 C11.0824191,12.7034581 11.4400583,13.4895978 11.62247,14.8516511 L11.6756637,15.310802 L11.729873,15.8425189 L11.7770095,16.2649431 C11.9490842,17.6262078 12.2619162,18.3554553 13.024955,18.90894 C15.3002886,20.5593963 18.5593937,19.2173263 19.8948725,15.5602143 C21.411142,11.4080201 20.0689941,7.04567303 16.4109117,4.77122636 C12.736718,2.48676231 7.51248742,3.46438986 5.03840796,6.75833849 C2.96361994,9.52067707 3.21809532,12.0378944 4.8232597,12.5739125 Z M16.0477462,10.5795744 C15.8690689,9.91274179 16.264797,9.2273206 16.9316297,9.04864333 C17.5984623,8.86996607 18.2838835,9.26569418 18.4625608,9.93252681 C18.641238,10.5993594 18.2455099,11.2847806 17.5786773,11.4634579 C16.9118447,11.6421352 16.2264235,11.2464071 16.0477462,10.5795744 Z M16.5423361,14.0682389 C16.3636589,13.4014063 16.759387,12.7159851 17.4262196,12.5373078 C18.0930522,12.3586306 18.7784734,12.7543587 18.9571507,13.4211913 C19.135828,14.0880239 18.7400999,14.7734451 18.0732672,14.9521224 C17.4064346,15.1307997 16.7210134,14.7350716 16.5423361,14.0682389 Z M14.0692386,7.57689062 C13.8905613,6.91005799 14.2862894,6.2246368 14.9531221,6.04595953 C15.6199547,5.86728227 16.3053759,6.26301038 16.4840531,6.92984301 C16.6627304,7.59667564 16.2670023,8.28209683 15.6001697,8.4607741 C14.933337,8.63945136 14.2479158,8.24372325 14.0692386,7.57689062 Z M14.0407569,16.5752747 C13.8620796,15.9084421 14.2578077,15.2230209 14.9246403,15.0443437 C15.591473,14.8656664 16.2768942,15.2613945 16.4555714,15.9282271 C16.6342487,16.5950598 16.2385206,17.280481 15.571688,17.4591582 C14.9048553,17.6378355 14.2194341,17.2421074 14.0407569,16.5752747 Z M10.5438339,6.60529725 C10.3651566,5.93846462 10.7608847,5.25304343 11.4277174,5.07436616 C12.09455,4.8956889 12.7799712,5.29141701 12.9586484,5.95824964 C13.1373257,6.62508227 12.7415976,7.31050346 12.074765,7.48918073 C11.4079323,7.66785799 10.7225111,7.27212988 10.5438339,6.60529725 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  48326. /***/ }),
  48327. /***/ "./components/preview/svgs/depthPass.svg":
  48328. /*!***********************************************!*\
  48329. !*** ./components/preview/svgs/depthPass.svg ***!
  48330. \***********************************************/
  48331. /*! no static exports found */
  48332. /***/ (function(module, exports) {
  48333. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M21.12,18,16.28,8.35a1.34,1.34,0,0,0-1.21-.76,1.36,1.36,0,0,0-1,.42h0l-.87-1.74A1.35,1.35,0,0,0,12,5.52a1.32,1.32,0,0,0-1,.42h0l-.87-1.75a1.36,1.36,0,0,0-1.22-.75,1.34,1.34,0,0,0-1.21.75L2.88,13.86a1.36,1.36,0,0,0,1.22,2H6l0,.11a1.36,1.36,0,0,0,1.21,2H9.07L9,18a1.35,1.35,0,0,0,1.21,2H19.9a1.35,1.35,0,0,0,1.22-2ZM6.75,14.33H4.32L8.93,5.11l1.22,2.43Zm3.07,2.08H7.39L12,7.19l1.22,2.43Zm.64,2.07,4.61-9.21,4.61,9.21Z' style='fill:white'/%3E%3C/svg%3E"
  48334. /***/ }),
  48335. /***/ "./components/preview/svgs/directionalLeft.svg":
  48336. /*!*****************************************************!*\
  48337. !*** ./components/preview/svgs/directionalLeft.svg ***!
  48338. \*****************************************************/
  48339. /*! no static exports found */
  48340. /***/ (function(module, exports) {
  48341. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M15.81,13.55a3.16,3.16,0,0,0-1,1.68L14.45,17H9.55l-.38-1.77a3.18,3.18,0,0,0-1-1.69A5.7,5.7,0,0,1,6.26,9.59,5.8,5.8,0,0,1,7.84,5.31,5.67,5.67,0,0,1,12,3.51,5.35,5.35,0,0,1,15.85,5a.75.75,0,0,0,1-1.1A6.9,6.9,0,0,0,12,2,7.13,7.13,0,0,0,6.75,4.28a7.26,7.26,0,0,0-2,5.4,7.18,7.18,0,0,0,2.42,5,1.6,1.6,0,0,1,.51.88l1,4.68A2.26,2.26,0,0,0,10.92,22h2.16a2.26,2.26,0,0,0,2.19-1.76l1-4.68a1.6,1.6,0,0,1,.51-.88.76.76,0,0,0,.06-1.06A.75.75,0,0,0,15.81,13.55Zm-2.73,6.94H10.92a.76.76,0,0,1-.73-.59l-.31-1.4h4.23l-.3,1.4A.76.76,0,0,1,13.08,20.49Z' style='fill:white'/%3E%3Cpath d='M21.77,8.86,19.13,6.23a.75.75,0,0,0-1.06,0,.74.74,0,0,0,0,1.06l1.35,1.35H12.31a.75.75,0,0,0,0,1.5h7.11l-1.35,1.35a.74.74,0,0,0,0,1.06.75.75,0,0,0,.53.22.74.74,0,0,0,.53-.22l2.64-2.63a.75.75,0,0,0,0-1.06Z' style='fill:white'/%3E%3C/svg%3E"
  48342. /***/ }),
  48343. /***/ "./components/preview/svgs/directionalRight.svg":
  48344. /*!******************************************************!*\
  48345. !*** ./components/preview/svgs/directionalRight.svg ***!
  48346. \******************************************************/
  48347. /*! no static exports found */
  48348. /***/ (function(module, exports) {
  48349. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7.13,13.61a.76.76,0,0,0,.06,1.06,1.6,1.6,0,0,1,.51.88l1,4.68A2.26,2.26,0,0,0,10.92,22h2.16a2.26,2.26,0,0,0,2.19-1.76l1-4.68a1.6,1.6,0,0,1,.51-.88,7.18,7.18,0,0,0,2.42-5,7.26,7.26,0,0,0-2-5.4A7.13,7.13,0,0,0,12,2,6.9,6.9,0,0,0,7.13,3.94a.75.75,0,1,0,1,1.1A5.35,5.35,0,0,1,12,3.51a5.67,5.67,0,0,1,4.16,1.8,5.8,5.8,0,0,1,1.58,4.28,5.7,5.7,0,0,1-1.93,3.95,3.18,3.18,0,0,0-1,1.69L14.45,17H9.55l-.38-1.77a3.16,3.16,0,0,0-1-1.68A.75.75,0,0,0,7.13,13.61Zm3.06,6.29-.3-1.4h4.23l-.31,1.4a.76.76,0,0,1-.73.59H10.92A.76.76,0,0,1,10.19,19.9Z' style='fill:white'/%3E%3Cpath d='M2.23,8.86,4.87,6.23a.75.75,0,0,1,1.06,0,.74.74,0,0,1,0,1.06L4.58,8.64h7.11a.75.75,0,0,1,0,1.5H4.58l1.35,1.35a.74.74,0,0,1,0,1.06.75.75,0,0,1-.53.22.74.74,0,0,1-.53-.22L2.23,9.92a.75.75,0,0,1,0-1.06Z' style='fill:white'/%3E%3C/svg%3E"
  48350. /***/ }),
  48351. /***/ "./components/preview/svgs/doubleSided.svg":
  48352. /*!*************************************************!*\
  48353. !*** ./components/preview/svgs/doubleSided.svg ***!
  48354. \*************************************************/
  48355. /*! no static exports found */
  48356. /***/ (function(module, exports) {
  48357. module.exports = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8.62,11.2H3.92l3-3a.75.75,0,0,0,0-1.06.74.74,0,0,0-1.06,0L2.24,10.76a1.67,1.67,0,0,0,0,2.37l3.58,3.58a.75.75,0,0,0,1.06,0,.75.75,0,0,0,0-1.06l-3-3h4.7a.75.75,0,1,0,0-1.5Z' style='fill:white'/%3E%3Cpath d='M21.76,10.76,18.18,7.18a.74.74,0,0,0-1.06,0,.75.75,0,0,0,0,1.06l3,3h-4.7a.75.75,0,1,0,0,1.5h4.7l-3,3a.75.75,0,0,0,0,1.06.74.74,0,0,0,.53.22.73.73,0,0,0,.53-.22l3.58-3.58A1.67,1.67,0,0,0,21.76,10.76Z' style='fill:white'/%3E%3Cpath d='M12,3.64a.76.76,0,0,0-.75.75V19.61a.75.75,0,0,0,1.5,0V4.39A.75.75,0,0,0,12,3.64Z' style='fill:white'/%3E%3C/svg%3E"
  48358. /***/ }),
  48359. /***/ "./components/preview/svgs/omni.svg":
  48360. /*!******************************************!*\
  48361. !*** ./components/preview/svgs/omni.svg ***!
  48362. \******************************************/
  48363. /*! no static exports found */
  48364. /***/ (function(module, exports) {
  48365. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_lightbulb_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_lightbulb_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M12.000008,2.00139734 C16.0040628,2.00139734 19.249992,5.24733208 19.249992,9.25139734 C19.249992,11.3474567 18.3493333,13.2711054 16.5869535,14.9933011 C16.5100054,15.0685004 16.450441,15.1590617 16.4118457,15.2586031 L16.380373,15.3609016 L15.2492957,20.256497 C15.0265913,21.2204195 14.2034707,21.9187611 13.2302558,21.9933796 L13.0570456,22 L10.9432689,22 C9.95374997,22 9.08791486,21.3549492 8.79629808,20.4232534 L8.75088874,20.2559339 L7.62132399,15.3611533 C7.58904306,15.2212595 7.51728321,15.0935695 7.41456824,14.9932517 C5.73516207,13.3530399 4.83779011,11.5301519 4.75613429,9.54965138 L4.750008,9.25139734 L4.75388322,9.01208292 C4.88014853,5.11879041 8.07602134,2.00139734 12.000008,2.00139734 Z M14.115008,18.4993973 L9.884008,18.4993973 L10.2124755,19.9186446 C10.2831529,20.2249131 10.5356676,20.4507962 10.8400612,20.4929101 L10.9432689,20.5 L13.0570456,20.5 C13.3712985,20.5 13.6481364,20.3048226 13.757662,20.0177756 L13.7877956,19.9188323 L14.115008,18.4993973 Z M12.000008,3.50139734 C8.89821922,3.50139734 6.37007083,5.95741111 6.25416008,9.03084139 L6.250008,9.25139734 L6.25672343,9.52840679 C6.33286953,11.0917695 7.05722352,12.5475342 8.46263227,13.9201432 C8.72676013,14.1781068 8.92266257,14.4964075 9.03423135,14.8463815 L9.08291336,15.0238752 L9.538008,16.9993973 L14.461008,16.9993973 L14.9188729,15.023237 C15.0019011,14.6638694 15.1717664,14.3313677 15.4124215,14.0542893 L15.5385739,13.9205009 C16.9431998,12.547902 17.6671738,11.0920338 17.7432801,9.5284475 L17.749992,9.25139734 L17.7458399,9.03084154 C17.6299293,5.9574132 15.1017833,3.50139734 12.000008,3.50139734 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  48366. /***/ }),
  48367. /***/ "./components/preview/svgs/pauseIcon.svg":
  48368. /*!***********************************************!*\
  48369. !*** ./components/preview/svgs/pauseIcon.svg ***!
  48370. \***********************************************/
  48371. /*! no static exports found */
  48372. /***/ (function(module, exports) {
  48373. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_pause_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_pause_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M8.25,2 C9.21649831,2 10,2.78350169 10,3.75 L10,20.25 C10,21.2164983 9.21649831,22 8.25,22 L4.75,22 C3.78350169,22 3,21.2164983 3,20.25 L3,3.75 C3,2.78350169 3.78350169,2 4.75,2 L8.25,2 Z M19.25,2 C20.2164983,2 21,2.78350169 21,3.75 L21,20.25 C21,21.2164983 20.2164983,22 19.25,22 L15.75,22 C14.7835017,22 14,21.2164983 14,20.25 L14,3.75 C14,2.78350169 14.7835017,2 15.75,2 L19.25,2 Z M8.25,3.5 L4.75,3.5 C4.61192881,3.5 4.5,3.61192881 4.5,3.75 L4.5,20.25 C4.5,20.3880712 4.61192881,20.5 4.75,20.5 L8.25,20.5 C8.38807119,20.5 8.5,20.3880712 8.5,20.25 L8.5,3.75 C8.5,3.61192881 8.38807119,3.5 8.25,3.5 Z M19.25,3.5 L15.75,3.5 C15.6119288,3.5 15.5,3.61192881 15.5,3.75 L15.5,20.25 C15.5,20.3880712 15.6119288,20.5 15.75,20.5 L19.25,20.5 C19.3880712,20.5 19.5,20.3880712 19.5,20.25 L19.5,3.75 C19.5,3.61192881 19.3880712,3.5 19.25,3.5 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  48374. /***/ }),
  48375. /***/ "./components/preview/svgs/playIcon.svg":
  48376. /*!**********************************************!*\
  48377. !*** ./components/preview/svgs/playIcon.svg ***!
  48378. \**********************************************/
  48379. /*! no static exports found */
  48380. /***/ (function(module, exports) {
  48381. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_play_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_play_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M6.33994976,2.27500912 C5.25284495,1.67304649 3.88358525,2.06633193 3.28162262,3.15343674 C3.09690734,3.48702035 3,3.86207592 3,4.2433865 L3,19.7591388 C3,21.0017795 4.00735931,22.0091388 5.25,22.0091388 C5.63140051,22.0091388 6.00654154,21.9121858 6.34018202,21.7273876 L20.3484443,13.9684314 C21.4354781,13.3663405 21.8286019,11.9970344 21.226511,10.9100006 C21.0219396,10.540661 20.7175758,10.2363331 20.348212,10.0318053 L6.33994976,2.27500912 Z M19.9143452,11.6367887 C20.1150422,11.9991333 19.9840009,12.4555686 19.6216563,12.6562656 L5.61339401,20.4152217 C5.50218051,20.4768211 5.3771335,20.5091388 5.25,20.5091388 C4.83578644,20.5091388 4.5,20.1733524 4.5,19.7591388 L4.5,4.2433865 C4.5,4.11628298 4.53230245,3.99126445 4.59387421,3.88006992 C4.79452842,3.51770165 5.25094832,3.3866065 5.61331659,3.58726071 L19.6215789,11.3440569 C19.7447001,11.4122328 19.8461547,11.5136755 19.9143452,11.6367887 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  48382. /***/ }),
  48383. /***/ "./components/preview/svgs/popOut.svg":
  48384. /*!********************************************!*\
  48385. !*** ./components/preview/svgs/popOut.svg ***!
  48386. \********************************************/
  48387. /*! no static exports found */
  48388. /***/ (function(module, exports) {
  48389. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='27' height='27'%3E %3C!-- Generator: Sketch 64 (93537) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_window_new_20_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-System-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_window_new_20_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M14.5,3 C15.825472,3 16.9100378,4.03153766 16.9946823,5.33562452 L17,5.5 L17,12.5 C17,13.6248 16.2572,14.5761 15.2354,14.8901 C15.0566136,16.0311636 14.105895,16.9162833 12.934399,16.9943911 L12.7656,17 L6.5,17 C4.63143333,17 3.10487333,15.5357256 3.00517885,13.6920355 L3,13.5 L3,7.26562 C3,6.02104 3.90947,4.98887 5.10007,4.79744 C5.38765316,3.81341789 6.26401881,3.08064388 7.32204931,3.00623559 L7.5,3 L14.5,3 Z M5,5.85098 C4.46221538,6.04106 4.0651929,6.52910923 4.00729467,7.11674983 L4,7.26562 L4,13.5 C4,14.825472 5.03153766,15.9100378 6.33562452,15.9946823 L6.5,16 L12.7656,16 C13.3684615,16 13.8883314,15.6443456 14.12669,15.1313988 L14.1803,15 L7.5,15 C6.1745184,15 5.08996147,13.9684531 5.00531769,12.6643744 L5,12.5 L5,5.85098 Z M14.5,4 L7.5,4 C6.67157,4 6,4.67157 6,5.5 L6,12.5 C6,13.3284 6.67157,14 7.5,14 L14.5,14 C15.3284,14 16,13.3284 16,12.5 L16,5.5 C16,4.67157 15.3284,4 14.5,4 Z M13.4999975,6 C13.7454219,6 13.949598,6.17687704 13.9919405,6.41012499 L13.9999975,6.5 L13.9999975,10.4844 C13.9999975,10.7605 13.7761,10.9844 13.4999975,10.9844 C13.2545775,10.9844 13.050398,10.8074914 13.0080546,10.5742645 L12.9999975,10.4844 L12.9999975,7.70711 L8.85355,11.8536 C8.65829,12.0488 8.34171,12.0488 8.14645,11.8536 C7.97287667,11.68 7.95359074,11.410558 8.08859222,11.2156598 L8.14645,11.1464 L12.2929,7 L9.51562,7 C9.23948,7 9.01562,6.77614 9.01562,6.5 C9.01562,6.25454222 9.19249704,6.0503921 9.42574499,6.00805575 L9.51562,6 L13.4999975,6 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  48390. /***/ }),
  48391. /***/ "./components/propertyTab/properties/color3PropertyTabComponent.tsx":
  48392. /*!**************************************************************************!*\
  48393. !*** ./components/propertyTab/properties/color3PropertyTabComponent.tsx ***!
  48394. \**************************************************************************/
  48395. /*! exports provided: Color3PropertyTabComponent */
  48396. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48397. "use strict";
  48398. __webpack_require__.r(__webpack_exports__);
  48399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3PropertyTabComponent", function() { return Color3PropertyTabComponent; });
  48400. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48401. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48402. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48403. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  48404. var Color3PropertyTabComponent = /** @class */ (function (_super) {
  48405. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3PropertyTabComponent, _super);
  48406. function Color3PropertyTabComponent() {
  48407. return _super !== null && _super.apply(this, arguments) || this;
  48408. }
  48409. Color3PropertyTabComponent.prototype.render = function () {
  48410. var _this = this;
  48411. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Color3LineComponent"], { globalState: this.props.globalState, label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  48412. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48413. } }));
  48414. };
  48415. return Color3PropertyTabComponent;
  48416. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48417. /***/ }),
  48418. /***/ "./components/propertyTab/properties/color4PropertyTabComponent.tsx":
  48419. /*!**************************************************************************!*\
  48420. !*** ./components/propertyTab/properties/color4PropertyTabComponent.tsx ***!
  48421. \**************************************************************************/
  48422. /*! exports provided: Color4PropertyTabComponent */
  48423. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48424. "use strict";
  48425. __webpack_require__.r(__webpack_exports__);
  48426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color4PropertyTabComponent", function() { return Color4PropertyTabComponent; });
  48427. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48428. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48429. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48430. /* harmony import */ var _sharedComponents_color4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color4LineComponent */ "./sharedComponents/color4LineComponent.tsx");
  48431. var Color4PropertyTabComponent = /** @class */ (function (_super) {
  48432. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color4PropertyTabComponent, _super);
  48433. function Color4PropertyTabComponent() {
  48434. return _super !== null && _super.apply(this, arguments) || this;
  48435. }
  48436. Color4PropertyTabComponent.prototype.render = function () {
  48437. var _this = this;
  48438. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Color4LineComponent"], { globalState: this.props.globalState, label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  48439. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48440. } }));
  48441. };
  48442. return Color4PropertyTabComponent;
  48443. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48444. /***/ }),
  48445. /***/ "./components/propertyTab/properties/floatPropertyTabComponent.tsx":
  48446. /*!*************************************************************************!*\
  48447. !*** ./components/propertyTab/properties/floatPropertyTabComponent.tsx ***!
  48448. \*************************************************************************/
  48449. /*! exports provided: FloatPropertyTabComponent */
  48450. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48451. "use strict";
  48452. __webpack_require__.r(__webpack_exports__);
  48453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatPropertyTabComponent", function() { return FloatPropertyTabComponent; });
  48454. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48455. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48456. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48457. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  48458. var FloatPropertyTabComponent = /** @class */ (function (_super) {
  48459. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatPropertyTabComponent, _super);
  48460. function FloatPropertyTabComponent() {
  48461. return _super !== null && _super.apply(this, arguments) || this;
  48462. }
  48463. FloatPropertyTabComponent.prototype.render = function () {
  48464. var _this = this;
  48465. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { globalState: this.props.globalState, label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  48466. if (_this.props.inputBlock.isConstant) {
  48467. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48468. }
  48469. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48470. } }));
  48471. };
  48472. return FloatPropertyTabComponent;
  48473. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48474. /***/ }),
  48475. /***/ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx":
  48476. /*!**************************************************************************!*\
  48477. !*** ./components/propertyTab/properties/matrixPropertyTabComponent.tsx ***!
  48478. \**************************************************************************/
  48479. /*! exports provided: MatrixPropertyTabComponent */
  48480. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48481. "use strict";
  48482. __webpack_require__.r(__webpack_exports__);
  48483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixPropertyTabComponent", function() { return MatrixPropertyTabComponent; });
  48484. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48485. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48486. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48487. /* harmony import */ var _sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/matrixLineComponent */ "./sharedComponents/matrixLineComponent.tsx");
  48488. var MatrixPropertyTabComponent = /** @class */ (function (_super) {
  48489. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MatrixPropertyTabComponent, _super);
  48490. function MatrixPropertyTabComponent() {
  48491. return _super !== null && _super.apply(this, arguments) || this;
  48492. }
  48493. MatrixPropertyTabComponent.prototype.render = function () {
  48494. var _this = this;
  48495. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__["MatrixLineComponent"], { globalState: this.props.globalState, label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  48496. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48497. }, mode: this.props.inputBlock.matrixMode, onModeChange: function (mode) {
  48498. _this.props.inputBlock.matrixMode = mode;
  48499. } }));
  48500. };
  48501. return MatrixPropertyTabComponent;
  48502. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48503. /***/ }),
  48504. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  48505. /*!***************************************************************************!*\
  48506. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  48507. \***************************************************************************/
  48508. /*! exports provided: Vector2PropertyTabComponent */
  48509. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48510. "use strict";
  48511. __webpack_require__.r(__webpack_exports__);
  48512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  48513. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48514. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48515. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48516. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  48517. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  48518. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2PropertyTabComponent, _super);
  48519. function Vector2PropertyTabComponent() {
  48520. return _super !== null && _super.apply(this, arguments) || this;
  48521. }
  48522. Vector2PropertyTabComponent.prototype.render = function () {
  48523. var _this = this;
  48524. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2LineComponent"], { globalState: this.props.globalState, label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  48525. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48526. } }));
  48527. };
  48528. return Vector2PropertyTabComponent;
  48529. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48530. /***/ }),
  48531. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  48532. /*!***************************************************************************!*\
  48533. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  48534. \***************************************************************************/
  48535. /*! exports provided: Vector3PropertyTabComponent */
  48536. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48537. "use strict";
  48538. __webpack_require__.r(__webpack_exports__);
  48539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  48540. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48541. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48542. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48543. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  48544. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  48545. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3PropertyTabComponent, _super);
  48546. function Vector3PropertyTabComponent() {
  48547. return _super !== null && _super.apply(this, arguments) || this;
  48548. }
  48549. Vector3PropertyTabComponent.prototype.render = function () {
  48550. var _this = this;
  48551. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { globalState: this.props.globalState, label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  48552. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48553. } }));
  48554. };
  48555. return Vector3PropertyTabComponent;
  48556. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48557. /***/ }),
  48558. /***/ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx":
  48559. /*!***************************************************************************!*\
  48560. !*** ./components/propertyTab/properties/vector4PropertyTabComponent.tsx ***!
  48561. \***************************************************************************/
  48562. /*! exports provided: Vector4PropertyTabComponent */
  48563. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48564. "use strict";
  48565. __webpack_require__.r(__webpack_exports__);
  48566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4PropertyTabComponent", function() { return Vector4PropertyTabComponent; });
  48567. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48568. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48569. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48570. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  48571. var Vector4PropertyTabComponent = /** @class */ (function (_super) {
  48572. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4PropertyTabComponent, _super);
  48573. function Vector4PropertyTabComponent() {
  48574. return _super !== null && _super.apply(this, arguments) || this;
  48575. }
  48576. Vector4PropertyTabComponent.prototype.render = function () {
  48577. var _this = this;
  48578. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector4LineComponent"], { globalState: this.props.globalState, label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  48579. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48580. } }));
  48581. };
  48582. return Vector4PropertyTabComponent;
  48583. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48584. /***/ }),
  48585. /***/ "./components/propertyTab/propertyTab.scss":
  48586. /*!*************************************************!*\
  48587. !*** ./components/propertyTab/propertyTab.scss ***!
  48588. \*************************************************/
  48589. /*! no static exports found */
  48590. /***/ (function(module, exports, __webpack_require__) {
  48591. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  48592. var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./propertyTab.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/propertyTab/propertyTab.scss");
  48593. content = content.__esModule ? content.default : content;
  48594. if (typeof content === 'string') {
  48595. content = [[module.i, content, '']];
  48596. }
  48597. var options = {};
  48598. options.insert = "head";
  48599. options.singleton = false;
  48600. var update = api(content, options);
  48601. module.exports = content.locals || {};
  48602. /***/ }),
  48603. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  48604. /*!*********************************************************!*\
  48605. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  48606. \*********************************************************/
  48607. /*! exports provided: PropertyTabComponent */
  48608. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48609. "use strict";
  48610. __webpack_require__.r(__webpack_exports__);
  48611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  48612. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48613. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48614. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48615. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  48616. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  48617. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  48618. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  48619. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/dataStorage");
  48620. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  48621. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../serializationTools */ "./serializationTools.ts");
  48622. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  48623. /* harmony import */ var _diagram_graphNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../diagram/graphNode */ "./diagram/graphNode.ts");
  48624. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  48625. /* harmony import */ var _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../diagram/graphFrame */ "./diagram/graphFrame.ts");
  48626. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  48627. /* harmony import */ var _diagram_properties_framePropertyComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../diagram/properties/framePropertyComponent */ "./diagram/properties/framePropertyComponent.tsx");
  48628. /* harmony import */ var _diagram_properties_frameNodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../diagram/properties/frameNodePortPropertyComponent */ "./diagram/properties/frameNodePortPropertyComponent.tsx");
  48629. /* harmony import */ var _diagram_properties_nodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../diagram/properties/nodePortPropertyComponent */ "./diagram/properties/nodePortPropertyComponent.tsx");
  48630. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  48631. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  48632. /* harmony import */ var _sharedComponents_color4LineComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../sharedComponents/color4LineComponent */ "./sharedComponents/color4LineComponent.tsx");
  48633. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  48634. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  48635. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  48636. /* harmony import */ var _diagram_nodePort__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../diagram/nodePort */ "./diagram/nodePort.ts");
  48637. /* harmony import */ var _diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../diagram/graphCanvas */ "./diagram/graphCanvas.tsx");
  48638. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  48639. /* harmony import */ var _preview_previewType__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../preview/previewType */ "./components/preview/previewType.ts");
  48640. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  48641. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  48642. var PropertyTabComponent = /** @class */ (function (_super) {
  48643. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyTabComponent, _super);
  48644. function PropertyTabComponent(props) {
  48645. var _this = _super.call(this, props) || this;
  48646. _this.state = { currentNode: null, currentFrame: null, currentFrameNodePort: null, currentNodePort: null };
  48647. _this._modeSelect = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  48648. return _this;
  48649. }
  48650. PropertyTabComponent.prototype.componentDidMount = function () {
  48651. var _this = this;
  48652. this.props.globalState.onSelectionChangedObservable.add(function (selection) {
  48653. if (selection instanceof _diagram_graphNode__WEBPACK_IMPORTED_MODULE_9__["GraphNode"]) {
  48654. _this.setState({ currentNode: selection, currentFrame: null, currentFrameNodePort: null, currentNodePort: null });
  48655. }
  48656. else if (selection instanceof _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_11__["GraphFrame"]) {
  48657. _this.setState({ currentNode: null, currentFrame: selection, currentFrameNodePort: null, currentNodePort: null });
  48658. }
  48659. else if (Object(_diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_23__["isFramePortData"])(selection)) {
  48660. _this.setState({ currentNode: null, currentFrame: selection.frame, currentFrameNodePort: selection.port, currentNodePort: null });
  48661. }
  48662. else if (selection instanceof _diagram_nodePort__WEBPACK_IMPORTED_MODULE_22__["NodePort"]) {
  48663. _this.setState({ currentNode: null, currentFrame: null, currentFrameNodePort: null, currentNodePort: selection });
  48664. }
  48665. else {
  48666. _this.setState({ currentNode: null, currentFrame: null, currentFrameNodePort: null, currentNodePort: null });
  48667. }
  48668. });
  48669. this._onBuiltObserver = this.props.globalState.onBuiltObservable.add(function () {
  48670. _this.forceUpdate();
  48671. });
  48672. };
  48673. PropertyTabComponent.prototype.componentWillUnmount = function () {
  48674. this.props.globalState.onBuiltObservable.remove(this._onBuiltObserver);
  48675. };
  48676. PropertyTabComponent.prototype.processInputBlockUpdate = function (ib) {
  48677. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48678. if (ib.isConstant) {
  48679. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48680. }
  48681. };
  48682. PropertyTabComponent.prototype.renderInputBlock = function (block) {
  48683. var _this = this;
  48684. switch (block.type) {
  48685. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Float:
  48686. var cantDisplaySlider = (isNaN(block.min) || isNaN(block.max) || block.min === block.max);
  48687. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: block.uniqueId },
  48688. block.isBoolean &&
  48689. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { key: block.uniqueId, label: block.name, target: block, propertyName: "value", onValueChanged: function () {
  48690. _this.processInputBlockUpdate(block);
  48691. } }),
  48692. !block.isBoolean && cantDisplaySlider &&
  48693. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_17__["FloatLineComponent"], { globalState: this.props.globalState, key: block.uniqueId, label: block.name, target: block, propertyName: "value", onChange: function () { return _this.processInputBlockUpdate(block); } }),
  48694. !block.isBoolean && !cantDisplaySlider &&
  48695. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_10__["SliderLineComponent"], { key: block.uniqueId, label: block.name, target: block, propertyName: "value", step: (block.max - block.min) / 100.0, minimum: block.min, maximum: block.max, globalState: this.props.globalState, onChange: function () { return _this.processInputBlockUpdate(block); } })));
  48696. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Color3:
  48697. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_16__["Color3LineComponent"], { globalState: this.props.globalState, key: block.uniqueId, label: block.name, target: block, propertyName: "value", onChange: function () { return _this.processInputBlockUpdate(block); } }));
  48698. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Color4:
  48699. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color4LineComponent__WEBPACK_IMPORTED_MODULE_18__["Color4LineComponent"], { globalState: this.props.globalState, key: block.uniqueId, label: block.name, target: block, propertyName: "value", onChange: function () { return _this.processInputBlockUpdate(block); } }));
  48700. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  48701. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_19__["Vector2LineComponent"], { globalState: this.props.globalState, key: block.uniqueId, label: block.name, target: block, propertyName: "value", onChange: function () { return _this.processInputBlockUpdate(block); } }));
  48702. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  48703. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_20__["Vector3LineComponent"], { globalState: this.props.globalState, key: block.uniqueId, label: block.name, target: block, propertyName: "value", onChange: function () { return _this.processInputBlockUpdate(block); } }));
  48704. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  48705. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_21__["Vector4LineComponent"], { globalState: this.props.globalState, key: block.uniqueId, label: block.name, target: block, propertyName: "value", onChange: function () { return _this.processInputBlockUpdate(block); } }));
  48706. }
  48707. return null;
  48708. };
  48709. PropertyTabComponent.prototype.load = function (file) {
  48710. var _this = this;
  48711. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  48712. var decoder = new TextDecoder("utf-8");
  48713. _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Deserialize(JSON.parse(decoder.decode(data)), _this.props.globalState);
  48714. if (!_this.changeMode(_this.props.globalState.nodeMaterial.mode, true, false)) {
  48715. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  48716. }
  48717. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  48718. }, undefined, true);
  48719. };
  48720. PropertyTabComponent.prototype.loadFrame = function (file) {
  48721. var _this = this;
  48722. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  48723. // get Frame Data from file
  48724. var decoder = new TextDecoder("utf-8");
  48725. var frameData = JSON.parse(decoder.decode(data));
  48726. _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].AddFrameToMaterial(frameData, _this.props.globalState, _this.props.globalState.nodeMaterial);
  48727. }, undefined, true);
  48728. };
  48729. PropertyTabComponent.prototype.save = function () {
  48730. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState);
  48731. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(this.props.globalState.hostDocument, json, "nodeMaterial.json");
  48732. };
  48733. PropertyTabComponent.prototype.customSave = function () {
  48734. var _this = this;
  48735. this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Saving your material to Babylon.js snippet server...", isError: false });
  48736. this.props.globalState.customSave.action(_serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState)).then(function () {
  48737. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Material saved successfully", isError: false });
  48738. }).catch(function (err) {
  48739. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: err, isError: true });
  48740. });
  48741. };
  48742. PropertyTabComponent.prototype.saveToSnippetServer = function () {
  48743. var _this = this;
  48744. var material = this.props.globalState.nodeMaterial;
  48745. var xmlHttp = new XMLHttpRequest();
  48746. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(material, this.props.globalState);
  48747. xmlHttp.onreadystatechange = function () {
  48748. if (xmlHttp.readyState == 4) {
  48749. if (xmlHttp.status == 200) {
  48750. var snippet = JSON.parse(xmlHttp.responseText);
  48751. var oldId = material.snippetId;
  48752. material.snippetId = snippet.id;
  48753. if (snippet.version && snippet.version != "0") {
  48754. material.snippetId += "#" + snippet.version;
  48755. }
  48756. _this.forceUpdate();
  48757. if (navigator.clipboard) {
  48758. navigator.clipboard.writeText(material.snippetId);
  48759. }
  48760. var windowAsAny = window;
  48761. if (windowAsAny.Playground && oldId) {
  48762. windowAsAny.Playground.onRequestCodeChangeObservable.notifyObservers({
  48763. regex: new RegExp(oldId, "g"),
  48764. replace: material.snippetId
  48765. });
  48766. }
  48767. _this.props.globalState.hostDocument.defaultView.alert("NodeMaterial saved with ID: " + material.snippetId + " (please note that the id was also saved to your clipboard)");
  48768. }
  48769. else {
  48770. _this.props.globalState.hostDocument.defaultView.alert("Unable to save your node material. It may be too large (" + (dataToSend.payload.length / 1024).toFixed(2) + " KB) because of embedded textures. Please reduce texture sizes or point to a specific url instead of embedding them and try again.");
  48771. }
  48772. }
  48773. };
  48774. xmlHttp.open("POST", babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterial"].SnippetUrl + (material.snippetId ? "/" + material.snippetId : ""), true);
  48775. xmlHttp.setRequestHeader("Content-Type", "application/json");
  48776. var dataToSend = {
  48777. payload: JSON.stringify({
  48778. nodeMaterial: json
  48779. }),
  48780. name: "",
  48781. description: "",
  48782. tags: ""
  48783. };
  48784. xmlHttp.send(JSON.stringify(dataToSend));
  48785. };
  48786. PropertyTabComponent.prototype.loadFromSnippet = function () {
  48787. var _this = this;
  48788. var material = this.props.globalState.nodeMaterial;
  48789. var scene = material.getScene();
  48790. var snippedID = window.prompt("Please enter the snippet ID to use");
  48791. if (!snippedID) {
  48792. return;
  48793. }
  48794. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  48795. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterial"].ParseFromSnippetAsync(snippedID, scene, "", material).then(function () {
  48796. material.build();
  48797. if (!_this.changeMode(_this.props.globalState.nodeMaterial.mode, true, false)) {
  48798. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  48799. }
  48800. }).catch(function (err) {
  48801. _this.props.globalState.hostDocument.defaultView.alert("Unable to load your node material: " + err);
  48802. });
  48803. };
  48804. PropertyTabComponent.prototype.changeMode = function (value, force, loadDefault) {
  48805. var _a, _b;
  48806. if (force === void 0) { force = false; }
  48807. if (loadDefault === void 0) { loadDefault = true; }
  48808. if (this.props.globalState.mode === value) {
  48809. return false;
  48810. }
  48811. if (!force && !this.props.globalState.hostDocument.defaultView.confirm('Are your sure? You will lose your current changes (if any) if they are not saved!')) {
  48812. (_a = this._modeSelect.current) === null || _a === void 0 ? void 0 : _a.setValue(this.props.globalState.mode);
  48813. return false;
  48814. }
  48815. if (force) {
  48816. (_b = this._modeSelect.current) === null || _b === void 0 ? void 0 : _b.setValue(value);
  48817. }
  48818. if (loadDefault) {
  48819. switch (value) {
  48820. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Material:
  48821. this.props.globalState.nodeMaterial.setToDefault();
  48822. break;
  48823. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].PostProcess:
  48824. this.props.globalState.nodeMaterial.setToDefaultPostProcess();
  48825. break;
  48826. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Particle:
  48827. this.props.globalState.nodeMaterial.setToDefaultParticle();
  48828. break;
  48829. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].ProceduralTexture:
  48830. this.props.globalState.nodeMaterial.setToDefaultProceduralTexture();
  48831. break;
  48832. }
  48833. }
  48834. switch (value) {
  48835. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Material:
  48836. this.props.globalState.previewType = _preview_previewType__WEBPACK_IMPORTED_MODULE_25__["PreviewType"].Sphere;
  48837. break;
  48838. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Particle:
  48839. this.props.globalState.previewType = _preview_previewType__WEBPACK_IMPORTED_MODULE_25__["PreviewType"].Bubbles;
  48840. break;
  48841. }
  48842. this.props.globalState.listOfCustomPreviewFiles = [];
  48843. this.props.globalState.previewFile = undefined;
  48844. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("PreviewType", this.props.globalState.previewType);
  48845. this.props.globalState.mode = value;
  48846. this.props.globalState.onResetRequiredObservable.notifyObservers();
  48847. return true;
  48848. };
  48849. PropertyTabComponent.prototype.render = function () {
  48850. var _this = this;
  48851. var _a, _b;
  48852. if (this.state.currentNode) {
  48853. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  48854. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  48855. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  48856. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  48857. ((_a = this.state.currentNode) === null || _a === void 0 ? void 0 : _a.renderProperties()) || ((_b = this.state.currentNodePort) === null || _b === void 0 ? void 0 : _b.node.renderProperties())));
  48858. }
  48859. if (this.state.currentFrameNodePort && this.state.currentFrame) {
  48860. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_properties_frameNodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_14__["FrameNodePortPropertyTabComponent"], { globalState: this.props.globalState, frame: this.state.currentFrame, frameNodePort: this.state.currentFrameNodePort }));
  48861. }
  48862. if (this.state.currentNodePort) {
  48863. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_properties_nodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_15__["NodePortPropertyTabComponent"], { globalState: this.props.globalState, nodePort: this.state.currentNodePort }));
  48864. }
  48865. if (this.state.currentFrame) {
  48866. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_properties_framePropertyComponent__WEBPACK_IMPORTED_MODULE_13__["FramePropertyTabComponent"], { globalState: this.props.globalState, frame: this.state.currentFrame }));
  48867. }
  48868. var gridSize = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("GridSize", 20);
  48869. var modeList = [
  48870. { label: "Material", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Material },
  48871. { label: "Post Process", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].PostProcess },
  48872. { label: "Particle", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Particle },
  48873. { label: "Procedural", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].ProceduralTexture },
  48874. ];
  48875. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  48876. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  48877. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  48878. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  48879. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  48880. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  48881. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_24__["OptionsLineComponent"], { ref: this._modeSelect, label: "Mode", target: this, getSelection: function (target) { return _this.props.globalState.mode; }, options: modeList, onSelect: function (value) { return _this.changeMode(value); } }),
  48882. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_12__["TextLineComponent"], { label: "Version", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Engine"].Version }),
  48883. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_12__["TextLineComponent"], { label: "Help", value: "doc.babylonjs.com", underline: true, onLink: function () { return window.open('https://doc.babylonjs.com/how_to/node_material', '_blank'); } }),
  48884. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_26__["TextInputLineComponent"], { label: "Comment", multilines: true, value: this.props.globalState.nodeMaterial.comment, target: this.props.globalState.nodeMaterial, propertyName: "comment", globalState: this.props.globalState }),
  48885. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reset to default", onClick: function () {
  48886. switch (_this.props.globalState.mode) {
  48887. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Material:
  48888. _this.props.globalState.nodeMaterial.setToDefault();
  48889. break;
  48890. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].PostProcess:
  48891. _this.props.globalState.nodeMaterial.setToDefaultPostProcess();
  48892. break;
  48893. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Particle:
  48894. _this.props.globalState.nodeMaterial.setToDefaultParticle();
  48895. break;
  48896. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].ProceduralTexture:
  48897. _this.props.globalState.nodeMaterial.setToDefaultProceduralTexture();
  48898. break;
  48899. }
  48900. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  48901. } })),
  48902. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "UI" },
  48903. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Zoom to fit", onClick: function () {
  48904. _this.props.globalState.onZoomToFitRequiredObservable.notifyObservers();
  48905. } }),
  48906. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reorganize", onClick: function () {
  48907. _this.props.globalState.onReOrganizedRequiredObservable.notifyObservers();
  48908. } })),
  48909. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "OPTIONS" },
  48910. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Embed textures when saving", isSelected: function () { return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadBoolean("EmbedTextures", true); }, onSelect: function (value) {
  48911. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteBoolean("EmbedTextures", value);
  48912. } }),
  48913. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_10__["SliderLineComponent"], { label: "Grid size", minimum: 0, maximum: 100, step: 5, decimalCount: 0, globalState: this.props.globalState, directValue: gridSize, onChange: function (value) {
  48914. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("GridSize", value);
  48915. _this.props.globalState.onGridSizeChanged.notifyObservers();
  48916. _this.forceUpdate();
  48917. } }),
  48918. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Show grid", isSelected: function () { return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadBoolean("ShowGrid", true); }, onSelect: function (value) {
  48919. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteBoolean("ShowGrid", value);
  48920. _this.props.globalState.onGridSizeChanged.notifyObservers();
  48921. } })),
  48922. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "FILE" },
  48923. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.load(file); }, accept: ".json" }),
  48924. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save", onClick: function () {
  48925. _this.save();
  48926. } }),
  48927. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Generate code", onClick: function () {
  48928. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.generateCode(), "code.txt");
  48929. } }),
  48930. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Export shaders", onClick: function () {
  48931. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.compiledShaders, "shaders.txt");
  48932. } }),
  48933. this.props.globalState.customSave &&
  48934. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this.props.globalState.customSave.label, onClick: function () {
  48935. _this.customSave();
  48936. } }),
  48937. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: "Load Frame", uploadName: 'frame-upload', onClick: function (file) { return _this.loadFrame(file); }, accept: ".json" })),
  48938. !this.props.globalState.customSave &&
  48939. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "SNIPPET" },
  48940. this.props.globalState.nodeMaterial.snippetId &&
  48941. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_12__["TextLineComponent"], { label: "Snippet ID", value: this.props.globalState.nodeMaterial.snippetId }),
  48942. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Load from snippet server", onClick: function () { return _this.loadFromSnippet(); } }),
  48943. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save to snippet server", onClick: function () {
  48944. _this.saveToSnippetServer();
  48945. } })),
  48946. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "INPUTS" }, this.props.globalState.nodeMaterial.getInputBlocks().map(function (ib) {
  48947. if (!ib.isUniform || ib.isSystemValue || !ib.name) {
  48948. return null;
  48949. }
  48950. return _this.renderInputBlock(ib);
  48951. })))));
  48952. };
  48953. return PropertyTabComponent;
  48954. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48955. /***/ }),
  48956. /***/ "./diagram/display/clampDisplayManager.ts":
  48957. /*!************************************************!*\
  48958. !*** ./diagram/display/clampDisplayManager.ts ***!
  48959. \************************************************/
  48960. /*! exports provided: ClampDisplayManager */
  48961. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48962. "use strict";
  48963. __webpack_require__.r(__webpack_exports__);
  48964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampDisplayManager", function() { return ClampDisplayManager; });
  48965. var ClampDisplayManager = /** @class */ (function () {
  48966. function ClampDisplayManager() {
  48967. }
  48968. ClampDisplayManager.prototype.getHeaderClass = function (block) {
  48969. return "";
  48970. };
  48971. ClampDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  48972. return false;
  48973. };
  48974. ClampDisplayManager.prototype.getHeaderText = function (block) {
  48975. return block.name;
  48976. };
  48977. ClampDisplayManager.prototype.getBackgroundColor = function (block) {
  48978. return "#4086BB";
  48979. };
  48980. ClampDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  48981. var clampBlock = block;
  48982. contentArea.classList.add("clamp-block");
  48983. contentArea.innerHTML = "[" + clampBlock.minimum + ", " + clampBlock.maximum + "]";
  48984. };
  48985. return ClampDisplayManager;
  48986. }());
  48987. /***/ }),
  48988. /***/ "./diagram/display/discardDisplayManager.ts":
  48989. /*!**************************************************!*\
  48990. !*** ./diagram/display/discardDisplayManager.ts ***!
  48991. \**************************************************/
  48992. /*! exports provided: DiscardDisplayManager */
  48993. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48994. "use strict";
  48995. __webpack_require__.r(__webpack_exports__);
  48996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiscardDisplayManager", function() { return DiscardDisplayManager; });
  48997. var DiscardDisplayManager = /** @class */ (function () {
  48998. function DiscardDisplayManager() {
  48999. }
  49000. DiscardDisplayManager.prototype.getHeaderClass = function (block) {
  49001. return "";
  49002. };
  49003. DiscardDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  49004. return true;
  49005. };
  49006. DiscardDisplayManager.prototype.getHeaderText = function (block) {
  49007. return block.name;
  49008. };
  49009. DiscardDisplayManager.prototype.getBackgroundColor = function (block) {
  49010. return "#540b0b";
  49011. };
  49012. DiscardDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  49013. contentArea.classList.add("discard-block");
  49014. };
  49015. return DiscardDisplayManager;
  49016. }());
  49017. /***/ }),
  49018. /***/ "./diagram/display/gradientDisplayManager.ts":
  49019. /*!***************************************************!*\
  49020. !*** ./diagram/display/gradientDisplayManager.ts ***!
  49021. \***************************************************/
  49022. /*! exports provided: GradientDisplayManager */
  49023. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49024. "use strict";
  49025. __webpack_require__.r(__webpack_exports__);
  49026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientDisplayManager", function() { return GradientDisplayManager; });
  49027. var GradientDisplayManager = /** @class */ (function () {
  49028. function GradientDisplayManager() {
  49029. }
  49030. GradientDisplayManager.prototype.getHeaderClass = function (block) {
  49031. return "";
  49032. };
  49033. GradientDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  49034. return false;
  49035. };
  49036. GradientDisplayManager.prototype.getHeaderText = function (block) {
  49037. return block.name;
  49038. };
  49039. GradientDisplayManager.prototype.getBackgroundColor = function (block) {
  49040. var gradientBlock = block;
  49041. var gradients = gradientBlock.colorSteps.map(function (c) { return "rgb(" + c.color.r * 255 + ", " + c.color.g * 255 + ", " + c.color.b * 255 + ") " + c.step * 100 + "%"; });
  49042. return gradients.length ? "linear-gradient(90deg, " + gradients.join(", ") + ")" : 'black';
  49043. };
  49044. GradientDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  49045. contentArea.classList.add("gradient-block");
  49046. };
  49047. return GradientDisplayManager;
  49048. }());
  49049. /***/ }),
  49050. /***/ "./diagram/display/inputDisplayManager.ts":
  49051. /*!************************************************!*\
  49052. !*** ./diagram/display/inputDisplayManager.ts ***!
  49053. \************************************************/
  49054. /*! exports provided: InputDisplayManager */
  49055. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49056. "use strict";
  49057. __webpack_require__.r(__webpack_exports__);
  49058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputDisplayManager", function() { return InputDisplayManager; });
  49059. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialSystemValues */ "babylonjs/Misc/dataStorage");
  49060. /* 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__);
  49061. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../blockTools */ "./blockTools.ts");
  49062. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  49063. var inputNameToAttributeValue = {
  49064. "position2d": "position",
  49065. "particle_uv": "uv",
  49066. "particle_color": "color",
  49067. "particle_texturemask": "textureMask",
  49068. "particle_positionw": "positionW",
  49069. };
  49070. var inputNameToAttributeName = {
  49071. "position2d": "screen",
  49072. "particle_uv": "particle",
  49073. "particle_color": "particle",
  49074. "particle_texturemask": "particle",
  49075. "particle_positionw": "particle",
  49076. };
  49077. var InputDisplayManager = /** @class */ (function () {
  49078. function InputDisplayManager() {
  49079. }
  49080. InputDisplayManager.prototype.getHeaderClass = function (block) {
  49081. var inputBlock = block;
  49082. if (inputBlock.isConstant) {
  49083. return "constant";
  49084. }
  49085. if (inputBlock.visibleInInspector) {
  49086. return "inspector";
  49087. }
  49088. return "";
  49089. };
  49090. InputDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  49091. return false;
  49092. };
  49093. InputDisplayManager.prototype.getHeaderText = function (block) {
  49094. var inputBlock = block;
  49095. var name = inputBlock.name + " (" + _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].GetBaseType(inputBlock.output.type) + ")";
  49096. if (inputBlock.isAttribute) {
  49097. name = _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].GetBaseType(inputBlock.output.type);
  49098. }
  49099. return name;
  49100. };
  49101. InputDisplayManager.prototype.getBackgroundColor = function (block) {
  49102. var color = "";
  49103. var inputBlock = block;
  49104. switch (inputBlock.type) {
  49105. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  49106. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  49107. if (inputBlock.value) {
  49108. color = inputBlock.value.toHexString();
  49109. break;
  49110. }
  49111. }
  49112. default:
  49113. color = _blockTools__WEBPACK_IMPORTED_MODULE_1__["BlockTools"].GetColorFromConnectionNodeType(inputBlock.type);
  49114. break;
  49115. }
  49116. return color;
  49117. };
  49118. InputDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  49119. var _a, _b;
  49120. var value = "";
  49121. var inputBlock = block;
  49122. if (inputBlock.isAttribute) {
  49123. var attrVal = (_a = inputNameToAttributeValue[inputBlock.name]) !== null && _a !== void 0 ? _a : inputBlock.name;
  49124. var attrName = (_b = inputNameToAttributeName[inputBlock.name]) !== null && _b !== void 0 ? _b : 'mesh';
  49125. value = attrName + "." + attrVal;
  49126. }
  49127. else if (inputBlock.isSystemValue) {
  49128. switch (inputBlock.systemValue) {
  49129. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World:
  49130. value = "World";
  49131. break;
  49132. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView:
  49133. value = "World x View";
  49134. break;
  49135. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection:
  49136. value = "World x View x Projection";
  49137. break;
  49138. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View:
  49139. value = "View";
  49140. break;
  49141. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection:
  49142. value = "View x Projection";
  49143. break;
  49144. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection:
  49145. value = "Projection";
  49146. break;
  49147. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition:
  49148. value = "Camera position";
  49149. break;
  49150. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor:
  49151. value = "Fog color";
  49152. break;
  49153. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].DeltaTime:
  49154. value = "Delta time";
  49155. break;
  49156. }
  49157. }
  49158. else {
  49159. switch (inputBlock.type) {
  49160. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  49161. if (inputBlock.animationType !== babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].None) {
  49162. value = babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"][inputBlock.animationType];
  49163. }
  49164. else {
  49165. value = inputBlock.value.toFixed(2);
  49166. }
  49167. break;
  49168. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  49169. var vec2Value = inputBlock.value;
  49170. value = "(" + vec2Value.x.toFixed(2) + ", " + vec2Value.y.toFixed(2) + ")";
  49171. break;
  49172. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  49173. var vec3Value = inputBlock.value;
  49174. value = "(" + vec3Value.x.toFixed(2) + ", " + vec3Value.y.toFixed(2) + ", " + vec3Value.z.toFixed(2) + ")";
  49175. break;
  49176. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  49177. var vec4Value = inputBlock.value;
  49178. value = "(" + vec4Value.x.toFixed(2) + ", " + vec4Value.y.toFixed(2) + ", " + vec4Value.z.toFixed(2) + ", " + vec4Value.w.toFixed(2) + ")";
  49179. break;
  49180. }
  49181. }
  49182. contentArea.innerHTML = value;
  49183. contentArea.classList.add("input-block");
  49184. };
  49185. return InputDisplayManager;
  49186. }());
  49187. /***/ }),
  49188. /***/ "./diagram/display/outputDisplayManager.ts":
  49189. /*!*************************************************!*\
  49190. !*** ./diagram/display/outputDisplayManager.ts ***!
  49191. \*************************************************/
  49192. /*! exports provided: OutputDisplayManager */
  49193. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49194. "use strict";
  49195. __webpack_require__.r(__webpack_exports__);
  49196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutputDisplayManager", function() { return OutputDisplayManager; });
  49197. var OutputDisplayManager = /** @class */ (function () {
  49198. function OutputDisplayManager() {
  49199. }
  49200. OutputDisplayManager.prototype.getHeaderClass = function (block) {
  49201. return "";
  49202. };
  49203. OutputDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  49204. return true;
  49205. };
  49206. OutputDisplayManager.prototype.getHeaderText = function (block) {
  49207. return block.name;
  49208. };
  49209. OutputDisplayManager.prototype.getBackgroundColor = function (block) {
  49210. return "rgb(106, 44, 131)";
  49211. };
  49212. OutputDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  49213. contentArea.classList.add("output-block");
  49214. };
  49215. return OutputDisplayManager;
  49216. }());
  49217. /***/ }),
  49218. /***/ "./diagram/display/pbrDisplayManager.ts":
  49219. /*!**********************************************!*\
  49220. !*** ./diagram/display/pbrDisplayManager.ts ***!
  49221. \**********************************************/
  49222. /*! exports provided: PBRDisplayManager */
  49223. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49224. "use strict";
  49225. __webpack_require__.r(__webpack_exports__);
  49226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PBRDisplayManager", function() { return PBRDisplayManager; });
  49227. var PBRDisplayManager = /** @class */ (function () {
  49228. function PBRDisplayManager() {
  49229. }
  49230. PBRDisplayManager.prototype.getHeaderClass = function (block) {
  49231. return "";
  49232. };
  49233. PBRDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  49234. return true;
  49235. };
  49236. PBRDisplayManager.prototype.getHeaderText = function (block) {
  49237. return block.name;
  49238. };
  49239. PBRDisplayManager.prototype.getBackgroundColor = function (block) {
  49240. return "#6174FA";
  49241. };
  49242. PBRDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  49243. contentArea.classList.add("pbr-block");
  49244. };
  49245. return PBRDisplayManager;
  49246. }());
  49247. /***/ }),
  49248. /***/ "./diagram/display/remapDisplayManager.ts":
  49249. /*!************************************************!*\
  49250. !*** ./diagram/display/remapDisplayManager.ts ***!
  49251. \************************************************/
  49252. /*! exports provided: RemapDisplayManager */
  49253. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49254. "use strict";
  49255. __webpack_require__.r(__webpack_exports__);
  49256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapDisplayManager", function() { return RemapDisplayManager; });
  49257. var RemapDisplayManager = /** @class */ (function () {
  49258. function RemapDisplayManager() {
  49259. }
  49260. RemapDisplayManager.prototype.getHeaderClass = function (block) {
  49261. return "";
  49262. };
  49263. RemapDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  49264. return true;
  49265. };
  49266. RemapDisplayManager.prototype.getHeaderText = function (block) {
  49267. return block.name;
  49268. };
  49269. RemapDisplayManager.prototype.getBackgroundColor = function (block) {
  49270. return "#4086BB";
  49271. };
  49272. RemapDisplayManager.prototype._extractInputValue = function (connectionPoint) {
  49273. var connectedBlock = connectionPoint.connectedPoint.ownerBlock;
  49274. if (connectedBlock.isInput) {
  49275. var inputBlock = connectedBlock;
  49276. if (inputBlock.isUniform && !inputBlock.isSystemValue) {
  49277. return inputBlock.value;
  49278. }
  49279. }
  49280. return "?";
  49281. };
  49282. RemapDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  49283. var remapBlock = block;
  49284. var sourceRangeX = remapBlock.sourceMin.isConnected ? this._extractInputValue(remapBlock.sourceMin) : remapBlock.sourceRange.x;
  49285. var sourceRangeY = remapBlock.sourceMax.isConnected ? this._extractInputValue(remapBlock.sourceMax) : remapBlock.sourceRange.y;
  49286. var targetRangeX = remapBlock.targetMin.isConnected ? this._extractInputValue(remapBlock.targetMin) : remapBlock.targetRange.x;
  49287. var targetRangeY = remapBlock.targetMax.isConnected ? this._extractInputValue(remapBlock.targetMax) : remapBlock.targetRange.y;
  49288. contentArea.classList.add("remap-block");
  49289. contentArea.innerHTML = "[" + sourceRangeX + ", " + sourceRangeY + "] -> [" + targetRangeX + ", " + targetRangeY + "]";
  49290. };
  49291. return RemapDisplayManager;
  49292. }());
  49293. /***/ }),
  49294. /***/ "./diagram/display/textureDisplayManager.ts":
  49295. /*!**************************************************!*\
  49296. !*** ./diagram/display/textureDisplayManager.ts ***!
  49297. \**************************************************/
  49298. /*! exports provided: TextureDisplayManager */
  49299. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49300. "use strict";
  49301. __webpack_require__.r(__webpack_exports__);
  49302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureDisplayManager", function() { return TextureDisplayManager; });
  49303. /* harmony import */ var babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Dual/textureBlock */ "babylonjs/Misc/dataStorage");
  49304. /* harmony import */ var babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__);
  49305. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  49306. var TextureDisplayManager = /** @class */ (function () {
  49307. function TextureDisplayManager() {
  49308. }
  49309. TextureDisplayManager.prototype.getHeaderClass = function (block) {
  49310. return "";
  49311. };
  49312. TextureDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  49313. return true;
  49314. };
  49315. TextureDisplayManager.prototype.getHeaderText = function (block) {
  49316. return block.name;
  49317. };
  49318. TextureDisplayManager.prototype.getBackgroundColor = function (block) {
  49319. return block.getClassName() === "RefractionBlock" || block.getClassName() === "ReflectionBlock" ? "#6174FA" : "#323232";
  49320. };
  49321. TextureDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  49322. var _this = this;
  49323. var textureBlock = block;
  49324. if (!this._previewCanvas) {
  49325. contentArea.classList.add("texture-block");
  49326. if (block instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__["TextureBlock"] || block instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__["CurrentScreenBlock"] || block instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__["ParticleTextureBlock"]) {
  49327. contentArea.classList.add("regular-texture-block");
  49328. }
  49329. this._previewCanvas = contentArea.ownerDocument.createElement("canvas");
  49330. this._previewImage = contentArea.ownerDocument.createElement("img");
  49331. contentArea.appendChild(this._previewImage);
  49332. this._previewImage.classList.add("empty");
  49333. }
  49334. if (textureBlock.texture) {
  49335. _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_1__["TextureLineComponent"].UpdatePreview(this._previewCanvas, textureBlock.texture, 140, {
  49336. face: 0,
  49337. displayRed: true,
  49338. displayAlpha: true,
  49339. displayBlue: true,
  49340. displayGreen: true
  49341. }, function () {
  49342. _this._previewImage.src = _this._previewCanvas.toDataURL("image/png");
  49343. _this._previewImage.classList.remove("empty");
  49344. });
  49345. }
  49346. else {
  49347. this._previewImage.classList.add("empty");
  49348. }
  49349. };
  49350. return TextureDisplayManager;
  49351. }());
  49352. /***/ }),
  49353. /***/ "./diagram/display/trigonometryDisplayManager.ts":
  49354. /*!*******************************************************!*\
  49355. !*** ./diagram/display/trigonometryDisplayManager.ts ***!
  49356. \*******************************************************/
  49357. /*! exports provided: TrigonometryDisplayManager */
  49358. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49359. "use strict";
  49360. __webpack_require__.r(__webpack_exports__);
  49361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryDisplayManager", function() { return TrigonometryDisplayManager; });
  49362. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/dataStorage");
  49363. /* 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__);
  49364. var TrigonometryDisplayManager = /** @class */ (function () {
  49365. function TrigonometryDisplayManager() {
  49366. }
  49367. TrigonometryDisplayManager.prototype.getHeaderClass = function (block) {
  49368. return "";
  49369. };
  49370. TrigonometryDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  49371. return false;
  49372. };
  49373. TrigonometryDisplayManager.prototype.getHeaderText = function (block) {
  49374. return block.name;
  49375. };
  49376. TrigonometryDisplayManager.prototype.getBackgroundColor = function (block) {
  49377. return "#405C86";
  49378. };
  49379. TrigonometryDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  49380. var trigonometryBlock = block;
  49381. contentArea.classList.add("trigonometry-block");
  49382. contentArea.innerHTML = babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"][trigonometryBlock.operation];
  49383. };
  49384. return TrigonometryDisplayManager;
  49385. }());
  49386. /***/ }),
  49387. /***/ "./diagram/displayLedger.ts":
  49388. /*!**********************************!*\
  49389. !*** ./diagram/displayLedger.ts ***!
  49390. \**********************************/
  49391. /*! exports provided: DisplayLedger */
  49392. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49393. "use strict";
  49394. __webpack_require__.r(__webpack_exports__);
  49395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisplayLedger", function() { return DisplayLedger; });
  49396. /* harmony import */ var _display_inputDisplayManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./display/inputDisplayManager */ "./diagram/display/inputDisplayManager.ts");
  49397. /* harmony import */ var _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./display/outputDisplayManager */ "./diagram/display/outputDisplayManager.ts");
  49398. /* harmony import */ var _display_clampDisplayManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./display/clampDisplayManager */ "./diagram/display/clampDisplayManager.ts");
  49399. /* harmony import */ var _display_gradientDisplayManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./display/gradientDisplayManager */ "./diagram/display/gradientDisplayManager.ts");
  49400. /* harmony import */ var _display_remapDisplayManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./display/remapDisplayManager */ "./diagram/display/remapDisplayManager.ts");
  49401. /* harmony import */ var _display_trigonometryDisplayManager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./display/trigonometryDisplayManager */ "./diagram/display/trigonometryDisplayManager.ts");
  49402. /* harmony import */ var _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./display/textureDisplayManager */ "./diagram/display/textureDisplayManager.ts");
  49403. /* harmony import */ var _display_discardDisplayManager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./display/discardDisplayManager */ "./diagram/display/discardDisplayManager.ts");
  49404. /* harmony import */ var _display_pbrDisplayManager__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./display/pbrDisplayManager */ "./diagram/display/pbrDisplayManager.ts");
  49405. var DisplayLedger = /** @class */ (function () {
  49406. function DisplayLedger() {
  49407. }
  49408. DisplayLedger.RegisteredControls = {};
  49409. return DisplayLedger;
  49410. }());
  49411. DisplayLedger.RegisteredControls["InputBlock"] = _display_inputDisplayManager__WEBPACK_IMPORTED_MODULE_0__["InputDisplayManager"];
  49412. DisplayLedger.RegisteredControls["VertexOutputBlock"] = _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__["OutputDisplayManager"];
  49413. DisplayLedger.RegisteredControls["FragmentOutputBlock"] = _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__["OutputDisplayManager"];
  49414. DisplayLedger.RegisteredControls["ClampBlock"] = _display_clampDisplayManager__WEBPACK_IMPORTED_MODULE_2__["ClampDisplayManager"];
  49415. DisplayLedger.RegisteredControls["GradientBlock"] = _display_gradientDisplayManager__WEBPACK_IMPORTED_MODULE_3__["GradientDisplayManager"];
  49416. DisplayLedger.RegisteredControls["RemapBlock"] = _display_remapDisplayManager__WEBPACK_IMPORTED_MODULE_4__["RemapDisplayManager"];
  49417. DisplayLedger.RegisteredControls["TrigonometryBlock"] = _display_trigonometryDisplayManager__WEBPACK_IMPORTED_MODULE_5__["TrigonometryDisplayManager"];
  49418. DisplayLedger.RegisteredControls["TextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  49419. DisplayLedger.RegisteredControls["ReflectionTextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  49420. DisplayLedger.RegisteredControls["ReflectionBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  49421. DisplayLedger.RegisteredControls["RefractionBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  49422. DisplayLedger.RegisteredControls["CurrentScreenBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  49423. DisplayLedger.RegisteredControls["ParticleTextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  49424. DisplayLedger.RegisteredControls["DiscardBlock"] = _display_discardDisplayManager__WEBPACK_IMPORTED_MODULE_7__["DiscardDisplayManager"];
  49425. DisplayLedger.RegisteredControls["PBRMetallicRoughnessBlock"] = _display_pbrDisplayManager__WEBPACK_IMPORTED_MODULE_8__["PBRDisplayManager"];
  49426. DisplayLedger.RegisteredControls["AnisotropyBlock"] = _display_pbrDisplayManager__WEBPACK_IMPORTED_MODULE_8__["PBRDisplayManager"];
  49427. DisplayLedger.RegisteredControls["ClearCoatBlock"] = _display_pbrDisplayManager__WEBPACK_IMPORTED_MODULE_8__["PBRDisplayManager"];
  49428. DisplayLedger.RegisteredControls["SheenBlock"] = _display_pbrDisplayManager__WEBPACK_IMPORTED_MODULE_8__["PBRDisplayManager"];
  49429. DisplayLedger.RegisteredControls["SubSurfaceBlock"] = _display_pbrDisplayManager__WEBPACK_IMPORTED_MODULE_8__["PBRDisplayManager"];
  49430. /***/ }),
  49431. /***/ "./diagram/frameNodePort.ts":
  49432. /*!**********************************!*\
  49433. !*** ./diagram/frameNodePort.ts ***!
  49434. \**********************************/
  49435. /*! exports provided: FrameNodePort */
  49436. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49437. "use strict";
  49438. __webpack_require__.r(__webpack_exports__);
  49439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FrameNodePort", function() { return FrameNodePort; });
  49440. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49441. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  49442. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  49443. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  49444. /* harmony import */ var _graphCanvas__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphCanvas */ "./diagram/graphCanvas.tsx");
  49445. var FrameNodePort = /** @class */ (function (_super) {
  49446. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FrameNodePort, _super);
  49447. function FrameNodePort(portContainer, connectionPoint, node, globalState, isInput, framePortId, parentFrameId) {
  49448. var _this = _super.call(this, portContainer, connectionPoint, node, globalState) || this;
  49449. _this.connectionPoint = connectionPoint;
  49450. _this.node = node;
  49451. _this._onFramePortPositionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  49452. _this._parentFrameId = parentFrameId;
  49453. _this._isInput = isInput;
  49454. _this._framePortId = framePortId;
  49455. _this._onSelectionChangedObserver = _this._globalState.onSelectionChangedObservable.add(function (selection) {
  49456. if (Object(_graphCanvas__WEBPACK_IMPORTED_MODULE_3__["isFramePortData"])(selection) && selection.port === _this) {
  49457. _this._img.classList.add("selected");
  49458. }
  49459. else {
  49460. _this._img.classList.remove("selected");
  49461. }
  49462. });
  49463. _this.refresh();
  49464. return _this;
  49465. }
  49466. Object.defineProperty(FrameNodePort.prototype, "parentFrameId", {
  49467. get: function () {
  49468. return this._parentFrameId;
  49469. },
  49470. enumerable: false,
  49471. configurable: true
  49472. });
  49473. Object.defineProperty(FrameNodePort.prototype, "onFramePortPositionChangedObservable", {
  49474. get: function () {
  49475. return this._onFramePortPositionChangedObservable;
  49476. },
  49477. enumerable: false,
  49478. configurable: true
  49479. });
  49480. Object.defineProperty(FrameNodePort.prototype, "isInput", {
  49481. get: function () {
  49482. return this._isInput;
  49483. },
  49484. enumerable: false,
  49485. configurable: true
  49486. });
  49487. Object.defineProperty(FrameNodePort.prototype, "framePortId", {
  49488. get: function () {
  49489. return this._framePortId;
  49490. },
  49491. enumerable: false,
  49492. configurable: true
  49493. });
  49494. Object.defineProperty(FrameNodePort.prototype, "framePortPosition", {
  49495. get: function () {
  49496. return this._framePortPosition;
  49497. },
  49498. set: function (position) {
  49499. this._framePortPosition = position;
  49500. this.onFramePortPositionChangedObservable.notifyObservers(this);
  49501. },
  49502. enumerable: false,
  49503. configurable: true
  49504. });
  49505. FrameNodePort.CreateFrameNodePortElement = function (connectionPoint, node, root, displayManager, globalState, isInput, framePortId, parentFrameId) {
  49506. var portContainer = root.ownerDocument.createElement("div");
  49507. var block = connectionPoint.ownerBlock;
  49508. portContainer.classList.add("portLine");
  49509. if (framePortId !== null) {
  49510. portContainer.dataset.framePortId = "" + framePortId;
  49511. }
  49512. root.appendChild(portContainer);
  49513. if (!displayManager || displayManager.shouldDisplayPortLabels(block)) {
  49514. var portLabel = root.ownerDocument.createElement("div");
  49515. portLabel.classList.add("port-label");
  49516. var portName = connectionPoint.displayName || connectionPoint.name;
  49517. if (connectionPoint.ownerBlock.isInput) {
  49518. portName = node.name;
  49519. }
  49520. portLabel.innerHTML = portName;
  49521. portContainer.appendChild(portLabel);
  49522. }
  49523. return new FrameNodePort(portContainer, connectionPoint, node, globalState, isInput, framePortId, parentFrameId);
  49524. };
  49525. return FrameNodePort;
  49526. }(_nodePort__WEBPACK_IMPORTED_MODULE_1__["NodePort"]));
  49527. /***/ }),
  49528. /***/ "./diagram/graphCanvas.scss":
  49529. /*!**********************************!*\
  49530. !*** ./diagram/graphCanvas.scss ***!
  49531. \**********************************/
  49532. /*! no static exports found */
  49533. /***/ (function(module, exports, __webpack_require__) {
  49534. var api = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  49535. var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./graphCanvas.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./diagram/graphCanvas.scss");
  49536. content = content.__esModule ? content.default : content;
  49537. if (typeof content === 'string') {
  49538. content = [[module.i, content, '']];
  49539. }
  49540. var options = {};
  49541. options.insert = "head";
  49542. options.singleton = false;
  49543. var update = api(content, options);
  49544. module.exports = content.locals || {};
  49545. /***/ }),
  49546. /***/ "./diagram/graphCanvas.tsx":
  49547. /*!*********************************!*\
  49548. !*** ./diagram/graphCanvas.tsx ***!
  49549. \*********************************/
  49550. /*! exports provided: isFramePortData, GraphCanvasComponent */
  49551. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49552. "use strict";
  49553. __webpack_require__.r(__webpack_exports__);
  49554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFramePortData", function() { return isFramePortData; });
  49555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphCanvasComponent", function() { return GraphCanvasComponent; });
  49556. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49557. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49558. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49559. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  49560. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__);
  49561. /* harmony import */ var _graphNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphNode */ "./diagram/graphNode.ts");
  49562. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dagre */ "../../node_modules/dagre/index.js");
  49563. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_4__);
  49564. /* harmony import */ var _nodeLink__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nodeLink */ "./diagram/nodeLink.ts");
  49565. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  49566. /* harmony import */ var _graphFrame__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./graphFrame */ "./diagram/graphFrame.ts");
  49567. /* harmony import */ var _frameNodePort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./frameNodePort */ "./diagram/frameNodePort.ts");
  49568. __webpack_require__(/*! ./graphCanvas.scss */ "./diagram/graphCanvas.scss");
  49569. var isFramePortData = function (variableToCheck) {
  49570. if (variableToCheck) {
  49571. return variableToCheck.port !== undefined;
  49572. }
  49573. else
  49574. return false;
  49575. };
  49576. var GraphCanvasComponent = /** @class */ (function (_super) {
  49577. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphCanvasComponent, _super);
  49578. function GraphCanvasComponent(props) {
  49579. var _this = _super.call(this, props) || this;
  49580. _this.MinZoom = 0.1;
  49581. _this.MaxZoom = 4;
  49582. _this._nodes = [];
  49583. _this._links = [];
  49584. _this._mouseStartPointX = null;
  49585. _this._mouseStartPointY = null;
  49586. _this._dropPointX = 0;
  49587. _this._dropPointY = 0;
  49588. _this._selectionStartX = 0;
  49589. _this._selectionStartY = 0;
  49590. _this._candidateLinkedHasMoved = false;
  49591. _this._x = 0;
  49592. _this._y = 0;
  49593. _this._zoom = 1;
  49594. _this._selectedNodes = [];
  49595. _this._selectedLink = null;
  49596. _this._selectedPort = null;
  49597. _this._candidateLink = null;
  49598. _this._candidatePort = null;
  49599. _this._gridSize = 20;
  49600. _this._selectionBox = null;
  49601. _this._selectedFrame = null;
  49602. _this._frameCandidate = null;
  49603. _this._frames = [];
  49604. _this._altKeyIsPressed = false;
  49605. _this._ctrlKeyIsPressed = false;
  49606. _this._oldY = -1;
  49607. _this._frameIsMoving = false;
  49608. _this._isLoading = false;
  49609. props.globalState.onSelectionChangedObservable.add(function (selection) {
  49610. if (!selection) {
  49611. _this._selectedNodes = [];
  49612. _this._selectedLink = null;
  49613. _this._selectedFrame = null;
  49614. _this._selectedPort = null;
  49615. }
  49616. else {
  49617. if (selection instanceof _nodeLink__WEBPACK_IMPORTED_MODULE_5__["NodeLink"]) {
  49618. _this._selectedNodes = [];
  49619. _this._selectedFrame = null;
  49620. _this._selectedLink = selection;
  49621. _this._selectedPort = null;
  49622. }
  49623. else if (selection instanceof _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"]) {
  49624. _this._selectedNodes = [];
  49625. _this._selectedFrame = selection;
  49626. _this._selectedLink = null;
  49627. _this._selectedPort = null;
  49628. }
  49629. else if (selection instanceof _graphNode__WEBPACK_IMPORTED_MODULE_3__["GraphNode"]) {
  49630. if (_this._ctrlKeyIsPressed) {
  49631. if (_this._selectedNodes.indexOf(selection) === -1) {
  49632. _this._selectedNodes.push(selection);
  49633. }
  49634. }
  49635. else {
  49636. _this._selectedNodes = [selection];
  49637. }
  49638. }
  49639. else if (selection instanceof _nodePort__WEBPACK_IMPORTED_MODULE_6__["NodePort"]) {
  49640. _this._selectedNodes = [];
  49641. _this._selectedFrame = null;
  49642. _this._selectedLink = null;
  49643. _this._selectedPort = selection;
  49644. }
  49645. else {
  49646. _this._selectedNodes = [];
  49647. _this._selectedFrame = null;
  49648. _this._selectedLink = null;
  49649. _this._selectedPort = selection.port;
  49650. }
  49651. }
  49652. });
  49653. props.globalState.onCandidatePortSelectedObservable.add(function (port) {
  49654. _this._candidatePort = port;
  49655. });
  49656. props.globalState.onGridSizeChanged.add(function () {
  49657. _this.gridSize = babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("GridSize", 20);
  49658. });
  49659. _this.props.globalState.hostDocument.addEventListener("keyup", function () { return _this.onKeyUp(); }, false);
  49660. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  49661. _this._altKeyIsPressed = evt.altKey;
  49662. _this._ctrlKeyIsPressed = evt.ctrlKey;
  49663. }, false);
  49664. _this.props.globalState.hostDocument.defaultView.addEventListener("blur", function () {
  49665. _this._altKeyIsPressed = false;
  49666. _this._ctrlKeyIsPressed = false;
  49667. }, false);
  49668. // Store additional data to serialization object
  49669. _this.props.globalState.storeEditorData = function (editorData, graphFrame) {
  49670. editorData.frames = [];
  49671. if (graphFrame) {
  49672. editorData.frames.push(graphFrame.serialize(false));
  49673. }
  49674. else {
  49675. editorData.x = _this.x;
  49676. editorData.y = _this.y;
  49677. editorData.zoom = _this.zoom;
  49678. for (var _i = 0, _a = _this._frames; _i < _a.length; _i++) {
  49679. var frame = _a[_i];
  49680. editorData.frames.push(frame.serialize(true));
  49681. }
  49682. }
  49683. };
  49684. return _this;
  49685. }
  49686. Object.defineProperty(GraphCanvasComponent.prototype, "gridSize", {
  49687. get: function () {
  49688. return this._gridSize;
  49689. },
  49690. set: function (value) {
  49691. this._gridSize = value;
  49692. this.updateTransform();
  49693. },
  49694. enumerable: false,
  49695. configurable: true
  49696. });
  49697. Object.defineProperty(GraphCanvasComponent.prototype, "globalState", {
  49698. get: function () {
  49699. return this.props.globalState;
  49700. },
  49701. enumerable: false,
  49702. configurable: true
  49703. });
  49704. Object.defineProperty(GraphCanvasComponent.prototype, "nodes", {
  49705. get: function () {
  49706. return this._nodes;
  49707. },
  49708. enumerable: false,
  49709. configurable: true
  49710. });
  49711. Object.defineProperty(GraphCanvasComponent.prototype, "links", {
  49712. get: function () {
  49713. return this._links;
  49714. },
  49715. enumerable: false,
  49716. configurable: true
  49717. });
  49718. Object.defineProperty(GraphCanvasComponent.prototype, "frames", {
  49719. get: function () {
  49720. return this._frames;
  49721. },
  49722. enumerable: false,
  49723. configurable: true
  49724. });
  49725. Object.defineProperty(GraphCanvasComponent.prototype, "zoom", {
  49726. get: function () {
  49727. return this._zoom;
  49728. },
  49729. set: function (value) {
  49730. if (this._zoom === value) {
  49731. return;
  49732. }
  49733. this._zoom = value;
  49734. this.updateTransform();
  49735. },
  49736. enumerable: false,
  49737. configurable: true
  49738. });
  49739. Object.defineProperty(GraphCanvasComponent.prototype, "x", {
  49740. get: function () {
  49741. return this._x;
  49742. },
  49743. set: function (value) {
  49744. this._x = value;
  49745. this.updateTransform();
  49746. },
  49747. enumerable: false,
  49748. configurable: true
  49749. });
  49750. Object.defineProperty(GraphCanvasComponent.prototype, "y", {
  49751. get: function () {
  49752. return this._y;
  49753. },
  49754. set: function (value) {
  49755. this._y = value;
  49756. this.updateTransform();
  49757. },
  49758. enumerable: false,
  49759. configurable: true
  49760. });
  49761. Object.defineProperty(GraphCanvasComponent.prototype, "selectedNodes", {
  49762. get: function () {
  49763. return this._selectedNodes;
  49764. },
  49765. enumerable: false,
  49766. configurable: true
  49767. });
  49768. Object.defineProperty(GraphCanvasComponent.prototype, "selectedLink", {
  49769. get: function () {
  49770. return this._selectedLink;
  49771. },
  49772. enumerable: false,
  49773. configurable: true
  49774. });
  49775. Object.defineProperty(GraphCanvasComponent.prototype, "selectedFrame", {
  49776. get: function () {
  49777. return this._selectedFrame;
  49778. },
  49779. enumerable: false,
  49780. configurable: true
  49781. });
  49782. Object.defineProperty(GraphCanvasComponent.prototype, "selectedPort", {
  49783. get: function () {
  49784. return this._selectedPort;
  49785. },
  49786. enumerable: false,
  49787. configurable: true
  49788. });
  49789. Object.defineProperty(GraphCanvasComponent.prototype, "canvasContainer", {
  49790. get: function () {
  49791. return this._graphCanvas;
  49792. },
  49793. enumerable: false,
  49794. configurable: true
  49795. });
  49796. Object.defineProperty(GraphCanvasComponent.prototype, "hostCanvas", {
  49797. get: function () {
  49798. return this._hostCanvas;
  49799. },
  49800. enumerable: false,
  49801. configurable: true
  49802. });
  49803. Object.defineProperty(GraphCanvasComponent.prototype, "svgCanvas", {
  49804. get: function () {
  49805. return this._svgCanvas;
  49806. },
  49807. enumerable: false,
  49808. configurable: true
  49809. });
  49810. Object.defineProperty(GraphCanvasComponent.prototype, "selectionContainer", {
  49811. get: function () {
  49812. return this._selectionContainer;
  49813. },
  49814. enumerable: false,
  49815. configurable: true
  49816. });
  49817. Object.defineProperty(GraphCanvasComponent.prototype, "frameContainer", {
  49818. get: function () {
  49819. return this._frameContainer;
  49820. },
  49821. enumerable: false,
  49822. configurable: true
  49823. });
  49824. GraphCanvasComponent.prototype.getGridPosition = function (position, useCeil) {
  49825. if (useCeil === void 0) { useCeil = false; }
  49826. var gridSize = this.gridSize;
  49827. if (gridSize === 0) {
  49828. return position;
  49829. }
  49830. if (useCeil) {
  49831. return gridSize * Math.ceil(position / gridSize);
  49832. }
  49833. return gridSize * Math.floor(position / gridSize);
  49834. };
  49835. GraphCanvasComponent.prototype.getGridPositionCeil = function (position) {
  49836. var gridSize = this.gridSize;
  49837. if (gridSize === 0) {
  49838. return position;
  49839. }
  49840. return gridSize * Math.ceil(position / gridSize);
  49841. };
  49842. GraphCanvasComponent.prototype.updateTransform = function () {
  49843. this._rootContainer.style.transform = "translate(" + this._x + "px, " + this._y + "px) scale(" + this._zoom + ")";
  49844. if (babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean("ShowGrid", true)) {
  49845. this._hostCanvas.style.backgroundSize = this._gridSize * this._zoom + "px " + this._gridSize * this._zoom + "px";
  49846. this._hostCanvas.style.backgroundPosition = this._x + "px " + this._y + "px";
  49847. }
  49848. else {
  49849. this._hostCanvas.style.backgroundSize = "0";
  49850. }
  49851. };
  49852. GraphCanvasComponent.prototype.onKeyUp = function () {
  49853. this._altKeyIsPressed = false;
  49854. this._ctrlKeyIsPressed = false;
  49855. this._oldY = -1;
  49856. };
  49857. GraphCanvasComponent.prototype.findNodeFromBlock = function (block) {
  49858. return this.nodes.filter(function (n) { return n.block === block; })[0];
  49859. };
  49860. GraphCanvasComponent.prototype.reset = function () {
  49861. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  49862. var node = _a[_i];
  49863. node.dispose();
  49864. }
  49865. var frames = this._frames.splice(0);
  49866. for (var _b = 0, frames_1 = frames; _b < frames_1.length; _b++) {
  49867. var frame = frames_1[_b];
  49868. frame.dispose();
  49869. }
  49870. this._nodes = [];
  49871. this._frames = [];
  49872. this._links = [];
  49873. this._graphCanvas.innerHTML = "";
  49874. this._svgCanvas.innerHTML = "";
  49875. };
  49876. GraphCanvasComponent.prototype.connectPorts = function (pointA, pointB) {
  49877. var blockA = pointA.ownerBlock;
  49878. var blockB = pointB.ownerBlock;
  49879. var nodeA = this.findNodeFromBlock(blockA);
  49880. var nodeB = this.findNodeFromBlock(blockB);
  49881. if (!nodeA || !nodeB) {
  49882. return;
  49883. }
  49884. var portA = nodeA.getPortForConnectionPoint(pointA);
  49885. var portB = nodeB.getPortForConnectionPoint(pointB);
  49886. if (!portA || !portB) {
  49887. return;
  49888. }
  49889. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  49890. var currentLink = _a[_i];
  49891. if (currentLink.portA === portA && currentLink.portB === portB) {
  49892. return;
  49893. }
  49894. if (currentLink.portA === portB && currentLink.portB === portA) {
  49895. return;
  49896. }
  49897. }
  49898. var link = new _nodeLink__WEBPACK_IMPORTED_MODULE_5__["NodeLink"](this, portA, nodeA, portB, nodeB);
  49899. this._links.push(link);
  49900. nodeA.links.push(link);
  49901. nodeB.links.push(link);
  49902. };
  49903. GraphCanvasComponent.prototype.removeLink = function (link) {
  49904. var index = this._links.indexOf(link);
  49905. if (index > -1) {
  49906. this._links.splice(index, 1);
  49907. }
  49908. link.dispose();
  49909. };
  49910. GraphCanvasComponent.prototype.appendBlock = function (block) {
  49911. var newNode = new _graphNode__WEBPACK_IMPORTED_MODULE_3__["GraphNode"](block, this.props.globalState);
  49912. newNode.appendVisual(this._graphCanvas, this);
  49913. this._nodes.push(newNode);
  49914. return newNode;
  49915. };
  49916. GraphCanvasComponent.prototype.distributeGraph = function () {
  49917. var _this = this;
  49918. this.x = 0;
  49919. this.y = 0;
  49920. this.zoom = 1;
  49921. var graph = new dagre__WEBPACK_IMPORTED_MODULE_4__["graphlib"].Graph();
  49922. graph.setGraph({});
  49923. graph.setDefaultEdgeLabel(function () { return ({}); });
  49924. graph.graph().rankdir = "LR";
  49925. // Build dagre graph
  49926. this._nodes.forEach(function (node) {
  49927. if (_this._frames.some(function (f) { return f.nodes.indexOf(node) !== -1; })) {
  49928. return;
  49929. }
  49930. graph.setNode(node.id.toString(), {
  49931. id: node.id,
  49932. type: "node",
  49933. width: node.width,
  49934. height: node.height
  49935. });
  49936. });
  49937. this._frames.forEach(function (frame) {
  49938. graph.setNode(frame.id.toString(), {
  49939. id: frame.id,
  49940. type: "frame",
  49941. width: frame.element.clientWidth,
  49942. height: frame.element.clientHeight
  49943. });
  49944. });
  49945. this._nodes.forEach(function (node) {
  49946. node.block.outputs.forEach(function (output) {
  49947. if (!output.hasEndpoints) {
  49948. return;
  49949. }
  49950. output.endpoints.forEach(function (endpoint) {
  49951. var sourceFrames = _this._frames.filter(function (f) { return f.nodes.indexOf(node) !== -1; });
  49952. var targetFrames = _this._frames.filter(function (f) { return f.nodes.some(function (n) { return n.block === endpoint.ownerBlock; }); });
  49953. var sourceId = sourceFrames.length > 0 ? sourceFrames[0].id : node.id;
  49954. var targetId = targetFrames.length > 0 ? targetFrames[0].id : endpoint.ownerBlock.uniqueId;
  49955. graph.setEdge(sourceId.toString(), targetId.toString());
  49956. });
  49957. });
  49958. });
  49959. // Distribute
  49960. dagre__WEBPACK_IMPORTED_MODULE_4__["layout"](graph);
  49961. // Update graph
  49962. var dagreNodes = graph.nodes().map(function (node) { return graph.node(node); });
  49963. dagreNodes.forEach(function (dagreNode) {
  49964. if (!dagreNode) {
  49965. return;
  49966. }
  49967. if (dagreNode.type === "node") {
  49968. for (var _i = 0, _a = _this._nodes; _i < _a.length; _i++) {
  49969. var node = _a[_i];
  49970. if (node.id === dagreNode.id) {
  49971. node.x = dagreNode.x - dagreNode.width / 2;
  49972. node.y = dagreNode.y - dagreNode.height / 2;
  49973. node.cleanAccumulation();
  49974. return;
  49975. }
  49976. }
  49977. return;
  49978. }
  49979. for (var _b = 0, _c = _this._frames; _b < _c.length; _b++) {
  49980. var frame = _c[_b];
  49981. if (frame.id === dagreNode.id) {
  49982. _this._frameIsMoving = true;
  49983. frame.move(dagreNode.x - dagreNode.width / 2, dagreNode.y - dagreNode.height / 2, false);
  49984. frame.cleanAccumulation();
  49985. _this._frameIsMoving = false;
  49986. return;
  49987. }
  49988. }
  49989. });
  49990. };
  49991. GraphCanvasComponent.prototype.componentDidMount = function () {
  49992. this._hostCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas");
  49993. this._rootContainer = this.props.globalState.hostDocument.getElementById("graph-container");
  49994. this._graphCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas-container");
  49995. this._svgCanvas = this.props.globalState.hostDocument.getElementById("graph-svg-container");
  49996. this._selectionContainer = this.props.globalState.hostDocument.getElementById("selection-container");
  49997. this._frameContainer = this.props.globalState.hostDocument.getElementById("frame-container");
  49998. this.gridSize = babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("GridSize", 20);
  49999. this.updateTransform();
  50000. };
  50001. GraphCanvasComponent.prototype.onMove = function (evt) {
  50002. // Selection box
  50003. if (this._selectionBox) {
  50004. var rootRect = this.canvasContainer.getBoundingClientRect();
  50005. var localX = evt.pageX - rootRect.left;
  50006. var localY = evt.pageY - rootRect.top;
  50007. if (localX > this._selectionStartX) {
  50008. this._selectionBox.style.left = this._selectionStartX / this.zoom + "px";
  50009. this._selectionBox.style.width = (localX - this._selectionStartX) / this.zoom + "px";
  50010. }
  50011. else {
  50012. this._selectionBox.style.left = localX / this.zoom + "px";
  50013. this._selectionBox.style.width = (this._selectionStartX - localX) / this.zoom + "px";
  50014. }
  50015. if (localY > this._selectionStartY) {
  50016. this._selectionBox.style.top = this._selectionStartY / this.zoom + "px";
  50017. this._selectionBox.style.height = (localY - this._selectionStartY) / this.zoom + "px";
  50018. }
  50019. else {
  50020. this._selectionBox.style.top = localY / this.zoom + "px";
  50021. this._selectionBox.style.height = (this._selectionStartY - localY) / this.zoom + "px";
  50022. }
  50023. this.props.globalState.onSelectionBoxMoved.notifyObservers(this._selectionBox.getBoundingClientRect());
  50024. return;
  50025. }
  50026. // Candidate frame box
  50027. if (this._frameCandidate) {
  50028. var rootRect = this.canvasContainer.getBoundingClientRect();
  50029. var localX = evt.pageX - rootRect.left;
  50030. var localY = evt.pageY - rootRect.top;
  50031. if (localX > this._selectionStartX) {
  50032. this._frameCandidate.style.left = this._selectionStartX / this.zoom + "px";
  50033. this._frameCandidate.style.width = (localX - this._selectionStartX) / this.zoom + "px";
  50034. }
  50035. else {
  50036. this._frameCandidate.style.left = localX / this.zoom + "px";
  50037. this._frameCandidate.style.width = (this._selectionStartX - localX) / this.zoom + "px";
  50038. }
  50039. if (localY > this._selectionStartY) {
  50040. this._frameCandidate.style.top = this._selectionStartY / this.zoom + "px";
  50041. this._frameCandidate.style.height = (localY - this._selectionStartY) / this.zoom + "px";
  50042. }
  50043. else {
  50044. this._frameCandidate.style.top = localY / this.zoom + "px";
  50045. this._frameCandidate.style.height = (this._selectionStartY - localY) / this.zoom + "px";
  50046. }
  50047. return;
  50048. }
  50049. // Candidate link
  50050. if (this._candidateLink) {
  50051. var rootRect = this.canvasContainer.getBoundingClientRect();
  50052. this._candidatePort = null;
  50053. this.props.globalState.onCandidateLinkMoved.notifyObservers(new babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["Vector2"](evt.pageX, evt.pageY));
  50054. this._dropPointX = (evt.pageX - rootRect.left) / this.zoom;
  50055. this._dropPointY = (evt.pageY - rootRect.top) / this.zoom;
  50056. this._candidateLink.update(this._dropPointX, this._dropPointY, true);
  50057. this._candidateLinkedHasMoved = true;
  50058. return;
  50059. }
  50060. // Zoom with mouse + alt
  50061. if (this._altKeyIsPressed && evt.buttons === 1) {
  50062. if (this._oldY < 0) {
  50063. this._oldY = evt.pageY;
  50064. }
  50065. var zoomDelta = (evt.pageY - this._oldY) / 10;
  50066. if (Math.abs(zoomDelta) > 5) {
  50067. var oldZoom = this.zoom;
  50068. this.zoom = Math.max(Math.min(this.MaxZoom, this.zoom + zoomDelta / 100), this.MinZoom);
  50069. var boundingRect = evt.currentTarget.getBoundingClientRect();
  50070. var clientWidth = boundingRect.width;
  50071. var widthDiff = clientWidth * this.zoom - clientWidth * oldZoom;
  50072. var clientX = evt.clientX - boundingRect.left;
  50073. var xFactor = (clientX - this.x) / oldZoom / clientWidth;
  50074. this.x = this.x - widthDiff * xFactor;
  50075. this._oldY = evt.pageY;
  50076. }
  50077. return;
  50078. }
  50079. // Move canvas
  50080. this._rootContainer.style.cursor = "move";
  50081. if (this._mouseStartPointX === null || this._mouseStartPointY === null) {
  50082. return;
  50083. }
  50084. this.x += evt.clientX - this._mouseStartPointX;
  50085. this.y += evt.clientY - this._mouseStartPointY;
  50086. this._mouseStartPointX = evt.clientX;
  50087. this._mouseStartPointY = evt.clientY;
  50088. };
  50089. GraphCanvasComponent.prototype.onDown = function (evt) {
  50090. this._rootContainer.setPointerCapture(evt.pointerId);
  50091. // Selection?
  50092. if (evt.currentTarget === this._hostCanvas && evt.ctrlKey) {
  50093. this._selectionBox = this.props.globalState.hostDocument.createElement("div");
  50094. this._selectionBox.classList.add("selection-box");
  50095. this._selectionContainer.appendChild(this._selectionBox);
  50096. var rootRect = this.canvasContainer.getBoundingClientRect();
  50097. this._selectionStartX = (evt.pageX - rootRect.left);
  50098. this._selectionStartY = (evt.pageY - rootRect.top);
  50099. this._selectionBox.style.left = this._selectionStartX / this.zoom + "px";
  50100. this._selectionBox.style.top = this._selectionStartY / this.zoom + "px";
  50101. this._selectionBox.style.width = "0px";
  50102. this._selectionBox.style.height = "0px";
  50103. return;
  50104. }
  50105. // Frame?
  50106. if (evt.currentTarget === this._hostCanvas && evt.shiftKey) {
  50107. this._frameCandidate = this.props.globalState.hostDocument.createElement("div");
  50108. this._frameCandidate.classList.add("frame-box");
  50109. this._frameContainer.appendChild(this._frameCandidate);
  50110. var rootRect = this.canvasContainer.getBoundingClientRect();
  50111. this._selectionStartX = (evt.pageX - rootRect.left);
  50112. this._selectionStartY = (evt.pageY - rootRect.top);
  50113. this._frameCandidate.style.left = this._selectionStartX / this.zoom + "px";
  50114. this._frameCandidate.style.top = this._selectionStartY / this.zoom + "px";
  50115. this._frameCandidate.style.width = "0px";
  50116. this._frameCandidate.style.height = "0px";
  50117. return;
  50118. }
  50119. // Port dragging
  50120. if (evt.nativeEvent.srcElement && evt.nativeEvent.srcElement.nodeName === "IMG") {
  50121. if (!this._candidateLink) {
  50122. var portElement = evt.nativeEvent.srcElement.parentElement.port;
  50123. this._candidateLink = new _nodeLink__WEBPACK_IMPORTED_MODULE_5__["NodeLink"](this, portElement, portElement.node);
  50124. this._candidateLinkedHasMoved = false;
  50125. }
  50126. return;
  50127. }
  50128. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  50129. this._mouseStartPointX = evt.clientX;
  50130. this._mouseStartPointY = evt.clientY;
  50131. };
  50132. GraphCanvasComponent.prototype.onUp = function (evt) {
  50133. this._mouseStartPointX = null;
  50134. this._mouseStartPointY = null;
  50135. this._rootContainer.releasePointerCapture(evt.pointerId);
  50136. this._oldY = -1;
  50137. if (this._candidateLink) {
  50138. if (this._candidateLinkedHasMoved) {
  50139. this.processCandidatePort();
  50140. this.props.globalState.onCandidateLinkMoved.notifyObservers(null);
  50141. }
  50142. else { // is a click event on NodePort
  50143. if (this._candidateLink.portA instanceof _frameNodePort__WEBPACK_IMPORTED_MODULE_8__["FrameNodePort"]) { //only on Frame Node Ports
  50144. var port_1 = this._candidateLink.portA;
  50145. var frame = this.frames.find(function (frame) { return frame.id === port_1.parentFrameId; });
  50146. if (frame) {
  50147. var data = {
  50148. frame: frame,
  50149. port: port_1
  50150. };
  50151. this.props.globalState.onSelectionChangedObservable.notifyObservers(data);
  50152. }
  50153. }
  50154. else if (this._candidateLink.portA instanceof _nodePort__WEBPACK_IMPORTED_MODULE_6__["NodePort"]) {
  50155. this.props.globalState.onSelectionChangedObservable.notifyObservers(this._candidateLink.portA);
  50156. }
  50157. }
  50158. this._candidateLink.dispose();
  50159. this._candidateLink = null;
  50160. this._candidatePort = null;
  50161. }
  50162. if (this._selectionBox) {
  50163. this._selectionBox.parentElement.removeChild(this._selectionBox);
  50164. this._selectionBox = null;
  50165. }
  50166. if (this._frameCandidate) {
  50167. var newFrame = new _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"](this._frameCandidate, this);
  50168. this._frames.push(newFrame);
  50169. this._frameCandidate.parentElement.removeChild(this._frameCandidate);
  50170. this._frameCandidate = null;
  50171. this.props.globalState.onSelectionChangedObservable.notifyObservers(newFrame);
  50172. }
  50173. };
  50174. GraphCanvasComponent.prototype.onWheel = function (evt) {
  50175. var delta = evt.deltaY < 0 ? 0.1 : -0.1;
  50176. var oldZoom = this.zoom;
  50177. this.zoom = Math.min(Math.max(this.MinZoom, this.zoom + delta * this.zoom), this.MaxZoom);
  50178. var boundingRect = evt.currentTarget.getBoundingClientRect();
  50179. var clientWidth = boundingRect.width;
  50180. var clientHeight = boundingRect.height;
  50181. var widthDiff = clientWidth * this.zoom - clientWidth * oldZoom;
  50182. var heightDiff = clientHeight * this.zoom - clientHeight * oldZoom;
  50183. var clientX = evt.clientX - boundingRect.left;
  50184. var clientY = evt.clientY - boundingRect.top;
  50185. var xFactor = (clientX - this.x) / oldZoom / clientWidth;
  50186. var yFactor = (clientY - this.y) / oldZoom / clientHeight;
  50187. this.x = this.x - widthDiff * xFactor;
  50188. this.y = this.y - heightDiff * yFactor;
  50189. evt.stopPropagation();
  50190. };
  50191. GraphCanvasComponent.prototype.zoomToFit = function () {
  50192. var _this = this;
  50193. // Get negative offset
  50194. var minX = 0;
  50195. var minY = 0;
  50196. this._nodes.forEach(function (node) {
  50197. if (_this._frames.some(function (f) { return f.nodes.indexOf(node) !== -1; })) {
  50198. return;
  50199. }
  50200. if (node.x < minX) {
  50201. minX = node.x;
  50202. }
  50203. if (node.y < minY) {
  50204. minY = node.y;
  50205. }
  50206. });
  50207. this._frames.forEach(function (frame) {
  50208. if (frame.x < minX) {
  50209. minX = frame.x;
  50210. }
  50211. if (frame.y < minY) {
  50212. minY = frame.y;
  50213. }
  50214. });
  50215. // Restore to 0
  50216. this._frames.forEach(function (frame) {
  50217. frame.x += -minX;
  50218. frame.y += -minY;
  50219. frame.cleanAccumulation();
  50220. });
  50221. this._nodes.forEach(function (node) {
  50222. node.x += -minX;
  50223. node.y += -minY;
  50224. node.cleanAccumulation();
  50225. });
  50226. // Get correct zoom
  50227. var xFactor = this._rootContainer.clientWidth / this._rootContainer.scrollWidth;
  50228. var yFactor = this._rootContainer.clientHeight / this._rootContainer.scrollHeight;
  50229. var zoomFactor = xFactor < yFactor ? xFactor : yFactor;
  50230. this.zoom = zoomFactor;
  50231. this.x = 0;
  50232. this.y = 0;
  50233. };
  50234. GraphCanvasComponent.prototype.processCandidatePort = function () {
  50235. var _this = this;
  50236. var pointB = this._candidateLink.portA.connectionPoint;
  50237. var nodeB = this._candidateLink.portA.node;
  50238. var pointA;
  50239. var nodeA;
  50240. if (this._candidatePort) {
  50241. pointA = this._candidatePort.connectionPoint;
  50242. nodeA = this._candidatePort.node;
  50243. }
  50244. else {
  50245. if (pointB.direction === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointDirection"].Output) {
  50246. return;
  50247. }
  50248. // No destination so let's spin a new input block
  50249. var pointName = "output", emittedBlock = void 0;
  50250. var customInputBlock = this._candidateLink.portA.connectionPoint.createCustomInputBlock();
  50251. if (!customInputBlock) {
  50252. emittedBlock = new babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["InputBlock"](babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"][this._candidateLink.portA.connectionPoint.type], undefined, this._candidateLink.portA.connectionPoint.type);
  50253. }
  50254. else {
  50255. emittedBlock = customInputBlock[0], pointName = customInputBlock[1];
  50256. }
  50257. this.props.globalState.nodeMaterial.attachedBlocks.push(emittedBlock);
  50258. pointA = emittedBlock[pointName];
  50259. if (!emittedBlock.isInput) {
  50260. emittedBlock.autoConfigure(this.props.globalState.nodeMaterial);
  50261. nodeA = this.props.onEmitNewBlock(emittedBlock);
  50262. }
  50263. else {
  50264. nodeA = this.appendBlock(emittedBlock);
  50265. }
  50266. nodeA.x = this._dropPointX - 200;
  50267. nodeA.y = this._dropPointY - 50;
  50268. var x_1 = nodeA.x - 250;
  50269. var y_1 = nodeA.y;
  50270. emittedBlock.inputs.forEach(function (connection) {
  50271. if (connection.connectedPoint) {
  50272. var existingNodes = _this.nodes.filter(function (n) { return n.block === connection.connectedPoint.ownerBlock; });
  50273. var connectedNode = existingNodes[0];
  50274. if (connectedNode.x === 0 && connectedNode.y === 0) {
  50275. connectedNode.x = x_1;
  50276. connectedNode.y = y_1;
  50277. connectedNode.cleanAccumulation();
  50278. y_1 += 80;
  50279. }
  50280. }
  50281. });
  50282. }
  50283. if (pointA.direction === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointDirection"].Input) {
  50284. var temp = pointB;
  50285. pointB = pointA;
  50286. pointA = temp;
  50287. var tempNode = nodeA;
  50288. nodeA = nodeB;
  50289. nodeB = tempNode;
  50290. }
  50291. if (pointB.connectedPoint === pointA) {
  50292. return;
  50293. }
  50294. if (pointB === pointA) {
  50295. return;
  50296. }
  50297. if (pointB.direction === pointA.direction) {
  50298. return;
  50299. }
  50300. if (pointB.ownerBlock === pointA.ownerBlock) {
  50301. return;
  50302. }
  50303. // Check compatibility
  50304. var isFragmentOutput = pointB.ownerBlock.getClassName() === "FragmentOutputBlock";
  50305. var compatibilityState = pointA.checkCompatibilityState(pointB);
  50306. if ((pointA.needDualDirectionValidation || pointB.needDualDirectionValidation) && compatibilityState === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].Compatible && !(pointA instanceof babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["InputBlock"])) {
  50307. compatibilityState = pointB.checkCompatibilityState(pointA);
  50308. }
  50309. if (compatibilityState === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].Compatible) {
  50310. if (isFragmentOutput) {
  50311. var fragmentBlock = pointB.ownerBlock;
  50312. if (pointB.name === "rgb" && fragmentBlock.rgba.isConnected) {
  50313. nodeB.getLinksForConnectionPoint(fragmentBlock.rgba)[0].dispose();
  50314. }
  50315. else if (pointB.name === "rgba" && fragmentBlock.rgb.isConnected) {
  50316. nodeB.getLinksForConnectionPoint(fragmentBlock.rgb)[0].dispose();
  50317. }
  50318. }
  50319. }
  50320. else {
  50321. var message = "";
  50322. switch (compatibilityState) {
  50323. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].TypeIncompatible:
  50324. message = "Cannot connect two different connection types";
  50325. break;
  50326. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].TargetIncompatible:
  50327. message = "Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader";
  50328. break;
  50329. }
  50330. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(message);
  50331. return;
  50332. }
  50333. var linksToNotifyForDispose = null;
  50334. if (pointB.isConnected) {
  50335. var links = nodeB.getLinksForConnectionPoint(pointB);
  50336. linksToNotifyForDispose = links.slice();
  50337. links.forEach(function (link) {
  50338. link.dispose(false);
  50339. });
  50340. }
  50341. if (pointB.ownerBlock.inputsAreExclusive) { // Disconnect all inputs if block has exclusive inputs
  50342. pointB.ownerBlock.inputs.forEach(function (i) {
  50343. var links = nodeB.getLinksForConnectionPoint(i);
  50344. if (!linksToNotifyForDispose) {
  50345. linksToNotifyForDispose = links.slice();
  50346. }
  50347. else {
  50348. linksToNotifyForDispose.push.apply(linksToNotifyForDispose, links.slice());
  50349. }
  50350. links.forEach(function (link) {
  50351. link.dispose(false);
  50352. });
  50353. });
  50354. }
  50355. pointA.connectTo(pointB);
  50356. this.connectPorts(pointA, pointB);
  50357. if (pointB.innerType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].AutoDetect) {
  50358. // need to potentially propagate the type of pointA to other ports of blocks connected to owner of pointB
  50359. var refreshNode_1 = function (node) {
  50360. node.refresh();
  50361. var links = node.links;
  50362. // refresh first the nodes so that the right types are assigned to the auto-detect ports
  50363. links.forEach(function (link) {
  50364. var nodeA = link.nodeA, nodeB = link.nodeB;
  50365. if (!visitedNodes_1.has(nodeA)) {
  50366. visitedNodes_1.add(nodeA);
  50367. refreshNode_1(nodeA);
  50368. }
  50369. if (nodeB && !visitedNodes_1.has(nodeB)) {
  50370. visitedNodes_1.add(nodeB);
  50371. refreshNode_1(nodeB);
  50372. }
  50373. });
  50374. // then refresh the links to display the right color between ports
  50375. links.forEach(function (link) {
  50376. if (!visitedLinks_1.has(link)) {
  50377. visitedLinks_1.add(link);
  50378. link.update();
  50379. }
  50380. });
  50381. };
  50382. var visitedNodes_1 = new Set([nodeA]);
  50383. var visitedLinks_1 = new Set([nodeB.links[nodeB.links.length - 1]]);
  50384. refreshNode_1(nodeB);
  50385. }
  50386. else {
  50387. nodeB.refresh();
  50388. }
  50389. linksToNotifyForDispose === null || linksToNotifyForDispose === void 0 ? void 0 : linksToNotifyForDispose.forEach(function (link) {
  50390. link.onDisposedObservable.notifyObservers(link);
  50391. link.onDisposedObservable.clear();
  50392. });
  50393. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  50394. };
  50395. GraphCanvasComponent.prototype.processEditorData = function (editorData) {
  50396. var frames = this._frames.splice(0);
  50397. for (var _i = 0, frames_2 = frames; _i < frames_2.length; _i++) {
  50398. var frame = frames_2[_i];
  50399. frame.dispose();
  50400. }
  50401. this._frames = [];
  50402. this.x = editorData.x || 0;
  50403. this.y = editorData.y || 0;
  50404. this.zoom = editorData.zoom || 1;
  50405. // Frames
  50406. if (editorData.frames) {
  50407. for (var _a = 0, _b = editorData.frames; _a < _b.length; _a++) {
  50408. var frameData = _b[_a];
  50409. var frame = _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"].Parse(frameData, this, editorData.map);
  50410. this._frames.push(frame);
  50411. }
  50412. }
  50413. };
  50414. GraphCanvasComponent.prototype.addFrame = function (frameData) {
  50415. var frame = _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"].Parse(frameData, this, this.props.globalState.nodeMaterial.editorData.map);
  50416. this._frames.push(frame);
  50417. this.globalState.onSelectionChangedObservable.notifyObservers(frame);
  50418. };
  50419. GraphCanvasComponent.prototype.render = function () {
  50420. var _this = this;
  50421. 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); } },
  50422. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "graph-container" },
  50423. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "graph-canvas-container" }),
  50424. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "frame-container" }),
  50425. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { id: "graph-svg-container" }),
  50426. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "selection-container" }))));
  50427. };
  50428. return GraphCanvasComponent;
  50429. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  50430. /***/ }),
  50431. /***/ "./diagram/graphFrame.ts":
  50432. /*!*******************************!*\
  50433. !*** ./diagram/graphFrame.ts ***!
  50434. \*******************************/
  50435. /*! exports provided: FramePortPosition, GraphFrame */
  50436. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50437. "use strict";
  50438. __webpack_require__.r(__webpack_exports__);
  50439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FramePortPosition", function() { return FramePortPosition; });
  50440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphFrame", function() { return GraphFrame; });
  50441. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  50442. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  50443. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../serializationTools */ "./serializationTools.ts");
  50444. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../stringTools */ "./stringTools.ts");
  50445. /* harmony import */ var _frameNodePort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./frameNodePort */ "./diagram/frameNodePort.ts");
  50446. var ResizingDirection;
  50447. (function (ResizingDirection) {
  50448. ResizingDirection[ResizingDirection["Right"] = 0] = "Right";
  50449. ResizingDirection[ResizingDirection["Left"] = 1] = "Left";
  50450. ResizingDirection[ResizingDirection["Top"] = 2] = "Top";
  50451. ResizingDirection[ResizingDirection["Bottom"] = 3] = "Bottom";
  50452. ResizingDirection[ResizingDirection["TopRight"] = 4] = "TopRight";
  50453. ResizingDirection[ResizingDirection["TopLeft"] = 5] = "TopLeft";
  50454. ResizingDirection[ResizingDirection["BottomRight"] = 6] = "BottomRight";
  50455. ResizingDirection[ResizingDirection["BottomLeft"] = 7] = "BottomLeft";
  50456. })(ResizingDirection || (ResizingDirection = {}));
  50457. var FramePortPosition;
  50458. (function (FramePortPosition) {
  50459. FramePortPosition[FramePortPosition["Top"] = 0] = "Top";
  50460. FramePortPosition[FramePortPosition["Middle"] = 1] = "Middle";
  50461. FramePortPosition[FramePortPosition["Bottom"] = 2] = "Bottom";
  50462. })(FramePortPosition || (FramePortPosition = {}));
  50463. ;
  50464. var GraphFrame = /** @class */ (function () {
  50465. function GraphFrame(candidate, canvas, doNotCaptureNodes) {
  50466. var _this_1 = this;
  50467. if (doNotCaptureNodes === void 0) { doNotCaptureNodes = false; }
  50468. this.CollapsedWidth = 200;
  50469. this._x = 0;
  50470. this._y = 0;
  50471. this._gridAlignedX = 0;
  50472. this._gridAlignedY = 0;
  50473. this._nodes = [];
  50474. this._mouseStartPointX = null;
  50475. this._mouseStartPointY = null;
  50476. this._onNodeLinkDisposedObservers = [];
  50477. this._isCollapsed = false;
  50478. this._frameInPorts = [];
  50479. this._frameOutPorts = [];
  50480. this._controlledPorts = []; // Ports on Nodes that are shown on outside of frame
  50481. this._exposedInPorts = [];
  50482. this._exposedOutPorts = [];
  50483. this._minFrameHeight = 40;
  50484. this._minFrameWidth = 220;
  50485. this.onExpandStateChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  50486. 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>";
  50487. 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>";
  50488. 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>";
  50489. this.initResizing = function (evt) {
  50490. evt.stopPropagation();
  50491. _this_1._mouseStartPointX = evt.clientX;
  50492. _this_1._mouseStartPointY = evt.clientY;
  50493. _this_1._frameIsResizing = true;
  50494. };
  50495. this.cleanUpResizing = function (evt) {
  50496. evt.stopPropagation();
  50497. _this_1._frameIsResizing = false;
  50498. _this_1._resizingDirection = null;
  50499. _this_1._mouseStartPointX = null;
  50500. _this_1._mouseStartPointY = null;
  50501. _this_1.mouseXLimit = null;
  50502. _this_1.refresh();
  50503. };
  50504. this.updateMinHeightWithComments = function () {
  50505. if (_this_1.comments && _this_1.comments.length > 0) {
  50506. var minFrameHeightWithComments = _this_1._commentsElement.offsetHeight + 40;
  50507. _this_1._minFrameHeight = minFrameHeightWithComments;
  50508. }
  50509. };
  50510. this._onRightHandlePointerDown = function (evt) {
  50511. // tslint:disable-next-line: no-this-assignment
  50512. var _this = _this_1;
  50513. if (_this.isCollapsed) {
  50514. return;
  50515. }
  50516. _this_1.initResizing(evt);
  50517. _this._resizingDirection = ResizingDirection.Right;
  50518. _this.mouseXLimit = evt.clientX - (_this.width - _this._minFrameWidth);
  50519. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onRightHandlePointerUp);
  50520. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onRightHandlePointerMove);
  50521. };
  50522. this._onRightHandlePointerMove = function (evt) {
  50523. var slack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  50524. var xLimit = _this_1._mouseStartPointX - slack;
  50525. _this_1._moveRightHandle(evt, xLimit);
  50526. };
  50527. this._moveRightHandle = function (evt, xLimit) {
  50528. // tslint:disable-next-line: no-this-assignment
  50529. var _this = _this_1;
  50530. if (_this.mouseXLimit) {
  50531. if (!_this._isResizingRight() || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientX < xLimit) {
  50532. return;
  50533. }
  50534. if (_this._isResizingRight()) {
  50535. evt.stopPropagation();
  50536. var distanceMouseMoved = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50537. _this._expandRight(distanceMouseMoved, evt.clientX);
  50538. _this._mouseStartPointX = evt.clientX;
  50539. }
  50540. }
  50541. };
  50542. this._onRightHandlePointerUp = function (evt) {
  50543. // tslint:disable-next-line: no-this-assignment
  50544. var _this = _this_1;
  50545. if (_this._isResizingRight()) {
  50546. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  50547. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onRightHandlePointerUp);
  50548. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onRightHandlePointerMove);
  50549. _this.cleanUpResizing(evt);
  50550. }
  50551. };
  50552. this._onBottomHandlePointerDown = function (evt) {
  50553. // tslint:disable-next-line: no-this-assignment
  50554. var _this = _this_1;
  50555. if (_this.isCollapsed) {
  50556. return;
  50557. }
  50558. _this.initResizing(evt);
  50559. _this._resizingDirection = ResizingDirection.Bottom;
  50560. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onBottomHandlePointerMove);
  50561. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onBottomHandlePointerUp);
  50562. };
  50563. this._onBottomHandlePointerMove = function (evt) {
  50564. var slack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  50565. var yLimit = _this_1._mouseStartPointY - slack;
  50566. _this_1._moveBottomHandle(evt, yLimit);
  50567. };
  50568. this._moveBottomHandle = function (evt, yLimit) {
  50569. // tslint:disable-next-line: no-this-assignment
  50570. var _this = _this_1;
  50571. if (_this._resizingDirection !== ResizingDirection.Bottom || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientY < yLimit) {
  50572. return;
  50573. }
  50574. if (_this._resizingDirection === ResizingDirection.Bottom) {
  50575. evt.stopPropagation();
  50576. var distanceMouseMoved = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50577. _this._expandBottom(distanceMouseMoved);
  50578. _this._mouseStartPointY = evt.clientY;
  50579. }
  50580. };
  50581. this._onBottomHandlePointerUp = function (evt) {
  50582. // tslint:disable-next-line: no-this-assignment
  50583. var _this = _this_1;
  50584. if (_this._resizingDirection === ResizingDirection.Bottom) {
  50585. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  50586. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onBottomHandlePointerMove);
  50587. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onBottomHandlePointerUp);
  50588. _this.cleanUpResizing(evt);
  50589. }
  50590. };
  50591. this._onLeftHandlePointerDown = function (evt) {
  50592. // tslint:disable-next-line: no-this-assignment
  50593. var _this = _this_1;
  50594. if (_this.isCollapsed) {
  50595. return;
  50596. }
  50597. _this.initResizing(evt);
  50598. _this._resizingDirection = ResizingDirection.Left;
  50599. _this.mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
  50600. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onLeftHandlePointerUp);
  50601. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onLeftHandlePointerMove);
  50602. };
  50603. this._onLeftHandlePointerMove = function (evt) {
  50604. var slack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  50605. var xLimit = _this_1._mouseStartPointX + slack;
  50606. _this_1._moveLeftHandle(evt, xLimit);
  50607. };
  50608. this._moveLeftHandle = function (evt, xLimit) {
  50609. // tslint:disable-next-line: no-this-assignment
  50610. var _this = _this_1;
  50611. if (_this.mouseXLimit) {
  50612. if (_this._resizingDirection !== ResizingDirection.Left || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientX > xLimit) {
  50613. return;
  50614. }
  50615. if (_this._resizingDirection === ResizingDirection.Left) {
  50616. evt.stopPropagation();
  50617. var distanceMouseMoved = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50618. _this._expandLeft(distanceMouseMoved);
  50619. _this._mouseStartPointX = evt.clientX;
  50620. }
  50621. }
  50622. };
  50623. this._onLeftHandlePointerUp = function (evt) {
  50624. // tslint:disable-next-line: no-this-assignment
  50625. var _this = _this_1;
  50626. if (_this._resizingDirection === ResizingDirection.Left) {
  50627. _this.x = parseFloat(_this.element.style.left.replace("px", ""));
  50628. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  50629. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onLeftHandlePointerUp);
  50630. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onLeftHandlePointerMove);
  50631. _this.cleanUpResizing(evt);
  50632. }
  50633. };
  50634. this._onTopHandlePointerDown = function (evt) {
  50635. // tslint:disable-next-line: no-this-assignment
  50636. var _this = _this_1;
  50637. if (_this.isCollapsed) {
  50638. return;
  50639. }
  50640. _this.initResizing(evt);
  50641. _this._resizingDirection = ResizingDirection.Top;
  50642. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopHandlePointerUp);
  50643. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onTopHandlePointerMove);
  50644. };
  50645. this._onTopHandlePointerMove = function (evt) {
  50646. var slack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  50647. var yLimit = _this_1._mouseStartPointY + slack;
  50648. _this_1._moveTopHandle(evt, yLimit);
  50649. };
  50650. this._moveTopHandle = function (evt, yLimit) {
  50651. // tslint:disable-next-line: no-this-assignment
  50652. var _this = _this_1;
  50653. if (!_this._isResizingTop() || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientY > yLimit) {
  50654. return;
  50655. }
  50656. if (_this._isResizingTop()) {
  50657. evt.stopPropagation();
  50658. var distanceMouseMoved = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50659. _this._expandTop(distanceMouseMoved);
  50660. _this._mouseStartPointY = evt.clientY;
  50661. }
  50662. };
  50663. this._onTopHandlePointerUp = function (evt) {
  50664. // tslint:disable-next-line: no-this-assignment
  50665. var _this = _this_1;
  50666. if (_this._isResizingTop()) {
  50667. _this.y = parseFloat(_this.element.style.top.replace("px", ""));
  50668. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  50669. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onTopHandlePointerUp);
  50670. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onTopHandlePointerMove);
  50671. _this.cleanUpResizing(evt);
  50672. }
  50673. };
  50674. this._onTopRightHandlePointerDown = function (evt) {
  50675. // tslint:disable-next-line: no-this-assignment
  50676. var _this = _this_1;
  50677. if (_this.isCollapsed) {
  50678. return;
  50679. }
  50680. _this.initResizing(evt);
  50681. _this._resizingDirection = ResizingDirection.TopRight;
  50682. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopRightHandlePointerUp);
  50683. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onTopRightHandlePointerMove);
  50684. };
  50685. this._onTopRightHandlePointerMove = function (evt) {
  50686. var topSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  50687. var yLimit = _this_1._mouseStartPointY + topSlack;
  50688. var rightSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  50689. var xLimit = _this_1._mouseStartPointX - rightSlack;
  50690. _this_1._moveTopRightHandle(evt, xLimit, yLimit);
  50691. };
  50692. this._moveTopRightHandle = function (evt, xLimit, yLimit) {
  50693. // tslint:disable-next-line: no-this-assignment
  50694. var _this = _this_1;
  50695. if (!(_this._isResizingTop() && _this._isResizingRight()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  50696. return;
  50697. }
  50698. if (_this._isResizingRight() && _this._isResizingTop()) {
  50699. evt.stopPropagation();
  50700. if (evt.clientY < yLimit && evt.clientX > xLimit) { // able to move in X and Y
  50701. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50702. _this._expandRight(distanceMouseMovedX, evt.clientX);
  50703. _this._mouseStartPointX = evt.clientX;
  50704. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50705. _this._expandTop(distanceMouseMovedY);
  50706. _this._mouseStartPointY = evt.clientY;
  50707. }
  50708. else if (evt.clientY > yLimit && evt.clientX > xLimit) { // able to move in X but not Y
  50709. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50710. _this._expandRight(distanceMouseMovedX, evt.clientX);
  50711. _this._mouseStartPointX = evt.clientX;
  50712. }
  50713. else if (evt.clientY < yLimit && evt.clientX < xLimit) { // able to move in Y but not X
  50714. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50715. _this._expandTop(distanceMouseMovedY);
  50716. _this._mouseStartPointY = evt.clientY;
  50717. }
  50718. }
  50719. };
  50720. this._onTopRightHandlePointerUp = function (evt) {
  50721. evt.stopPropagation();
  50722. // tslint:disable-next-line: no-this-assignment
  50723. var _this = _this_1;
  50724. if (_this._resizingDirection === ResizingDirection.TopRight) {
  50725. _this.y = parseFloat(_this.element.style.top.replace("px", ""));
  50726. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  50727. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  50728. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onTopRightHandlePointerUp);
  50729. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onTopRightHandlePointerMove);
  50730. _this.cleanUpResizing(evt);
  50731. }
  50732. };
  50733. this._onBottomRightHandlePointerDown = function (evt) {
  50734. // tslint:disable-next-line: no-this-assignment
  50735. var _this = _this_1;
  50736. if (_this.isCollapsed) {
  50737. return;
  50738. }
  50739. _this.initResizing(evt);
  50740. _this._resizingDirection = ResizingDirection.BottomRight;
  50741. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onBottomRightHandlePointerUp);
  50742. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onBottomRightHandlePointerMove);
  50743. };
  50744. this._onBottomRightHandlePointerMove = function (evt) {
  50745. var bottomSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  50746. var yLimit = _this_1._mouseStartPointY - bottomSlack;
  50747. var rightSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  50748. var xLimit = _this_1._mouseStartPointX - rightSlack;
  50749. _this_1._moveBottomRightHandle(evt, xLimit, yLimit);
  50750. };
  50751. this._moveBottomRightHandle = function (evt, xLimit, yLimit) {
  50752. // tslint:disable-next-line: no-this-assignment
  50753. var _this = _this_1;
  50754. if (!(_this._isResizingBottom() && _this._isResizingRight()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  50755. return;
  50756. }
  50757. if (_this._isResizingRight() && _this._isResizingBottom()) {
  50758. evt.stopPropagation();
  50759. if (evt.clientY > yLimit && evt.clientX > xLimit) { // able to move in X and Y
  50760. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50761. _this._expandRight(distanceMouseMovedX, evt.clientX);
  50762. _this._mouseStartPointX = evt.clientX;
  50763. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50764. _this._expandBottom(distanceMouseMovedY);
  50765. _this._mouseStartPointY = evt.clientY;
  50766. }
  50767. else if (evt.clientY < yLimit && evt.clientX > xLimit) { // able to move in X but not Y
  50768. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50769. _this._expandRight(distanceMouseMovedX, evt.clientX);
  50770. _this._mouseStartPointX = evt.clientX;
  50771. }
  50772. else if (evt.clientY > yLimit && evt.clientX < xLimit) { // able to move in Y but not X
  50773. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50774. _this._expandBottom(distanceMouseMovedY);
  50775. _this._mouseStartPointY = evt.clientY;
  50776. }
  50777. }
  50778. };
  50779. this._onBottomRightHandlePointerUp = function (evt) {
  50780. evt.stopPropagation();
  50781. // tslint:disable-next-line: no-this-assignment
  50782. var _this = _this_1;
  50783. if (_this._resizingDirection === ResizingDirection.BottomRight) {
  50784. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  50785. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  50786. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onBottomRightHandlePointerUp);
  50787. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onBottomRightHandlePointerMove);
  50788. _this.cleanUpResizing(evt);
  50789. }
  50790. };
  50791. this._onBottomLeftHandlePointerDown = function (evt) {
  50792. // tslint:disable-next-line: no-this-assignment
  50793. var _this = _this_1;
  50794. if (_this.isCollapsed) {
  50795. return;
  50796. }
  50797. _this.initResizing(evt);
  50798. _this._resizingDirection = ResizingDirection.BottomLeft;
  50799. _this.mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
  50800. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onBottomLeftHandlePointerUp);
  50801. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onBottomLeftHandlePointerMove);
  50802. };
  50803. this._onBottomLeftHandlePointerMove = function (evt) {
  50804. var bottomSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  50805. var yLimit = _this_1._mouseStartPointY - bottomSlack;
  50806. var leftSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  50807. var xLimit = _this_1._mouseStartPointX + leftSlack;
  50808. _this_1._moveBottomLeftHandle(evt, xLimit, yLimit);
  50809. };
  50810. this._moveBottomLeftHandle = function (evt, xLimit, yLimit) {
  50811. // tslint:disable-next-line: no-this-assignment
  50812. var _this = _this_1;
  50813. if (!(_this._isResizingBottom() && _this._isResizingLeft()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  50814. return;
  50815. }
  50816. if (_this._isResizingLeft() && _this._isResizingBottom()) {
  50817. evt.stopPropagation();
  50818. if (evt.clientY > yLimit && evt.clientX < xLimit) { // able to move in X and Y
  50819. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50820. _this._expandLeft(distanceMouseMovedX);
  50821. _this._mouseStartPointX = evt.clientX;
  50822. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50823. _this._expandBottom(distanceMouseMovedY);
  50824. _this._mouseStartPointY = evt.clientY;
  50825. }
  50826. else if (evt.clientY < yLimit && evt.clientX < xLimit) { // able to move in X but not Y
  50827. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50828. _this._expandLeft(distanceMouseMovedX);
  50829. _this._mouseStartPointX = evt.clientX;
  50830. }
  50831. else if (evt.clientY > yLimit && evt.clientX > xLimit) { // able to move in Y but not X
  50832. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50833. _this._expandBottom(distanceMouseMovedY);
  50834. _this._mouseStartPointY = evt.clientY;
  50835. }
  50836. }
  50837. };
  50838. this._onBottomLeftHandlePointerUp = function (evt) {
  50839. evt.stopPropagation();
  50840. // tslint:disable-next-line: no-this-assignment
  50841. var _this = _this_1;
  50842. if (_this._resizingDirection === ResizingDirection.BottomLeft) {
  50843. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  50844. _this.x = parseFloat(_this.element.style.left.replace("px", ""));
  50845. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  50846. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onBottomLeftHandlePointerUp);
  50847. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onBottomLeftHandlePointerMove);
  50848. _this.cleanUpResizing(evt);
  50849. }
  50850. };
  50851. this._onTopLeftHandlePointerDown = function (evt) {
  50852. // tslint:disable-next-line: no-this-assignment
  50853. var _this = _this_1;
  50854. if (_this.isCollapsed) {
  50855. return;
  50856. }
  50857. _this.initResizing(evt);
  50858. _this._resizingDirection = ResizingDirection.TopLeft;
  50859. _this.mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
  50860. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopLeftHandlePointerUp);
  50861. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onTopLeftHandlePointerMove);
  50862. };
  50863. this._onTopLeftHandlePointerMove = function (evt) {
  50864. var topSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  50865. var yLimit = _this_1._mouseStartPointY + topSlack;
  50866. var leftSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  50867. var xLimit = _this_1._mouseStartPointX + leftSlack;
  50868. _this_1._moveTopLeftHandle(evt, xLimit, yLimit);
  50869. };
  50870. this._moveTopLeftHandle = function (evt, xLimit, yLimit) {
  50871. // tslint:disable-next-line: no-this-assignment
  50872. var _this = _this_1;
  50873. if (!(_this._isResizingTop() && _this._isResizingLeft()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  50874. return;
  50875. }
  50876. if (_this._isResizingLeft() && _this._isResizingTop()) {
  50877. evt.stopPropagation();
  50878. if (evt.clientY < yLimit && evt.clientX < xLimit) { // able to move in X and Y
  50879. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50880. _this._expandLeft(distanceMouseMovedX);
  50881. _this._mouseStartPointX = evt.clientX;
  50882. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50883. _this._expandTop(distanceMouseMovedY);
  50884. _this._mouseStartPointY = evt.clientY;
  50885. }
  50886. else if (evt.clientY > yLimit && evt.clientX < xLimit) { // able to move in X but not Y
  50887. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  50888. _this._expandLeft(distanceMouseMovedX);
  50889. _this._mouseStartPointX = evt.clientX;
  50890. }
  50891. else if (evt.clientY < yLimit && evt.clientX > xLimit) { // able to move in Y but not X
  50892. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  50893. _this._expandTop(distanceMouseMovedY);
  50894. _this._mouseStartPointY = evt.clientY;
  50895. }
  50896. }
  50897. };
  50898. this._onTopLeftHandlePointerUp = function (evt) {
  50899. evt.stopPropagation();
  50900. // tslint:disable-next-line: no-this-assignment
  50901. var _this = _this_1;
  50902. if (_this._resizingDirection === ResizingDirection.TopLeft) {
  50903. _this.y = parseFloat(_this.element.style.top.replace("px", ""));
  50904. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  50905. _this.x = parseFloat(_this.element.style.left.replace("px", ""));
  50906. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  50907. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onTopLeftHandlePointerUp);
  50908. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onTopLeftHandlePointerMove);
  50909. _this.cleanUpResizing(evt);
  50910. }
  50911. };
  50912. this._id = GraphFrame._FrameCounter++;
  50913. this._ownerCanvas = canvas;
  50914. var root = canvas.frameContainer;
  50915. this.element = root.ownerDocument.createElement("div");
  50916. this.element.classList.add("frame-box");
  50917. root.appendChild(this.element);
  50918. this._headerElement = root.ownerDocument.createElement("div");
  50919. this._headerElement.classList.add("frame-box-header");
  50920. this._headerElement.addEventListener("dblclick", function () {
  50921. _this_1.isCollapsed = !_this_1.isCollapsed;
  50922. });
  50923. this.element.appendChild(this._headerElement);
  50924. this._borderElement = root.ownerDocument.createElement("div");
  50925. this._borderElement.classList.add("frame-box-border");
  50926. this.element.appendChild(this._borderElement);
  50927. // add resizing side handles
  50928. var rightHandle = root.ownerDocument.createElement("div");
  50929. rightHandle.className = "handle right-handle";
  50930. this.element.appendChild(rightHandle);
  50931. rightHandle.addEventListener("pointerdown", this._onRightHandlePointerDown);
  50932. var leftHandle = root.ownerDocument.createElement("div");
  50933. leftHandle.className = "handle left-handle";
  50934. this.element.appendChild(leftHandle);
  50935. leftHandle.addEventListener("pointerdown", this._onLeftHandlePointerDown);
  50936. var bottomHandle = root.ownerDocument.createElement("div");
  50937. bottomHandle.className = "handle bottom-handle";
  50938. this.element.appendChild(bottomHandle);
  50939. bottomHandle.addEventListener("pointerdown", this._onBottomHandlePointerDown);
  50940. var topHandle = root.ownerDocument.createElement("div");
  50941. topHandle.className = "handle top-handle";
  50942. this.element.appendChild(topHandle);
  50943. topHandle.addEventListener("pointerdown", this._onTopHandlePointerDown);
  50944. var topRightCornerHandle = root.ownerDocument.createElement("div");
  50945. topRightCornerHandle.className = "handle right-handle top-right-corner-handle";
  50946. this.element.appendChild(topRightCornerHandle);
  50947. topRightCornerHandle.addEventListener("pointerdown", this._onTopRightHandlePointerDown);
  50948. var bottomRightCornerHandle = root.ownerDocument.createElement("div");
  50949. bottomRightCornerHandle.className = "handle right-handle bottom-right-corner-handle";
  50950. this.element.appendChild(bottomRightCornerHandle);
  50951. bottomRightCornerHandle.addEventListener("pointerdown", this._onBottomRightHandlePointerDown);
  50952. var topLeftCornerHandle = root.ownerDocument.createElement("div");
  50953. topLeftCornerHandle.className = "handle left-handle top-left-corner-handle";
  50954. this.element.appendChild(topLeftCornerHandle);
  50955. topLeftCornerHandle.addEventListener("pointerdown", this._onTopLeftHandlePointerDown);
  50956. var bottomLeftCornerHandle = root.ownerDocument.createElement("div");
  50957. bottomLeftCornerHandle.className = "handle left-handle bottom-left-corner-handle";
  50958. this.element.appendChild(bottomLeftCornerHandle);
  50959. bottomLeftCornerHandle.addEventListener("pointerdown", this._onBottomLeftHandlePointerDown);
  50960. // add header elements
  50961. this._headerTextElement = root.ownerDocument.createElement("div");
  50962. this._headerTextElement.classList.add("frame-box-header-title");
  50963. this._headerElement.appendChild(this._headerTextElement);
  50964. this._headerCollapseElement = root.ownerDocument.createElement("div");
  50965. this._headerCollapseElement.classList.add("frame-box-header-collapse");
  50966. this._headerCollapseElement.classList.add("frame-box-header-button");
  50967. this._headerCollapseElement.title = "Collapse";
  50968. this._headerCollapseElement.ondragstart = function () { return false; };
  50969. this._headerCollapseElement.addEventListener("pointerdown", function (evt) {
  50970. _this_1._headerCollapseElement.classList.add("down");
  50971. evt.stopPropagation();
  50972. });
  50973. this._headerCollapseElement.addEventListener("pointerup", function (evt) {
  50974. evt.stopPropagation();
  50975. _this_1._headerCollapseElement.classList.remove("down");
  50976. _this_1.isCollapsed = !_this_1.isCollapsed;
  50977. });
  50978. this._headerCollapseElement.innerHTML = this.CollapseSVG;
  50979. this._headerElement.appendChild(this._headerCollapseElement);
  50980. this._headerCloseElement = root.ownerDocument.createElement("div");
  50981. this._headerCloseElement.classList.add("frame-box-header-close");
  50982. this._headerCloseElement.classList.add("frame-box-header-button");
  50983. this._headerCloseElement.title = "Close";
  50984. this._headerCloseElement.ondragstart = function () { return false; };
  50985. this._headerCloseElement.addEventListener("pointerdown", function (evt) {
  50986. evt.stopPropagation();
  50987. });
  50988. this._headerCloseElement.addEventListener("pointerup", function (evt) {
  50989. evt.stopPropagation();
  50990. _this_1.dispose();
  50991. });
  50992. this._headerCloseElement.innerHTML = this.CloseSVG;
  50993. this._headerElement.appendChild(this._headerCloseElement);
  50994. this._portContainer = root.ownerDocument.createElement("div");
  50995. this._portContainer.classList.add("port-container");
  50996. this.element.appendChild(this._portContainer);
  50997. this._outputPortContainer = root.ownerDocument.createElement("div");
  50998. this._outputPortContainer.classList.add("outputsContainer");
  50999. this._portContainer.appendChild(this._outputPortContainer);
  51000. this._inputPortContainer = root.ownerDocument.createElement("div");
  51001. this._inputPortContainer.classList.add("inputsContainer");
  51002. this._portContainer.appendChild(this._inputPortContainer);
  51003. this.name = "Frame";
  51004. this.color = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color3"].FromInts(72, 72, 72);
  51005. if (candidate) {
  51006. this.x = parseFloat(candidate.style.left.replace("px", ""));
  51007. this.y = parseFloat(candidate.style.top.replace("px", ""));
  51008. this.width = parseFloat(candidate.style.width.replace("px", ""));
  51009. this.height = parseFloat(candidate.style.height.replace("px", ""));
  51010. this.cleanAccumulation();
  51011. }
  51012. this._headerTextElement.addEventListener("pointerdown", function (evt) { return _this_1._onDown(evt); });
  51013. this._headerTextElement.addEventListener("pointerup", function (evt) { return _this_1._onUp(evt); });
  51014. this._headerTextElement.addEventListener("pointermove", function (evt) { return _this_1._onMove(evt); });
  51015. this._onSelectionChangedObserver = canvas.globalState.onSelectionChangedObservable.add(function (node) {
  51016. if (node === _this_1) {
  51017. _this_1.element.classList.add("selected");
  51018. }
  51019. else {
  51020. _this_1.element.classList.remove("selected");
  51021. }
  51022. });
  51023. this._onGraphNodeRemovalObserver = canvas.globalState.onGraphNodeRemovalObservable.add(function (node) {
  51024. // remove node from this._nodes
  51025. var index = _this_1._nodes.indexOf(node);
  51026. if (index === -1) {
  51027. return;
  51028. }
  51029. else {
  51030. node.enclosingFrameId = -1;
  51031. _this_1._nodes.splice(index, 1);
  51032. }
  51033. });
  51034. this._onExposePortOnFrameObserver = canvas.globalState.onExposePortOnFrameObservable.add(function (node) {
  51035. if (_this_1.nodes.indexOf(node) === -1) {
  51036. return;
  51037. }
  51038. _this_1.redrawFramePorts();
  51039. });
  51040. this._commentsElement = document.createElement('div');
  51041. this._commentsElement.className = 'frame-comments';
  51042. this._commentsElement.style.color = 'white';
  51043. this._commentsElement.style.fontSize = '16px';
  51044. var commentSpan = document.createElement('span');
  51045. commentSpan.className = "frame-comment-span";
  51046. this._commentsElement.appendChild(commentSpan);
  51047. this.element.appendChild(this._commentsElement);
  51048. // Get nodes
  51049. if (!doNotCaptureNodes) {
  51050. this.refresh();
  51051. }
  51052. }
  51053. Object.defineProperty(GraphFrame.prototype, "id", {
  51054. get: function () {
  51055. return this._id;
  51056. },
  51057. enumerable: false,
  51058. configurable: true
  51059. });
  51060. Object.defineProperty(GraphFrame.prototype, "isCollapsed", {
  51061. get: function () {
  51062. return this._isCollapsed;
  51063. },
  51064. set: function (value) {
  51065. if (this._isCollapsed === value) {
  51066. return;
  51067. }
  51068. this._isCollapsed = value;
  51069. this._ownerCanvas._frameIsMoving = true;
  51070. // Need to delegate the outside ports to the frame
  51071. if (value) {
  51072. this.element.classList.add("collapsed");
  51073. this._moveFrame((this.width - this.CollapsedWidth) / 2, 0);
  51074. this._createFramePorts();
  51075. this._markFramePortPositions();
  51076. }
  51077. else {
  51078. this.element.classList.remove("collapsed");
  51079. this._outputPortContainer.innerHTML = "";
  51080. this._inputPortContainer.innerHTML = "";
  51081. this._frameInPorts.forEach(function (p) {
  51082. p.dispose();
  51083. });
  51084. this._frameOutPorts.forEach(function (p) {
  51085. p.dispose();
  51086. });
  51087. this._controlledPorts.forEach(function (port) {
  51088. port.delegatedPort = null;
  51089. port.refresh();
  51090. });
  51091. this._frameInPorts = [];
  51092. this._frameOutPorts = [];
  51093. this._controlledPorts = [];
  51094. this._onNodeLinkDisposedObservers = [];
  51095. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  51096. var node = _a[_i];
  51097. node.isVisible = true;
  51098. }
  51099. this._moveFrame(-(this.width - this.CollapsedWidth) / 2, 0);
  51100. }
  51101. this.cleanAccumulation();
  51102. this._ownerCanvas._frameIsMoving = false;
  51103. // UI
  51104. if (this._isCollapsed) {
  51105. this._headerCollapseElement.innerHTML = this.ExpandSVG;
  51106. this._headerCollapseElement.title = "Expand";
  51107. }
  51108. else {
  51109. this._headerCollapseElement.innerHTML = this.CollapseSVG;
  51110. this._headerCollapseElement.title = "Collapse";
  51111. }
  51112. this.onExpandStateChanged.notifyObservers(this);
  51113. },
  51114. enumerable: false,
  51115. configurable: true
  51116. });
  51117. GraphFrame.prototype._createInputPort = function (port, node) {
  51118. var localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, node, this._inputPortContainer, null, this._ownerCanvas.globalState, true, GraphFrame._FramePortCounter++, this.id);
  51119. this._frameInPorts.push(localPort);
  51120. port.delegatedPort = localPort;
  51121. this._controlledPorts.push(port);
  51122. port.exposedPortPosition = this._exposedInPorts.findIndex(function (nodePort) { return nodePort === port; });
  51123. if (port.exposedPortPosition < 0) {
  51124. this._exposedInPorts.push(port);
  51125. port.exposedPortPosition = this._exposedInPorts.length - 1;
  51126. }
  51127. };
  51128. // Mark ports with FramePortPosition for re-arrangement support
  51129. GraphFrame.prototype._markFramePortPositions = function () {
  51130. // mark FrameInPorts
  51131. if (this._frameInPorts.length == 2) {
  51132. this._frameInPorts[0].framePortPosition = FramePortPosition.Top;
  51133. this._frameInPorts[1].framePortPosition = FramePortPosition.Bottom;
  51134. }
  51135. else {
  51136. for (var i = 0; i < this._frameInPorts.length; i++) {
  51137. var port = this._frameInPorts[i];
  51138. if (i === 0) {
  51139. port.framePortPosition = FramePortPosition.Top;
  51140. }
  51141. else if (i === this._frameInPorts.length - 1) {
  51142. port.framePortPosition = FramePortPosition.Bottom;
  51143. }
  51144. else {
  51145. port.framePortPosition = FramePortPosition.Middle;
  51146. }
  51147. }
  51148. }
  51149. // mark FrameOutPorts
  51150. if (this._frameOutPorts.length == 2) {
  51151. this._frameOutPorts[0].framePortPosition = FramePortPosition.Top;
  51152. this._frameOutPorts[1].framePortPosition = FramePortPosition.Bottom;
  51153. }
  51154. else {
  51155. for (var i = 0; i < this._frameOutPorts.length; i++) {
  51156. var port = this._frameOutPorts[i];
  51157. if (i === 0) {
  51158. port.framePortPosition = FramePortPosition.Top;
  51159. }
  51160. else if (i === this._frameInPorts.length - 1) {
  51161. port.framePortPosition = FramePortPosition.Bottom;
  51162. }
  51163. else {
  51164. port.framePortPosition = FramePortPosition.Middle;
  51165. }
  51166. }
  51167. }
  51168. };
  51169. GraphFrame.prototype._createFramePorts = function () {
  51170. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  51171. var node = _a[_i];
  51172. node.isVisible = false;
  51173. }
  51174. for (var i = 0; i < this._exposedOutPorts.length;) { // Output
  51175. var port = this._exposedOutPorts[i];
  51176. if (port.node === null || port.node.enclosingFrameId != this.id) {
  51177. if (this.removePortFromExposedWithNode(port, this._exposedOutPorts))
  51178. continue;
  51179. }
  51180. else {
  51181. if (!this.createOutputPorts(port, port.node) && this.removePortFromExposedWithNode(port, this._exposedOutPorts)) {
  51182. continue;
  51183. }
  51184. }
  51185. ++i;
  51186. }
  51187. for (var i = 0; i < this._exposedInPorts.length;) { // Input
  51188. var port = this._exposedInPorts[i];
  51189. if (!port || port.node === null || port.node.enclosingFrameId != this.id) {
  51190. if (this.removePortFromExposedWithNode(port, this._exposedInPorts)) {
  51191. continue;
  51192. }
  51193. }
  51194. else {
  51195. if (!this.createInputPorts(port, port.node) && this.removePortFromExposedWithNode(port, this._exposedInPorts)) {
  51196. continue;
  51197. }
  51198. }
  51199. ++i;
  51200. }
  51201. for (var _b = 0, _c = this._nodes; _b < _c.length; _b++) {
  51202. var node = _c[_b];
  51203. var _loop_1 = function (port_1) {
  51204. port_1.exposedPortPosition = this_1._exposedOutPorts.findIndex(function (nodePort) { return nodePort === port_1; });
  51205. if (port_1.exposedPortPosition < 0) {
  51206. if (this_1.createOutputPorts(port_1, node)) {
  51207. port_1.node.enclosingFrameId = this_1.id;
  51208. this_1._exposedOutPorts.push(port_1);
  51209. port_1.exposedPortPosition = this_1._exposedOutPorts.length - 1;
  51210. }
  51211. }
  51212. };
  51213. var this_1 = this;
  51214. for (var _d = 0, _e = node.outputPorts; _d < _e.length; _d++) {
  51215. var port_1 = _e[_d];
  51216. _loop_1(port_1);
  51217. }
  51218. for (var _f = 0, _g = node.inputPorts; _f < _g.length; _f++) { // Input
  51219. var port = _g[_f];
  51220. port.exposedPortPosition = this._exposedInPorts.findIndex(function (nodePort) { return nodePort === port; });
  51221. if (port.exposedPortPosition < 0) {
  51222. this.createInputPorts(port, node);
  51223. }
  51224. }
  51225. }
  51226. };
  51227. GraphFrame.prototype.removePortFromExposedWithNode = function (port, exposedPorts) {
  51228. var index = exposedPorts.findIndex(function (nodePort) { return nodePort === port; });
  51229. if (index >= 0) {
  51230. exposedPorts.splice(index, 1);
  51231. if (port) {
  51232. port.exposedPortPosition = -1;
  51233. }
  51234. return true;
  51235. }
  51236. return false;
  51237. };
  51238. GraphFrame.prototype.removePortFromExposedWithLink = function (nodeLink, exposedPorts) {
  51239. var aPort = exposedPorts.findIndex(function (nodePort) { return nodePort === nodeLink.portA; });
  51240. var bPort = exposedPorts.findIndex(function (nodePort) { return nodePort === nodeLink.portB; });
  51241. if (aPort >= 0) {
  51242. if (!nodeLink.portA.exposedOnFrame) {
  51243. exposedPorts.splice(aPort, 1);
  51244. nodeLink.portA.exposedPortPosition = -1;
  51245. return true;
  51246. }
  51247. }
  51248. else if (bPort >= 0) {
  51249. if (nodeLink.portB && !nodeLink.portB.exposedOnFrame) {
  51250. exposedPorts.splice(bPort, 1);
  51251. nodeLink.portB.exposedPortPosition = -1;
  51252. return true;
  51253. }
  51254. }
  51255. return false;
  51256. };
  51257. GraphFrame.prototype.createInputPorts = function (port, node) {
  51258. var _this_1 = this;
  51259. if (port.connectionPoint.isConnected) {
  51260. var portAdded = false;
  51261. for (var _i = 0, _a = node.links; _i < _a.length; _i++) {
  51262. var link = _a[_i];
  51263. if (link.portB === port && this.nodes.indexOf(link.nodeA) === -1) {
  51264. this._createInputPort(port, node);
  51265. link.isVisible = true;
  51266. portAdded = true;
  51267. var onLinkDisposedObserver = link.onDisposedObservable.add(function (nodeLink) {
  51268. if (_this_1.removePortFromExposedWithLink(nodeLink, _this_1._exposedInPorts)) {
  51269. _this_1.redrawFramePorts();
  51270. }
  51271. });
  51272. this._onNodeLinkDisposedObservers.push(onLinkDisposedObserver);
  51273. }
  51274. }
  51275. if (portAdded)
  51276. return true;
  51277. }
  51278. else if (port.exposedOnFrame) {
  51279. this._createInputPort(port, node);
  51280. return true;
  51281. }
  51282. return false;
  51283. };
  51284. GraphFrame.prototype.createOutputPorts = function (port, node) {
  51285. var _this_1 = this;
  51286. if (port.connectionPoint.hasEndpoints) {
  51287. var portAdded = false;
  51288. for (var _i = 0, _a = node.links; _i < _a.length; _i++) {
  51289. var link = _a[_i];
  51290. if (link.portA === port && this.nodes.indexOf(link.nodeB) === -1) {
  51291. var localPort = void 0;
  51292. if (!portAdded) {
  51293. portAdded = true;
  51294. localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, link.nodeA, this._outputPortContainer, null, this._ownerCanvas.globalState, false, GraphFrame._FramePortCounter++, this.id);
  51295. this._frameOutPorts.push(localPort);
  51296. link.isVisible = true;
  51297. var onLinkDisposedObserver = link.onDisposedObservable.add(function (nodeLink) {
  51298. if (_this_1.removePortFromExposedWithLink(nodeLink, _this_1._exposedOutPorts)) {
  51299. _this_1.redrawFramePorts();
  51300. }
  51301. });
  51302. this._onNodeLinkDisposedObservers.push(onLinkDisposedObserver);
  51303. }
  51304. else if (this.nodes.indexOf(link.nodeB) === -1) {
  51305. link.isVisible = true;
  51306. localPort = this.ports.filter(function (p) { return p.connectionPoint === port.connectionPoint; })[0];
  51307. }
  51308. else {
  51309. localPort = this.ports.filter(function (p) { return p.connectionPoint === port.connectionPoint; })[0];
  51310. }
  51311. port.delegatedPort = localPort;
  51312. this._controlledPorts.push(port);
  51313. }
  51314. else if (port.exposedPortPosition >= 0 && !portAdded) {
  51315. var localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, node, this._outputPortContainer, null, this._ownerCanvas.globalState, false, GraphFrame._FramePortCounter++, this.id);
  51316. this._frameOutPorts.push(localPort);
  51317. port.delegatedPort = localPort;
  51318. this._controlledPorts.push(port);
  51319. portAdded = true;
  51320. }
  51321. }
  51322. if (portAdded)
  51323. return true;
  51324. }
  51325. else if (port.exposedOnFrame) {
  51326. var localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, node, this._outputPortContainer, null, this._ownerCanvas.globalState, false, GraphFrame._FramePortCounter++, this.id);
  51327. this._frameOutPorts.push(localPort);
  51328. port.delegatedPort = localPort;
  51329. this._controlledPorts.push(port);
  51330. return true;
  51331. }
  51332. return false;
  51333. };
  51334. GraphFrame.prototype.redrawFramePorts = function () {
  51335. if (!this.isCollapsed) {
  51336. return;
  51337. }
  51338. this._outputPortContainer.innerHTML = "";
  51339. this._inputPortContainer.innerHTML = "";
  51340. this.ports.forEach(function (framePort) {
  51341. framePort.dispose();
  51342. });
  51343. this._controlledPorts.forEach(function (port) {
  51344. port.delegatedPort = null;
  51345. port.refresh();
  51346. });
  51347. this._frameInPorts = [];
  51348. this._frameOutPorts = [];
  51349. this._controlledPorts = [];
  51350. this._createFramePorts();
  51351. this._markFramePortPositions();
  51352. this.ports.forEach(function (framePort) { return framePort.node._refreshLinks(); });
  51353. };
  51354. Object.defineProperty(GraphFrame.prototype, "nodes", {
  51355. get: function () {
  51356. return this._nodes;
  51357. },
  51358. enumerable: false,
  51359. configurable: true
  51360. });
  51361. Object.defineProperty(GraphFrame.prototype, "ports", {
  51362. get: function () {
  51363. return this._frameInPorts.concat(this._frameOutPorts);
  51364. },
  51365. enumerable: false,
  51366. configurable: true
  51367. });
  51368. Object.defineProperty(GraphFrame.prototype, "name", {
  51369. get: function () {
  51370. return this._name;
  51371. },
  51372. set: function (value) {
  51373. this._name = value;
  51374. this._headerTextElement.innerHTML = value;
  51375. },
  51376. enumerable: false,
  51377. configurable: true
  51378. });
  51379. Object.defineProperty(GraphFrame.prototype, "color", {
  51380. get: function () {
  51381. return this._color;
  51382. },
  51383. set: function (value) {
  51384. this._color = value;
  51385. this._headerElement.style.background = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 1)";
  51386. this._headerElement.style.borderColor = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 1)";
  51387. this.element.style.background = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 0.7)";
  51388. },
  51389. enumerable: false,
  51390. configurable: true
  51391. });
  51392. Object.defineProperty(GraphFrame.prototype, "x", {
  51393. get: function () {
  51394. return this._x;
  51395. },
  51396. set: function (value) {
  51397. if (this._x === value) {
  51398. return;
  51399. }
  51400. this._x = value;
  51401. this._gridAlignedX = this._ownerCanvas.getGridPosition(value);
  51402. this.element.style.left = this._gridAlignedX + "px";
  51403. },
  51404. enumerable: false,
  51405. configurable: true
  51406. });
  51407. Object.defineProperty(GraphFrame.prototype, "y", {
  51408. get: function () {
  51409. return this._y;
  51410. },
  51411. set: function (value) {
  51412. if (this._y === value) {
  51413. return;
  51414. }
  51415. this._y = value;
  51416. this._gridAlignedY = this._ownerCanvas.getGridPosition(value);
  51417. this.element.style.top = this._gridAlignedY + "px";
  51418. },
  51419. enumerable: false,
  51420. configurable: true
  51421. });
  51422. Object.defineProperty(GraphFrame.prototype, "width", {
  51423. get: function () {
  51424. return this._width;
  51425. },
  51426. set: function (value) {
  51427. if (this._width === value) {
  51428. return;
  51429. }
  51430. var viableWidth = value > this._minFrameWidth ? value : this._minFrameWidth;
  51431. this._width = viableWidth;
  51432. var gridAlignedRight = this._ownerCanvas.getGridPositionCeil(viableWidth + this._gridAlignedX);
  51433. this.element.style.width = gridAlignedRight - this._gridAlignedX + "px";
  51434. },
  51435. enumerable: false,
  51436. configurable: true
  51437. });
  51438. Object.defineProperty(GraphFrame.prototype, "height", {
  51439. get: function () {
  51440. return this._height;
  51441. },
  51442. set: function (value) {
  51443. if (this._height === value) {
  51444. return;
  51445. }
  51446. this._height = value;
  51447. var gridAlignedBottom = this._ownerCanvas.getGridPositionCeil(value + this._gridAlignedY);
  51448. this.element.style.height = gridAlignedBottom - this._gridAlignedY + "px";
  51449. },
  51450. enumerable: false,
  51451. configurable: true
  51452. });
  51453. Object.defineProperty(GraphFrame.prototype, "comments", {
  51454. get: function () {
  51455. return this._comments;
  51456. },
  51457. set: function (comments) {
  51458. if (comments && !this._comments && comments.length > 0) {
  51459. this.element.style.gridTemplateRows = "40px min-content 1fr";
  51460. this._borderElement.style.gridRow = "1 / span 3";
  51461. this._portContainer.style.gridRow = "3";
  51462. this._commentsElement.classList.add("has-comments");
  51463. }
  51464. else if (!comments) {
  51465. this.element.style.gridTemplateRows = "40px calc(100% - 40px)";
  51466. this._borderElement.style.gridRow = "1 / span 2";
  51467. this._portContainer.style.gridRow = "2";
  51468. this._commentsElement.classList.remove('has-comments');
  51469. }
  51470. if (comments === "" || (comments && comments.length >= 0)) {
  51471. this._commentsElement.children[0].innerText = comments;
  51472. }
  51473. this.height = this._borderElement.offsetHeight;
  51474. this._comments = comments;
  51475. this.updateMinHeightWithComments();
  51476. },
  51477. enumerable: false,
  51478. configurable: true
  51479. });
  51480. GraphFrame.prototype.refresh = function () {
  51481. this._nodes = [];
  51482. this._ownerCanvas.globalState.onFrameCreatedObservable.notifyObservers(this);
  51483. };
  51484. GraphFrame.prototype.addNode = function (node) {
  51485. var index = this.nodes.indexOf(node);
  51486. if (index === -1) {
  51487. this.nodes.push(node);
  51488. }
  51489. };
  51490. GraphFrame.prototype.removeNode = function (node) {
  51491. var index = this.nodes.indexOf(node);
  51492. if (index > -1) {
  51493. node.enclosingFrameId = -1;
  51494. this.nodes.splice(index, 1);
  51495. }
  51496. };
  51497. GraphFrame.prototype.syncNode = function (node) {
  51498. if (this.isCollapsed) {
  51499. return;
  51500. }
  51501. if (node.isOverlappingFrame(this)) {
  51502. this.addNode(node);
  51503. }
  51504. else {
  51505. this.removeNode(node);
  51506. }
  51507. };
  51508. GraphFrame.prototype.cleanAccumulation = function () {
  51509. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  51510. var selectedNode = _a[_i];
  51511. selectedNode.cleanAccumulation();
  51512. }
  51513. this.x = this._ownerCanvas.getGridPosition(this.x);
  51514. this.y = this._ownerCanvas.getGridPosition(this.y);
  51515. };
  51516. GraphFrame.prototype._onDown = function (evt) {
  51517. evt.stopPropagation();
  51518. this._mouseStartPointX = evt.clientX;
  51519. this._mouseStartPointY = evt.clientY;
  51520. this._headerTextElement.setPointerCapture(evt.pointerId);
  51521. this._ownerCanvas.globalState.onSelectionChangedObservable.notifyObservers(this);
  51522. this._ownerCanvas._frameIsMoving = true;
  51523. this.move(this._ownerCanvas.getGridPosition(this.x), this._ownerCanvas.getGridPosition(this.y));
  51524. };
  51525. GraphFrame.prototype.move = function (newX, newY, align) {
  51526. if (align === void 0) { align = true; }
  51527. var oldX = this.x;
  51528. var oldY = this.y;
  51529. this.x = newX;
  51530. this.y = newY;
  51531. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  51532. var selectedNode = _a[_i];
  51533. selectedNode.x += this.x - oldX;
  51534. selectedNode.y += this.y - oldY;
  51535. if (align) {
  51536. selectedNode.cleanAccumulation(true);
  51537. }
  51538. }
  51539. };
  51540. GraphFrame.prototype._onUp = function (evt) {
  51541. evt.stopPropagation();
  51542. this.cleanAccumulation();
  51543. this._mouseStartPointX = null;
  51544. this._mouseStartPointY = null;
  51545. this._headerTextElement.releasePointerCapture(evt.pointerId);
  51546. this._ownerCanvas._frameIsMoving = false;
  51547. };
  51548. GraphFrame.prototype._moveFrame = function (offsetX, offsetY) {
  51549. this.x += offsetX;
  51550. this.y += offsetY;
  51551. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  51552. var selectedNode = _a[_i];
  51553. selectedNode.x += offsetX;
  51554. selectedNode.y += offsetY;
  51555. }
  51556. };
  51557. GraphFrame.prototype._onMove = function (evt) {
  51558. if (this._mouseStartPointX === null || this._mouseStartPointY === null || evt.ctrlKey || this._frameIsResizing) {
  51559. return;
  51560. }
  51561. var newX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
  51562. var newY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
  51563. this._moveFrame(newX, newY);
  51564. this._mouseStartPointX = evt.clientX;
  51565. this._mouseStartPointY = evt.clientY;
  51566. evt.stopPropagation();
  51567. };
  51568. GraphFrame.prototype.moveFramePortUp = function (nodePort) {
  51569. var _a, _b;
  51570. var elementsArray;
  51571. if (nodePort.isInput) {
  51572. if (this._inputPortContainer.children.length < 2) {
  51573. return;
  51574. }
  51575. elementsArray = Array.from(this._inputPortContainer.childNodes);
  51576. var indexInContainer = this._frameInPorts.findIndex(function (framePort) { return framePort === nodePort; });
  51577. _a = [this._exposedInPorts[indexInContainer], this._exposedInPorts[indexInContainer - 1]], this._exposedInPorts[indexInContainer - 1] = _a[0], this._exposedInPorts[indexInContainer] = _a[1]; // swap idicies
  51578. this._movePortUp(elementsArray, nodePort, this._frameInPorts);
  51579. }
  51580. else {
  51581. if (this._outputPortContainer.children.length < 2) {
  51582. return;
  51583. }
  51584. elementsArray = Array.from(this._outputPortContainer.childNodes);
  51585. var indexInContainer = this._frameOutPorts.findIndex(function (framePort) { return framePort === nodePort; });
  51586. _b = [this._exposedOutPorts[indexInContainer], this._exposedOutPorts[indexInContainer - 1]], this._exposedOutPorts[indexInContainer - 1] = _b[0], this._exposedOutPorts[indexInContainer] = _b[1]; // swap idicies
  51587. this._movePortUp(elementsArray, nodePort, this._frameOutPorts);
  51588. }
  51589. this.ports.forEach(function (framePort) { return framePort.node._refreshLinks(); });
  51590. };
  51591. GraphFrame.prototype._movePortUp = function (elementsArray, nodePort, framePortList) {
  51592. var _a;
  51593. var _b;
  51594. // update UI
  51595. var indexInElementArray = elementsArray.findIndex(function (elem) { return elem.dataset.framePortId === "" + nodePort.framePortId; });
  51596. if (indexInElementArray === 0) {
  51597. return;
  51598. }
  51599. var secondPortElement = elementsArray[indexInElementArray];
  51600. var firstPortElement = elementsArray[indexInElementArray - 1];
  51601. (_b = firstPortElement.parentElement) === null || _b === void 0 ? void 0 : _b.insertBefore(secondPortElement, firstPortElement);
  51602. // update Frame Port Container
  51603. var indexInContainer = framePortList.findIndex(function (framePort) { return framePort === nodePort; });
  51604. _a = [framePortList[indexInContainer], framePortList[indexInContainer - 1]], framePortList[indexInContainer - 1] = _a[0], framePortList[indexInContainer] = _a[1]; // swap idicies
  51605. //special case framePortList.length == 2
  51606. if (framePortList.length == 2) {
  51607. framePortList[1].framePortPosition = FramePortPosition.Bottom;
  51608. framePortList[0].framePortPosition = FramePortPosition.Top;
  51609. }
  51610. else {
  51611. // notify nodePort if it is now at Top (indexInElementArray === 1)
  51612. if (indexInElementArray === 1) {
  51613. framePortList[1].framePortPosition = FramePortPosition.Middle;
  51614. framePortList[0].framePortPosition = FramePortPosition.Top;
  51615. }
  51616. else if (indexInContainer === elementsArray.length - 1) {
  51617. framePortList[framePortList.length - 1].framePortPosition = FramePortPosition.Bottom;
  51618. framePortList[framePortList.length - 2].framePortPosition = FramePortPosition.Middle;
  51619. }
  51620. else {
  51621. nodePort.framePortPosition = FramePortPosition.Middle;
  51622. }
  51623. }
  51624. };
  51625. GraphFrame.prototype.moveFramePortDown = function (nodePort) {
  51626. var _a, _b;
  51627. var elementsArray;
  51628. if (nodePort.isInput) {
  51629. if (this._inputPortContainer.children.length < 2) {
  51630. return;
  51631. }
  51632. elementsArray = Array.from(this._inputPortContainer.childNodes);
  51633. var indexInContainer = this._frameInPorts.findIndex(function (framePort) { return framePort === nodePort; });
  51634. _a = [this._exposedInPorts[indexInContainer + 1], this._exposedInPorts[indexInContainer]], this._exposedInPorts[indexInContainer] = _a[0], this._exposedInPorts[indexInContainer + 1] = _a[1]; // swap idicies
  51635. this._movePortDown(elementsArray, nodePort, this._frameInPorts);
  51636. }
  51637. else {
  51638. if (this._outputPortContainer.children.length < 2) {
  51639. return;
  51640. }
  51641. elementsArray = Array.from(this._outputPortContainer.childNodes);
  51642. var indexInContainer = this._frameOutPorts.findIndex(function (framePort) { return framePort === nodePort; });
  51643. _b = [this._exposedOutPorts[indexInContainer + 1], this._exposedOutPorts[indexInContainer]], this._exposedOutPorts[indexInContainer] = _b[0], this._exposedOutPorts[indexInContainer + 1] = _b[1]; // swap idicies
  51644. this._movePortDown(elementsArray, nodePort, this._frameOutPorts);
  51645. }
  51646. this.ports.forEach(function (framePort) { return framePort.node._refreshLinks(); });
  51647. };
  51648. GraphFrame.prototype._movePortDown = function (elementsArray, nodePort, framePortList) {
  51649. var _a;
  51650. var _b;
  51651. // update UI
  51652. var indexInElementArray = elementsArray.findIndex(function (elem) { return elem.dataset.framePortId === "" + nodePort.framePortId; });
  51653. if (indexInElementArray === elementsArray.length - 1) {
  51654. return;
  51655. }
  51656. var firstPort = elementsArray[indexInElementArray];
  51657. var secondPort = elementsArray[indexInElementArray + 1];
  51658. (_b = firstPort.parentElement) === null || _b === void 0 ? void 0 : _b.insertBefore(secondPort, firstPort);
  51659. // update Frame Port Container
  51660. var indexInContainer = framePortList.findIndex(function (framePort) { return framePort === nodePort; });
  51661. _a = [framePortList[indexInContainer + 1], framePortList[indexInContainer]], framePortList[indexInContainer] = _a[0], framePortList[indexInContainer + 1] = _a[1]; // swap idicies
  51662. // notify nodePort if it is now at bottom (indexInContainer === elementsArray.length-2)
  51663. if (framePortList.length == 2) {
  51664. framePortList[0].framePortPosition = FramePortPosition.Top;
  51665. framePortList[1].framePortPosition = FramePortPosition.Bottom;
  51666. }
  51667. else {
  51668. if (indexInContainer === elementsArray.length - 2) {
  51669. framePortList[elementsArray.length - 2].framePortPosition = FramePortPosition.Middle;
  51670. framePortList[elementsArray.length - 1].framePortPosition = FramePortPosition.Bottom;
  51671. }
  51672. else if (indexInContainer === 0) {
  51673. framePortList[0].framePortPosition = FramePortPosition.Top;
  51674. framePortList[1].framePortPosition = FramePortPosition.Middle;
  51675. }
  51676. else {
  51677. nodePort.framePortPosition = FramePortPosition.Middle;
  51678. }
  51679. }
  51680. };
  51681. GraphFrame.prototype._isResizingTop = function () {
  51682. return this._resizingDirection === ResizingDirection.Top || this._resizingDirection === ResizingDirection.TopRight || this._resizingDirection === ResizingDirection.TopLeft;
  51683. };
  51684. GraphFrame.prototype._isResizingRight = function () {
  51685. return this._resizingDirection === ResizingDirection.Right || this._resizingDirection === ResizingDirection.TopRight || this._resizingDirection === ResizingDirection.BottomRight;
  51686. };
  51687. GraphFrame.prototype._isResizingBottom = function () {
  51688. return this._resizingDirection === ResizingDirection.Bottom || this._resizingDirection === ResizingDirection.BottomLeft || this._resizingDirection === ResizingDirection.BottomRight;
  51689. };
  51690. GraphFrame.prototype._isResizingLeft = function () {
  51691. return this._resizingDirection === ResizingDirection.Left || this._resizingDirection === ResizingDirection.TopLeft || this._resizingDirection === ResizingDirection.BottomLeft;
  51692. };
  51693. GraphFrame.prototype._expandLeft = function (widthModification) {
  51694. var frameElementWidth = parseFloat(this.element.style.width.replace("px", ""));
  51695. var frameElementLeft = parseFloat(this.element.style.left.replace("px", ""));
  51696. this.element.style.width = frameElementWidth - widthModification + "px";
  51697. this.element.style.left = frameElementLeft + widthModification + "px";
  51698. this.updateMinHeightWithComments();
  51699. };
  51700. GraphFrame.prototype._expandTop = function (heightModification) {
  51701. var frameElementHeight = parseFloat(this.element.style.height.replace("px", ""));
  51702. var frameElementTop = parseFloat(this.element.style.top.replace("px", ""));
  51703. this.element.style.height = frameElementHeight - heightModification + "px";
  51704. this.element.style.top = frameElementTop + heightModification + "px";
  51705. };
  51706. GraphFrame.prototype._expandRight = function (widthModification, x) {
  51707. var frameElementWidth = parseFloat(this.element.style.width.replace("px", ""));
  51708. if ((frameElementWidth + widthModification) > 20) {
  51709. this._mouseStartPointX = x;
  51710. this.element.style.width = frameElementWidth + widthModification + "px";
  51711. }
  51712. this.updateMinHeightWithComments();
  51713. };
  51714. GraphFrame.prototype._expandBottom = function (heightModification) {
  51715. var frameElementHeight = parseFloat(this.element.style.height.replace("px", ""));
  51716. this.element.style.height = frameElementHeight + heightModification + "px";
  51717. };
  51718. GraphFrame.prototype.dispose = function () {
  51719. var _a;
  51720. if (this._onSelectionChangedObserver) {
  51721. this._ownerCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  51722. }
  51723. ;
  51724. if (this._onGraphNodeRemovalObserver) {
  51725. this._ownerCanvas.globalState.onGraphNodeRemovalObservable.remove(this._onGraphNodeRemovalObserver);
  51726. }
  51727. ;
  51728. if (this._onExposePortOnFrameObserver) {
  51729. this._ownerCanvas.globalState.onExposePortOnFrameObservable.remove(this._onExposePortOnFrameObserver);
  51730. }
  51731. ;
  51732. (_a = this.element.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild(this.element);
  51733. this._ownerCanvas.frames.splice(this._ownerCanvas.frames.indexOf(this), 1);
  51734. this.onExpandStateChanged.clear();
  51735. };
  51736. GraphFrame.prototype.serializePortData = function (exposedPorts) {
  51737. if (exposedPorts.length > 0) {
  51738. for (var i = 0; i < exposedPorts.length; ++i) {
  51739. exposedPorts[i].exposedPortPosition = i;
  51740. }
  51741. }
  51742. };
  51743. GraphFrame.prototype.serialize = function (saveCollapsedState) {
  51744. this.serializePortData(this._exposedInPorts);
  51745. this.serializePortData(this._exposedOutPorts);
  51746. return {
  51747. x: this._x,
  51748. y: this._y,
  51749. width: this._width,
  51750. height: this._height,
  51751. color: this._color.asArray(),
  51752. name: this.name,
  51753. isCollapsed: saveCollapsedState ? this.isCollapsed : true,
  51754. blocks: this.nodes.map(function (n) { return n.block.uniqueId; }),
  51755. comments: this._comments
  51756. };
  51757. };
  51758. GraphFrame.prototype.export = function () {
  51759. var state = this._ownerCanvas.globalState;
  51760. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_1__["SerializationTools"].Serialize(state.nodeMaterial, state, this);
  51761. _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].DownloadAsFile(state.hostDocument, json, this._name + ".json");
  51762. };
  51763. GraphFrame.Parse = function (serializationData, canvas, map) {
  51764. var newFrame = new GraphFrame(null, canvas, true);
  51765. var isCollapsed = !!serializationData.isCollapsed;
  51766. newFrame.x = serializationData.x;
  51767. newFrame.y = serializationData.y;
  51768. newFrame.width = serializationData.width;
  51769. newFrame.height = serializationData.height;
  51770. newFrame.name = serializationData.name;
  51771. newFrame.color = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color3"].FromArray(serializationData.color);
  51772. newFrame.comments = serializationData.comments;
  51773. if (serializationData.blocks && map) {
  51774. var _loop_2 = function () {
  51775. var actualId = map[blockId];
  51776. var node_1 = canvas.nodes.filter(function (n) { return n.block.uniqueId === actualId; });
  51777. if (node_1.length) {
  51778. newFrame.nodes.push(node_1[0]);
  51779. node_1[0].enclosingFrameId = newFrame.id;
  51780. }
  51781. };
  51782. for (var _i = 0, _a = serializationData.blocks; _i < _a.length; _i++) {
  51783. var blockId = _a[_i];
  51784. _loop_2();
  51785. }
  51786. }
  51787. else {
  51788. newFrame.refresh();
  51789. }
  51790. for (var _b = 0, _c = newFrame.nodes; _b < _c.length; _b++) {
  51791. var node = _c[_b];
  51792. for (var _d = 0, _e = node.outputPorts; _d < _e.length; _d++) { // Output
  51793. var port = _e[_d];
  51794. if (port.exposedOnFrame) {
  51795. if (port.exposedPortPosition !== -1) {
  51796. newFrame._exposedOutPorts[port.exposedPortPosition] = port;
  51797. }
  51798. }
  51799. }
  51800. for (var _f = 0, _g = node.inputPorts; _f < _g.length; _f++) { // Inports
  51801. var port = _g[_f];
  51802. if (port.exposedOnFrame) {
  51803. if (port.exposedPortPosition !== -1) {
  51804. newFrame._exposedInPorts[port.exposedPortPosition] = port;
  51805. }
  51806. }
  51807. }
  51808. }
  51809. newFrame.isCollapsed = isCollapsed;
  51810. if (isCollapsed) {
  51811. canvas._frameIsMoving = true;
  51812. newFrame._moveFrame(-(newFrame.width - newFrame.CollapsedWidth) / 2, 0);
  51813. var diff = serializationData.x - newFrame.x;
  51814. newFrame._moveFrame(diff, 0);
  51815. newFrame.cleanAccumulation();
  51816. for (var _h = 0, _j = newFrame.nodes; _h < _j.length; _h++) {
  51817. var selectedNode = _j[_h];
  51818. selectedNode.refresh();
  51819. }
  51820. canvas._frameIsMoving = false;
  51821. }
  51822. return newFrame;
  51823. };
  51824. GraphFrame._FrameCounter = 0;
  51825. GraphFrame._FramePortCounter = 0;
  51826. return GraphFrame;
  51827. }());
  51828. /***/ }),
  51829. /***/ "./diagram/graphNode.ts":
  51830. /*!******************************!*\
  51831. !*** ./diagram/graphNode.ts ***!
  51832. \******************************/
  51833. /*! exports provided: GraphNode */
  51834. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51835. "use strict";
  51836. __webpack_require__.r(__webpack_exports__);
  51837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphNode", function() { return GraphNode; });
  51838. /* harmony import */ var _propertyLedger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./propertyLedger */ "./diagram/propertyLedger.ts");
  51839. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  51840. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  51841. /* harmony import */ var _properties_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./properties/genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  51842. /* harmony import */ var _displayLedger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./displayLedger */ "./diagram/displayLedger.ts");
  51843. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  51844. var GraphNode = /** @class */ (function () {
  51845. function GraphNode(block, globalState) {
  51846. var _this = this;
  51847. this.block = block;
  51848. this._inputPorts = [];
  51849. this._outputPorts = [];
  51850. this._links = [];
  51851. this._x = 0;
  51852. this._y = 0;
  51853. this._gridAlignedX = 0;
  51854. this._gridAlignedY = 0;
  51855. this._mouseStartPointX = null;
  51856. this._mouseStartPointY = null;
  51857. this._displayManager = null;
  51858. this._isVisible = true;
  51859. this._enclosingFrameId = -1;
  51860. this._globalState = globalState;
  51861. this._onSelectionChangedObserver = this._globalState.onSelectionChangedObservable.add(function (node) {
  51862. if (node === _this) {
  51863. _this._visual.classList.add("selected");
  51864. }
  51865. else {
  51866. setTimeout(function () {
  51867. if (_this._ownerCanvas.selectedNodes.indexOf(_this) === -1) {
  51868. _this._visual.classList.remove("selected");
  51869. }
  51870. });
  51871. }
  51872. });
  51873. this._onUpdateRequiredObserver = this._globalState.onUpdateRequiredObservable.add(function () {
  51874. _this.refresh();
  51875. });
  51876. this._onSelectionBoxMovedObserver = this._globalState.onSelectionBoxMoved.add(function (rect1) {
  51877. var rect2 = _this._visual.getBoundingClientRect();
  51878. var overlap = !(rect1.right < rect2.left ||
  51879. rect1.left > rect2.right ||
  51880. rect1.bottom < rect2.top ||
  51881. rect1.top > rect2.bottom);
  51882. _this.isSelected = overlap;
  51883. });
  51884. this._onFrameCreatedObserver = this._globalState.onFrameCreatedObservable.add(function (frame) {
  51885. if (_this._ownerCanvas.frames.some(function (f) { return f.nodes.indexOf(_this) !== -1; })) {
  51886. return;
  51887. }
  51888. if (_this.isOverlappingFrame(frame)) {
  51889. frame.nodes.push(_this);
  51890. }
  51891. });
  51892. }
  51893. Object.defineProperty(GraphNode.prototype, "isVisible", {
  51894. get: function () {
  51895. return this._isVisible;
  51896. },
  51897. set: function (value) {
  51898. this._isVisible = value;
  51899. if (!value) {
  51900. this._visual.classList.add("hidden");
  51901. }
  51902. else {
  51903. this._visual.classList.remove("hidden");
  51904. this._upateNodePortNames();
  51905. }
  51906. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  51907. var link = _a[_i];
  51908. link.isVisible = value;
  51909. }
  51910. this._refreshLinks();
  51911. },
  51912. enumerable: false,
  51913. configurable: true
  51914. });
  51915. GraphNode.prototype._upateNodePortNames = function () {
  51916. for (var _i = 0, _a = this._inputPorts.concat(this._outputPorts); _i < _a.length; _i++) {
  51917. var port = _a[_i];
  51918. if (port.hasLabel()) {
  51919. port.portName = port.connectionPoint.displayName || port.connectionPoint.name;
  51920. }
  51921. }
  51922. };
  51923. Object.defineProperty(GraphNode.prototype, "outputPorts", {
  51924. get: function () {
  51925. return this._outputPorts;
  51926. },
  51927. enumerable: false,
  51928. configurable: true
  51929. });
  51930. Object.defineProperty(GraphNode.prototype, "inputPorts", {
  51931. get: function () {
  51932. return this._inputPorts;
  51933. },
  51934. enumerable: false,
  51935. configurable: true
  51936. });
  51937. Object.defineProperty(GraphNode.prototype, "links", {
  51938. get: function () {
  51939. return this._links;
  51940. },
  51941. enumerable: false,
  51942. configurable: true
  51943. });
  51944. Object.defineProperty(GraphNode.prototype, "gridAlignedX", {
  51945. get: function () {
  51946. return this._gridAlignedX;
  51947. },
  51948. enumerable: false,
  51949. configurable: true
  51950. });
  51951. Object.defineProperty(GraphNode.prototype, "gridAlignedY", {
  51952. get: function () {
  51953. return this._gridAlignedY;
  51954. },
  51955. enumerable: false,
  51956. configurable: true
  51957. });
  51958. Object.defineProperty(GraphNode.prototype, "x", {
  51959. get: function () {
  51960. return this._x;
  51961. },
  51962. set: function (value) {
  51963. if (this._x === value) {
  51964. return;
  51965. }
  51966. this._x = value;
  51967. this._gridAlignedX = this._ownerCanvas.getGridPosition(value);
  51968. this._visual.style.left = this._gridAlignedX + "px";
  51969. this._refreshLinks();
  51970. this._refreshFrames();
  51971. },
  51972. enumerable: false,
  51973. configurable: true
  51974. });
  51975. Object.defineProperty(GraphNode.prototype, "y", {
  51976. get: function () {
  51977. return this._y;
  51978. },
  51979. set: function (value) {
  51980. if (this._y === value) {
  51981. return;
  51982. }
  51983. this._y = value;
  51984. this._gridAlignedY = this._ownerCanvas.getGridPosition(value);
  51985. this._visual.style.top = this._gridAlignedY + "px";
  51986. this._refreshLinks();
  51987. this._refreshFrames();
  51988. },
  51989. enumerable: false,
  51990. configurable: true
  51991. });
  51992. Object.defineProperty(GraphNode.prototype, "width", {
  51993. get: function () {
  51994. return this._visual.clientWidth;
  51995. },
  51996. enumerable: false,
  51997. configurable: true
  51998. });
  51999. Object.defineProperty(GraphNode.prototype, "height", {
  52000. get: function () {
  52001. return this._visual.clientHeight;
  52002. },
  52003. enumerable: false,
  52004. configurable: true
  52005. });
  52006. Object.defineProperty(GraphNode.prototype, "id", {
  52007. get: function () {
  52008. return this.block.uniqueId;
  52009. },
  52010. enumerable: false,
  52011. configurable: true
  52012. });
  52013. Object.defineProperty(GraphNode.prototype, "name", {
  52014. get: function () {
  52015. return this.block.name;
  52016. },
  52017. enumerable: false,
  52018. configurable: true
  52019. });
  52020. Object.defineProperty(GraphNode.prototype, "isSelected", {
  52021. get: function () {
  52022. return this._isSelected;
  52023. },
  52024. set: function (value) {
  52025. if (this._isSelected === value) {
  52026. return;
  52027. }
  52028. this._isSelected = value;
  52029. if (!value) {
  52030. this._visual.classList.remove("selected");
  52031. var indexInSelection = this._ownerCanvas.selectedNodes.indexOf(this);
  52032. if (indexInSelection > -1) {
  52033. this._ownerCanvas.selectedNodes.splice(indexInSelection, 1);
  52034. }
  52035. }
  52036. else {
  52037. this._globalState.onSelectionChangedObservable.notifyObservers(this);
  52038. }
  52039. },
  52040. enumerable: false,
  52041. configurable: true
  52042. });
  52043. Object.defineProperty(GraphNode.prototype, "enclosingFrameId", {
  52044. get: function () {
  52045. return this._enclosingFrameId;
  52046. },
  52047. set: function (value) {
  52048. this._enclosingFrameId = value;
  52049. },
  52050. enumerable: false,
  52051. configurable: true
  52052. });
  52053. GraphNode.prototype.isOverlappingFrame = function (frame) {
  52054. var rect2 = this._visual.getBoundingClientRect();
  52055. var rect1 = frame.element.getBoundingClientRect();
  52056. // Add a tiny margin
  52057. rect1.width -= 5;
  52058. rect1.height -= 5;
  52059. var isOverlappingFrame = !(rect1.right < rect2.left ||
  52060. rect1.left > rect2.right ||
  52061. rect1.bottom < rect2.top ||
  52062. rect1.top > rect2.bottom);
  52063. if (isOverlappingFrame) {
  52064. this.enclosingFrameId = frame.id;
  52065. }
  52066. return isOverlappingFrame;
  52067. };
  52068. GraphNode.prototype.getPortForConnectionPoint = function (point) {
  52069. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  52070. var port = _a[_i];
  52071. var attachedPoint = port.connectionPoint;
  52072. if (attachedPoint === point) {
  52073. return port;
  52074. }
  52075. }
  52076. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  52077. var port = _c[_b];
  52078. var attachedPoint = port.connectionPoint;
  52079. if (attachedPoint === point) {
  52080. return port;
  52081. }
  52082. }
  52083. return null;
  52084. };
  52085. GraphNode.prototype.getLinksForConnectionPoint = function (point) {
  52086. return this._links.filter(function (link) { return link.portA.connectionPoint === point || link.portB.connectionPoint === point; });
  52087. };
  52088. GraphNode.prototype._refreshFrames = function () {
  52089. if (this._ownerCanvas._frameIsMoving || this._ownerCanvas._isLoading) {
  52090. return;
  52091. }
  52092. // Frames
  52093. for (var _i = 0, _a = this._ownerCanvas.frames; _i < _a.length; _i++) {
  52094. var frame = _a[_i];
  52095. frame.syncNode(this);
  52096. }
  52097. };
  52098. GraphNode.prototype._refreshLinks = function () {
  52099. if (this._ownerCanvas._isLoading) {
  52100. return;
  52101. }
  52102. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  52103. var link = _a[_i];
  52104. link.update();
  52105. }
  52106. };
  52107. GraphNode.prototype.refresh = function () {
  52108. var _this = this;
  52109. if (this._displayManager) {
  52110. this._header.innerHTML = this._displayManager.getHeaderText(this.block);
  52111. this._displayManager.updatePreviewContent(this.block, this._content);
  52112. this._visual.style.background = this._displayManager.getBackgroundColor(this.block);
  52113. var additionalClass = this._displayManager.getHeaderClass(this.block);
  52114. this._header.classList.value = "header";
  52115. if (additionalClass) {
  52116. this._header.classList.add(additionalClass);
  52117. }
  52118. }
  52119. else {
  52120. this._header.innerHTML = this.block.name;
  52121. }
  52122. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  52123. var port = _a[_i];
  52124. port.refresh();
  52125. }
  52126. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  52127. var port = _c[_b];
  52128. port.refresh();
  52129. }
  52130. if (this.enclosingFrameId !== -1) {
  52131. var index = this._ownerCanvas.frames.findIndex(function (frame) { return frame.id === _this.enclosingFrameId; });
  52132. if (index >= 0 && this._ownerCanvas.frames[index].isCollapsed) {
  52133. this._ownerCanvas.frames[index].redrawFramePorts();
  52134. }
  52135. }
  52136. this._comments.innerHTML = this.block.comments || "";
  52137. this._comments.title = this.block.comments || "";
  52138. };
  52139. GraphNode.prototype._onDown = function (evt) {
  52140. // Check if this is coming from the port
  52141. if (evt.srcElement && evt.srcElement.nodeName === "IMG") {
  52142. return;
  52143. }
  52144. var indexInSelection = this._ownerCanvas.selectedNodes.indexOf(this);
  52145. if (indexInSelection === -1) {
  52146. this._globalState.onSelectionChangedObservable.notifyObservers(this);
  52147. }
  52148. else if (evt.ctrlKey) {
  52149. this.isSelected = false;
  52150. }
  52151. evt.stopPropagation();
  52152. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  52153. var selectedNode = _a[_i];
  52154. selectedNode.cleanAccumulation();
  52155. }
  52156. this._mouseStartPointX = evt.clientX;
  52157. this._mouseStartPointY = evt.clientY;
  52158. this._visual.setPointerCapture(evt.pointerId);
  52159. };
  52160. GraphNode.prototype.cleanAccumulation = function (useCeil) {
  52161. if (useCeil === void 0) { useCeil = false; }
  52162. this.x = this._ownerCanvas.getGridPosition(this.x, useCeil);
  52163. this.y = this._ownerCanvas.getGridPosition(this.y, useCeil);
  52164. };
  52165. GraphNode.prototype._onUp = function (evt) {
  52166. evt.stopPropagation();
  52167. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  52168. var selectedNode = _a[_i];
  52169. selectedNode.cleanAccumulation();
  52170. }
  52171. this._mouseStartPointX = null;
  52172. this._mouseStartPointY = null;
  52173. this._visual.releasePointerCapture(evt.pointerId);
  52174. };
  52175. GraphNode.prototype._onMove = function (evt) {
  52176. if (this._mouseStartPointX === null || this._mouseStartPointY === null || evt.ctrlKey) {
  52177. return;
  52178. }
  52179. var newX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
  52180. var newY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
  52181. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  52182. var selectedNode = _a[_i];
  52183. selectedNode.x += newX;
  52184. selectedNode.y += newY;
  52185. }
  52186. this._mouseStartPointX = evt.clientX;
  52187. this._mouseStartPointY = evt.clientY;
  52188. evt.stopPropagation();
  52189. };
  52190. GraphNode.prototype.renderProperties = function () {
  52191. var control = _propertyLedger__WEBPACK_IMPORTED_MODULE_0__["PropertyLedger"].RegisteredControls[this.block.getClassName()];
  52192. if (!control) {
  52193. control = _properties_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__["GenericPropertyComponent"];
  52194. }
  52195. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](control, {
  52196. globalState: this._globalState,
  52197. block: this.block
  52198. });
  52199. };
  52200. GraphNode.prototype.appendVisual = function (root, owner) {
  52201. var _this = this;
  52202. this._ownerCanvas = owner;
  52203. // Display manager
  52204. var displayManagerClass = _displayLedger__WEBPACK_IMPORTED_MODULE_3__["DisplayLedger"].RegisteredControls[this.block.getClassName()];
  52205. if (displayManagerClass) {
  52206. this._displayManager = new displayManagerClass();
  52207. }
  52208. // DOM
  52209. this._visual = root.ownerDocument.createElement("div");
  52210. this._visual.classList.add("visual");
  52211. this._visual.addEventListener("pointerdown", function (evt) { return _this._onDown(evt); });
  52212. this._visual.addEventListener("pointerup", function (evt) { return _this._onUp(evt); });
  52213. this._visual.addEventListener("pointermove", function (evt) { return _this._onMove(evt); });
  52214. this._header = root.ownerDocument.createElement("div");
  52215. this._header.classList.add("header");
  52216. this._visual.appendChild(this._header);
  52217. this._connections = root.ownerDocument.createElement("div");
  52218. this._connections.classList.add("connections");
  52219. this._visual.appendChild(this._connections);
  52220. this._inputsContainer = root.ownerDocument.createElement("div");
  52221. this._inputsContainer.classList.add("inputsContainer");
  52222. this._connections.appendChild(this._inputsContainer);
  52223. this._outputsContainer = root.ownerDocument.createElement("div");
  52224. this._outputsContainer.classList.add("outputsContainer");
  52225. this._connections.appendChild(this._outputsContainer);
  52226. this._content = root.ownerDocument.createElement("div");
  52227. this._content.classList.add("content");
  52228. this._visual.appendChild(this._content);
  52229. var selectionBorder = root.ownerDocument.createElement("div");
  52230. selectionBorder.classList.add("selection-border");
  52231. this._visual.appendChild(selectionBorder);
  52232. root.appendChild(this._visual);
  52233. // Comments
  52234. this._comments = root.ownerDocument.createElement("div");
  52235. this._comments.classList.add("comments");
  52236. this._visual.appendChild(this._comments);
  52237. // Connections
  52238. for (var _i = 0, _a = this.block.inputs; _i < _a.length; _i++) {
  52239. var input = _a[_i];
  52240. this._inputPorts.push(_nodePort__WEBPACK_IMPORTED_MODULE_4__["NodePort"].CreatePortElement(input, this, this._inputsContainer, this._displayManager, this._globalState));
  52241. }
  52242. for (var _b = 0, _c = this.block.outputs; _b < _c.length; _b++) {
  52243. var output = _c[_b];
  52244. this._outputPorts.push(_nodePort__WEBPACK_IMPORTED_MODULE_4__["NodePort"].CreatePortElement(output, this, this._outputsContainer, this._displayManager, this._globalState));
  52245. }
  52246. this.refresh();
  52247. };
  52248. GraphNode.prototype.dispose = function () {
  52249. // notify frame observers that this node is being deleted
  52250. this._globalState.onGraphNodeRemovalObservable.notifyObservers(this);
  52251. if (this._onSelectionChangedObserver) {
  52252. this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  52253. }
  52254. if (this._onUpdateRequiredObserver) {
  52255. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  52256. }
  52257. if (this._onSelectionBoxMovedObserver) {
  52258. this._globalState.onSelectionBoxMoved.remove(this._onSelectionBoxMovedObserver);
  52259. }
  52260. if (this._visual.parentElement) {
  52261. this._visual.parentElement.removeChild(this._visual);
  52262. }
  52263. if (this._onFrameCreatedObserver) {
  52264. this._globalState.onFrameCreatedObservable.remove(this._onFrameCreatedObserver);
  52265. }
  52266. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  52267. var port = _a[_i];
  52268. port.dispose();
  52269. }
  52270. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  52271. var port = _c[_b];
  52272. port.dispose();
  52273. }
  52274. var links = this._links.slice(0);
  52275. for (var _d = 0, links_1 = links; _d < links_1.length; _d++) {
  52276. var link = links_1[_d];
  52277. link.dispose();
  52278. }
  52279. this.block.dispose();
  52280. };
  52281. return GraphNode;
  52282. }());
  52283. /***/ }),
  52284. /***/ "./diagram/nodeLink.ts":
  52285. /*!*****************************!*\
  52286. !*** ./diagram/nodeLink.ts ***!
  52287. \*****************************/
  52288. /*! exports provided: NodeLink */
  52289. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52290. "use strict";
  52291. __webpack_require__.r(__webpack_exports__);
  52292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeLink", function() { return NodeLink; });
  52293. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  52294. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  52295. var NodeLink = /** @class */ (function () {
  52296. function NodeLink(graphCanvas, portA, nodeA, portB, nodeB) {
  52297. var _this = this;
  52298. this._isVisible = true;
  52299. this.onDisposedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  52300. this._portA = portA;
  52301. this._portB = portB;
  52302. this._nodeA = nodeA;
  52303. this._nodeB = nodeB;
  52304. this._graphCanvas = graphCanvas;
  52305. var document = portA.element.ownerDocument;
  52306. var svg = graphCanvas.svgCanvas;
  52307. // Create path
  52308. this._path = document.createElementNS('http://www.w3.org/2000/svg', "path");
  52309. this._path.setAttribute("fill", "none");
  52310. this._path.classList.add("link");
  52311. svg.appendChild(this._path);
  52312. this._selectionPath = document.createElementNS('http://www.w3.org/2000/svg', "path");
  52313. this._selectionPath.setAttribute("fill", "none");
  52314. this._selectionPath.classList.add("selection-link");
  52315. svg.appendChild(this._selectionPath);
  52316. this._selectionPath.onmousedown = function () { return _this.onClick(); };
  52317. if (this._portB) {
  52318. // Update
  52319. this.update();
  52320. }
  52321. this._onSelectionChangedObserver = this._graphCanvas.globalState.onSelectionChangedObservable.add(function (selection) {
  52322. if (selection === _this) {
  52323. _this._path.classList.add("selected");
  52324. _this._selectionPath.classList.add("selected");
  52325. }
  52326. else {
  52327. _this._path.classList.remove("selected");
  52328. _this._selectionPath.classList.remove("selected");
  52329. }
  52330. });
  52331. }
  52332. Object.defineProperty(NodeLink.prototype, "isVisible", {
  52333. get: function () {
  52334. return this._isVisible;
  52335. },
  52336. set: function (value) {
  52337. this._isVisible = value;
  52338. if (!value) {
  52339. this._path.classList.add("hidden");
  52340. this._selectionPath.classList.add("hidden");
  52341. }
  52342. else {
  52343. this._path.classList.remove("hidden");
  52344. this._selectionPath.classList.remove("hidden");
  52345. }
  52346. this.update();
  52347. },
  52348. enumerable: false,
  52349. configurable: true
  52350. });
  52351. Object.defineProperty(NodeLink.prototype, "portA", {
  52352. get: function () {
  52353. return this._portA;
  52354. },
  52355. enumerable: false,
  52356. configurable: true
  52357. });
  52358. Object.defineProperty(NodeLink.prototype, "portB", {
  52359. get: function () {
  52360. return this._portB;
  52361. },
  52362. enumerable: false,
  52363. configurable: true
  52364. });
  52365. Object.defineProperty(NodeLink.prototype, "nodeA", {
  52366. get: function () {
  52367. return this._nodeA;
  52368. },
  52369. enumerable: false,
  52370. configurable: true
  52371. });
  52372. Object.defineProperty(NodeLink.prototype, "nodeB", {
  52373. get: function () {
  52374. return this._nodeB;
  52375. },
  52376. enumerable: false,
  52377. configurable: true
  52378. });
  52379. NodeLink.prototype.update = function (endX, endY, straight) {
  52380. if (endX === void 0) { endX = 0; }
  52381. if (endY === void 0) { endY = 0; }
  52382. if (straight === void 0) { straight = false; }
  52383. var rectA = this._portA.element.getBoundingClientRect();
  52384. var rootRect = this._graphCanvas.canvasContainer.getBoundingClientRect();
  52385. var zoom = this._graphCanvas.zoom;
  52386. var xOffset = rootRect.left;
  52387. var yOffset = rootRect.top;
  52388. var startX = (rectA.left - xOffset + 0.5 * rectA.width) / zoom;
  52389. var startY = (rectA.top - yOffset + 0.5 * rectA.height) / zoom;
  52390. if (this._portB) {
  52391. var rectB = this._portB.element.getBoundingClientRect();
  52392. endX = (rectB.left - xOffset + 0.5 * rectB.width) / zoom;
  52393. endY = (rectB.top - yOffset + 0.5 * rectB.height) / zoom;
  52394. }
  52395. if (straight) {
  52396. this._path.setAttribute("d", "M" + startX + "," + startY + " L" + endX + "," + endY);
  52397. this._path.setAttribute("stroke-dasharray", "10, 10");
  52398. this._path.setAttribute("stroke-linecap", "round");
  52399. }
  52400. else {
  52401. var deltaX = endX - startX;
  52402. var deltaY = endY - startY;
  52403. var tangentLength = Math.min(Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 0.5, 300);
  52404. this._path.setAttribute("d", "M" + startX + "," + startY + " C" + (startX + tangentLength) + "," + startY + " " + (endX - tangentLength) + "," + endY + " " + endX + "," + endY);
  52405. this._selectionPath.setAttribute("d", "M" + startX + "," + startY + " C" + (startX + tangentLength) + "," + startY + " " + (endX - tangentLength) + "," + endY + " " + endX + "," + endY);
  52406. }
  52407. this._path.setAttribute("stroke", this._portA.element.style.backgroundColor);
  52408. };
  52409. NodeLink.prototype.onClick = function () {
  52410. this._graphCanvas.globalState.onSelectionChangedObservable.notifyObservers(this);
  52411. };
  52412. NodeLink.prototype.dispose = function (notify) {
  52413. if (notify === void 0) { notify = true; }
  52414. this._graphCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  52415. if (this._path.parentElement) {
  52416. this._path.parentElement.removeChild(this._path);
  52417. }
  52418. if (this._selectionPath.parentElement) {
  52419. this._selectionPath.parentElement.removeChild(this._selectionPath);
  52420. }
  52421. if (this._nodeB) {
  52422. this._nodeA.links.splice(this._nodeA.links.indexOf(this), 1);
  52423. this._nodeB.links.splice(this._nodeB.links.indexOf(this), 1);
  52424. this._graphCanvas.links.splice(this._graphCanvas.links.indexOf(this), 1);
  52425. this._portA.connectionPoint.disconnectFrom(this._portB.connectionPoint);
  52426. }
  52427. if (notify) {
  52428. this.onDisposedObservable.notifyObservers(this);
  52429. this.onDisposedObservable.clear();
  52430. }
  52431. };
  52432. return NodeLink;
  52433. }());
  52434. /***/ }),
  52435. /***/ "./diagram/nodePort.ts":
  52436. /*!*****************************!*\
  52437. !*** ./diagram/nodePort.ts ***!
  52438. \*****************************/
  52439. /*! exports provided: NodePort */
  52440. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52441. "use strict";
  52442. __webpack_require__.r(__webpack_exports__);
  52443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodePort", function() { return NodePort; });
  52444. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blockTools */ "./blockTools.ts");
  52445. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  52446. /* 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__);
  52447. var NodePort = /** @class */ (function () {
  52448. function NodePort(portContainer, connectionPoint, node, globalState) {
  52449. var _this = this;
  52450. this.connectionPoint = connectionPoint;
  52451. this.node = node;
  52452. this.delegatedPort = null;
  52453. this._element = portContainer.ownerDocument.createElement("div");
  52454. this._element.classList.add("port");
  52455. portContainer.appendChild(this._element);
  52456. this._globalState = globalState;
  52457. this._img = portContainer.ownerDocument.createElement("img");
  52458. this._element.appendChild(this._img);
  52459. // determine if node name is editable
  52460. if (portContainer.children[0].className === 'port-label') {
  52461. this._portLabelElement = portContainer.children[0];
  52462. }
  52463. this._element.port = this;
  52464. // Drag support
  52465. this._element.ondragstart = function () { return false; };
  52466. this._onCandidateLinkMovedObserver = globalState.onCandidateLinkMoved.add(function (coords) {
  52467. var rect = _this._element.getBoundingClientRect();
  52468. if (!coords || rect.left > coords.x || rect.right < coords.x || rect.top > coords.y || rect.bottom < coords.y) {
  52469. _this._element.classList.remove("selected");
  52470. return;
  52471. }
  52472. _this._element.classList.add("selected");
  52473. _this._globalState.onCandidatePortSelectedObservable.notifyObservers(_this);
  52474. });
  52475. this._onSelectionChangedObserver = this._globalState.onSelectionChangedObservable.add(function (selection) {
  52476. if (selection === _this) {
  52477. _this._img.classList.add("selected");
  52478. }
  52479. else {
  52480. _this._img.classList.remove("selected");
  52481. }
  52482. });
  52483. this.refresh();
  52484. }
  52485. Object.defineProperty(NodePort.prototype, "element", {
  52486. get: function () {
  52487. if (this.delegatedPort) {
  52488. return this.delegatedPort.element;
  52489. }
  52490. return this._element;
  52491. },
  52492. enumerable: false,
  52493. configurable: true
  52494. });
  52495. Object.defineProperty(NodePort.prototype, "portName", {
  52496. get: function () {
  52497. var portName = this.connectionPoint.displayName || this.connectionPoint.name;
  52498. if (this.connectionPoint.ownerBlock.isInput) {
  52499. portName = this.node.name;
  52500. }
  52501. return portName;
  52502. },
  52503. set: function (newName) {
  52504. if (this._portLabelElement) {
  52505. this.connectionPoint.displayName = newName;
  52506. this._portLabelElement.innerHTML = newName;
  52507. }
  52508. },
  52509. enumerable: false,
  52510. configurable: true
  52511. });
  52512. Object.defineProperty(NodePort.prototype, "disabled", {
  52513. get: function () {
  52514. if (!this.connectionPoint.isConnected) {
  52515. return false;
  52516. }
  52517. else if (this._isConnectedToNodeOutsideOfFrame()) { //connected to outside node
  52518. return true;
  52519. }
  52520. else {
  52521. var link = this.node.getLinksForConnectionPoint(this.connectionPoint);
  52522. if (link.length) {
  52523. if (link[0].nodeB === this.node) { // check if this node is the receiving
  52524. return true;
  52525. }
  52526. }
  52527. }
  52528. return false;
  52529. },
  52530. enumerable: false,
  52531. configurable: true
  52532. });
  52533. NodePort.prototype.hasLabel = function () {
  52534. return !!this._portLabelElement;
  52535. };
  52536. Object.defineProperty(NodePort.prototype, "exposedOnFrame", {
  52537. get: function () {
  52538. if (!!this.connectionPoint.isExposedOnFrame || this._isConnectedToNodeOutsideOfFrame()) {
  52539. return true;
  52540. }
  52541. return false;
  52542. },
  52543. set: function (value) {
  52544. if (this.disabled) {
  52545. return;
  52546. }
  52547. this.connectionPoint.isExposedOnFrame = value;
  52548. },
  52549. enumerable: false,
  52550. configurable: true
  52551. });
  52552. Object.defineProperty(NodePort.prototype, "exposedPortPosition", {
  52553. get: function () {
  52554. return this.connectionPoint.exposedPortPosition;
  52555. },
  52556. set: function (value) {
  52557. this.connectionPoint.exposedPortPosition = value;
  52558. },
  52559. enumerable: false,
  52560. configurable: true
  52561. });
  52562. NodePort.prototype._isConnectedToNodeOutsideOfFrame = function () {
  52563. var link = this.node.getLinksForConnectionPoint(this.connectionPoint);
  52564. if (link.length) {
  52565. for (var i = 0; i < link.length; i++) {
  52566. if (link[i].nodeA.enclosingFrameId !== link[i].nodeB.enclosingFrameId) {
  52567. return true;
  52568. }
  52569. }
  52570. }
  52571. return false;
  52572. };
  52573. NodePort.prototype.refresh = function () {
  52574. this._element.style.background = _blockTools__WEBPACK_IMPORTED_MODULE_0__["BlockTools"].GetColorFromConnectionNodeType(this.connectionPoint.type);
  52575. switch (this.connectionPoint.type) {
  52576. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Float:
  52577. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Int:
  52578. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+";
  52579. break;
  52580. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  52581. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IyPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLDEwLjVhNy41Miw3LjUyLDAsMCwwLDYuNSw3LjQzVjMuMDdBNy41Miw3LjUyLDAsMCwwLDMsMTAuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDMuMDdWMTcuOTNhNy41LDcuNSwwLDAsMCwwLTE0Ljg2WiIvPjwvZz48L3N2Zz4=";
  52582. break;
  52583. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  52584. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color3:
  52585. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IzPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLjU3LDEzLjMxLDkuNSw5Ljg5VjNBNy41MSw3LjUxLDAsMCwwLDMsMTAuNDYsNy4zMiw3LjMyLDAsMCwwLDMuNTcsMTMuMzFaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTYuNDMsMTUsMTAuNSwxMS42Miw0LjU3LDE1YTcuNDgsNy40OCwwLDAsMCwxMS44NiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE4LDEwLjQ2QTcuNTEsNy41MSwwLDAsMCwxMS41LDNWOS44OWw1LjkzLDMuNDJBNy4zMiw3LjMyLDAsMCwwLDE4LDEwLjQ2WiIvPjwvZz48L3N2Zz4=";
  52586. break;
  52587. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  52588. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color4:
  52589. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3I0PC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDExLjV2Ni40M2E3LjUxLDcuNTEsMCwwLDAsNi40My02LjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN1Y5LjVoNi40M0E3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSwxNy45M1YxMS41SDMuMDdBNy41MSw3LjUxLDAsMCwwLDkuNSwxNy45M1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVIOS41WiIvPjwvZz48L3N2Zz4=";
  52590. break;
  52591. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  52592. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5NYXRyaXg8L3RpdGxlPjxnIGlkPSJMYXllcl81IiBkYXRhLW5hbWU9IkxheWVyIDUiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsNi4xMVY5LjVoMy4zOUE0LjUxLDQuNTEsMCwwLDAsMTEuNSw2LjExWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMTQuODlhNC41MSw0LjUxLDAsMCwwLDMuMzktMy4zOUgxMS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN3YyQTUuNTQsNS41NCwwLDAsMSwxNS45Miw5LjVoMkE3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE1LjkyLDExLjVhNS41NCw1LjU0LDAsMCwxLTQuNDIsNC40MnYyYTcuNTEsNy41MSwwLDAsMCw2LjQzLTYuNDNaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4wOCwxMS41aC0yQTcuNTEsNy41MSwwLDAsMCw5LjUsMTcuOTN2LTJBNS41NCw1LjU0LDAsMCwxLDUuMDgsMTEuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVoMkE1LjU0LDUuNTQsMCwwLDEsOS41LDUuMDhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS41LDExLjVINi4xMUE0LjUxLDQuNTEsMCwwLDAsOS41LDE0Ljg5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSw2LjExQTQuNTEsNC41MSwwLDAsMCw2LjExLDkuNUg5LjVaIi8+PC9nPjwvc3ZnPg==";
  52593. break;
  52594. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Object:
  52595. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMSIgaGVpZ2h0PSIyMSIgdmlld0JveD0iMCAwIDIxIDIxIj48Y2lyY2xlIGN4PSI3LjEiIGN5PSIxMy4wOCIgcj0iMy4yNSIgc3R5bGU9ImZpbGw6I2ZmZiIvPjxwYXRoIGQ9Ik0xMC40OSwzQTcuNTIsNy41MiwwLDAsMCwzLDEwYTUuMTMsNS4xMywwLDEsMSw2LDcuODUsNy42MSw3LjYxLDAsMCwwLDEuNTIuMTYsNy41Miw3LjUyLDAsMCwwLDAtMTVaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+";
  52596. this._img.style.width = "100%"; // it's so that the svg is correctly centered inside the outer circle
  52597. this._img.style.height = "100%";
  52598. break;
  52599. }
  52600. };
  52601. NodePort.prototype.dispose = function () {
  52602. this._globalState.onCandidateLinkMoved.remove(this._onCandidateLinkMovedObserver);
  52603. if (this._onSelectionChangedObserver) {
  52604. this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  52605. }
  52606. };
  52607. NodePort.CreatePortElement = function (connectionPoint, node, root, displayManager, globalState) {
  52608. var portContainer = root.ownerDocument.createElement("div");
  52609. var block = connectionPoint.ownerBlock;
  52610. portContainer.classList.add("portLine");
  52611. root.appendChild(portContainer);
  52612. if (!displayManager || displayManager.shouldDisplayPortLabels(block)) {
  52613. var portLabel = root.ownerDocument.createElement("div");
  52614. portLabel.classList.add("port-label");
  52615. portLabel.innerHTML = connectionPoint.displayName || connectionPoint.name;
  52616. portContainer.appendChild(portLabel);
  52617. }
  52618. return new NodePort(portContainer, connectionPoint, node, globalState);
  52619. };
  52620. return NodePort;
  52621. }());
  52622. /***/ }),
  52623. /***/ "./diagram/properties/frameNodePortPropertyComponent.tsx":
  52624. /*!***************************************************************!*\
  52625. !*** ./diagram/properties/frameNodePortPropertyComponent.tsx ***!
  52626. \***************************************************************/
  52627. /*! exports provided: FrameNodePortPropertyTabComponent */
  52628. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52629. "use strict";
  52630. __webpack_require__.r(__webpack_exports__);
  52631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FrameNodePortPropertyTabComponent", function() { return FrameNodePortPropertyTabComponent; });
  52632. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52633. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52634. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52635. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  52636. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  52637. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  52638. /* harmony import */ var _graphFrame__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../graphFrame */ "./diagram/graphFrame.ts");
  52639. /* harmony import */ var _graphCanvas__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../graphCanvas */ "./diagram/graphCanvas.tsx");
  52640. var FrameNodePortPropertyTabComponent = /** @class */ (function (_super) {
  52641. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FrameNodePortPropertyTabComponent, _super);
  52642. function FrameNodePortPropertyTabComponent(props) {
  52643. var _this_1 = _super.call(this, props) || this;
  52644. _this_1.state = {
  52645. port: _this_1.props.frameNodePort
  52646. };
  52647. var _this = _this_1;
  52648. _this_1._onSelectionChangedObserver = _this_1.props.globalState.onSelectionChangedObservable.add(function (selection) {
  52649. if (Object(_graphCanvas__WEBPACK_IMPORTED_MODULE_6__["isFramePortData"])(selection)) {
  52650. selection.port.onFramePortPositionChangedObservable.clear();
  52651. _this._onFramePortPositionChangedObserver = selection.port.onFramePortPositionChangedObservable.add(function (port) {
  52652. _this.setState({ port: port });
  52653. });
  52654. _this.setState({ port: selection.port });
  52655. }
  52656. });
  52657. _this_1._onFramePortPositionChangedObserver = _this_1.props.frameNodePort.onFramePortPositionChangedObservable.add(function (port) {
  52658. _this.setState({ port: port });
  52659. });
  52660. return _this_1;
  52661. }
  52662. FrameNodePortPropertyTabComponent.prototype.componentWillUnmount = function () {
  52663. this.props.frameNodePort.onFramePortPositionChangedObservable.remove(this._onFramePortPositionChangedObserver);
  52664. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  52665. };
  52666. FrameNodePortPropertyTabComponent.prototype.render = function () {
  52667. var _this_1 = this;
  52668. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  52669. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  52670. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  52671. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  52672. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  52673. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  52674. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Port Name", propertyName: "portName", target: this.props.frameNodePort }),
  52675. this.props.frameNodePort.framePortPosition !== _graphFrame__WEBPACK_IMPORTED_MODULE_5__["FramePortPosition"].Top && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Move Port Up", onClick: function () {
  52676. _this_1.props.frame.moveFramePortUp(_this_1.props.frameNodePort);
  52677. } }),
  52678. this.props.frameNodePort.framePortPosition !== _graphFrame__WEBPACK_IMPORTED_MODULE_5__["FramePortPosition"].Bottom && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__["ButtonLineComponent"], { label: "Move Port Down", onClick: function () {
  52679. _this_1.props.frame.moveFramePortDown(_this_1.props.frameNodePort);
  52680. } })))));
  52681. };
  52682. return FrameNodePortPropertyTabComponent;
  52683. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52684. /***/ }),
  52685. /***/ "./diagram/properties/framePropertyComponent.tsx":
  52686. /*!*******************************************************!*\
  52687. !*** ./diagram/properties/framePropertyComponent.tsx ***!
  52688. \*******************************************************/
  52689. /*! exports provided: FramePropertyTabComponent */
  52690. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52691. "use strict";
  52692. __webpack_require__.r(__webpack_exports__);
  52693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FramePropertyTabComponent", function() { return FramePropertyTabComponent; });
  52694. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52695. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52696. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52697. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  52698. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  52699. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  52700. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  52701. var FramePropertyTabComponent = /** @class */ (function (_super) {
  52702. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FramePropertyTabComponent, _super);
  52703. function FramePropertyTabComponent(props) {
  52704. return _super.call(this, props) || this;
  52705. }
  52706. FramePropertyTabComponent.prototype.componentDidMount = function () {
  52707. var _this = this;
  52708. this.onFrameExpandStateChangedObserver = this.props.frame.onExpandStateChanged.add(function () { return _this.forceUpdate(); });
  52709. };
  52710. FramePropertyTabComponent.prototype.componentWillUnmount = function () {
  52711. if (this.onFrameExpandStateChangedObserver) {
  52712. this.props.frame.onExpandStateChanged.remove(this.onFrameExpandStateChangedObserver);
  52713. this.onFrameExpandStateChangedObserver = null;
  52714. }
  52715. };
  52716. FramePropertyTabComponent.prototype.render = function () {
  52717. var _this = this;
  52718. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  52719. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  52720. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  52721. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  52722. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  52723. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  52724. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: this.props.frame }),
  52725. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_3__["Color3LineComponent"], { globalState: this.props.globalState, label: "Color", target: this.props.frame, propertyName: "color" }),
  52726. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Comments", propertyName: "comments", target: this.props.frame }),
  52727. !this.props.frame.isCollapsed &&
  52728. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Collapse", onClick: function () {
  52729. _this.props.frame.isCollapsed = true;
  52730. } }),
  52731. this.props.frame.isCollapsed &&
  52732. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Expand", onClick: function () {
  52733. _this.props.frame.isCollapsed = false;
  52734. } }),
  52735. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Export", onClick: function () {
  52736. _this.props.frame.export();
  52737. } })))));
  52738. };
  52739. return FramePropertyTabComponent;
  52740. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52741. /***/ }),
  52742. /***/ "./diagram/properties/genericNodePropertyComponent.tsx":
  52743. /*!*************************************************************!*\
  52744. !*** ./diagram/properties/genericNodePropertyComponent.tsx ***!
  52745. \*************************************************************/
  52746. /*! exports provided: GenericPropertyComponent, GeneralPropertyTabComponent, GenericPropertyTabComponent */
  52747. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52748. "use strict";
  52749. __webpack_require__.r(__webpack_exports__);
  52750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericPropertyComponent", function() { return GenericPropertyComponent; });
  52751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeneralPropertyTabComponent", function() { return GeneralPropertyTabComponent; });
  52752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericPropertyTabComponent", function() { return GenericPropertyTabComponent; });
  52753. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52754. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52755. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52756. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  52757. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  52758. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  52759. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  52760. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  52761. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  52762. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  52763. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  52764. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialDecorator */ "babylonjs/Misc/dataStorage");
  52765. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__);
  52766. var GenericPropertyComponent = /** @class */ (function (_super) {
  52767. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GenericPropertyComponent, _super);
  52768. function GenericPropertyComponent(props) {
  52769. return _super.call(this, props) || this;
  52770. }
  52771. GenericPropertyComponent.prototype.render = function () {
  52772. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  52773. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](GeneralPropertyTabComponent, { globalState: this.props.globalState, block: this.props.block }),
  52774. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](GenericPropertyTabComponent, { globalState: this.props.globalState, block: this.props.block })));
  52775. };
  52776. return GenericPropertyComponent;
  52777. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52778. var GeneralPropertyTabComponent = /** @class */ (function (_super) {
  52779. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GeneralPropertyTabComponent, _super);
  52780. function GeneralPropertyTabComponent(props) {
  52781. return _super.call(this, props) || this;
  52782. }
  52783. GeneralPropertyTabComponent.prototype.render = function () {
  52784. var _this = this;
  52785. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  52786. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  52787. (!this.props.block.isInput || !this.props.block.isAttribute) &&
  52788. 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(); }, validator: function (newName) {
  52789. if (!_this.props.block.validateBlockName(newName)) {
  52790. _this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("\"" + newName + "\" is a reserved name, please choose another");
  52791. return false;
  52792. }
  52793. return true;
  52794. } }),
  52795. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: this.props.block.getClassName() }),
  52796. 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(); } }))));
  52797. };
  52798. return GeneralPropertyTabComponent;
  52799. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52800. var GenericPropertyTabComponent = /** @class */ (function (_super) {
  52801. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GenericPropertyTabComponent, _super);
  52802. function GenericPropertyTabComponent(props) {
  52803. return _super.call(this, props) || this;
  52804. }
  52805. GenericPropertyTabComponent.prototype.forceRebuild = function (notifiers) {
  52806. if (!notifiers || notifiers.update) {
  52807. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  52808. }
  52809. if (!notifiers || notifiers.rebuild) {
  52810. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  52811. }
  52812. };
  52813. GenericPropertyTabComponent.prototype.render = function () {
  52814. var _this = this;
  52815. var block = this.props.block, propStore = block._propStore;
  52816. if (!propStore) {
  52817. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null));
  52818. }
  52819. var componentList = {}, groups = [];
  52820. var _loop_1 = function (propertyName, displayName, type, groupName, options) {
  52821. var components = componentList[groupName];
  52822. if (!components) {
  52823. components = [];
  52824. componentList[groupName] = components;
  52825. groups.push(groupName);
  52826. }
  52827. switch (type) {
  52828. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].Boolean: {
  52829. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__["CheckBoxLineComponent"], { label: displayName, target: this_1.props.block, propertyName: propertyName, onValueChanged: function () { return _this.forceRebuild(options.notifiers); } }));
  52830. break;
  52831. }
  52832. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].Float: {
  52833. var cantDisplaySlider = (isNaN(options.min) || isNaN(options.max) || options.min === options.max);
  52834. if (cantDisplaySlider) {
  52835. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__["FloatLineComponent"], { globalState: this_1.props.globalState, label: displayName, propertyName: propertyName, target: this_1.props.block, onChange: function () { return _this.forceRebuild(options.notifiers); } }));
  52836. }
  52837. else {
  52838. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: displayName, target: this_1.props.block, globalState: this_1.props.globalState, propertyName: propertyName, step: Math.abs(options.max - options.min) / 100.0, minimum: Math.min(options.min, options.max), maximum: options.max, onChange: function () { return _this.forceRebuild(options.notifiers); } }));
  52839. }
  52840. break;
  52841. }
  52842. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].Vector2: {
  52843. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_8__["Vector2LineComponent"], { globalState: this_1.props.globalState, label: displayName, propertyName: propertyName, target: this_1.props.block, onChange: function () { return _this.forceRebuild(options.notifiers); } }));
  52844. break;
  52845. }
  52846. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].List: {
  52847. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__["OptionsLineComponent"], { label: displayName, options: options.options, target: this_1.props.block, propertyName: propertyName, onSelect: function () { return _this.forceRebuild(options.notifiers); } }));
  52848. break;
  52849. }
  52850. }
  52851. };
  52852. var this_1 = this;
  52853. for (var _i = 0, propStore_1 = propStore; _i < propStore_1.length; _i++) {
  52854. var _a = propStore_1[_i], propertyName = _a.propertyName, displayName = _a.displayName, type = _a.type, groupName = _a.groupName, options = _a.options;
  52855. _loop_1(propertyName, displayName, type, groupName, options);
  52856. }
  52857. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, groups.map(function (group) {
  52858. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: group }, componentList[group]);
  52859. })));
  52860. };
  52861. return GenericPropertyTabComponent;
  52862. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52863. /***/ }),
  52864. /***/ "./diagram/properties/gradientNodePropertyComponent.tsx":
  52865. /*!**************************************************************!*\
  52866. !*** ./diagram/properties/gradientNodePropertyComponent.tsx ***!
  52867. \**************************************************************/
  52868. /*! exports provided: GradientPropertyTabComponent */
  52869. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52870. "use strict";
  52871. __webpack_require__.r(__webpack_exports__);
  52872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientPropertyTabComponent", function() { return GradientPropertyTabComponent; });
  52873. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52874. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52875. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  52876. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  52877. /* harmony import */ var babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/gradientBlock */ "babylonjs/Misc/dataStorage");
  52878. /* 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__);
  52879. /* harmony import */ var _gradientStepComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./gradientStepComponent */ "./diagram/properties/gradientStepComponent.tsx");
  52880. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  52881. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  52882. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  52883. var GradientPropertyTabComponent = /** @class */ (function (_super) {
  52884. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientPropertyTabComponent, _super);
  52885. function GradientPropertyTabComponent(props) {
  52886. return _super.call(this, props) || this;
  52887. }
  52888. GradientPropertyTabComponent.prototype.componentDidMount = function () {
  52889. var _this = this;
  52890. var gradientBlock = this.props.block;
  52891. this.onValueChangedObserver = gradientBlock.onValueChangedObservable.add(function () {
  52892. _this.forceUpdate();
  52893. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  52894. });
  52895. };
  52896. GradientPropertyTabComponent.prototype.componentWillUnmount = function () {
  52897. var gradientBlock = this.props.block;
  52898. if (this.onValueChangedObserver) {
  52899. gradientBlock.onValueChangedObservable.remove(this.onValueChangedObserver);
  52900. this.onValueChangedObserver = null;
  52901. }
  52902. };
  52903. GradientPropertyTabComponent.prototype.forceRebuild = function () {
  52904. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  52905. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  52906. };
  52907. GradientPropertyTabComponent.prototype.deleteStep = function (step) {
  52908. var gradientBlock = this.props.block;
  52909. var index = gradientBlock.colorSteps.indexOf(step);
  52910. if (index > -1) {
  52911. gradientBlock.colorSteps.splice(index, 1);
  52912. gradientBlock.colorStepsUpdated();
  52913. this.forceRebuild();
  52914. this.forceUpdate();
  52915. }
  52916. };
  52917. GradientPropertyTabComponent.prototype.copyStep = function (step) {
  52918. var gradientBlock = this.props.block;
  52919. var newStep = new babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3__["GradientBlockColorStep"](1.0, step.color);
  52920. gradientBlock.colorSteps.push(newStep);
  52921. gradientBlock.colorStepsUpdated();
  52922. this.forceRebuild();
  52923. this.forceUpdate();
  52924. };
  52925. GradientPropertyTabComponent.prototype.addNewStep = function () {
  52926. var gradientBlock = this.props.block;
  52927. 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());
  52928. gradientBlock.colorSteps.push(newStep);
  52929. gradientBlock.colorStepsUpdated();
  52930. this.forceRebuild();
  52931. this.forceUpdate();
  52932. };
  52933. GradientPropertyTabComponent.prototype.checkForReOrder = function () {
  52934. var gradientBlock = this.props.block;
  52935. gradientBlock.colorSteps.sort(function (a, b) {
  52936. if (a.step === b.step) {
  52937. return 0;
  52938. }
  52939. if (a.step > b.step) {
  52940. return 1;
  52941. }
  52942. return -1;
  52943. });
  52944. gradientBlock.colorStepsUpdated();
  52945. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  52946. this.forceUpdate();
  52947. };
  52948. GradientPropertyTabComponent.prototype.render = function () {
  52949. var _this = this;
  52950. var gradientBlock = this.props.block;
  52951. var typeOptions = [
  52952. { label: "None", value: 0 },
  52953. { label: "Visible in the inspector", value: 1 },
  52954. ];
  52955. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  52956. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  52957. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  52958. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__["OptionsLineComponent"], { label: "Type", options: typeOptions, target: this.props.block, noDirectUpdate: true, getSelection: function (block) {
  52959. if (block.visibleInInspector) {
  52960. return 1;
  52961. }
  52962. if (block.isConstant) {
  52963. return 2;
  52964. }
  52965. return 0;
  52966. }, onSelect: function (value) {
  52967. switch (value) {
  52968. case 0:
  52969. _this.props.block.visibleInInspector = false;
  52970. break;
  52971. case 1:
  52972. _this.props.block.visibleInInspector = true;
  52973. break;
  52974. }
  52975. _this.forceUpdate();
  52976. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  52977. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  52978. } })),
  52979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "STEPS" },
  52980. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Add new step", onClick: function () { return _this.addNewStep(); } }),
  52981. gradientBlock.colorSteps.map(function (c, i) {
  52982. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_gradientStepComponent__WEBPACK_IMPORTED_MODULE_4__["GradientStepComponent"], { globalState: _this.props.globalState, onCheckForReOrder: function () { return _this.checkForReOrder(); }, onUpdateStep: function () { return _this.forceRebuild(); }, key: "step-" + i, lineIndex: i, step: c, onCopy: function () { return _this.copyStep(c); }, onDelete: function () { return _this.deleteStep(c); } }));
  52983. }))));
  52984. };
  52985. return GradientPropertyTabComponent;
  52986. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  52987. /***/ }),
  52988. /***/ "./diagram/properties/gradientStepComponent.tsx":
  52989. /*!******************************************************!*\
  52990. !*** ./diagram/properties/gradientStepComponent.tsx ***!
  52991. \******************************************************/
  52992. /*! exports provided: GradientStepComponent */
  52993. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52994. "use strict";
  52995. __webpack_require__.r(__webpack_exports__);
  52996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientStepComponent", function() { return GradientStepComponent; });
  52997. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  52998. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  52999. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53000. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  53001. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  53002. /* harmony import */ var _sharedComponents_colorPickerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/colorPickerComponent */ "./sharedComponents/colorPickerComponent.tsx");
  53003. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  53004. var deleteButton = __webpack_require__(/*! ../../../imgs/delete.svg */ "../imgs/delete.svg");
  53005. var copyIcon = __webpack_require__(/*! ../../sharedComponents/copy.svg */ "./sharedComponents/copy.svg");
  53006. var GradientStepComponent = /** @class */ (function (_super) {
  53007. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientStepComponent, _super);
  53008. function GradientStepComponent(props) {
  53009. var _this = _super.call(this, props) || this;
  53010. _this.state = { gradient: props.step.step };
  53011. return _this;
  53012. }
  53013. GradientStepComponent.prototype.updateColor = function (color) {
  53014. this.props.step.color = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(color);
  53015. this.props.onUpdateStep();
  53016. this.forceUpdate();
  53017. };
  53018. GradientStepComponent.prototype.updateStep = function (gradient) {
  53019. this.props.step.step = gradient;
  53020. this.setState({ gradient: gradient });
  53021. this.props.onUpdateStep();
  53022. };
  53023. GradientStepComponent.prototype.onPointerUp = function () {
  53024. this.props.onCheckForReOrder();
  53025. };
  53026. GradientStepComponent.prototype.render = function () {
  53027. var _this = this;
  53028. var step = this.props.step;
  53029. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-step" },
  53030. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step" }, "#" + this.props.lineIndex),
  53031. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color" },
  53032. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_colorPickerComponent__WEBPACK_IMPORTED_MODULE_3__["ColorPickerLineComponent"], { value: step.color, globalState: this.props.globalState, onColorChanged: function (color) {
  53033. _this.updateColor(color);
  53034. } })),
  53035. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-value" },
  53036. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { globalState: this.props.globalState, smallUI: true, label: "", target: step, propertyName: "step", min: 0, max: 1, onEnter: function () {
  53037. _this.props.onUpdateStep();
  53038. _this.props.onCheckForReOrder();
  53039. _this.forceUpdate();
  53040. } })),
  53041. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-slider" },
  53042. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { className: "range", type: "range", step: 0.01, min: 0, max: 1.0, value: step.step, onPointerUp: function (evt) { return _this.onPointerUp(); }, onChange: function (evt) { return _this.updateStep(parseFloat(evt.target.value)); } })),
  53043. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-copy", onClick: function () { if (_this.props.onCopy)
  53044. _this.props.onCopy(); }, title: "Copy Step" },
  53045. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", src: copyIcon })),
  53046. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-delete", onClick: function () { return _this.props.onDelete(); }, title: "Delete Step" },
  53047. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", src: deleteButton }))));
  53048. };
  53049. return GradientStepComponent;
  53050. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53051. /***/ }),
  53052. /***/ "./diagram/properties/inputNodePropertyComponent.tsx":
  53053. /*!***********************************************************!*\
  53054. !*** ./diagram/properties/inputNodePropertyComponent.tsx ***!
  53055. \***********************************************************/
  53056. /*! exports provided: InputPropertyTabComponent */
  53057. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53058. "use strict";
  53059. __webpack_require__.r(__webpack_exports__);
  53060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponent", function() { return InputPropertyTabComponent; });
  53061. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53062. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53063. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53064. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  53065. /* harmony import */ var _components_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/propertyTab/properties/floatPropertyTabComponent */ "./components/propertyTab/properties/floatPropertyTabComponent.tsx");
  53066. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  53067. /* harmony import */ var _components_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  53068. /* harmony import */ var _components_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/propertyTab/properties/color3PropertyTabComponent */ "./components/propertyTab/properties/color3PropertyTabComponent.tsx");
  53069. /* harmony import */ var _components_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  53070. /* harmony import */ var _components_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector4PropertyTabComponent */ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx");
  53071. /* harmony import */ var _components_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../components/propertyTab/properties/matrixPropertyTabComponent */ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx");
  53072. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  53073. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  53074. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  53075. /* 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__);
  53076. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  53077. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  53078. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  53079. /* harmony import */ var _components_propertyTab_properties_color4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../components/propertyTab/properties/color4PropertyTabComponent */ "./components/propertyTab/properties/color4PropertyTabComponent.tsx");
  53080. var InputPropertyTabComponent = /** @class */ (function (_super) {
  53081. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InputPropertyTabComponent, _super);
  53082. function InputPropertyTabComponent(props) {
  53083. return _super.call(this, props) || this;
  53084. }
  53085. InputPropertyTabComponent.prototype.componentDidMount = function () {
  53086. var _this = this;
  53087. var inputBlock = this.props.block;
  53088. this.onValueChangedObserver = inputBlock.onValueChangedObservable.add(function () {
  53089. _this.forceUpdate();
  53090. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53091. });
  53092. };
  53093. InputPropertyTabComponent.prototype.componentWillUnmount = function () {
  53094. var inputBlock = this.props.block;
  53095. if (this.onValueChangedObserver) {
  53096. inputBlock.onValueChangedObservable.remove(this.onValueChangedObserver);
  53097. this.onValueChangedObserver = null;
  53098. }
  53099. };
  53100. InputPropertyTabComponent.prototype.renderValue = function (globalState) {
  53101. var _this = this;
  53102. var inputBlock = this.props.block;
  53103. switch (inputBlock.type) {
  53104. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Float: {
  53105. var cantDisplaySlider = (isNaN(inputBlock.min) || isNaN(inputBlock.max) || inputBlock.min === inputBlock.max);
  53106. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  53107. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Is boolean", target: inputBlock, propertyName: "isBoolean" }),
  53108. inputBlock.isBoolean &&
  53109. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Value", isSelected: function () {
  53110. return inputBlock.value === 1;
  53111. }, onSelect: function (value) {
  53112. inputBlock.value = value ? 1 : 0;
  53113. if (inputBlock.isConstant) {
  53114. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53115. }
  53116. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53117. } }),
  53118. !inputBlock.isBoolean &&
  53119. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { globalState: this.props.globalState, label: "Min", target: inputBlock, propertyName: "min", onChange: function () { return _this.forceUpdate(); } }),
  53120. !inputBlock.isBoolean &&
  53121. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { globalState: this.props.globalState, label: "Max", target: inputBlock, propertyName: "max", onChange: function () { return _this.forceUpdate(); } }),
  53122. !inputBlock.isBoolean && cantDisplaySlider &&
  53123. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["FloatPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }),
  53124. !inputBlock.isBoolean && !cantDisplaySlider &&
  53125. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Value", globalState: this.props.globalState, target: inputBlock, propertyName: "value", step: Math.abs(inputBlock.max - inputBlock.min) / 100.0, minimum: Math.min(inputBlock.min, inputBlock.max), maximum: inputBlock.max, onChange: function () {
  53126. if (inputBlock.isConstant) {
  53127. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53128. }
  53129. } })));
  53130. }
  53131. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  53132. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["Vector2PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  53133. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color3:
  53134. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  53135. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["Color3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }),
  53136. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Convert to gamma space", propertyName: "convertToGammaSpace", target: this.props.block, onValueChanged: function () {
  53137. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53138. } }),
  53139. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Convert to linear space", propertyName: "convertToLinearSpace", target: this.props.block, onValueChanged: function () {
  53140. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53141. } })));
  53142. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color4:
  53143. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  53144. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_color4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_16__["Color4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }),
  53145. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Convert to gamma space", propertyName: "convertToGammaSpace", target: this.props.block, onValueChanged: function () {
  53146. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53147. } }),
  53148. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Convert to linear space", propertyName: "convertToLinearSpace", target: this.props.block, onValueChanged: function () {
  53149. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53150. } })));
  53151. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  53152. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__["Vector3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  53153. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  53154. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__["Vector4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  53155. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  53156. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__["MatrixPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  53157. }
  53158. return null;
  53159. };
  53160. InputPropertyTabComponent.prototype.setDefaultValue = function () {
  53161. var inputBlock = this.props.block;
  53162. inputBlock.setDefaultValue();
  53163. };
  53164. InputPropertyTabComponent.prototype.render = function () {
  53165. var _this = this;
  53166. var inputBlock = this.props.block;
  53167. var systemValuesOptions = [];
  53168. var attributeOptions = [];
  53169. var animationOptions = [];
  53170. switch (inputBlock.type) {
  53171. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Float:
  53172. animationOptions = [
  53173. { label: "None", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None },
  53174. { label: "Time", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].Time },
  53175. ];
  53176. systemValuesOptions = [
  53177. { label: "Delta time", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].DeltaTime }
  53178. ];
  53179. break;
  53180. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  53181. systemValuesOptions = [
  53182. { label: "World", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].World },
  53183. { label: "World x View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].WorldView },
  53184. { label: "World x ViewxProjection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].WorldViewProjection },
  53185. { label: "View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].View },
  53186. { label: "View x Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].ViewProjection },
  53187. { label: "Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].Projection }
  53188. ];
  53189. break;
  53190. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color3:
  53191. systemValuesOptions = [
  53192. { label: "Fog color", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].FogColor }
  53193. ];
  53194. break;
  53195. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color4:
  53196. attributeOptions = [
  53197. { label: "color", value: "color" }
  53198. ];
  53199. break;
  53200. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  53201. attributeOptions = [
  53202. { label: "uv", value: "uv" },
  53203. { label: "uv2", value: "uv2" },
  53204. ];
  53205. break;
  53206. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  53207. systemValuesOptions = [
  53208. { label: "Camera position", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].CameraPosition }
  53209. ];
  53210. attributeOptions = [
  53211. { label: "position", value: "position" },
  53212. { label: "normal", value: "normal" },
  53213. { label: "tangent", value: "tangent" },
  53214. ];
  53215. break;
  53216. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  53217. attributeOptions = [
  53218. { label: "matricesIndices", value: "matricesIndices" },
  53219. { label: "matricesWeights", value: "matricesWeights" }
  53220. ];
  53221. break;
  53222. }
  53223. var modeOptions = [
  53224. { label: "User-defined", value: 0 }
  53225. ];
  53226. if (attributeOptions.length > 0) {
  53227. modeOptions.push({ label: "Mesh attribute", value: 1 });
  53228. }
  53229. if (systemValuesOptions.length > 0) {
  53230. modeOptions.push({ label: "System value", value: 2 });
  53231. }
  53232. var typeOptions = [
  53233. { label: "None", value: 0 },
  53234. { label: "Visible in the inspector", value: 1 },
  53235. { label: "Constant", value: 2 }
  53236. ];
  53237. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  53238. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_13__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  53239. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__["LineContainerComponent"], { title: "PROPERTIES" },
  53240. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None &&
  53241. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Type", options: typeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  53242. if (block.visibleInInspector) {
  53243. return 1;
  53244. }
  53245. if (block.isConstant) {
  53246. return 2;
  53247. }
  53248. return 0;
  53249. }, onSelect: function (value) {
  53250. switch (value) {
  53251. case 0:
  53252. inputBlock.visibleInInspector = false;
  53253. inputBlock.isConstant = false;
  53254. break;
  53255. case 1:
  53256. inputBlock.visibleInInspector = true;
  53257. inputBlock.isConstant = false;
  53258. break;
  53259. case 2:
  53260. inputBlock.visibleInInspector = false;
  53261. inputBlock.isConstant = true;
  53262. break;
  53263. }
  53264. _this.forceUpdate();
  53265. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53266. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53267. } }),
  53268. inputBlock.visibleInInspector &&
  53269. 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 () {
  53270. _this.forceUpdate();
  53271. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53272. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53273. } }),
  53274. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Mode", options: modeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  53275. if (block.isAttribute) {
  53276. return 1;
  53277. }
  53278. if (block.isSystemValue) {
  53279. return 2;
  53280. }
  53281. return 0;
  53282. }, onSelect: function (value) {
  53283. switch (value) {
  53284. case 0:
  53285. inputBlock.isUniform = true;
  53286. inputBlock.setAsSystemValue(null);
  53287. _this.setDefaultValue();
  53288. break;
  53289. case 1:
  53290. inputBlock.setAsAttribute(attributeOptions[0].value);
  53291. break;
  53292. case 2:
  53293. inputBlock.setAsSystemValue(systemValuesOptions[0].value);
  53294. break;
  53295. }
  53296. _this.forceUpdate();
  53297. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53298. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53299. } }),
  53300. inputBlock.isAttribute &&
  53301. 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) {
  53302. inputBlock.setAsAttribute(value);
  53303. _this.forceUpdate();
  53304. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53305. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53306. } }),
  53307. inputBlock.isUniform && animationOptions.length > 0 &&
  53308. 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) {
  53309. _this.forceUpdate();
  53310. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53311. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53312. } }),
  53313. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None &&
  53314. this.renderValue(this.props.globalState),
  53315. inputBlock.isUniform && inputBlock.isSystemValue &&
  53316. 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) {
  53317. inputBlock.setAsSystemValue(value);
  53318. _this.forceUpdate();
  53319. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53320. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53321. } }))));
  53322. };
  53323. return InputPropertyTabComponent;
  53324. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53325. /***/ }),
  53326. /***/ "./diagram/properties/lightInformationPropertyTabComponent.tsx":
  53327. /*!*********************************************************************!*\
  53328. !*** ./diagram/properties/lightInformationPropertyTabComponent.tsx ***!
  53329. \*********************************************************************/
  53330. /*! exports provided: LightInformationPropertyTabComponent */
  53331. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53332. "use strict";
  53333. __webpack_require__.r(__webpack_exports__);
  53334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationPropertyTabComponent", function() { return LightInformationPropertyTabComponent; });
  53335. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53336. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53337. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53338. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  53339. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  53340. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  53341. var LightInformationPropertyTabComponent = /** @class */ (function (_super) {
  53342. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightInformationPropertyTabComponent, _super);
  53343. function LightInformationPropertyTabComponent() {
  53344. return _super !== null && _super.apply(this, arguments) || this;
  53345. }
  53346. LightInformationPropertyTabComponent.prototype.render = function () {
  53347. var _this = this;
  53348. var scene = this.props.globalState.nodeMaterial.getScene();
  53349. var lightOptions = scene.lights.map(function (l) {
  53350. return { label: l.name, value: l.name };
  53351. });
  53352. var lightInformationBlock = this.props.block;
  53353. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  53354. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  53355. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  53356. 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) {
  53357. lightInformationBlock.light = scene.getLightByName(name);
  53358. _this.forceUpdate();
  53359. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53360. } }))));
  53361. };
  53362. return LightInformationPropertyTabComponent;
  53363. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53364. /***/ }),
  53365. /***/ "./diagram/properties/lightPropertyTabComponent.tsx":
  53366. /*!**********************************************************!*\
  53367. !*** ./diagram/properties/lightPropertyTabComponent.tsx ***!
  53368. \**********************************************************/
  53369. /*! exports provided: LightPropertyTabComponent */
  53370. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53371. "use strict";
  53372. __webpack_require__.r(__webpack_exports__);
  53373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightPropertyTabComponent", function() { return LightPropertyTabComponent; });
  53374. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53375. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53376. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53377. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  53378. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  53379. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  53380. var LightPropertyTabComponent = /** @class */ (function (_super) {
  53381. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightPropertyTabComponent, _super);
  53382. function LightPropertyTabComponent() {
  53383. return _super !== null && _super.apply(this, arguments) || this;
  53384. }
  53385. LightPropertyTabComponent.prototype.render = function () {
  53386. var _this = this;
  53387. var scene = this.props.globalState.nodeMaterial.getScene();
  53388. var lightOptions = scene.lights.map(function (l) {
  53389. return { label: l.name, value: l.name };
  53390. });
  53391. lightOptions.splice(0, 0, { label: "All", value: "" });
  53392. var lightBlock = this.props.block;
  53393. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  53394. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  53395. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  53396. 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) {
  53397. if (name === "") {
  53398. lightBlock.light = null;
  53399. }
  53400. else {
  53401. lightBlock.light = scene.getLightByName(name);
  53402. }
  53403. _this.forceUpdate();
  53404. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53405. } }))));
  53406. };
  53407. return LightPropertyTabComponent;
  53408. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53409. /***/ }),
  53410. /***/ "./diagram/properties/nodePortPropertyComponent.tsx":
  53411. /*!**********************************************************!*\
  53412. !*** ./diagram/properties/nodePortPropertyComponent.tsx ***!
  53413. \**********************************************************/
  53414. /*! exports provided: NodePortPropertyTabComponent */
  53415. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53416. "use strict";
  53417. __webpack_require__.r(__webpack_exports__);
  53418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodePortPropertyTabComponent", function() { return NodePortPropertyTabComponent; });
  53419. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53420. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53421. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53422. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  53423. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  53424. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  53425. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  53426. var NodePortPropertyTabComponent = /** @class */ (function (_super) {
  53427. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NodePortPropertyTabComponent, _super);
  53428. function NodePortPropertyTabComponent(props) {
  53429. return _super.call(this, props) || this;
  53430. }
  53431. NodePortPropertyTabComponent.prototype.componentWillUnmount = function () {
  53432. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  53433. };
  53434. NodePortPropertyTabComponent.prototype.toggleExposeOnFrame = function (value) {
  53435. this.props.nodePort.exposedOnFrame = value;
  53436. this.props.globalState.onExposePortOnFrameObservable.notifyObservers(this.props.nodePort.node);
  53437. };
  53438. NodePortPropertyTabComponent.prototype.render = function () {
  53439. var _this = this;
  53440. var info = this.props.nodePort.hasLabel() ?
  53441. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  53442. this.props.nodePort.hasLabel() && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Port Label", propertyName: "portName", target: this.props.nodePort }),
  53443. this.props.nodePort.node.enclosingFrameId !== -1 && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__["CheckBoxLineComponent"], { label: "Expose Port on Frame", target: this.props.nodePort, isSelected: function () { return _this.props.nodePort.exposedOnFrame; }, onSelect: function (value) { return _this.toggleExposeOnFrame(value); }, propertyName: "exposedOnFrame", disabled: this.props.nodePort.disabled })) :
  53444. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "This node is a constant input node and cannot be exposed to the frame.", value: " " });
  53445. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  53446. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  53447. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  53448. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  53449. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  53450. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" }, info))));
  53451. };
  53452. return NodePortPropertyTabComponent;
  53453. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53454. /***/ }),
  53455. /***/ "./diagram/properties/texturePropertyTabComponent.tsx":
  53456. /*!************************************************************!*\
  53457. !*** ./diagram/properties/texturePropertyTabComponent.tsx ***!
  53458. \************************************************************/
  53459. /*! exports provided: TexturePropertyTabComponent */
  53460. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53461. "use strict";
  53462. __webpack_require__.r(__webpack_exports__);
  53463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  53464. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53465. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53466. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53467. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  53468. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/dataStorage");
  53469. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  53470. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  53471. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  53472. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  53473. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  53474. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  53475. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  53476. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  53477. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  53478. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  53479. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TexturePropertyTabComponent, _super);
  53480. function TexturePropertyTabComponent(props) {
  53481. var _this = _super.call(this, props) || this;
  53482. var texture = _this.textureBlock.texture;
  53483. _this.state = { isEmbedded: !texture || texture.name.substring(0, 4) === "data", loadAsCubeTexture: texture && texture.isCube, textureIsPrefiltered: true };
  53484. return _this;
  53485. }
  53486. Object.defineProperty(TexturePropertyTabComponent.prototype, "textureBlock", {
  53487. get: function () {
  53488. return this.props.block;
  53489. },
  53490. enumerable: false,
  53491. configurable: true
  53492. });
  53493. TexturePropertyTabComponent.prototype.UNSAFE_componentWillUpdate = function (nextProps, nextState) {
  53494. if (nextProps.block !== this.props.block) {
  53495. var texture = nextProps.block.texture;
  53496. nextState.isEmbedded = !texture || texture.name.substring(0, 4) === "data";
  53497. nextState.loadAsCubeTexture = texture && texture.isCube;
  53498. }
  53499. };
  53500. TexturePropertyTabComponent.prototype._generateRandomForCache = function () {
  53501. return 'xxxxxxxxxxxxxxxxxxxx'.replace(/[x]/g, function (c) {
  53502. var r = Math.random() * 10 | 0;
  53503. return r.toString();
  53504. });
  53505. };
  53506. TexturePropertyTabComponent.prototype.updateAfterTextureLoad = function () {
  53507. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53508. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53509. this.forceUpdate();
  53510. };
  53511. TexturePropertyTabComponent.prototype.removeTexture = function () {
  53512. var texture = this.textureBlock.texture;
  53513. if (texture) {
  53514. texture.dispose();
  53515. texture = null;
  53516. this.textureBlock.texture = null;
  53517. }
  53518. this.updateAfterTextureLoad();
  53519. };
  53520. TexturePropertyTabComponent.prototype._prepareTexture = function () {
  53521. var texture = this.textureBlock.texture;
  53522. if (texture && texture.isCube !== this.state.loadAsCubeTexture) {
  53523. texture.dispose();
  53524. texture = null;
  53525. }
  53526. if (!texture) {
  53527. if (!this.state.loadAsCubeTexture) {
  53528. 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"] || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionBlock"] || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["RefractionBlock"] || this.props.globalState.mode === babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["NodeMaterialModes"].PostProcess);
  53529. texture = this.textureBlock.texture;
  53530. texture.coordinatesMode = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EQUIRECTANGULAR_MODE;
  53531. }
  53532. else {
  53533. this.textureBlock.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["CubeTexture"]("", this.props.globalState.nodeMaterial.getScene());
  53534. texture = this.textureBlock.texture;
  53535. texture.coordinatesMode = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CUBIC_MODE;
  53536. }
  53537. }
  53538. };
  53539. /**
  53540. * Replaces the texture of the node
  53541. * @param file the file of the texture to use
  53542. */
  53543. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  53544. var _this = this;
  53545. this._prepareTexture();
  53546. var texture = this.textureBlock.texture;
  53547. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  53548. var blob = new Blob([data], { type: "octet/stream" });
  53549. var reader = new FileReader();
  53550. reader.readAsDataURL(blob);
  53551. reader.onloadend = function () {
  53552. var base64data = reader.result;
  53553. var extension = undefined;
  53554. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  53555. extension = ".dds";
  53556. }
  53557. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  53558. extension = ".env";
  53559. }
  53560. if (texture.isCube) {
  53561. texture.updateURL(base64data, extension, function () { return _this.updateAfterTextureLoad(); }, _this.state.textureIsPrefiltered);
  53562. }
  53563. else {
  53564. texture.updateURL(base64data, extension, function () { return _this.updateAfterTextureLoad(); });
  53565. }
  53566. };
  53567. }, undefined, true);
  53568. };
  53569. TexturePropertyTabComponent.prototype.replaceTextureWithUrl = function (url) {
  53570. var _this = this;
  53571. this._prepareTexture();
  53572. var texture = this.textureBlock.texture;
  53573. if (texture.isCube || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionTextureBlock"] || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionBlock"] || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["RefractionBlock"]) {
  53574. var extension = undefined;
  53575. if (url.toLowerCase().indexOf(".dds") > 0) {
  53576. extension = ".dds";
  53577. }
  53578. else if (url.toLowerCase().indexOf(".env") > 0) {
  53579. extension = ".env";
  53580. }
  53581. texture.updateURL(url, extension, function () { return _this.updateAfterTextureLoad(); }, this.state.textureIsPrefiltered);
  53582. }
  53583. else {
  53584. texture.updateURL(url, null, function () { return _this.updateAfterTextureLoad(); });
  53585. }
  53586. };
  53587. TexturePropertyTabComponent.prototype.render = function () {
  53588. var _this = this;
  53589. var url = "";
  53590. var texture = this.textureBlock.texture;
  53591. if (texture && texture.name && texture.name.substring(0, 4) !== "data") {
  53592. url = texture.name;
  53593. }
  53594. url = url.replace(/\?nocache=\d+/, "");
  53595. var isInReflectionMode = this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionTextureBlock"] || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionBlock"] || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["RefractionBlock"];
  53596. var isFrozenTexture = this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["CurrentScreenBlock"] || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ParticleTextureBlock"];
  53597. var showIsInGammaSpace = this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionBlock"];
  53598. var reflectionModeOptions = [
  53599. {
  53600. label: "Cubic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CUBIC_MODE
  53601. },
  53602. {
  53603. label: "Equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EQUIRECTANGULAR_MODE
  53604. },
  53605. {
  53606. label: "Explicit", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EXPLICIT_MODE
  53607. },
  53608. {
  53609. label: "Fixed equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].FIXED_EQUIRECTANGULAR_MODE
  53610. },
  53611. {
  53612. label: "Fixed mirrored equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].FIXED_EQUIRECTANGULAR_MIRRORED_MODE
  53613. },
  53614. {
  53615. label: "Planar", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].PLANAR_MODE
  53616. },
  53617. {
  53618. label: "Projection", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].PROJECTION_MODE
  53619. },
  53620. {
  53621. label: "Skybox", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].SKYBOX_MODE
  53622. },
  53623. {
  53624. label: "Spherical", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].SPHERICAL_MODE
  53625. },
  53626. ];
  53627. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  53628. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  53629. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  53630. 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 () {
  53631. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53632. } }),
  53633. !isInReflectionMode &&
  53634. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Convert to gamma space", propertyName: "convertToGammaSpace", target: this.props.block, onValueChanged: function () {
  53635. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53636. } }),
  53637. !isInReflectionMode &&
  53638. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Convert to linear space", propertyName: "convertToLinearSpace", target: this.props.block, onValueChanged: function () {
  53639. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53640. } }),
  53641. texture && showIsInGammaSpace &&
  53642. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Is in gamma space", propertyName: "gammaSpace", target: texture, onValueChanged: function () {
  53643. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53644. } }),
  53645. texture && isInReflectionMode &&
  53646. 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) {
  53647. texture.coordinatesMode = value;
  53648. _this.forceUpdate();
  53649. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53650. } }),
  53651. texture && !isInReflectionMode && !isFrozenTexture &&
  53652. 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) {
  53653. texture.wrapU = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  53654. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53655. } }),
  53656. texture && !isInReflectionMode && !isFrozenTexture &&
  53657. 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) {
  53658. texture.wrapV = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  53659. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53660. } }),
  53661. texture && !isInReflectionMode && !isFrozenTexture &&
  53662. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { globalState: this.props.globalState, label: "Offset U", target: texture, propertyName: "uOffset", onChange: function () {
  53663. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53664. } }),
  53665. texture && !isInReflectionMode && !isFrozenTexture &&
  53666. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { globalState: this.props.globalState, label: "Offset V", target: texture, propertyName: "vOffset", onChange: function () {
  53667. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53668. } }),
  53669. texture && !isInReflectionMode && !isFrozenTexture &&
  53670. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { globalState: this.props.globalState, label: "Scale U", target: texture, propertyName: "uScale", onChange: function () {
  53671. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53672. } }),
  53673. texture && !isInReflectionMode && !isFrozenTexture &&
  53674. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { globalState: this.props.globalState, label: "Scale V", target: texture, propertyName: "vScale", onChange: function () {
  53675. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53676. } }),
  53677. texture && !isInReflectionMode && !isFrozenTexture &&
  53678. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rotation U", target: texture, globalState: this.props.globalState, propertyName: "uAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  53679. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53680. } }),
  53681. texture && !isInReflectionMode && !isFrozenTexture &&
  53682. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rotation V", target: texture, globalState: this.props.globalState, propertyName: "vAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  53683. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53684. } }),
  53685. texture && !isInReflectionMode && !isFrozenTexture &&
  53686. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rotation W", target: texture, globalState: this.props.globalState, propertyName: "wAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  53687. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53688. } })),
  53689. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "SOURCE" },
  53690. 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) {
  53691. _this.setState({ isEmbedded: value });
  53692. _this.textureBlock.texture = null;
  53693. _this.updateAfterTextureLoad();
  53694. } }),
  53695. isInReflectionMode &&
  53696. 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 }); } }),
  53697. isInReflectionMode && this.state.loadAsCubeTexture &&
  53698. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0Texture is prefiltered", isSelected: function () { return _this.state.textureIsPrefiltered; }, onSelect: function (value) { return _this.setState({ textureIsPrefiltered: value }); } }),
  53699. this.state.isEmbedded &&
  53700. 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" }),
  53701. !this.state.isEmbedded &&
  53702. 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); } }),
  53703. !this.state.isEmbedded && url &&
  53704. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Refresh", onClick: function () { return _this.replaceTextureWithUrl(url + "?nocache=" + _this._generateRandomForCache()); } }),
  53705. texture &&
  53706. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Remove", onClick: function () { return _this.removeTexture(); } })),
  53707. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block })));
  53708. };
  53709. return TexturePropertyTabComponent;
  53710. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53711. /***/ }),
  53712. /***/ "./diagram/properties/transformNodePropertyComponent.tsx":
  53713. /*!***************************************************************!*\
  53714. !*** ./diagram/properties/transformNodePropertyComponent.tsx ***!
  53715. \***************************************************************/
  53716. /*! exports provided: TransformPropertyTabComponent */
  53717. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53718. "use strict";
  53719. __webpack_require__.r(__webpack_exports__);
  53720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformPropertyTabComponent", function() { return TransformPropertyTabComponent; });
  53721. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53722. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53723. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53724. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  53725. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  53726. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  53727. var TransformPropertyTabComponent = /** @class */ (function (_super) {
  53728. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TransformPropertyTabComponent, _super);
  53729. function TransformPropertyTabComponent(props) {
  53730. return _super.call(this, props) || this;
  53731. }
  53732. TransformPropertyTabComponent.prototype.render = function () {
  53733. var _this = this;
  53734. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  53735. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  53736. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  53737. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Transform as direction", onSelect: function (value) {
  53738. var transformBlock = _this.props.block;
  53739. if (value) {
  53740. transformBlock.complementW = 0;
  53741. }
  53742. else {
  53743. transformBlock.complementW = 1;
  53744. }
  53745. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53746. }, isSelected: function () { return _this.props.block.complementW === 0; } }))));
  53747. };
  53748. return TransformPropertyTabComponent;
  53749. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53750. /***/ }),
  53751. /***/ "./diagram/properties/trigonometryNodePropertyComponent.tsx":
  53752. /*!******************************************************************!*\
  53753. !*** ./diagram/properties/trigonometryNodePropertyComponent.tsx ***!
  53754. \******************************************************************/
  53755. /*! exports provided: TrigonometryPropertyTabComponent */
  53756. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53757. "use strict";
  53758. __webpack_require__.r(__webpack_exports__);
  53759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryPropertyTabComponent", function() { return TrigonometryPropertyTabComponent; });
  53760. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53761. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53762. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53763. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  53764. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  53765. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/dataStorage");
  53766. /* 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__);
  53767. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  53768. var TrigonometryPropertyTabComponent = /** @class */ (function (_super) {
  53769. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TrigonometryPropertyTabComponent, _super);
  53770. function TrigonometryPropertyTabComponent(props) {
  53771. return _super.call(this, props) || this;
  53772. }
  53773. TrigonometryPropertyTabComponent.prototype.render = function () {
  53774. var _this = this;
  53775. var trigonometryBlock = this.props.block;
  53776. var operationOptions = [
  53777. { label: "Cos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Cos },
  53778. { label: "Sin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Sin },
  53779. { label: "Abs", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Abs },
  53780. { label: "Exp", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Exp },
  53781. { label: "Exp2", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Exp2 },
  53782. { label: "Round", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Round },
  53783. { label: "Ceiling", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Ceiling },
  53784. { label: "Floor", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Floor },
  53785. { label: "ArcCos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcCos },
  53786. { label: "ArcSin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcSin },
  53787. { label: "ArcTan", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcTan },
  53788. { label: "Tan", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Tan },
  53789. { label: "Log", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Log },
  53790. { label: "Fract", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Fract },
  53791. { label: "Sign", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Sign },
  53792. { label: "Radians to degrees", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Degrees },
  53793. { label: "Degrees to radians", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Radians }
  53794. ];
  53795. operationOptions.sort(function (a, b) {
  53796. return a.label.localeCompare(b.label);
  53797. });
  53798. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  53799. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  53800. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  53801. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__["OptionsLineComponent"], { label: "Operation", options: operationOptions, target: trigonometryBlock, propertyName: "operation", onSelect: function (value) {
  53802. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  53803. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  53804. _this.forceUpdate();
  53805. } }))));
  53806. };
  53807. return TrigonometryPropertyTabComponent;
  53808. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  53809. /***/ }),
  53810. /***/ "./diagram/propertyLedger.ts":
  53811. /*!***********************************!*\
  53812. !*** ./diagram/propertyLedger.ts ***!
  53813. \***********************************/
  53814. /*! exports provided: PropertyLedger */
  53815. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53816. "use strict";
  53817. __webpack_require__.r(__webpack_exports__);
  53818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyLedger", function() { return PropertyLedger; });
  53819. /* harmony import */ var _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./properties/inputNodePropertyComponent */ "./diagram/properties/inputNodePropertyComponent.tsx");
  53820. /* harmony import */ var _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./properties/transformNodePropertyComponent */ "./diagram/properties/transformNodePropertyComponent.tsx");
  53821. /* harmony import */ var _properties_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./properties/gradientNodePropertyComponent */ "./diagram/properties/gradientNodePropertyComponent.tsx");
  53822. /* harmony import */ var _properties_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./properties/lightPropertyTabComponent */ "./diagram/properties/lightPropertyTabComponent.tsx");
  53823. /* harmony import */ var _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./properties/lightInformationPropertyTabComponent */ "./diagram/properties/lightInformationPropertyTabComponent.tsx");
  53824. /* harmony import */ var _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./properties/texturePropertyTabComponent */ "./diagram/properties/texturePropertyTabComponent.tsx");
  53825. /* harmony import */ var _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./properties/trigonometryNodePropertyComponent */ "./diagram/properties/trigonometryNodePropertyComponent.tsx");
  53826. var PropertyLedger = /** @class */ (function () {
  53827. function PropertyLedger() {
  53828. }
  53829. PropertyLedger.RegisteredControls = {};
  53830. return PropertyLedger;
  53831. }());
  53832. PropertyLedger.RegisteredControls["TransformBlock"] = _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_1__["TransformPropertyTabComponent"];
  53833. PropertyLedger.RegisteredControls["InputBlock"] = _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_0__["InputPropertyTabComponent"];
  53834. PropertyLedger.RegisteredControls["GradientBlock"] = _properties_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__["GradientPropertyTabComponent"];
  53835. PropertyLedger.RegisteredControls["LightBlock"] = _properties_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightPropertyTabComponent"];
  53836. PropertyLedger.RegisteredControls["LightInformationBlock"] = _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_4__["LightInformationPropertyTabComponent"];
  53837. PropertyLedger.RegisteredControls["TextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  53838. PropertyLedger.RegisteredControls["ReflectionTextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  53839. PropertyLedger.RegisteredControls["ReflectionBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  53840. PropertyLedger.RegisteredControls["RefractionBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  53841. PropertyLedger.RegisteredControls["CurrentScreenBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  53842. PropertyLedger.RegisteredControls["ParticleTextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  53843. PropertyLedger.RegisteredControls["TrigonometryBlock"] = _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__["TrigonometryPropertyTabComponent"];
  53844. /***/ }),
  53845. /***/ "./globalState.ts":
  53846. /*!************************!*\
  53847. !*** ./globalState.ts ***!
  53848. \************************/
  53849. /*! exports provided: GlobalState */
  53850. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53851. "use strict";
  53852. __webpack_require__.r(__webpack_exports__);
  53853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  53854. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  53855. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  53856. /* harmony import */ var _components_preview_previewType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/preview/previewType */ "./components/preview/previewType.ts");
  53857. var GlobalState = /** @class */ (function () {
  53858. function GlobalState() {
  53859. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53860. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53861. this.onBuiltObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53862. this.onResetRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53863. this.onUpdateRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53864. this.onZoomToFitRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53865. this.onReOrganizedRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53866. this.onLogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53867. this.onErrorMessageDialogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53868. this.onIsLoadingChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53869. this.onPreviewCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53870. this.onLightUpdated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53871. this.onPreviewBackgroundChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53872. this.onBackFaceCullingChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53873. this.onDepthPrePassChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53874. this.onAnimationCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53875. this.onCandidateLinkMoved = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53876. this.onSelectionBoxMoved = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53877. this.onFrameCreatedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53878. this.onCandidatePortSelectedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53879. this.onImportFrameObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53880. this.onGraphNodeRemovalObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53881. this.onGridSizeChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53882. this.onExposePortOnFrameObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  53883. this.listOfCustomPreviewFiles = [];
  53884. this.blockKeyboardEvents = false;
  53885. this.previewType = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("PreviewType", _components_preview_previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Box);
  53886. this.backFaceCulling = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("BackFaceCulling", true);
  53887. this.depthPrePass = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("DepthPrePass", false);
  53888. this.hemisphericLight = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("HemisphericLight", true);
  53889. this.directionalLight0 = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("DirectionalLight0", false);
  53890. this.directionalLight1 = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("DirectionalLight1", false);
  53891. this.controlCamera = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("ControlCamera", true);
  53892. this._mode = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("Mode", babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Material);
  53893. var r = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("BackgroundColorR", 0.12549019607843137);
  53894. var g = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("BackgroundColorG", 0.09803921568627451);
  53895. var b = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("BackgroundColorB", 0.25098039215686274);
  53896. this.backgroundColor = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color4"](r, g, b, 1.0);
  53897. }
  53898. Object.defineProperty(GlobalState.prototype, "mode", {
  53899. /** Gets the mode */
  53900. get: function () {
  53901. return this._mode;
  53902. },
  53903. /** Sets the mode */
  53904. set: function (m) {
  53905. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].WriteNumber("Mode", m);
  53906. this._mode = m;
  53907. this.onPreviewCommandActivated.notifyObservers(true);
  53908. },
  53909. enumerable: false,
  53910. configurable: true
  53911. });
  53912. return GlobalState;
  53913. }());
  53914. /***/ }),
  53915. /***/ "./graphEditor.tsx":
  53916. /*!*************************!*\
  53917. !*** ./graphEditor.tsx ***!
  53918. \*************************/
  53919. /*! exports provided: GraphEditor */
  53920. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53921. "use strict";
  53922. __webpack_require__.r(__webpack_exports__);
  53923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  53924. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  53925. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  53926. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  53927. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  53928. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  53929. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  53930. /* harmony import */ var _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/log/logComponent */ "./components/log/logComponent.tsx");
  53931. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  53932. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__);
  53933. /* harmony import */ var _sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./sharedComponents/messageDialog */ "./sharedComponents/messageDialog.tsx");
  53934. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./blockTools */ "./blockTools.ts");
  53935. /* harmony import */ var _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/preview/previewManager */ "./components/preview/previewManager.ts");
  53936. /* harmony import */ var _components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/preview/previewMeshControlComponent */ "./components/preview/previewMeshControlComponent.tsx");
  53937. /* harmony import */ var _components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/preview/previewAreaComponent */ "./components/preview/previewAreaComponent.tsx");
  53938. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  53939. /* harmony import */ var _diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diagram/graphCanvas */ "./diagram/graphCanvas.tsx");
  53940. /* harmony import */ var _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagram/graphFrame */ "./diagram/graphFrame.ts");
  53941. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  53942. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_15__);
  53943. __webpack_require__(/*! ./main.scss */ "./main.scss");
  53944. ;
  53945. var GraphEditor = /** @class */ (function (_super) {
  53946. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphEditor, _super);
  53947. function GraphEditor(props) {
  53948. var _this = _super.call(this, props) || this;
  53949. _this.NodeWidth = 100;
  53950. _this._leftWidth = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("LeftWidth", 200);
  53951. _this._rightWidth = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("RightWidth", 300);
  53952. _this._blocks = new Array();
  53953. _this._copiedNodes = [];
  53954. _this._copiedFrame = null;
  53955. _this._mouseLocationX = 0;
  53956. _this._mouseLocationY = 0;
  53957. _this.handlePopUp = function () {
  53958. _this.setState({
  53959. showPreviewPopUp: true
  53960. });
  53961. _this.createPopUp();
  53962. _this.props.globalState.hostWindow.addEventListener('beforeunload', _this.handleClosingPopUp);
  53963. };
  53964. _this.handleClosingPopUp = function () {
  53965. _this._previewManager.dispose();
  53966. _this._popUpWindow.close();
  53967. _this.setState({
  53968. showPreviewPopUp: false
  53969. }, function () { return _this.initiatePreviewArea(); });
  53970. };
  53971. _this.initiatePreviewArea = function (canvas) {
  53972. if (canvas === void 0) { canvas = _this.props.globalState.hostDocument.getElementById("preview-canvas"); }
  53973. _this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_9__["PreviewManager"](canvas, _this.props.globalState);
  53974. };
  53975. _this.createPopUp = function () {
  53976. var userOptions = {
  53977. original: true,
  53978. popup: true,
  53979. overlay: false,
  53980. embedMode: false,
  53981. enableClose: true,
  53982. handleResize: true,
  53983. enablePopup: true,
  53984. };
  53985. var options = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ embedHostWidth: "100%" }, userOptions);
  53986. var popUpWindow = _this.createPopupWindow("PREVIEW AREA", "_PreviewHostWindow");
  53987. if (popUpWindow) {
  53988. popUpWindow.addEventListener('beforeunload', _this.handleClosingPopUp);
  53989. var parentControl = popUpWindow.document.getElementById('node-editor-graph-root');
  53990. _this.createPreviewMeshControlHost(options, parentControl);
  53991. _this.createPreviewHost(options, parentControl);
  53992. if (parentControl) {
  53993. _this.fixPopUpStyles(parentControl.ownerDocument);
  53994. _this.initiatePreviewArea(parentControl.ownerDocument.getElementById("preview-canvas"));
  53995. }
  53996. }
  53997. };
  53998. _this.createPopupWindow = function (title, windowVariableName, width, height) {
  53999. if (width === void 0) { width = 500; }
  54000. if (height === void 0) { height = 500; }
  54001. var windowCreationOptionsList = {
  54002. width: width,
  54003. height: height,
  54004. top: (_this.props.globalState.hostWindow.innerHeight - width) / 2 + window.screenY,
  54005. left: (_this.props.globalState.hostWindow.innerWidth - height) / 2 + window.screenX
  54006. };
  54007. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  54008. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  54009. .join(',');
  54010. var popupWindow = _this.props.globalState.hostWindow.open("", title, windowCreationOptions);
  54011. if (!popupWindow) {
  54012. return null;
  54013. }
  54014. var parentDocument = popupWindow.document;
  54015. parentDocument.title = title;
  54016. parentDocument.body.style.width = "100%";
  54017. parentDocument.body.style.height = "100%";
  54018. parentDocument.body.style.margin = "0";
  54019. parentDocument.body.style.padding = "0";
  54020. var parentControl = parentDocument.createElement("div");
  54021. parentControl.style.width = "100%";
  54022. parentControl.style.height = "100%";
  54023. parentControl.style.margin = "0";
  54024. parentControl.style.padding = "0";
  54025. parentControl.style.display = "grid";
  54026. parentControl.style.gridTemplateRows = "40px auto";
  54027. parentControl.id = 'node-editor-graph-root';
  54028. parentControl.className = 'right-panel';
  54029. popupWindow.document.body.appendChild(parentControl);
  54030. _this.copyStyles(_this.props.globalState.hostWindow.document, parentDocument);
  54031. _this[windowVariableName] = popupWindow;
  54032. _this._popUpWindow = popupWindow;
  54033. return popupWindow;
  54034. };
  54035. _this.copyStyles = function (sourceDoc, targetDoc) {
  54036. var styleContainer = [];
  54037. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  54038. var styleSheet = sourceDoc.styleSheets[index];
  54039. try {
  54040. if (styleSheet.href) { // for <link> elements loading CSS from a URL
  54041. var newLinkEl = sourceDoc.createElement('link');
  54042. newLinkEl.rel = 'stylesheet';
  54043. newLinkEl.href = styleSheet.href;
  54044. targetDoc.head.appendChild(newLinkEl);
  54045. styleContainer.push(newLinkEl);
  54046. }
  54047. else if (styleSheet.cssRules) { // for <style> elements
  54048. var newStyleEl = sourceDoc.createElement('style');
  54049. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  54050. var cssRule = _a[_i];
  54051. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  54052. }
  54053. targetDoc.head.appendChild(newStyleEl);
  54054. styleContainer.push(newStyleEl);
  54055. }
  54056. }
  54057. catch (e) {
  54058. console.log(e);
  54059. }
  54060. }
  54061. };
  54062. _this.createPreviewMeshControlHost = function (options, parentControl) {
  54063. // Prepare the preview control host
  54064. if (parentControl) {
  54065. var host = parentControl.ownerDocument.createElement("div");
  54066. host.id = "PreviewMeshControl-host";
  54067. host.style.width = options.embedHostWidth || "auto";
  54068. parentControl.appendChild(host);
  54069. var PreviewMeshControlComponentHost = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_10__["PreviewMeshControlComponent"], {
  54070. globalState: _this.props.globalState,
  54071. togglePreviewAreaComponent: _this.handlePopUp
  54072. });
  54073. react_dom__WEBPACK_IMPORTED_MODULE_15__["render"](PreviewMeshControlComponentHost, host);
  54074. }
  54075. };
  54076. _this.createPreviewHost = function (options, parentControl) {
  54077. // Prepare the preview host
  54078. if (parentControl) {
  54079. var host = parentControl.ownerDocument.createElement("div");
  54080. host.id = "PreviewAreaComponent-host";
  54081. host.style.width = options.embedHostWidth || "auto";
  54082. host.style.display = "grid";
  54083. host.style.gridRow = '2';
  54084. host.style.gridTemplateRows = "auto 40px";
  54085. parentControl.appendChild(host);
  54086. _this._previewHost = host;
  54087. if (!options.overlay) {
  54088. _this._previewHost.style.position = "relative";
  54089. }
  54090. }
  54091. if (_this._previewHost) {
  54092. var PreviewAreaComponentHost = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_11__["PreviewAreaComponent"], {
  54093. globalState: _this.props.globalState,
  54094. width: 200
  54095. });
  54096. react_dom__WEBPACK_IMPORTED_MODULE_15__["render"](PreviewAreaComponentHost, _this._previewHost);
  54097. }
  54098. };
  54099. _this.fixPopUpStyles = function (document) {
  54100. var previewContainer = document.getElementById("preview");
  54101. if (previewContainer) {
  54102. previewContainer.style.height = "auto";
  54103. previewContainer.style.gridRow = "1";
  54104. }
  54105. var previewConfigBar = document.getElementById("preview-config-bar");
  54106. if (previewConfigBar) {
  54107. previewConfigBar.style.gridRow = "2";
  54108. }
  54109. var newWindowButton = document.getElementById('preview-new-window');
  54110. if (newWindowButton) {
  54111. newWindowButton.style.display = 'none';
  54112. }
  54113. var previewMeshBar = document.getElementById('preview-mesh-bar');
  54114. if (previewMeshBar) {
  54115. previewMeshBar.style.gridTemplateColumns = "auto 1fr 40px 40px";
  54116. }
  54117. };
  54118. _this.state = {
  54119. showPreviewPopUp: false
  54120. };
  54121. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  54122. if (_this.props.globalState.nodeMaterial) {
  54123. _this.buildMaterial();
  54124. }
  54125. });
  54126. _this.props.globalState.onResetRequiredObservable.add(function () {
  54127. _this.build();
  54128. if (_this.props.globalState.nodeMaterial) {
  54129. _this.buildMaterial();
  54130. }
  54131. });
  54132. _this.props.globalState.onImportFrameObservable.add(function (source) {
  54133. var frameData = source.editorData.frames[0];
  54134. // create new graph nodes for only blocks from frame (last blocks added)
  54135. _this.props.globalState.nodeMaterial.attachedBlocks.slice(-(frameData.blocks.length)).forEach(function (block) {
  54136. _this.createNodeFromObject(block);
  54137. });
  54138. _this._graphCanvas.addFrame(frameData);
  54139. _this.reOrganize(_this.props.globalState.nodeMaterial.editorData, true);
  54140. });
  54141. _this.props.globalState.onZoomToFitRequiredObservable.add(function () {
  54142. _this.zoomToFit();
  54143. });
  54144. _this.props.globalState.onReOrganizedRequiredObservable.add(function () {
  54145. _this.reOrganize();
  54146. });
  54147. _this.props.globalState.onGetNodeFromBlock = function (block) {
  54148. return _this._graphCanvas.findNodeFromBlock(block);
  54149. };
  54150. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  54151. if ((evt.keyCode === 46 || evt.keyCode === 8) && !_this.props.globalState.blockKeyboardEvents) { // Delete
  54152. var selectedItems = _this._graphCanvas.selectedNodes;
  54153. for (var _i = 0, selectedItems_1 = selectedItems; _i < selectedItems_1.length; _i++) {
  54154. var selectedItem = selectedItems_1[_i];
  54155. selectedItem.dispose();
  54156. var targetBlock = selectedItem.block;
  54157. _this.props.globalState.nodeMaterial.removeBlock(targetBlock);
  54158. var blockIndex = _this._blocks.indexOf(targetBlock);
  54159. if (blockIndex > -1) {
  54160. _this._blocks.splice(blockIndex, 1);
  54161. }
  54162. }
  54163. if (_this._graphCanvas.selectedLink) {
  54164. _this._graphCanvas.selectedLink.dispose();
  54165. }
  54166. if (_this._graphCanvas.selectedFrame) {
  54167. var frame = _this._graphCanvas.selectedFrame;
  54168. if (frame.isCollapsed) {
  54169. while (frame.nodes.length > 0) {
  54170. var targetBlock = frame.nodes[0].block;
  54171. _this.props.globalState.nodeMaterial.removeBlock(targetBlock);
  54172. var blockIndex = _this._blocks.indexOf(targetBlock);
  54173. if (blockIndex > -1) {
  54174. _this._blocks.splice(blockIndex, 1);
  54175. }
  54176. frame.nodes[0].dispose();
  54177. }
  54178. frame.isCollapsed = false;
  54179. }
  54180. else {
  54181. frame.nodes.forEach(function (node) {
  54182. node.enclosingFrameId = -1;
  54183. });
  54184. }
  54185. _this._graphCanvas.selectedFrame.dispose();
  54186. }
  54187. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  54188. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  54189. return;
  54190. }
  54191. if (!evt.ctrlKey || _this.props.globalState.blockKeyboardEvents) {
  54192. return;
  54193. }
  54194. if (evt.key === "c") { // Copy
  54195. _this._copiedNodes = [];
  54196. _this._copiedFrame = null;
  54197. if (_this._graphCanvas.selectedFrame) {
  54198. _this._copiedFrame = _this._graphCanvas.selectedFrame;
  54199. return;
  54200. }
  54201. var selectedItems = _this._graphCanvas.selectedNodes;
  54202. if (!selectedItems.length) {
  54203. return;
  54204. }
  54205. var selectedItem_1 = selectedItems[0];
  54206. if (!selectedItem_1.block) {
  54207. return;
  54208. }
  54209. _this._copiedNodes = selectedItems.slice(0);
  54210. }
  54211. else if (evt.key === "v") { // Paste
  54212. var rootElement = _this.props.globalState.hostDocument.querySelector(".diagram-container");
  54213. var zoomLevel = _this._graphCanvas.zoom;
  54214. var currentY = (_this._mouseLocationY - rootElement.offsetTop - _this._graphCanvas.y - 20) / zoomLevel;
  54215. if (_this._copiedFrame) {
  54216. // New frame
  54217. var newFrame = new _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_14__["GraphFrame"](null, _this._graphCanvas, true);
  54218. _this._graphCanvas.frames.push(newFrame);
  54219. newFrame.width = _this._copiedFrame.width;
  54220. newFrame.height = _this._copiedFrame.height;
  54221. newFrame.width / 2;
  54222. newFrame.name = _this._copiedFrame.name;
  54223. newFrame.color = _this._copiedFrame.color;
  54224. var currentX_1 = (_this._mouseLocationX - rootElement.offsetLeft - _this._graphCanvas.x) / zoomLevel;
  54225. newFrame.x = currentX_1 - newFrame.width / 2;
  54226. newFrame.y = currentY;
  54227. // Paste nodes
  54228. if (_this._copiedFrame.nodes.length) {
  54229. currentX_1 = newFrame.x + _this._copiedFrame.nodes[0].x - _this._copiedFrame.x;
  54230. currentY = newFrame.y + _this._copiedFrame.nodes[0].y - _this._copiedFrame.y;
  54231. _this._graphCanvas._frameIsMoving = true;
  54232. var newNodes = _this.pasteSelection(_this._copiedFrame.nodes, currentX_1, currentY);
  54233. if (newNodes) {
  54234. for (var _a = 0, newNodes_1 = newNodes; _a < newNodes_1.length; _a++) {
  54235. var node = newNodes_1[_a];
  54236. newFrame.syncNode(node);
  54237. }
  54238. }
  54239. _this._graphCanvas._frameIsMoving = false;
  54240. }
  54241. if (_this._copiedFrame.isCollapsed) {
  54242. newFrame.isCollapsed = true;
  54243. }
  54244. // Select
  54245. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newFrame);
  54246. return;
  54247. }
  54248. if (!_this._copiedNodes.length) {
  54249. return;
  54250. }
  54251. var currentX = (_this._mouseLocationX - rootElement.offsetLeft - _this._graphCanvas.x - _this.NodeWidth) / zoomLevel;
  54252. _this.pasteSelection(_this._copiedNodes, currentX, currentY, true);
  54253. }
  54254. }, false);
  54255. return _this;
  54256. }
  54257. /**
  54258. * Creates a node and recursivly creates its parent nodes from it's input
  54259. * @param nodeMaterialBlock
  54260. */
  54261. GraphEditor.prototype.createNodeFromObject = function (block, recursion) {
  54262. if (recursion === void 0) { recursion = true; }
  54263. if (this._blocks.indexOf(block) !== -1) {
  54264. return this._graphCanvas.nodes.filter(function (n) { return n.block === block; })[0];
  54265. }
  54266. this._blocks.push(block);
  54267. if (this.props.globalState.nodeMaterial.attachedBlocks.indexOf(block) === -1) {
  54268. this.props.globalState.nodeMaterial.attachedBlocks.push(block);
  54269. }
  54270. if (block.isFinalMerger) {
  54271. this.props.globalState.nodeMaterial.addOutputNode(block);
  54272. }
  54273. // Connections
  54274. if (block.inputs.length) {
  54275. for (var _i = 0, _a = block.inputs; _i < _a.length; _i++) {
  54276. var input = _a[_i];
  54277. if (input.isConnected && recursion) {
  54278. this.createNodeFromObject(input.sourceBlock);
  54279. }
  54280. }
  54281. }
  54282. // Graph
  54283. var node = this._graphCanvas.appendBlock(block);
  54284. // Links
  54285. if (block.inputs.length && recursion) {
  54286. for (var _b = 0, _c = block.inputs; _b < _c.length; _b++) {
  54287. var input = _c[_b];
  54288. if (input.isConnected) {
  54289. this._graphCanvas.connectPorts(input.connectedPoint, input);
  54290. }
  54291. }
  54292. }
  54293. return node;
  54294. };
  54295. GraphEditor.prototype.addValueNode = function (type) {
  54296. var nodeType = _blockTools__WEBPACK_IMPORTED_MODULE_8__["BlockTools"].GetConnectionNodeTypeFromString(type);
  54297. var newInputBlock = new babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["InputBlock"](type, undefined, nodeType);
  54298. return this.createNodeFromObject(newInputBlock);
  54299. };
  54300. GraphEditor.prototype.componentDidMount = function () {
  54301. if (this.props.globalState.hostDocument) {
  54302. this._graphCanvas = this.refs["graphCanvas"];
  54303. this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_9__["PreviewManager"](this.props.globalState.hostDocument.getElementById("preview-canvas"), this.props.globalState);
  54304. }
  54305. if (navigator.userAgent.indexOf("Mobile") !== -1) {
  54306. (this.props.globalState.hostDocument || document).querySelector(".blocker").style.visibility = "visible";
  54307. }
  54308. this.build();
  54309. };
  54310. GraphEditor.prototype.componentWillUnmount = function () {
  54311. if (this.props.globalState.hostDocument) {
  54312. this.props.globalState.hostDocument.removeEventListener("keyup", this._onWidgetKeyUpPointer, false);
  54313. }
  54314. if (this._previewManager) {
  54315. this._previewManager.dispose();
  54316. }
  54317. };
  54318. GraphEditor.prototype.reconnectNewNodes = function (nodeIndex, newNodes, sourceNodes, done) {
  54319. if (done[nodeIndex]) {
  54320. return;
  54321. }
  54322. var currentNode = newNodes[nodeIndex];
  54323. var block = currentNode.block;
  54324. var sourceNode = sourceNodes[nodeIndex];
  54325. var _loop_1 = function () {
  54326. var sourceInput = sourceNode.block.inputs[inputIndex];
  54327. var currentInput = block.inputs[inputIndex];
  54328. if (!sourceInput.isConnected) {
  54329. return "continue";
  54330. }
  54331. var sourceBlock = sourceInput.connectedPoint.ownerBlock;
  54332. var activeNodes = sourceNodes.filter(function (s) { return s.block === sourceBlock; });
  54333. if (activeNodes.length > 0) {
  54334. var activeNode = activeNodes[0];
  54335. var indexInList = sourceNodes.indexOf(activeNode);
  54336. // First make sure to connect the other one
  54337. this_1.reconnectNewNodes(indexInList, newNodes, sourceNodes, done);
  54338. // Then reconnect
  54339. var outputIndex = sourceBlock.outputs.indexOf(sourceInput.connectedPoint);
  54340. var newOutput = newNodes[indexInList].block.outputs[outputIndex];
  54341. newOutput.connectTo(currentInput);
  54342. }
  54343. else {
  54344. // Connect with outside blocks
  54345. sourceInput._connectedPoint.connectTo(currentInput);
  54346. }
  54347. this_1._graphCanvas.connectPorts(currentInput.connectedPoint, currentInput);
  54348. };
  54349. var this_1 = this;
  54350. for (var inputIndex = 0; inputIndex < sourceNode.block.inputs.length; inputIndex++) {
  54351. _loop_1();
  54352. }
  54353. currentNode.refresh();
  54354. done[nodeIndex] = true;
  54355. };
  54356. GraphEditor.prototype.pasteSelection = function (copiedNodes, currentX, currentY, selectNew) {
  54357. if (selectNew === void 0) { selectNew = false; }
  54358. var originalNode = null;
  54359. var newNodes = [];
  54360. // Copy to prevent recursive side effects while creating nodes.
  54361. copiedNodes = copiedNodes.slice();
  54362. // Cancel selection
  54363. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  54364. // Create new nodes
  54365. for (var _i = 0, copiedNodes_1 = copiedNodes; _i < copiedNodes_1.length; _i++) {
  54366. var node = copiedNodes_1[_i];
  54367. var block = node.block;
  54368. if (!block) {
  54369. continue;
  54370. }
  54371. var clone = block.clone(this.props.globalState.nodeMaterial.getScene());
  54372. if (!clone) {
  54373. return;
  54374. }
  54375. var newNode = this.createNodeFromObject(clone, false);
  54376. var x = 0;
  54377. var y = 0;
  54378. if (originalNode) {
  54379. x = currentX + node.x - originalNode.x;
  54380. y = currentY + node.y - originalNode.y;
  54381. }
  54382. else {
  54383. originalNode = node;
  54384. x = currentX;
  54385. y = currentY;
  54386. }
  54387. newNode.x = x;
  54388. newNode.y = y;
  54389. newNode.cleanAccumulation();
  54390. newNodes.push(newNode);
  54391. if (selectNew) {
  54392. this.props.globalState.onSelectionChangedObservable.notifyObservers(newNode);
  54393. }
  54394. }
  54395. // Relink
  54396. var done = new Array(newNodes.length);
  54397. for (var index = 0; index < newNodes.length; index++) {
  54398. this.reconnectNewNodes(index, newNodes, copiedNodes, done);
  54399. }
  54400. return newNodes;
  54401. };
  54402. GraphEditor.prototype.zoomToFit = function () {
  54403. this._graphCanvas.zoomToFit();
  54404. };
  54405. GraphEditor.prototype.buildMaterial = function () {
  54406. if (!this.props.globalState.nodeMaterial) {
  54407. return;
  54408. }
  54409. try {
  54410. this.props.globalState.nodeMaterial.options.emitComments = true;
  54411. this.props.globalState.nodeMaterial.build(true);
  54412. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogEntry"]("Node material build successful", false));
  54413. }
  54414. catch (err) {
  54415. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogEntry"](err, true));
  54416. }
  54417. _serializationTools__WEBPACK_IMPORTED_MODULE_12__["SerializationTools"].UpdateLocations(this.props.globalState.nodeMaterial, this.props.globalState);
  54418. this.props.globalState.onBuiltObservable.notifyObservers();
  54419. };
  54420. GraphEditor.prototype.build = function () {
  54421. var editorData = this.props.globalState.nodeMaterial.editorData;
  54422. this._graphCanvas._isLoading = true; // Will help loading large graphes
  54423. if (editorData instanceof Array) {
  54424. editorData = {
  54425. locations: editorData
  54426. };
  54427. }
  54428. // setup the diagram model
  54429. this._blocks = [];
  54430. this._graphCanvas.reset();
  54431. // Load graph of nodes from the material
  54432. if (this.props.globalState.nodeMaterial) {
  54433. this.loadGraph();
  54434. }
  54435. this.reOrganize(editorData);
  54436. };
  54437. GraphEditor.prototype.loadGraph = function () {
  54438. var _this = this;
  54439. var material = this.props.globalState.nodeMaterial;
  54440. material._vertexOutputNodes.forEach(function (n) {
  54441. _this.createNodeFromObject(n, true);
  54442. });
  54443. material._fragmentOutputNodes.forEach(function (n) {
  54444. _this.createNodeFromObject(n, true);
  54445. });
  54446. material.attachedBlocks.forEach(function (n) {
  54447. _this.createNodeFromObject(n, true);
  54448. });
  54449. // Links
  54450. material.attachedBlocks.forEach(function (n) {
  54451. if (n.inputs.length) {
  54452. for (var _i = 0, _a = n.inputs; _i < _a.length; _i++) {
  54453. var input = _a[_i];
  54454. if (input.isConnected) {
  54455. _this._graphCanvas.connectPorts(input.connectedPoint, input);
  54456. }
  54457. }
  54458. }
  54459. });
  54460. };
  54461. GraphEditor.prototype.showWaitScreen = function () {
  54462. var _a;
  54463. (_a = this.props.globalState.hostDocument.querySelector(".wait-screen")) === null || _a === void 0 ? void 0 : _a.classList.remove("hidden");
  54464. };
  54465. GraphEditor.prototype.hideWaitScreen = function () {
  54466. var _a;
  54467. (_a = this.props.globalState.hostDocument.querySelector(".wait-screen")) === null || _a === void 0 ? void 0 : _a.classList.add("hidden");
  54468. };
  54469. GraphEditor.prototype.reOrganize = function (editorData, isImportingAFrame) {
  54470. var _this = this;
  54471. if (editorData === void 0) { editorData = null; }
  54472. if (isImportingAFrame === void 0) { isImportingAFrame = false; }
  54473. this.showWaitScreen();
  54474. this._graphCanvas._isLoading = true; // Will help loading large graphes
  54475. setTimeout(function () {
  54476. if (!editorData || !editorData.locations) {
  54477. _this._graphCanvas.distributeGraph();
  54478. }
  54479. else {
  54480. // Locations
  54481. for (var _i = 0, _a = editorData.locations; _i < _a.length; _i++) {
  54482. var location = _a[_i];
  54483. for (var _b = 0, _c = _this._graphCanvas.nodes; _b < _c.length; _b++) {
  54484. var node = _c[_b];
  54485. if (node.block && node.block.uniqueId === location.blockId) {
  54486. node.x = location.x;
  54487. node.y = location.y;
  54488. node.cleanAccumulation();
  54489. break;
  54490. }
  54491. }
  54492. }
  54493. if (!isImportingAFrame) {
  54494. _this._graphCanvas.processEditorData(editorData);
  54495. }
  54496. }
  54497. _this._graphCanvas._isLoading = false;
  54498. for (var _d = 0, _e = _this._graphCanvas.nodes; _d < _e.length; _d++) {
  54499. var node = _e[_d];
  54500. node._refreshLinks();
  54501. }
  54502. _this.hideWaitScreen();
  54503. });
  54504. };
  54505. GraphEditor.prototype.onPointerDown = function (evt) {
  54506. this._startX = evt.clientX;
  54507. this._moveInProgress = true;
  54508. evt.currentTarget.setPointerCapture(evt.pointerId);
  54509. };
  54510. GraphEditor.prototype.onPointerUp = function (evt) {
  54511. this._moveInProgress = false;
  54512. evt.currentTarget.releasePointerCapture(evt.pointerId);
  54513. };
  54514. GraphEditor.prototype.resizeColumns = function (evt, forLeft) {
  54515. if (forLeft === void 0) { forLeft = true; }
  54516. if (!this._moveInProgress) {
  54517. return;
  54518. }
  54519. var deltaX = evt.clientX - this._startX;
  54520. var rootElement = evt.currentTarget.ownerDocument.getElementById("node-editor-graph-root");
  54521. if (forLeft) {
  54522. this._leftWidth += deltaX;
  54523. this._leftWidth = Math.max(150, Math.min(400, this._leftWidth));
  54524. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("LeftWidth", this._leftWidth);
  54525. }
  54526. else {
  54527. this._rightWidth -= deltaX;
  54528. this._rightWidth = Math.max(250, Math.min(500, this._rightWidth));
  54529. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("RightWidth", this._rightWidth);
  54530. rootElement.ownerDocument.getElementById("preview").style.height = this._rightWidth + "px";
  54531. }
  54532. rootElement.style.gridTemplateColumns = this.buildColumnLayout();
  54533. this._startX = evt.clientX;
  54534. };
  54535. GraphEditor.prototype.buildColumnLayout = function () {
  54536. return this._leftWidth + "px 4px calc(100% - " + (this._leftWidth + 8 + this._rightWidth) + "px) 4px " + this._rightWidth + "px";
  54537. };
  54538. GraphEditor.prototype.emitNewBlock = function (event) {
  54539. var _this = this;
  54540. var data = event.dataTransfer.getData("babylonjs-material-node");
  54541. var newNode;
  54542. if (data.indexOf("Custom") > -1) {
  54543. var storageData = localStorage.getItem(data);
  54544. if (storageData) {
  54545. var frameData = JSON.parse(storageData);
  54546. //edit position before loading.
  54547. var newX = (event.clientX - event.currentTarget.offsetLeft - this._graphCanvas.x - this.NodeWidth) / this._graphCanvas.zoom;
  54548. var newY = (event.clientY - event.currentTarget.offsetTop - this._graphCanvas.y - 20) / this._graphCanvas.zoom;
  54549. ;
  54550. var oldX = frameData.editorData.frames[0].x;
  54551. var oldY = frameData.editorData.frames[0].y;
  54552. frameData.editorData.frames[0].x = newX;
  54553. frameData.editorData.frames[0].y = newY;
  54554. for (var _i = 0, _a = frameData.editorData.locations; _i < _a.length; _i++) {
  54555. var location = _a[_i];
  54556. location.x += newX - oldX;
  54557. location.y += newY - oldY;
  54558. }
  54559. _serializationTools__WEBPACK_IMPORTED_MODULE_12__["SerializationTools"].AddFrameToMaterial(frameData, this.props.globalState, this.props.globalState.nodeMaterial);
  54560. this._graphCanvas.frames[this._graphCanvas.frames.length - 1].cleanAccumulation();
  54561. this.forceUpdate();
  54562. return;
  54563. }
  54564. }
  54565. if (data.indexOf("Block") === -1) {
  54566. newNode = this.addValueNode(data);
  54567. }
  54568. else {
  54569. var block_1 = _blockTools__WEBPACK_IMPORTED_MODULE_8__["BlockTools"].GetBlockFromString(data, this.props.globalState.nodeMaterial.getScene(), this.props.globalState.nodeMaterial);
  54570. if (block_1.isUnique) {
  54571. var className = block_1.getClassName();
  54572. for (var _b = 0, _c = this._blocks; _b < _c.length; _b++) {
  54573. var other = _c[_b];
  54574. if (other !== block_1 && other.getClassName() === className) {
  54575. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("You can only have one " + className + " per graph");
  54576. return;
  54577. }
  54578. }
  54579. }
  54580. block_1.autoConfigure(this.props.globalState.nodeMaterial);
  54581. newNode = this.createNodeFromObject(block_1);
  54582. }
  54583. ;
  54584. var x = event.clientX - event.currentTarget.offsetLeft - this._graphCanvas.x - this.NodeWidth;
  54585. var y = event.clientY - event.currentTarget.offsetTop - this._graphCanvas.y - 20;
  54586. newNode.x = x / this._graphCanvas.zoom;
  54587. newNode.y = y / this._graphCanvas.zoom;
  54588. newNode.cleanAccumulation();
  54589. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  54590. this.props.globalState.onSelectionChangedObservable.notifyObservers(newNode);
  54591. var block = newNode.block;
  54592. x -= this.NodeWidth + 150;
  54593. block.inputs.forEach(function (connection) {
  54594. if (connection.connectedPoint) {
  54595. var existingNodes = _this._graphCanvas.nodes.filter(function (n) { return n.block === connection.connectedPoint.ownerBlock; });
  54596. var connectedNode = existingNodes[0];
  54597. if (connectedNode.x === 0 && connectedNode.y === 0) {
  54598. connectedNode.x = x / _this._graphCanvas.zoom;
  54599. connectedNode.y = y / _this._graphCanvas.zoom;
  54600. connectedNode.cleanAccumulation();
  54601. y += 80;
  54602. }
  54603. }
  54604. });
  54605. this.forceUpdate();
  54606. };
  54607. GraphEditor.prototype.render = function () {
  54608. var _this = this;
  54609. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_4__["Portal"], { globalState: this.props.globalState },
  54610. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "node-editor-graph-root", style: {
  54611. gridTemplateColumns: this.buildColumnLayout()
  54612. }, onMouseMove: function (evt) {
  54613. _this._mouseLocationX = evt.pageX;
  54614. _this._mouseLocationY = evt.pageY;
  54615. }, onMouseDown: function (evt) {
  54616. if (evt.target.nodeName === "INPUT") {
  54617. return;
  54618. }
  54619. _this.props.globalState.blockKeyboardEvents = false;
  54620. } },
  54621. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_2__["NodeListComponent"], { globalState: this.props.globalState }),
  54622. 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); } }),
  54623. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagram-container", onDrop: function (event) {
  54624. _this.emitNewBlock(event);
  54625. }, onDragOver: function (event) {
  54626. event.preventDefault();
  54627. } },
  54628. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_13__["GraphCanvasComponent"], { ref: "graphCanvas", globalState: this.props.globalState, onEmitNewBlock: function (block) {
  54629. return _this.createNodeFromObject(block);
  54630. } })),
  54631. 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); } }),
  54632. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "right-panel" },
  54633. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["PropertyTabComponent"], { globalState: this.props.globalState }),
  54634. !this.state.showPreviewPopUp ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_10__["PreviewMeshControlComponent"], { globalState: this.props.globalState, togglePreviewAreaComponent: this.handlePopUp }) : null,
  54635. !this.state.showPreviewPopUp ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_11__["PreviewAreaComponent"], { globalState: this.props.globalState, width: this._rightWidth }) : null),
  54636. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogComponent"], { globalState: this.props.globalState })),
  54637. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_7__["MessageDialogComponent"], { globalState: this.props.globalState }),
  54638. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "blocker" }, "Node Material Editor runs only on desktop"),
  54639. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "wait-screen hidden" }, "Processing...please wait")));
  54640. };
  54641. return GraphEditor;
  54642. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54643. /***/ }),
  54644. /***/ "./index.ts":
  54645. /*!******************!*\
  54646. !*** ./index.ts ***!
  54647. \******************/
  54648. /*! exports provided: NodeEditor */
  54649. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54650. "use strict";
  54651. __webpack_require__.r(__webpack_exports__);
  54652. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  54653. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  54654. /***/ }),
  54655. /***/ "./legacy/legacy.ts":
  54656. /*!**************************!*\
  54657. !*** ./legacy/legacy.ts ***!
  54658. \**************************/
  54659. /*! exports provided: NodeEditor */
  54660. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54661. "use strict";
  54662. __webpack_require__.r(__webpack_exports__);
  54663. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  54664. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  54665. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  54666. if (typeof globalObject !== "undefined") {
  54667. globalObject.BABYLON = globalObject.BABYLON || {};
  54668. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  54669. }
  54670. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  54671. /***/ }),
  54672. /***/ "./main.scss":
  54673. /*!*******************!*\
  54674. !*** ./main.scss ***!
  54675. \*******************/
  54676. /*! no static exports found */
  54677. /***/ (function(module, exports, __webpack_require__) {
  54678. var api = __webpack_require__(/*! ../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  54679. var content = __webpack_require__(/*! !../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./main.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./main.scss");
  54680. content = content.__esModule ? content.default : content;
  54681. if (typeof content === 'string') {
  54682. content = [[module.i, content, '']];
  54683. }
  54684. var options = {};
  54685. options.insert = "head";
  54686. options.singleton = false;
  54687. var update = api(content, options);
  54688. module.exports = content.locals || {};
  54689. /***/ }),
  54690. /***/ "./nodeEditor.ts":
  54691. /*!***********************!*\
  54692. !*** ./nodeEditor.ts ***!
  54693. \***********************/
  54694. /*! exports provided: NodeEditor */
  54695. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54696. "use strict";
  54697. __webpack_require__.r(__webpack_exports__);
  54698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  54699. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54700. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  54701. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  54702. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  54703. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  54704. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  54705. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  54706. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  54707. /* harmony import */ var _components_preview_previewType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/preview/previewType */ "./components/preview/previewType.ts");
  54708. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  54709. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__);
  54710. /**
  54711. * Class used to create a node editor
  54712. */
  54713. var NodeEditor = /** @class */ (function () {
  54714. function NodeEditor() {
  54715. }
  54716. /**
  54717. * Show the node editor
  54718. * @param options defines the options to use to configure the node editor
  54719. */
  54720. NodeEditor.Show = function (options) {
  54721. if (this._CurrentState) {
  54722. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  54723. if (popupWindow) {
  54724. popupWindow.close();
  54725. }
  54726. }
  54727. var hostElement = options.hostElement;
  54728. if (!hostElement) {
  54729. hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  54730. }
  54731. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  54732. globalState.nodeMaterial = options.nodeMaterial;
  54733. globalState.mode = options.nodeMaterial.mode;
  54734. globalState.hostElement = hostElement;
  54735. globalState.hostDocument = hostElement.ownerDocument;
  54736. globalState.customSave = options.customSave;
  54737. globalState.hostWindow = hostElement.ownerDocument.defaultView;
  54738. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  54739. globalState: globalState
  54740. });
  54741. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  54742. if (options.customLoadObservable) {
  54743. options.customLoadObservable.add(function (data) {
  54744. _serializationTools__WEBPACK_IMPORTED_MODULE_5__["SerializationTools"].Deserialize(data, globalState);
  54745. globalState.mode = options.nodeMaterial.mode;
  54746. globalState.onResetRequiredObservable.notifyObservers();
  54747. globalState.onBuiltObservable.notifyObservers();
  54748. });
  54749. }
  54750. this._CurrentState = globalState;
  54751. // Close the popup window when the page is refreshed or scene is disposed
  54752. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  54753. if (globalState.nodeMaterial && popupWindow) {
  54754. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  54755. if (popupWindow) {
  54756. popupWindow.close();
  54757. }
  54758. });
  54759. window.onbeforeunload = function () {
  54760. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  54761. if (popupWindow) {
  54762. popupWindow.close();
  54763. }
  54764. };
  54765. }
  54766. window.addEventListener('beforeunload', function () {
  54767. if (babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__["DataStorage"].ReadNumber("PreviewType", _components_preview_previewType__WEBPACK_IMPORTED_MODULE_6__["PreviewType"].Box) === _components_preview_previewType__WEBPACK_IMPORTED_MODULE_6__["PreviewType"].Custom) {
  54768. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__["DataStorage"].WriteNumber("PreviewType", globalState.mode === babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__["NodeMaterialModes"].Material ? _components_preview_previewType__WEBPACK_IMPORTED_MODULE_6__["PreviewType"].Box : _components_preview_previewType__WEBPACK_IMPORTED_MODULE_6__["PreviewType"].Bubbles);
  54769. }
  54770. });
  54771. };
  54772. return NodeEditor;
  54773. }());
  54774. /***/ }),
  54775. /***/ "./portal.tsx":
  54776. /*!********************!*\
  54777. !*** ./portal.tsx ***!
  54778. \********************/
  54779. /*! exports provided: Portal */
  54780. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54781. "use strict";
  54782. __webpack_require__.r(__webpack_exports__);
  54783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  54784. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54785. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54786. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54787. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  54788. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  54789. var Portal = /** @class */ (function (_super) {
  54790. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Portal, _super);
  54791. function Portal() {
  54792. return _super !== null && _super.apply(this, arguments) || this;
  54793. }
  54794. Portal.prototype.render = function () {
  54795. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  54796. };
  54797. return Portal;
  54798. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54799. /***/ }),
  54800. /***/ "./serializationTools.ts":
  54801. /*!*******************************!*\
  54802. !*** ./serializationTools.ts ***!
  54803. \*******************************/
  54804. /*! exports provided: SerializationTools */
  54805. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54806. "use strict";
  54807. __webpack_require__.r(__webpack_exports__);
  54808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SerializationTools", function() { return SerializationTools; });
  54809. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Textures/texture */ "babylonjs/Misc/dataStorage");
  54810. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__);
  54811. var SerializationTools = /** @class */ (function () {
  54812. function SerializationTools() {
  54813. }
  54814. SerializationTools.UpdateLocations = function (material, globalState, frame) {
  54815. material.editorData = {
  54816. locations: []
  54817. };
  54818. // Store node locations
  54819. var blocks = frame ? frame.nodes.map(function (n) { return n.block; }) : material.attachedBlocks;
  54820. for (var _i = 0, blocks_1 = blocks; _i < blocks_1.length; _i++) {
  54821. var block = blocks_1[_i];
  54822. var node = globalState.onGetNodeFromBlock(block);
  54823. material.editorData.locations.push({
  54824. blockId: block.uniqueId,
  54825. x: node ? node.x : 0,
  54826. y: node ? node.y : 0
  54827. });
  54828. }
  54829. globalState.storeEditorData(material.editorData, frame);
  54830. };
  54831. SerializationTools.Serialize = function (material, globalState, frame) {
  54832. var bufferSerializationState = babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers;
  54833. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("EmbedTextures", true);
  54834. this.UpdateLocations(material, globalState, frame);
  54835. var selectedBlocks = frame ? frame.nodes.map(function (n) { return n.block; }) : undefined;
  54836. var serializationObject = material.serialize(selectedBlocks);
  54837. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = bufferSerializationState;
  54838. return JSON.stringify(serializationObject, undefined, 2);
  54839. };
  54840. SerializationTools.Deserialize = function (serializationObject, globalState) {
  54841. globalState.nodeMaterial.loadFromSerialization(serializationObject, "");
  54842. globalState.onIsLoadingChanged.notifyObservers(false);
  54843. };
  54844. SerializationTools.AddFrameToMaterial = function (serializationObject, globalState, currentMaterial) {
  54845. this.UpdateLocations(currentMaterial, globalState);
  54846. globalState.nodeMaterial.loadFromSerialization(serializationObject, "", true);
  54847. globalState.onImportFrameObservable.notifyObservers(serializationObject);
  54848. globalState.onIsLoadingChanged.notifyObservers(false);
  54849. };
  54850. return SerializationTools;
  54851. }());
  54852. /***/ }),
  54853. /***/ "./sharedComponents/buttonLineComponent.tsx":
  54854. /*!**************************************************!*\
  54855. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  54856. \**************************************************/
  54857. /*! exports provided: ButtonLineComponent */
  54858. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54859. "use strict";
  54860. __webpack_require__.r(__webpack_exports__);
  54861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  54862. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54863. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54864. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54865. var ButtonLineComponent = /** @class */ (function (_super) {
  54866. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ButtonLineComponent, _super);
  54867. function ButtonLineComponent(props) {
  54868. return _super.call(this, props) || this;
  54869. }
  54870. ButtonLineComponent.prototype.render = function () {
  54871. var _this = this;
  54872. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  54873. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  54874. };
  54875. return ButtonLineComponent;
  54876. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54877. /***/ }),
  54878. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  54879. /*!****************************************************!*\
  54880. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  54881. \****************************************************/
  54882. /*! exports provided: CheckBoxLineComponent */
  54883. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54884. "use strict";
  54885. __webpack_require__.r(__webpack_exports__);
  54886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  54887. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54888. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54889. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54890. var CheckBoxLineComponent = /** @class */ (function (_super) {
  54891. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CheckBoxLineComponent, _super);
  54892. function CheckBoxLineComponent(props) {
  54893. var _this = _super.call(this, props) || this;
  54894. _this._localChange = false;
  54895. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  54896. if (_this.props.isSelected) {
  54897. _this.state = { isSelected: _this.props.isSelected() };
  54898. }
  54899. else {
  54900. _this.state = { isSelected: _this.props.target[_this.props.propertyName] == true };
  54901. }
  54902. if (_this.props.disabled) {
  54903. _this.state = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _this.state), { isDisabled: _this.props.disabled });
  54904. }
  54905. return _this;
  54906. }
  54907. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  54908. var currentState;
  54909. if (nextProps.isSelected) {
  54910. currentState = nextProps.isSelected();
  54911. }
  54912. else {
  54913. currentState = nextProps.target[nextProps.propertyName] == true;
  54914. }
  54915. if (currentState !== nextState.isSelected || this._localChange) {
  54916. nextState.isSelected = currentState;
  54917. this._localChange = false;
  54918. return true;
  54919. }
  54920. if (nextProps.disabled !== !!nextState.isDisabled) {
  54921. return true;
  54922. }
  54923. return nextProps.label !== this.props.label || nextProps.target !== this.props.target;
  54924. };
  54925. CheckBoxLineComponent.prototype.onChange = function () {
  54926. this._localChange = true;
  54927. if (this.props.onSelect) {
  54928. this.props.onSelect(!this.state.isSelected);
  54929. }
  54930. else {
  54931. if (this.props.onPropertyChangedObservable) {
  54932. this.props.onPropertyChangedObservable.notifyObservers({
  54933. object: this.props.target,
  54934. property: this.props.propertyName,
  54935. value: !this.state.isSelected,
  54936. initialValue: this.state.isSelected
  54937. });
  54938. }
  54939. this.props.target[this.props.propertyName] = !this.state.isSelected;
  54940. }
  54941. if (this.props.onValueChanged) {
  54942. this.props.onValueChanged();
  54943. }
  54944. this.setState({ isSelected: !this.state.isSelected });
  54945. };
  54946. CheckBoxLineComponent.prototype.render = function () {
  54947. var _this = this;
  54948. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  54949. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  54950. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  54951. 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(); }, disabled: !!this.props.disabled }),
  54952. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" + (!!this.props.disabled ? ' disabled' : '') }))));
  54953. };
  54954. CheckBoxLineComponent._UniqueIdSeed = 0;
  54955. return CheckBoxLineComponent;
  54956. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54957. /***/ }),
  54958. /***/ "./sharedComponents/color3LineComponent.tsx":
  54959. /*!**************************************************!*\
  54960. !*** ./sharedComponents/color3LineComponent.tsx ***!
  54961. \**************************************************/
  54962. /*! exports provided: Color3LineComponent */
  54963. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54964. "use strict";
  54965. __webpack_require__.r(__webpack_exports__);
  54966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  54967. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54968. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54969. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54970. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  54971. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  54972. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  54973. /* harmony import */ var _colorPickerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./colorPickerComponent */ "./sharedComponents/colorPickerComponent.tsx");
  54974. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./sharedComponents/copy.svg");
  54975. var plusIcon = __webpack_require__(/*! ./plus.svg */ "./sharedComponents/plus.svg");
  54976. var minusIcon = __webpack_require__(/*! ./minus.svg */ "./sharedComponents/minus.svg");
  54977. var Color3LineComponent = /** @class */ (function (_super) {
  54978. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3LineComponent, _super);
  54979. function Color3LineComponent(props) {
  54980. var _this = _super.call(this, props) || this;
  54981. _this._localChange = false;
  54982. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  54983. return _this;
  54984. }
  54985. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  54986. var currentState = nextProps.target[nextProps.propertyName];
  54987. if (!currentState.equals(nextState.color) || this._localChange) {
  54988. nextState.color = currentState.clone();
  54989. this._localChange = false;
  54990. return true;
  54991. }
  54992. return false;
  54993. };
  54994. Color3LineComponent.prototype.onChange = function (newValue) {
  54995. this._localChange = true;
  54996. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  54997. if (this.props.onPropertyChangedObservable) {
  54998. this.props.onPropertyChangedObservable.notifyObservers({
  54999. object: this.props.target,
  55000. property: this.props.propertyName,
  55001. value: newColor,
  55002. initialValue: this.state.color
  55003. });
  55004. }
  55005. if (this.props.target[this.props.propertyName].getClassName() === "Color4") {
  55006. this.props.target[this.props.propertyName] = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](newColor.r, newColor.g, newColor.b, 1.0);
  55007. }
  55008. else {
  55009. this.props.target[this.props.propertyName] = newColor;
  55010. }
  55011. this.setState({ color: newColor });
  55012. if (this.props.onChange) {
  55013. this.props.onChange();
  55014. }
  55015. };
  55016. Color3LineComponent.prototype.switchExpandState = function () {
  55017. this._localChange = true;
  55018. this.setState({ isExpanded: !this.state.isExpanded });
  55019. };
  55020. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  55021. if (this.props.onChange) {
  55022. this.props.onChange();
  55023. }
  55024. if (!this.props.onPropertyChangedObservable) {
  55025. return;
  55026. }
  55027. this.props.onPropertyChangedObservable.notifyObservers({
  55028. object: this.props.target,
  55029. property: this.props.propertyName,
  55030. value: this.state.color,
  55031. initialValue: previousValue
  55032. });
  55033. };
  55034. Color3LineComponent.prototype.updateStateR = function (value) {
  55035. this._localChange = true;
  55036. var store = this.state.color.clone();
  55037. this.props.target[this.props.propertyName].x = value;
  55038. this.state.color.r = value;
  55039. this.props.target[this.props.propertyName] = this.state.color;
  55040. this.setState({ color: this.state.color });
  55041. this.raiseOnPropertyChanged(store);
  55042. };
  55043. Color3LineComponent.prototype.updateStateG = function (value) {
  55044. this._localChange = true;
  55045. var store = this.state.color.clone();
  55046. this.props.target[this.props.propertyName].g = value;
  55047. this.state.color.g = value;
  55048. this.props.target[this.props.propertyName] = this.state.color;
  55049. this.setState({ color: this.state.color });
  55050. this.raiseOnPropertyChanged(store);
  55051. };
  55052. Color3LineComponent.prototype.updateStateB = function (value) {
  55053. this._localChange = true;
  55054. var store = this.state.color.clone();
  55055. this.props.target[this.props.propertyName].b = value;
  55056. this.state.color.b = value;
  55057. this.props.target[this.props.propertyName] = this.state.color;
  55058. this.setState({ color: this.state.color });
  55059. this.raiseOnPropertyChanged(store);
  55060. };
  55061. Color3LineComponent.prototype.copyToClipboard = function () {
  55062. var element = document.createElement('div');
  55063. element.textContent = this.state.color.toHexString();
  55064. document.body.appendChild(element);
  55065. if (window.getSelection) {
  55066. var range = document.createRange();
  55067. range.selectNode(element);
  55068. window.getSelection().removeAllRanges();
  55069. window.getSelection().addRange(range);
  55070. }
  55071. document.execCommand('copy');
  55072. element.remove();
  55073. };
  55074. Color3LineComponent.prototype.render = function () {
  55075. var _this = this;
  55076. var expandedIcon = this.state.isExpanded ? minusIcon : plusIcon;
  55077. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  55078. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  55079. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  55080. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  55081. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorPickerComponent__WEBPACK_IMPORTED_MODULE_4__["ColorPickerLineComponent"], { value: this.state.color, globalState: this.props.globalState, onColorChanged: function (color) {
  55082. _this.onChange(color);
  55083. } })),
  55084. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  55085. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  55086. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" },
  55087. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: expandedIcon, alt: "" }))),
  55088. this.state.isExpanded &&
  55089. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  55090. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { globalState: this.props.globalState, label: "r", value: this.state.color.r, onChange: function (value) { return _this.updateStateR(value); } }),
  55091. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { globalState: this.props.globalState, label: "g", value: this.state.color.g, onChange: function (value) { return _this.updateStateG(value); } }),
  55092. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { globalState: this.props.globalState, label: "b", value: this.state.color.b, onChange: function (value) { return _this.updateStateB(value); } }))));
  55093. };
  55094. return Color3LineComponent;
  55095. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55096. /***/ }),
  55097. /***/ "./sharedComponents/color4LineComponent.tsx":
  55098. /*!**************************************************!*\
  55099. !*** ./sharedComponents/color4LineComponent.tsx ***!
  55100. \**************************************************/
  55101. /*! exports provided: Color4LineComponent */
  55102. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55103. "use strict";
  55104. __webpack_require__.r(__webpack_exports__);
  55105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color4LineComponent", function() { return Color4LineComponent; });
  55106. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55107. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55108. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55109. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  55110. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  55111. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  55112. /* harmony import */ var _colorPickerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./colorPickerComponent */ "./sharedComponents/colorPickerComponent.tsx");
  55113. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./sharedComponents/copy.svg");
  55114. var plusIcon = __webpack_require__(/*! ./plus.svg */ "./sharedComponents/plus.svg");
  55115. var minusIcon = __webpack_require__(/*! ./minus.svg */ "./sharedComponents/minus.svg");
  55116. var Color4LineComponent = /** @class */ (function (_super) {
  55117. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color4LineComponent, _super);
  55118. function Color4LineComponent(props) {
  55119. var _this = _super.call(this, props) || this;
  55120. _this._localChange = false;
  55121. var value = _this.props.target[_this.props.propertyName];
  55122. var currentColor = value.getClassName() === "Color4" ? value.clone() : new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](value.r, value.g, value.b, 1.0);
  55123. _this.state = { isExpanded: false, color: currentColor };
  55124. return _this;
  55125. }
  55126. Color4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  55127. var currentState = nextProps.target[nextProps.propertyName];
  55128. var currentColor = currentState.getClassName() === "Color4" ? currentState : new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](currentState.r, currentState.g, currentState.b, 1.0);
  55129. if (!currentColor.equals(nextState.color) || this._localChange) {
  55130. nextState.color = currentColor.clone();
  55131. this._localChange = false;
  55132. return true;
  55133. }
  55134. return false;
  55135. };
  55136. Color4LineComponent.prototype.onChange = function (newValue) {
  55137. this._localChange = true;
  55138. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromHexString(newValue);
  55139. if (this.props.onPropertyChangedObservable) {
  55140. this.props.onPropertyChangedObservable.notifyObservers({
  55141. object: this.props.target,
  55142. property: this.props.propertyName,
  55143. value: newColor,
  55144. initialValue: this.state.color
  55145. });
  55146. }
  55147. this.props.target[this.props.propertyName] = newColor;
  55148. this.setState({ color: this.props.target[this.props.propertyName] });
  55149. if (this.props.onChange) {
  55150. this.props.onChange();
  55151. }
  55152. };
  55153. Color4LineComponent.prototype.switchExpandState = function () {
  55154. this._localChange = true;
  55155. this.setState({ isExpanded: !this.state.isExpanded });
  55156. };
  55157. Color4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  55158. if (this.props.onChange) {
  55159. this.props.onChange();
  55160. }
  55161. if (!this.props.onPropertyChangedObservable) {
  55162. return;
  55163. }
  55164. this.props.onPropertyChangedObservable.notifyObservers({
  55165. object: this.props.target,
  55166. property: this.props.propertyName,
  55167. value: this.state.color,
  55168. initialValue: previousValue
  55169. });
  55170. };
  55171. Color4LineComponent.prototype.updateStateR = function (value) {
  55172. this._localChange = true;
  55173. var store = this.state.color.clone();
  55174. this.props.target[this.props.propertyName].x = value;
  55175. this.state.color.r = value;
  55176. this.props.target[this.props.propertyName] = this.state.color;
  55177. this.setState({ color: this.state.color });
  55178. this.raiseOnPropertyChanged(store);
  55179. };
  55180. Color4LineComponent.prototype.updateStateG = function (value) {
  55181. this._localChange = true;
  55182. var store = this.state.color.clone();
  55183. this.props.target[this.props.propertyName].g = value;
  55184. this.state.color.g = value;
  55185. this.props.target[this.props.propertyName] = this.state.color;
  55186. this.setState({ color: this.state.color });
  55187. this.raiseOnPropertyChanged(store);
  55188. };
  55189. Color4LineComponent.prototype.updateStateB = function (value) {
  55190. this._localChange = true;
  55191. var store = this.state.color.clone();
  55192. this.props.target[this.props.propertyName].b = value;
  55193. this.state.color.b = value;
  55194. this.props.target[this.props.propertyName] = this.state.color;
  55195. this.setState({ color: this.state.color });
  55196. this.raiseOnPropertyChanged(store);
  55197. };
  55198. Color4LineComponent.prototype.updateStateA = function (value) {
  55199. this._localChange = true;
  55200. var store = this.state.color.clone();
  55201. this.props.target[this.props.propertyName].a = value;
  55202. this.state.color.a = value;
  55203. this.props.target[this.props.propertyName] = this.state.color;
  55204. this.setState({ color: this.state.color });
  55205. this.raiseOnPropertyChanged(store);
  55206. };
  55207. Color4LineComponent.prototype.copyToClipboard = function () {
  55208. var element = document.createElement('div');
  55209. element.textContent = this.state.color.toHexString();
  55210. document.body.appendChild(element);
  55211. if (window.getSelection) {
  55212. var range = document.createRange();
  55213. range.selectNode(element);
  55214. window.getSelection().removeAllRanges();
  55215. window.getSelection().addRange(range);
  55216. }
  55217. document.execCommand('copy');
  55218. element.remove();
  55219. };
  55220. Color4LineComponent.prototype.render = function () {
  55221. var _this = this;
  55222. var expandedIcon = this.state.isExpanded ? minusIcon : plusIcon;
  55223. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  55224. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  55225. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  55226. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  55227. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorPickerComponent__WEBPACK_IMPORTED_MODULE_4__["ColorPickerLineComponent"], { globalState: this.props.globalState, value: this.state.color, onColorChanged: function (color) {
  55228. _this.onChange(color);
  55229. } })),
  55230. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  55231. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  55232. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" },
  55233. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: expandedIcon, alt: "" }))),
  55234. this.state.isExpanded &&
  55235. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  55236. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { globalState: this.props.globalState, label: "r", value: this.state.color.r, onChange: function (value) { return _this.updateStateR(value); } }),
  55237. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { globalState: this.props.globalState, label: "g", value: this.state.color.g, onChange: function (value) { return _this.updateStateG(value); } }),
  55238. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { globalState: this.props.globalState, label: "b", value: this.state.color.b, onChange: function (value) { return _this.updateStateB(value); } }),
  55239. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { globalState: this.props.globalState, label: "a", value: this.state.color.a, onChange: function (value) { return _this.updateStateA(value); } }))));
  55240. };
  55241. return Color4LineComponent;
  55242. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55243. /***/ }),
  55244. /***/ "./sharedComponents/colorPicker/colorComponentEntry.tsx":
  55245. /*!**************************************************************!*\
  55246. !*** ./sharedComponents/colorPicker/colorComponentEntry.tsx ***!
  55247. \**************************************************************/
  55248. /*! exports provided: ColorComponentEntry */
  55249. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55250. "use strict";
  55251. __webpack_require__.r(__webpack_exports__);
  55252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorComponentEntry", function() { return ColorComponentEntry; });
  55253. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55254. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55255. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55256. var ColorComponentEntry = /** @class */ (function (_super) {
  55257. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorComponentEntry, _super);
  55258. function ColorComponentEntry(props) {
  55259. return _super.call(this, props) || this;
  55260. }
  55261. ColorComponentEntry.prototype.updateValue = function (valueString) {
  55262. if (/[^0-9\.\-]/g.test(valueString)) {
  55263. return;
  55264. }
  55265. var valueAsNumber = parseInt(valueString);
  55266. if (isNaN(valueAsNumber)) {
  55267. return;
  55268. }
  55269. if (this.props.max != undefined && (valueAsNumber > this.props.max)) {
  55270. valueAsNumber = this.props.max;
  55271. }
  55272. if (this.props.min != undefined && (valueAsNumber < this.props.min)) {
  55273. valueAsNumber = this.props.min;
  55274. }
  55275. this.props.onChange(valueAsNumber);
  55276. };
  55277. ColorComponentEntry.prototype.render = function () {
  55278. var _this = this;
  55279. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-component" },
  55280. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-component-value" },
  55281. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: 1, className: "numeric-input", value: this.props.value, onChange: function (evt) { return _this.updateValue(evt.target.value); } })),
  55282. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-component-label" }, this.props.label)));
  55283. };
  55284. return ColorComponentEntry;
  55285. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55286. /***/ }),
  55287. /***/ "./sharedComponents/colorPicker/colorPicker.scss":
  55288. /*!*******************************************************!*\
  55289. !*** ./sharedComponents/colorPicker/colorPicker.scss ***!
  55290. \*******************************************************/
  55291. /*! no static exports found */
  55292. /***/ (function(module, exports, __webpack_require__) {
  55293. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  55294. var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js!./colorPicker.scss */ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./sharedComponents/colorPicker/colorPicker.scss");
  55295. content = content.__esModule ? content.default : content;
  55296. if (typeof content === 'string') {
  55297. content = [[module.i, content, '']];
  55298. }
  55299. var options = {};
  55300. options.insert = "head";
  55301. options.singleton = false;
  55302. var update = api(content, options);
  55303. module.exports = content.locals || {};
  55304. /***/ }),
  55305. /***/ "./sharedComponents/colorPicker/colorPicker.tsx":
  55306. /*!******************************************************!*\
  55307. !*** ./sharedComponents/colorPicker/colorPicker.tsx ***!
  55308. \******************************************************/
  55309. /*! exports provided: ColorPicker */
  55310. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55311. "use strict";
  55312. __webpack_require__.r(__webpack_exports__);
  55313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPicker", function() { return ColorPicker; });
  55314. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55315. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55316. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55317. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  55318. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  55319. /* harmony import */ var _colorComponentEntry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./colorComponentEntry */ "./sharedComponents/colorPicker/colorComponentEntry.tsx");
  55320. /* harmony import */ var _hexColor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hexColor */ "./sharedComponents/colorPicker/hexColor.tsx");
  55321. __webpack_require__(/*! ./colorPicker.scss */ "./sharedComponents/colorPicker/colorPicker.scss");
  55322. /**
  55323. * Class used to create a color picker
  55324. */
  55325. var ColorPicker = /** @class */ (function (_super) {
  55326. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorPicker, _super);
  55327. function ColorPicker(props) {
  55328. var _this = _super.call(this, props) || this;
  55329. if (_this.props.color instanceof babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"]) {
  55330. _this.state = { color: new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"](_this.props.color.r, _this.props.color.g, _this.props.color.b), alpha: _this.props.color.a };
  55331. }
  55332. else {
  55333. _this.state = { color: _this.props.color.clone(), alpha: 1 };
  55334. }
  55335. _this._saturationRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55336. _this._hueRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55337. return _this;
  55338. }
  55339. ColorPicker.prototype.onSaturationPointerDown = function (evt) {
  55340. this._evaluateSaturation(evt);
  55341. this._isSaturationPointerDown = true;
  55342. evt.currentTarget.setPointerCapture(evt.pointerId);
  55343. };
  55344. ColorPicker.prototype.onSaturationPointerUp = function (evt) {
  55345. this._isSaturationPointerDown = false;
  55346. evt.currentTarget.releasePointerCapture(evt.pointerId);
  55347. };
  55348. ColorPicker.prototype.onSaturationPointerMove = function (evt) {
  55349. if (!this._isSaturationPointerDown) {
  55350. return;
  55351. }
  55352. this._evaluateSaturation(evt);
  55353. };
  55354. ColorPicker.prototype.onHuePointerDown = function (evt) {
  55355. this._evaluateHue(evt);
  55356. this._isHuePointerDown = true;
  55357. evt.currentTarget.setPointerCapture(evt.pointerId);
  55358. };
  55359. ColorPicker.prototype.onHuePointerUp = function (evt) {
  55360. this._isHuePointerDown = false;
  55361. evt.currentTarget.releasePointerCapture(evt.pointerId);
  55362. };
  55363. ColorPicker.prototype.onHuePointerMove = function (evt) {
  55364. if (!this._isHuePointerDown) {
  55365. return;
  55366. }
  55367. this._evaluateHue(evt);
  55368. };
  55369. ColorPicker.prototype._evaluateSaturation = function (evt) {
  55370. var left = evt.nativeEvent.offsetX;
  55371. var top = evt.nativeEvent.offsetY;
  55372. var saturation = Math.min(1, Math.max(0.0001, left / this._saturationRef.current.clientWidth));
  55373. var value = Math.min(1, Math.max(0.0001, 1 - (top / this._saturationRef.current.clientHeight)));
  55374. if (this.props.debugMode) {
  55375. console.log("Saturation: " + saturation);
  55376. console.log("Value: " + value);
  55377. }
  55378. var hsv = this.state.color.toHSV();
  55379. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].HSVtoRGBToRef(hsv.r, saturation, value, this.state.color);
  55380. this.setState({ color: this.state.color });
  55381. };
  55382. ColorPicker.prototype._evaluateHue = function (evt) {
  55383. var left = evt.nativeEvent.offsetX;
  55384. var hue = 360 * Math.min(0.9999, Math.max(0.0001, left / this._hueRef.current.clientWidth));
  55385. if (this.props.debugMode) {
  55386. console.log("Hue: " + hue);
  55387. }
  55388. var hsv = this.state.color.toHSV();
  55389. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].HSVtoRGBToRef(hue, Math.max(hsv.g, 0.0001), hsv.b, this.state.color);
  55390. this.setState({ color: this.state.color });
  55391. };
  55392. ColorPicker.prototype.componentDidUpdate = function () {
  55393. this.raiseOnColorChanged();
  55394. };
  55395. ColorPicker.prototype.raiseOnColorChanged = function () {
  55396. if (!this.props.onColorChanged) {
  55397. return;
  55398. }
  55399. if (this.props.color instanceof babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"]) {
  55400. var newColor4 = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromColor3(this.state.color, this.state.alpha);
  55401. this.props.onColorChanged(newColor4);
  55402. return;
  55403. }
  55404. this.props.onColorChanged(this.state.color.clone());
  55405. };
  55406. ColorPicker.prototype.render = function () {
  55407. var _this = this;
  55408. var colorHex = this.state.color.toHexString();
  55409. var hsv = this.state.color.toHSV();
  55410. var colorRef = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"]();
  55411. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].HSVtoRGBToRef(hsv.r, 1, 1, colorRef);
  55412. var colorHexRef = colorRef.toHexString();
  55413. var hasAlpha = this.props.color instanceof babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"];
  55414. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-container" },
  55415. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-saturation", onPointerMove: function (e) { return _this.onSaturationPointerMove(e); }, onPointerDown: function (e) { return _this.onSaturationPointerDown(e); }, onPointerUp: function (e) { return _this.onSaturationPointerUp(e); }, ref: this._saturationRef, style: {
  55416. background: colorHexRef
  55417. } },
  55418. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-saturation-white" }),
  55419. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-saturation-black" }),
  55420. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-saturation-cursor", style: {
  55421. top: -(hsv.b * 100) + 100 + "%",
  55422. left: hsv.g * 100 + "%",
  55423. } })),
  55424. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-hue" },
  55425. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-hue-color", style: {
  55426. background: colorHex
  55427. } }),
  55428. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-hue-slider", ref: this._hueRef, onPointerMove: function (e) { return _this.onHuePointerMove(e); }, onPointerDown: function (e) { return _this.onHuePointerDown(e); }, onPointerUp: function (e) { return _this.onHuePointerUp(e); } },
  55429. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-hue-cursor", style: {
  55430. left: (hsv.r / 360.0) * 100 + "%",
  55431. border: "1px solid " + colorHexRef
  55432. } }))),
  55433. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-rgb" },
  55434. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "red" },
  55435. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorComponentEntry__WEBPACK_IMPORTED_MODULE_3__["ColorComponentEntry"], { label: "R", min: 0, max: 255, value: this.state.color.r * 255 | 0, onChange: function (value) {
  55436. _this.state.color.r = value / 255.0;
  55437. _this.forceUpdate();
  55438. } })),
  55439. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "green" },
  55440. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorComponentEntry__WEBPACK_IMPORTED_MODULE_3__["ColorComponentEntry"], { label: "G", min: 0, max: 255, value: this.state.color.g * 255 | 0, onChange: function (value) {
  55441. _this.state.color.g = value / 255.0;
  55442. _this.forceUpdate();
  55443. } })),
  55444. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "blue" },
  55445. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorComponentEntry__WEBPACK_IMPORTED_MODULE_3__["ColorComponentEntry"], { label: "B", min: 0, max: 255, value: this.state.color.b * 255 | 0, onChange: function (value) {
  55446. _this.state.color.b = value / 255.0;
  55447. _this.forceUpdate();
  55448. } })),
  55449. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "alpha" + (hasAlpha ? "" : " grayed") },
  55450. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorComponentEntry__WEBPACK_IMPORTED_MODULE_3__["ColorComponentEntry"], { label: "A", min: 0, max: 255, value: this.state.alpha * 255 | 0, onChange: function (value) {
  55451. _this.setState({ alpha: value / 255.0 });
  55452. _this.forceUpdate();
  55453. } }))),
  55454. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-hex" },
  55455. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-hex-label" }, "Hex"),
  55456. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-hex-value" },
  55457. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_hexColor__WEBPACK_IMPORTED_MODULE_4__["HexColor"], { expectedLength: 6, value: colorHex, onChange: function (value) {
  55458. _this.setState({ color: babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(value) });
  55459. } })))));
  55460. };
  55461. return ColorPicker;
  55462. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55463. /***/ }),
  55464. /***/ "./sharedComponents/colorPicker/hexColor.tsx":
  55465. /*!***************************************************!*\
  55466. !*** ./sharedComponents/colorPicker/hexColor.tsx ***!
  55467. \***************************************************/
  55468. /*! exports provided: HexColor */
  55469. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55470. "use strict";
  55471. __webpack_require__.r(__webpack_exports__);
  55472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HexColor", function() { return HexColor; });
  55473. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55474. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55475. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55476. var HexColor = /** @class */ (function (_super) {
  55477. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(HexColor, _super);
  55478. function HexColor(props) {
  55479. var _this = _super.call(this, props) || this;
  55480. _this.state = { hex: _this.props.value.replace("#", "") };
  55481. return _this;
  55482. }
  55483. HexColor.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  55484. if (nextProps.value !== this.props.value) {
  55485. nextState.hex = nextProps.value.replace("#", "");
  55486. }
  55487. return true;
  55488. };
  55489. HexColor.prototype.updateHexValue = function (valueString) {
  55490. if (valueString != "" && /^[0-9A-Fa-f]+$/g.test(valueString) == false) {
  55491. return;
  55492. }
  55493. this.setState({ hex: valueString });
  55494. if (valueString.length !== this.props.expectedLength) {
  55495. return;
  55496. }
  55497. this.props.onChange("#" + valueString);
  55498. };
  55499. HexColor.prototype.render = function () {
  55500. var _this = this;
  55501. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "string", className: "hex-input", value: this.state.hex, onChange: function (evt) { return _this.updateHexValue(evt.target.value); } }));
  55502. };
  55503. return HexColor;
  55504. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55505. /***/ }),
  55506. /***/ "./sharedComponents/colorPickerComponent.tsx":
  55507. /*!***************************************************!*\
  55508. !*** ./sharedComponents/colorPickerComponent.tsx ***!
  55509. \***************************************************/
  55510. /*! exports provided: ColorPickerLineComponent */
  55511. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55512. "use strict";
  55513. __webpack_require__.r(__webpack_exports__);
  55514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPickerLineComponent", function() { return ColorPickerLineComponent; });
  55515. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55516. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55517. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55518. /* harmony import */ var _colorPicker_colorPicker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./colorPicker/colorPicker */ "./sharedComponents/colorPicker/colorPicker.tsx");
  55519. var ColorPickerLineComponent = /** @class */ (function (_super) {
  55520. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorPickerLineComponent, _super);
  55521. function ColorPickerLineComponent(props) {
  55522. var _this = _super.call(this, props) || this;
  55523. _this.state = { pickerEnabled: false, color: _this.props.value, hex: _this.props.value.toHexString() };
  55524. _this._floatRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55525. _this._floatHostRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55526. return _this;
  55527. }
  55528. ColorPickerLineComponent.prototype.syncPositions = function () {
  55529. var div = this._floatRef.current;
  55530. var host = this._floatHostRef.current;
  55531. if (!div || !host) {
  55532. return;
  55533. }
  55534. var top = host.getBoundingClientRect().top;
  55535. var height = div.getBoundingClientRect().height;
  55536. if (top + height + 10 > window.innerHeight) {
  55537. top = window.innerHeight - height - 10;
  55538. }
  55539. div.style.top = top + "px";
  55540. div.style.left = host.getBoundingClientRect().left - div.getBoundingClientRect().width + "px";
  55541. };
  55542. ColorPickerLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  55543. var result = nextProps.value.toHexString() !== this.props.value.toHexString()
  55544. || nextState.hex !== this.state.hex
  55545. || nextState.pickerEnabled !== this.state.pickerEnabled;
  55546. if (result) {
  55547. nextState.color = nextProps.value;
  55548. nextState.hex = nextProps.value.toHexString();
  55549. }
  55550. return result;
  55551. };
  55552. ColorPickerLineComponent.prototype.componentDidUpdate = function () {
  55553. this.syncPositions();
  55554. };
  55555. ColorPickerLineComponent.prototype.componentDidMount = function () {
  55556. this.syncPositions();
  55557. };
  55558. ColorPickerLineComponent.prototype.setPickerState = function (enabled) {
  55559. this.setState({ pickerEnabled: enabled });
  55560. this.props.globalState.blockKeyboardEvents = enabled;
  55561. };
  55562. ColorPickerLineComponent.prototype.render = function () {
  55563. var _this = this;
  55564. var color = this.state.color;
  55565. this.props.globalState.blockKeyboardEvents = this.state.pickerEnabled;
  55566. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker" },
  55567. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-rect", ref: this._floatHostRef, style: { background: this.state.hex }, onClick: function () { return _this.setPickerState(true); } }),
  55568. this.state.pickerEnabled &&
  55569. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  55570. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-cover", onClick: function () { return _this.setPickerState(false); } }),
  55571. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-float", ref: this._floatRef },
  55572. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorPicker_colorPicker__WEBPACK_IMPORTED_MODULE_2__["ColorPicker"], { color: color, onColorChanged: function (color) {
  55573. var hex = color.toHexString();
  55574. _this.setState({ hex: hex, color: color });
  55575. _this.props.onColorChanged(hex);
  55576. } })))));
  55577. };
  55578. return ColorPickerLineComponent;
  55579. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55580. /***/ }),
  55581. /***/ "./sharedComponents/copy.svg":
  55582. /*!***********************************!*\
  55583. !*** ./sharedComponents/copy.svg ***!
  55584. \***********************************/
  55585. /*! no static exports found */
  55586. /***/ (function(module, exports) {
  55587. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_copy_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_copy_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M5.50280381,4.62704038 L5.5,6.75 L5.5,17.2542087 C5.5,19.0491342 6.95507456,20.5042087 8.75,20.5042087 L17.3662868,20.5044622 C17.057338,21.3782241 16.2239751,22.0042087 15.2444057,22.0042087 L8.75,22.0042087 C6.12664744,22.0042087 4,19.8775613 4,17.2542087 L4,6.75 C4,5.76928848 4.62744523,4.93512464 5.50280381,4.62704038 Z M17.75,2 C18.9926407,2 20,3.00735931 20,4.25 L20,17.25 C20,18.4926407 18.9926407,19.5 17.75,19.5 L8.75,19.5 C7.50735931,19.5 6.5,18.4926407 6.5,17.25 L6.5,4.25 C6.5,3.00735931 7.50735931,2 8.75,2 L17.75,2 Z M17.75,3.5 L8.75,3.5 C8.33578644,3.5 8,3.83578644 8,4.25 L8,17.25 C8,17.6642136 8.33578644,18 8.75,18 L17.75,18 C18.1642136,18 18.5,17.6642136 18.5,17.25 L18.5,4.25 C18.5,3.83578644 18.1642136,3.5 17.75,3.5 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  55588. /***/ }),
  55589. /***/ "./sharedComponents/draggableLineComponent.tsx":
  55590. /*!*****************************************************!*\
  55591. !*** ./sharedComponents/draggableLineComponent.tsx ***!
  55592. \*****************************************************/
  55593. /*! exports provided: DraggableLineComponent */
  55594. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55595. "use strict";
  55596. __webpack_require__.r(__webpack_exports__);
  55597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineComponent", function() { return DraggableLineComponent; });
  55598. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55599. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55600. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55601. var DraggableLineComponent = /** @class */ (function (_super) {
  55602. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DraggableLineComponent, _super);
  55603. function DraggableLineComponent(props) {
  55604. return _super.call(this, props) || this;
  55605. }
  55606. DraggableLineComponent.prototype.render = function () {
  55607. var _this = this;
  55608. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine", title: this.props.tooltip, draggable: true, onDragStart: function (event) {
  55609. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  55610. } }, this.props.data.replace("Block", "")));
  55611. };
  55612. return DraggableLineComponent;
  55613. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55614. /***/ }),
  55615. /***/ "./sharedComponents/draggableLineWithButtonComponent.tsx":
  55616. /*!***************************************************************!*\
  55617. !*** ./sharedComponents/draggableLineWithButtonComponent.tsx ***!
  55618. \***************************************************************/
  55619. /*! exports provided: DraggableLineWithButtonComponent */
  55620. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55621. "use strict";
  55622. __webpack_require__.r(__webpack_exports__);
  55623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineWithButtonComponent", function() { return DraggableLineWithButtonComponent; });
  55624. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55625. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55626. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55627. var DraggableLineWithButtonComponent = /** @class */ (function (_super) {
  55628. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DraggableLineWithButtonComponent, _super);
  55629. function DraggableLineWithButtonComponent(props) {
  55630. return _super.call(this, props) || this;
  55631. }
  55632. DraggableLineWithButtonComponent.prototype.render = function () {
  55633. var _this = this;
  55634. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine withButton", title: this.props.tooltip, draggable: true, onDragStart: function (event) {
  55635. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  55636. } },
  55637. this.props.data.substr(0, this.props.data.length - 6),
  55638. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "icon", onClick: function () { _this.props.onIconClick(_this.props.data); }, title: this.props.iconTitle },
  55639. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", title: this.props.iconTitle, src: this.props.iconImage }))));
  55640. };
  55641. return DraggableLineWithButtonComponent;
  55642. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55643. /***/ }),
  55644. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  55645. /*!******************************************************!*\
  55646. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  55647. \******************************************************/
  55648. /*! exports provided: FileButtonLineComponent */
  55649. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55650. "use strict";
  55651. __webpack_require__.r(__webpack_exports__);
  55652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  55653. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55654. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55655. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55656. var FileButtonLineComponent = /** @class */ (function (_super) {
  55657. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FileButtonLineComponent, _super);
  55658. function FileButtonLineComponent(props) {
  55659. var _this = _super.call(this, props) || this;
  55660. _this.uploadRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55661. return _this;
  55662. }
  55663. FileButtonLineComponent.prototype.onChange = function (evt) {
  55664. var files = evt.target.files;
  55665. if (files && files.length) {
  55666. this.props.onClick(files[0]);
  55667. }
  55668. evt.target.value = "";
  55669. };
  55670. FileButtonLineComponent.prototype.render = function () {
  55671. var _this = this;
  55672. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  55673. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: this.props.uploadName ? this.props.uploadName : "file-upload", className: "file-upload" }, this.props.label),
  55674. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.uploadRef, id: this.props.uploadName ? this.props.uploadName : "file-upload", type: "file", accept: this.props.accept, onChange: function (evt) { return _this.onChange(evt); } })));
  55675. };
  55676. return FileButtonLineComponent;
  55677. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55678. /***/ }),
  55679. /***/ "./sharedComponents/floatLineComponent.tsx":
  55680. /*!*************************************************!*\
  55681. !*** ./sharedComponents/floatLineComponent.tsx ***!
  55682. \*************************************************/
  55683. /*! exports provided: FloatLineComponent */
  55684. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55685. "use strict";
  55686. __webpack_require__.r(__webpack_exports__);
  55687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  55688. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55689. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55690. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55691. var FloatLineComponent = /** @class */ (function (_super) {
  55692. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatLineComponent, _super);
  55693. function FloatLineComponent(props) {
  55694. var _this = _super.call(this, props) || this;
  55695. _this._localChange = false;
  55696. var currentValue = _this.props.target[_this.props.propertyName];
  55697. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 2)) : "0" };
  55698. _this._store = currentValue;
  55699. var rexp = "(.*\\.";
  55700. var numDigits = _this.props.digits || 2;
  55701. while (numDigits--) {
  55702. rexp += ".";
  55703. }
  55704. rexp += ").+";
  55705. _this._regExp = new RegExp(rexp);
  55706. return _this;
  55707. }
  55708. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  55709. if (this._localChange) {
  55710. this._localChange = false;
  55711. return true;
  55712. }
  55713. var newValue = nextProps.target[nextProps.propertyName];
  55714. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 2) : "0";
  55715. if (newValueString !== nextState.value) {
  55716. nextState.value = newValueString;
  55717. return true;
  55718. }
  55719. return false;
  55720. };
  55721. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  55722. if (this.props.onChange) {
  55723. this.props.onChange(newValue);
  55724. }
  55725. if (!this.props.onPropertyChangedObservable) {
  55726. return;
  55727. }
  55728. this.props.onPropertyChangedObservable.notifyObservers({
  55729. object: this.props.target,
  55730. property: this.props.propertyName,
  55731. value: newValue,
  55732. initialValue: previousValue
  55733. });
  55734. };
  55735. FloatLineComponent.prototype.updateValue = function (valueString) {
  55736. if (/[^0-9\.\-]/g.test(valueString)) {
  55737. return;
  55738. }
  55739. valueString = valueString.replace(this._regExp, "$1");
  55740. var valueAsNumber;
  55741. if (this.props.isInteger) {
  55742. valueAsNumber = parseInt(valueString);
  55743. }
  55744. else {
  55745. valueAsNumber = parseFloat(valueString);
  55746. }
  55747. this._localChange = true;
  55748. this.setState({ value: valueString });
  55749. if (isNaN(valueAsNumber)) {
  55750. return;
  55751. }
  55752. if (this.props.max != undefined && (valueAsNumber > this.props.max)) {
  55753. valueAsNumber = this.props.max;
  55754. }
  55755. if (this.props.min != undefined && (valueAsNumber < this.props.min)) {
  55756. valueAsNumber = this.props.min;
  55757. }
  55758. this.props.target[this.props.propertyName] = valueAsNumber;
  55759. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  55760. this._store = valueAsNumber;
  55761. };
  55762. FloatLineComponent.prototype.render = function () {
  55763. var _this = this;
  55764. var className = this.props.smallUI ? "short" : "value";
  55765. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.additionalClass ? this.props.additionalClass + " floatLine" : "floatLine" },
  55766. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  55767. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  55768. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step || "0.01", className: "numeric-input", onBlur: function (evt) {
  55769. _this.props.globalState.blockKeyboardEvents = false;
  55770. if (_this.props.onEnter) {
  55771. _this.props.onEnter(_this._store);
  55772. }
  55773. }, onKeyDown: function (evt) {
  55774. if (evt.keyCode !== 13) {
  55775. return;
  55776. }
  55777. if (_this.props.onEnter) {
  55778. _this.props.onEnter(_this._store);
  55779. }
  55780. }, onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, value: this.state.value, onChange: function (evt) { return _this.updateValue(evt.target.value); } })))));
  55781. };
  55782. return FloatLineComponent;
  55783. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55784. /***/ }),
  55785. /***/ "./sharedComponents/lineContainerComponent.tsx":
  55786. /*!*****************************************************!*\
  55787. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  55788. \*****************************************************/
  55789. /*! exports provided: LineContainerComponent */
  55790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55791. "use strict";
  55792. __webpack_require__.r(__webpack_exports__);
  55793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  55794. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55795. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55796. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55797. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  55798. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__);
  55799. var downArrow = __webpack_require__(/*! ../../imgs/downArrow.svg */ "../imgs/downArrow.svg");
  55800. var LineContainerComponent = /** @class */ (function (_super) {
  55801. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineContainerComponent, _super);
  55802. function LineContainerComponent(props) {
  55803. var _this = _super.call(this, props) || this;
  55804. var initialState = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  55805. _this.state = { isExpanded: initialState };
  55806. return _this;
  55807. }
  55808. LineContainerComponent.prototype.switchExpandedState = function () {
  55809. var newState = !this.state.isExpanded;
  55810. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean(this.props.title, newState);
  55811. this.setState({ isExpanded: newState });
  55812. };
  55813. LineContainerComponent.prototype.renderHeader = function () {
  55814. var _this = this;
  55815. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  55816. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  55817. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  55818. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  55819. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", title: this.props.title, src: downArrow }))));
  55820. };
  55821. LineContainerComponent.prototype.render = function () {
  55822. if (!this.state.isExpanded) {
  55823. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  55824. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  55825. }
  55826. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  55827. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  55828. this.renderHeader(),
  55829. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  55830. };
  55831. return LineContainerComponent;
  55832. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55833. /***/ }),
  55834. /***/ "./sharedComponents/lineWithFileButtonComponent.tsx":
  55835. /*!**********************************************************!*\
  55836. !*** ./sharedComponents/lineWithFileButtonComponent.tsx ***!
  55837. \**********************************************************/
  55838. /*! exports provided: LineWithFileButtonComponent */
  55839. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55840. "use strict";
  55841. __webpack_require__.r(__webpack_exports__);
  55842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineWithFileButtonComponent", function() { return LineWithFileButtonComponent; });
  55843. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55844. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55845. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55846. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  55847. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__);
  55848. var LineWithFileButtonComponent = /** @class */ (function (_super) {
  55849. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineWithFileButtonComponent, _super);
  55850. function LineWithFileButtonComponent(props) {
  55851. var _this = _super.call(this, props) || this;
  55852. var initialState = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  55853. _this.state = { isExpanded: initialState };
  55854. _this.uploadRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55855. return _this;
  55856. }
  55857. LineWithFileButtonComponent.prototype.onChange = function (evt) {
  55858. var files = evt.target.files;
  55859. if (files && files.length) {
  55860. this.props.onIconClick(files[0]);
  55861. }
  55862. evt.target.value = "";
  55863. };
  55864. LineWithFileButtonComponent.prototype.switchExpandedState = function () {
  55865. var newState = !this.state.isExpanded;
  55866. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean(this.props.title, newState);
  55867. this.setState({ isExpanded: newState });
  55868. };
  55869. LineWithFileButtonComponent.prototype.render = function () {
  55870. var _this = this;
  55871. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "nonDraggableLine withButton" },
  55872. this.props.label,
  55873. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "icon", title: this.props.title },
  55874. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", src: this.props.iconImage })),
  55875. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine", title: this.props.title },
  55876. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: this.props.uploadName ? this.props.uploadName : "file-upload", className: "file-upload" }),
  55877. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.uploadRef, id: this.props.uploadName ? this.props.uploadName : "file-upload", type: "file", accept: this.props.accept, onChange: function (evt) { return _this.onChange(evt); } }))));
  55878. };
  55879. return LineWithFileButtonComponent;
  55880. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55881. /***/ }),
  55882. /***/ "./sharedComponents/matrixLineComponent.tsx":
  55883. /*!**************************************************!*\
  55884. !*** ./sharedComponents/matrixLineComponent.tsx ***!
  55885. \**************************************************/
  55886. /*! exports provided: MatrixLineComponent */
  55887. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55888. "use strict";
  55889. __webpack_require__.r(__webpack_exports__);
  55890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixLineComponent", function() { return MatrixLineComponent; });
  55891. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55892. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55893. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55894. /* harmony import */ var babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.vector */ "babylonjs/Misc/dataStorage");
  55895. /* harmony import */ var babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__);
  55896. /* harmony import */ var _vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  55897. /* harmony import */ var _optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  55898. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  55899. var MatrixLineComponent = /** @class */ (function (_super) {
  55900. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MatrixLineComponent, _super);
  55901. function MatrixLineComponent(props) {
  55902. var _this = _super.call(this, props) || this;
  55903. _this._localChange = false;
  55904. var matrix = _this.props.target[_this.props.propertyName].clone();
  55905. var angle = 0;
  55906. if (_this.props.mode) {
  55907. var quat = new babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Quaternion"]();
  55908. matrix.decompose(undefined, quat);
  55909. var euler = quat.toEulerAngles();
  55910. switch (_this.props.mode) {
  55911. case 1:
  55912. angle = euler.x;
  55913. break;
  55914. case 2:
  55915. angle = euler.y;
  55916. break;
  55917. case 3:
  55918. angle = euler.z;
  55919. break;
  55920. }
  55921. }
  55922. _this.state = { value: matrix, mode: _this.props.mode || 0, angle: angle };
  55923. return _this;
  55924. }
  55925. MatrixLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  55926. var nextPropsValue = nextProps.target[nextProps.propertyName];
  55927. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  55928. nextState.value = nextPropsValue.clone();
  55929. this._localChange = false;
  55930. return true;
  55931. }
  55932. return nextState.mode !== this.state.mode || nextState.angle !== this.state.angle;
  55933. };
  55934. MatrixLineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  55935. if (this.props.onChange) {
  55936. this.props.onChange(this.state.value);
  55937. }
  55938. if (!this.props.onPropertyChangedObservable) {
  55939. return;
  55940. }
  55941. this.props.onPropertyChangedObservable.notifyObservers({
  55942. object: this.props.target,
  55943. property: this.props.propertyName,
  55944. value: this.state.value,
  55945. initialValue: previousValue
  55946. });
  55947. };
  55948. MatrixLineComponent.prototype.updateMatrix = function () {
  55949. var store = this.props.target[this.props.propertyName].clone();
  55950. this.props.target[this.props.propertyName] = this.state.value;
  55951. this.setState({ value: store });
  55952. this.raiseOnPropertyChanged(store);
  55953. };
  55954. MatrixLineComponent.prototype.updateRow = function (value, row) {
  55955. this._localChange = true;
  55956. this.state.value.setRow(row, value);
  55957. this.updateMatrix();
  55958. };
  55959. MatrixLineComponent.prototype.updateBasedOnMode = function (value) {
  55960. switch (this.state.mode) {
  55961. case 1: {
  55962. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationXToRef(this.state.angle, this.state.value);
  55963. break;
  55964. }
  55965. case 2: {
  55966. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationYToRef(this.state.angle, this.state.value);
  55967. break;
  55968. }
  55969. case 3: {
  55970. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationZToRef(this.state.angle, this.state.value);
  55971. break;
  55972. }
  55973. }
  55974. this.updateMatrix();
  55975. this.setState({ angle: value });
  55976. };
  55977. MatrixLineComponent.prototype.render = function () {
  55978. var _this = this;
  55979. var modeOptions = [
  55980. { label: "User-defined", value: 0 },
  55981. { label: "Rotation over X axis", value: 1 },
  55982. { label: "Rotation over Y axis", value: 2 },
  55983. { label: "Rotation over Z axis", value: 3 },
  55984. ];
  55985. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  55986. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  55987. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label)),
  55988. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  55989. 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 () {
  55990. return _this.state.mode;
  55991. }, onSelect: function (value) {
  55992. _this.props.target[_this.props.propertyName] = babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].Identity();
  55993. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].IdentityToRef(_this.state.value);
  55994. _this.setState({ mode: value, angle: 0 });
  55995. _this.updateMatrix();
  55996. if (_this.props.onModeChange) {
  55997. _this.props.onModeChange(value);
  55998. }
  55999. } })),
  56000. this.state.mode === 0 &&
  56001. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  56002. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { globalState: this.props.globalState, label: "Row #0", value: this.state.value.getRow(0), onChange: function (value) { return _this.updateRow(value, 0); } }),
  56003. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { globalState: this.props.globalState, label: "Row #1", value: this.state.value.getRow(1), onChange: function (value) { return _this.updateRow(value, 1); } }),
  56004. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { globalState: this.props.globalState, label: "Row #2", value: this.state.value.getRow(2), onChange: function (value) { return _this.updateRow(value, 2); } }),
  56005. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { globalState: this.props.globalState, label: "Row #3", value: this.state.value.getRow(3), onChange: function (value) { return _this.updateRow(value, 3); } })),
  56006. this.state.mode !== 0 &&
  56007. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  56008. 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, globalState: this.props.globalState, directValue: this.state.angle, onChange: function (value) { return _this.updateBasedOnMode(value); } }))));
  56009. };
  56010. return MatrixLineComponent;
  56011. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56012. /***/ }),
  56013. /***/ "./sharedComponents/messageDialog.tsx":
  56014. /*!********************************************!*\
  56015. !*** ./sharedComponents/messageDialog.tsx ***!
  56016. \********************************************/
  56017. /*! exports provided: MessageDialogComponent */
  56018. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56019. "use strict";
  56020. __webpack_require__.r(__webpack_exports__);
  56021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageDialogComponent", function() { return MessageDialogComponent; });
  56022. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56023. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56024. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56025. var MessageDialogComponent = /** @class */ (function (_super) {
  56026. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MessageDialogComponent, _super);
  56027. function MessageDialogComponent(props) {
  56028. var _this = _super.call(this, props) || this;
  56029. _this.state = { message: "", isError: false };
  56030. _this.props.globalState.onErrorMessageDialogRequiredObservable.add(function (message) {
  56031. _this.setState({ message: message, isError: true });
  56032. });
  56033. return _this;
  56034. }
  56035. MessageDialogComponent.prototype.render = function () {
  56036. var _this = this;
  56037. if (!this.state.message) {
  56038. return null;
  56039. }
  56040. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-container" },
  56041. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog" },
  56042. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-message" }, this.state.message),
  56043. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-buttons" },
  56044. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-button-ok" + (this.state.isError ? " error" : ""), onClick: function () { return _this.setState({ message: "" }); } }, "OK")))));
  56045. };
  56046. return MessageDialogComponent;
  56047. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56048. /***/ }),
  56049. /***/ "./sharedComponents/minus.svg":
  56050. /*!************************************!*\
  56051. !*** ./sharedComponents/minus.svg ***!
  56052. \************************************/
  56053. /*! no static exports found */
  56054. /***/ (function(module, exports) {
  56055. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 59.1 (86144) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_remove_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_remove_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M3.7547787,12.4995322 L20.2466903,12.4995322 C20.6609039,12.4995322 20.9966903,12.1637458 20.9966903,11.7495322 C20.9966903,11.3353187 20.6609039,10.9995322 20.2466903,10.9995322 L3.7547787,10.9995322 C3.34056514,10.9995322 3.0047787,11.3353187 3.0047787,11.7495322 C3.0047787,12.1637458 3.34056514,12.4995322 3.7547787,12.4995322 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  56056. /***/ }),
  56057. /***/ "./sharedComponents/numericInputComponent.tsx":
  56058. /*!****************************************************!*\
  56059. !*** ./sharedComponents/numericInputComponent.tsx ***!
  56060. \****************************************************/
  56061. /*! exports provided: NumericInputComponent */
  56062. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56063. "use strict";
  56064. __webpack_require__.r(__webpack_exports__);
  56065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  56066. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56067. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56068. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56069. var NumericInputComponent = /** @class */ (function (_super) {
  56070. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NumericInputComponent, _super);
  56071. function NumericInputComponent(props) {
  56072. var _this = _super.call(this, props) || this;
  56073. _this._localChange = false;
  56074. _this.state = { value: _this.props.value.toFixed(3) };
  56075. return _this;
  56076. }
  56077. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  56078. if (this._localChange) {
  56079. this._localChange = false;
  56080. return true;
  56081. }
  56082. if (nextProps.value.toString() !== nextState.value) {
  56083. nextState.value = nextProps.value.toFixed(3);
  56084. return true;
  56085. }
  56086. return false;
  56087. };
  56088. NumericInputComponent.prototype.updateValue = function (evt) {
  56089. var value = evt.target.value;
  56090. if (/[^0-9\.\-]/g.test(value)) {
  56091. return;
  56092. }
  56093. var valueAsNumber = parseFloat(value);
  56094. this._localChange = true;
  56095. this.setState({ value: value });
  56096. if (isNaN(valueAsNumber)) {
  56097. return;
  56098. }
  56099. this.props.onChange(valueAsNumber);
  56100. };
  56101. NumericInputComponent.prototype.render = function () {
  56102. var _this = this;
  56103. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  56104. this.props.label &&
  56105. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  56106. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, onBlur: function (evt) {
  56107. _this.props.globalState.blockKeyboardEvents = false;
  56108. }, step: this.props.step, className: "numeric-input", value: this.state.value, onChange: function (evt) { return _this.updateValue(evt); } })));
  56109. };
  56110. NumericInputComponent.defaultProps = {
  56111. step: 1,
  56112. };
  56113. return NumericInputComponent;
  56114. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56115. /***/ }),
  56116. /***/ "./sharedComponents/optionsLineComponent.tsx":
  56117. /*!***************************************************!*\
  56118. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  56119. \***************************************************/
  56120. /*! exports provided: OptionsLineComponent */
  56121. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56122. "use strict";
  56123. __webpack_require__.r(__webpack_exports__);
  56124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  56125. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56126. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56127. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56128. var ListLineOption = /** @class */ (function () {
  56129. function ListLineOption() {
  56130. }
  56131. return ListLineOption;
  56132. }());
  56133. var OptionsLineComponent = /** @class */ (function (_super) {
  56134. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(OptionsLineComponent, _super);
  56135. function OptionsLineComponent(props) {
  56136. var _this = _super.call(this, props) || this;
  56137. _this._localChange = false;
  56138. _this.state = { value: _this._getValue(props) };
  56139. return _this;
  56140. }
  56141. OptionsLineComponent.prototype._getValue = function (props) {
  56142. if (props.getSelection) {
  56143. return props.getSelection(props.target);
  56144. }
  56145. return (props.target && props.propertyName) ? props.target[props.propertyName] : props.options[props.defaultIfNull || 0];
  56146. };
  56147. OptionsLineComponent.prototype.setValue = function (value) {
  56148. this.setState({ value: value });
  56149. };
  56150. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  56151. if (this._localChange) {
  56152. this._localChange = false;
  56153. return true;
  56154. }
  56155. var newValue = this._getValue(nextProps);
  56156. if (newValue != null && newValue !== nextState.value) {
  56157. nextState.value = newValue;
  56158. return true;
  56159. }
  56160. return false;
  56161. };
  56162. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  56163. if (!this.props.onPropertyChangedObservable) {
  56164. return;
  56165. }
  56166. this.props.onPropertyChangedObservable.notifyObservers({
  56167. object: this.props.target,
  56168. property: this.props.propertyName,
  56169. value: newValue,
  56170. initialValue: previousValue
  56171. });
  56172. };
  56173. OptionsLineComponent.prototype.updateValue = function (valueString) {
  56174. var value = this.props.valuesAreStrings ? valueString : parseInt(valueString);
  56175. this._localChange = true;
  56176. var store = this.state.value;
  56177. if (!this.props.noDirectUpdate) {
  56178. this.props.target[this.props.propertyName] = value;
  56179. }
  56180. this.setState({ value: value });
  56181. this.raiseOnPropertyChanged(value, store);
  56182. if (this.props.onSelect) {
  56183. this.props.onSelect(value);
  56184. }
  56185. };
  56186. OptionsLineComponent.prototype.render = function () {
  56187. var _this = this;
  56188. var _a;
  56189. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  56190. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  56191. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" + (this.props.className ? " " + this.props.className : "") },
  56192. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("select", { onChange: function (evt) { return _this.updateValue(evt.target.value); }, value: (_a = this.state.value) !== null && _a !== void 0 ? _a : "" }, this.props.options.map(function (option) {
  56193. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  56194. })))));
  56195. };
  56196. return OptionsLineComponent;
  56197. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56198. /***/ }),
  56199. /***/ "./sharedComponents/plus.svg":
  56200. /*!***********************************!*\
  56201. !*** ./sharedComponents/plus.svg ***!
  56202. \***********************************/
  56203. /*! no static exports found */
  56204. /***/ (function(module, exports) {
  56205. module.exports = "data:image/svg+xml,%3Csvg viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24'%3E %3C!-- Generator: Sketch 63.1 (92452) - https://sketch.com --%3E %3Ctitle%3Eic_fluent_add_24_regular%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cg id='🔍-Product-Icons' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='ic_fluent_add_24_regular' fill='white' fill-rule='nonzero'%3E %3Cpath d='M11.7498476,3 C12.1295434,3 12.4433959,3.28201302 12.4931327,3.64807848 L12.5,3.74984765 L12.5012052,11 L19.7542949,11 C20.1685084,11 20.5042949,11.3357864 20.5042949,11.75 C20.5042949,12.1296958 20.222141,12.443491 19.8560654,12.4931534 L19.7542949,12.5 L12.5012052,12.5 L12.50325,19.7491118 C12.5033342,20.1633254 12.1676159,20.4992642 11.7534024,20.4992642 C11.3737066,20.4992642 11.0598541,20.2172511 11.0101173,19.8511857 L11.0032501,19.7494165 L11.0012052,12.5 L3.75220519,12.5 C3.33799163,12.5 3.00220519,12.1642136 3.00220519,11.75 C3.00220519,11.3703042 3.28435907,11.056509 3.65043463,11.0068466 L3.75220519,11 L11.0012052,11 L11,3.75015235 C10.9999159,3.3359388 11.3356341,3 11.7498476,3 Z' id='🎨-Color'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E"
  56206. /***/ }),
  56207. /***/ "./sharedComponents/popup.ts":
  56208. /*!***********************************!*\
  56209. !*** ./sharedComponents/popup.ts ***!
  56210. \***********************************/
  56211. /*! exports provided: Popup */
  56212. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56213. "use strict";
  56214. __webpack_require__.r(__webpack_exports__);
  56215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  56216. var Popup = /** @class */ (function () {
  56217. function Popup() {
  56218. }
  56219. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  56220. var _this = this;
  56221. if (width === void 0) { width = 300; }
  56222. if (height === void 0) { height = 800; }
  56223. var windowCreationOptionsList = {
  56224. width: width,
  56225. height: height,
  56226. top: (window.innerHeight - width) / 2 + window.screenY,
  56227. left: (window.innerWidth - height) / 2 + window.screenX
  56228. };
  56229. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  56230. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  56231. .join(',');
  56232. var popupWindow = window.open("", title, windowCreationOptions);
  56233. if (!popupWindow) {
  56234. return null;
  56235. }
  56236. var parentDocument = popupWindow.document;
  56237. // Font
  56238. var newLinkEl = parentDocument.createElement('link');
  56239. newLinkEl.rel = 'stylesheet';
  56240. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  56241. parentDocument.head.appendChild(newLinkEl);
  56242. parentDocument.title = title;
  56243. parentDocument.body.style.width = "100%";
  56244. parentDocument.body.style.height = "100%";
  56245. parentDocument.body.style.margin = "0";
  56246. parentDocument.body.style.padding = "0";
  56247. var parentControl = parentDocument.createElement("div");
  56248. parentControl.style.width = "100%";
  56249. parentControl.style.height = "100%";
  56250. parentControl.style.margin = "0";
  56251. parentControl.style.padding = "0";
  56252. popupWindow.document.body.appendChild(parentControl);
  56253. this._CopyStyles(window.document, parentDocument);
  56254. setTimeout(function () {
  56255. _this._CopyStyles(window.document, parentDocument);
  56256. }, 0);
  56257. this[windowVariableName] = popupWindow;
  56258. return parentControl;
  56259. };
  56260. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  56261. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  56262. var styleSheet = sourceDoc.styleSheets[index];
  56263. try {
  56264. if (styleSheet.cssRules) { // for <style> elements
  56265. var newStyleEl = sourceDoc.createElement('style');
  56266. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  56267. var cssRule = _a[_i];
  56268. // write the text of each rule into the body of the style element
  56269. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  56270. }
  56271. targetDoc.head.appendChild(newStyleEl);
  56272. }
  56273. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  56274. var newLinkEl = sourceDoc.createElement('link');
  56275. newLinkEl.rel = 'stylesheet';
  56276. newLinkEl.href = styleSheet.href;
  56277. targetDoc.head.appendChild(newLinkEl);
  56278. }
  56279. }
  56280. catch (e) {
  56281. console.log(e);
  56282. }
  56283. }
  56284. };
  56285. return Popup;
  56286. }());
  56287. /***/ }),
  56288. /***/ "./sharedComponents/sliderLineComponent.tsx":
  56289. /*!**************************************************!*\
  56290. !*** ./sharedComponents/sliderLineComponent.tsx ***!
  56291. \**************************************************/
  56292. /*! exports provided: SliderLineComponent */
  56293. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56294. "use strict";
  56295. __webpack_require__.r(__webpack_exports__);
  56296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderLineComponent", function() { return SliderLineComponent; });
  56297. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56298. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56299. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56300. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/dataStorage");
  56301. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  56302. /* harmony import */ var _floatLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  56303. var SliderLineComponent = /** @class */ (function (_super) {
  56304. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderLineComponent, _super);
  56305. function SliderLineComponent(props) {
  56306. var _this = _super.call(this, props) || this;
  56307. _this._localChange = false;
  56308. if (_this.props.directValue !== undefined) {
  56309. _this.state = {
  56310. value: _this.props.directValue
  56311. };
  56312. }
  56313. else {
  56314. var value = _this.props.target[_this.props.propertyName];
  56315. if (value === undefined) {
  56316. value = _this.props.maximum;
  56317. }
  56318. _this.state = { value: value };
  56319. }
  56320. return _this;
  56321. }
  56322. SliderLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  56323. if (nextProps.directValue !== undefined) {
  56324. nextState.value = nextProps.directValue;
  56325. return true;
  56326. }
  56327. var currentState = nextProps.target[nextProps.propertyName];
  56328. if (currentState === undefined) {
  56329. currentState = nextProps.maximum;
  56330. }
  56331. if (currentState !== nextState.value || nextProps.minimum !== this.props.minimum || nextProps.maximum !== this.props.maximum || this._localChange) {
  56332. nextState.value = Math.min(Math.max(currentState, nextProps.minimum), nextProps.maximum);
  56333. this._localChange = false;
  56334. return true;
  56335. }
  56336. return false;
  56337. };
  56338. SliderLineComponent.prototype.onChange = function (newValueString) {
  56339. this._localChange = true;
  56340. var newValue = parseFloat(newValueString);
  56341. if (this.props.useEuler) {
  56342. newValue = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToRadians(newValue);
  56343. }
  56344. if (this.props.target) {
  56345. if (this.props.onPropertyChangedObservable) {
  56346. this.props.onPropertyChangedObservable.notifyObservers({
  56347. object: this.props.target,
  56348. property: this.props.propertyName,
  56349. value: newValue,
  56350. initialValue: this.state.value
  56351. });
  56352. }
  56353. this.props.target[this.props.propertyName] = newValue;
  56354. }
  56355. if (this.props.onChange) {
  56356. this.props.onChange(newValue);
  56357. }
  56358. this.setState({ value: newValue });
  56359. };
  56360. SliderLineComponent.prototype.onInput = function (newValueString) {
  56361. var newValue = parseFloat(newValueString);
  56362. if (this.props.onInput) {
  56363. this.props.onInput(newValue);
  56364. }
  56365. };
  56366. SliderLineComponent.prototype.prepareDataToRead = function (value) {
  56367. if (this.props.useEuler) {
  56368. return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToDegrees(value);
  56369. }
  56370. return value;
  56371. };
  56372. SliderLineComponent.prototype.render = function () {
  56373. var _this = this;
  56374. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "sliderLine" },
  56375. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  56376. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { globalState: this.props.globalState, smallUI: true, label: "", target: this.state, propertyName: "value", min: this.prepareDataToRead(this.props.minimum), max: this.prepareDataToRead(this.props.maximum), onEnter: function () {
  56377. _this.onChange(_this.state.value);
  56378. } }),
  56379. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "slider" },
  56380. 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); } }))));
  56381. };
  56382. return SliderLineComponent;
  56383. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56384. /***/ }),
  56385. /***/ "./sharedComponents/textInputLineComponent.tsx":
  56386. /*!*****************************************************!*\
  56387. !*** ./sharedComponents/textInputLineComponent.tsx ***!
  56388. \*****************************************************/
  56389. /*! exports provided: TextInputLineComponent */
  56390. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56391. "use strict";
  56392. __webpack_require__.r(__webpack_exports__);
  56393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  56394. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56395. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56396. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56397. var TextInputLineComponent = /** @class */ (function (_super) {
  56398. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextInputLineComponent, _super);
  56399. function TextInputLineComponent(props) {
  56400. var _this = _super.call(this, props) || this;
  56401. _this._localChange = false;
  56402. _this.state = { value: _this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName] || "" };
  56403. return _this;
  56404. }
  56405. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  56406. if (this._localChange) {
  56407. this._localChange = false;
  56408. return true;
  56409. }
  56410. var newValue = nextProps.value !== undefined ? nextProps.value : nextProps.target[nextProps.propertyName];
  56411. if (newValue !== nextState.value) {
  56412. nextState.value = newValue || "";
  56413. return true;
  56414. }
  56415. return false;
  56416. };
  56417. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  56418. if (this.props.onChange) {
  56419. this.props.onChange(newValue);
  56420. return;
  56421. }
  56422. if (!this.props.onPropertyChangedObservable) {
  56423. return;
  56424. }
  56425. this.props.onPropertyChangedObservable.notifyObservers({
  56426. object: this.props.target,
  56427. property: this.props.propertyName,
  56428. value: newValue,
  56429. initialValue: previousValue
  56430. });
  56431. };
  56432. TextInputLineComponent.prototype.updateValue = function (value, raisePropertyChanged) {
  56433. this._localChange = true;
  56434. var store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
  56435. if (this.props.validator && raisePropertyChanged) {
  56436. if (this.props.validator(value) == false) {
  56437. value = store;
  56438. }
  56439. }
  56440. this.setState({ value: value });
  56441. if (raisePropertyChanged) {
  56442. this.raiseOnPropertyChanged(value, store);
  56443. }
  56444. if (this.props.propertyName) {
  56445. this.props.target[this.props.propertyName] = value;
  56446. }
  56447. };
  56448. TextInputLineComponent.prototype.render = function () {
  56449. var _this = this;
  56450. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.multilines ? "textInputArea" : "textInputLine" },
  56451. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  56452. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  56453. this.props.multilines && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  56454. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("textarea", { 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) {
  56455. if (evt.keyCode !== 13) {
  56456. return;
  56457. }
  56458. _this.updateValue(_this.state.value, true);
  56459. }, onBlur: function (evt) {
  56460. _this.updateValue(evt.target.value, true);
  56461. _this.props.globalState.blockKeyboardEvents = false;
  56462. } })),
  56463. !this.props.multilines && react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  56464. 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) {
  56465. if (evt.keyCode !== 13) {
  56466. return;
  56467. }
  56468. _this.updateValue(_this.state.value, true);
  56469. }, onBlur: function (evt) {
  56470. _this.updateValue(evt.target.value, true);
  56471. _this.props.globalState.blockKeyboardEvents = false;
  56472. } })))));
  56473. };
  56474. return TextInputLineComponent;
  56475. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56476. /***/ }),
  56477. /***/ "./sharedComponents/textLineComponent.tsx":
  56478. /*!************************************************!*\
  56479. !*** ./sharedComponents/textLineComponent.tsx ***!
  56480. \************************************************/
  56481. /*! exports provided: TextLineComponent */
  56482. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56483. "use strict";
  56484. __webpack_require__.r(__webpack_exports__);
  56485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  56486. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56487. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56488. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56489. var TextLineComponent = /** @class */ (function (_super) {
  56490. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextLineComponent, _super);
  56491. function TextLineComponent(props) {
  56492. return _super.call(this, props) || this;
  56493. }
  56494. TextLineComponent.prototype.onLink = function () {
  56495. if (!this.props.onLink) {
  56496. return;
  56497. }
  56498. this.props.onLink();
  56499. };
  56500. TextLineComponent.prototype.renderContent = function () {
  56501. var _this = this;
  56502. if (this.props.onLink) {
  56503. 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"));
  56504. }
  56505. 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"));
  56506. };
  56507. TextLineComponent.prototype.render = function () {
  56508. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  56509. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  56510. this.renderContent()));
  56511. };
  56512. return TextLineComponent;
  56513. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56514. /***/ }),
  56515. /***/ "./sharedComponents/textureLineComponent.tsx":
  56516. /*!***************************************************!*\
  56517. !*** ./sharedComponents/textureLineComponent.tsx ***!
  56518. \***************************************************/
  56519. /*! exports provided: TextureLineComponent */
  56520. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56521. "use strict";
  56522. __webpack_require__.r(__webpack_exports__);
  56523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  56524. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56525. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56526. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56527. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/dataStorage");
  56528. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  56529. var TextureLineComponent = /** @class */ (function (_super) {
  56530. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureLineComponent, _super);
  56531. function TextureLineComponent(props) {
  56532. var _this = _super.call(this, props) || this;
  56533. _this.state = {
  56534. displayRed: true,
  56535. displayGreen: true,
  56536. displayBlue: true,
  56537. displayAlpha: true,
  56538. face: 0
  56539. };
  56540. _this.canvasRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  56541. return _this;
  56542. }
  56543. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  56544. return true;
  56545. };
  56546. TextureLineComponent.prototype.componentDidMount = function () {
  56547. this.updatePreview();
  56548. };
  56549. TextureLineComponent.prototype.componentDidUpdate = function () {
  56550. this.updatePreview();
  56551. };
  56552. TextureLineComponent.prototype.updatePreview = function () {
  56553. TextureLineComponent.UpdatePreview(this.canvasRef.current, this.props.texture, this.props.width, this.state, undefined, this.props.globalState);
  56554. };
  56555. TextureLineComponent.UpdatePreview = function (previewCanvas, texture, width, options, onReady, globalState) {
  56556. if (!texture.isReady() && texture._texture) {
  56557. texture._texture.onLoadedObservable.addOnce(function () {
  56558. TextureLineComponent.UpdatePreview(previewCanvas, texture, width, options, onReady, globalState);
  56559. });
  56560. }
  56561. var scene = texture.getScene();
  56562. var engine = scene.getEngine();
  56563. var size = texture.getSize();
  56564. var ratio = size.width / size.height;
  56565. var height = (width / ratio) | 1;
  56566. var passPostProcess;
  56567. if (!texture.isCube) {
  56568. 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);
  56569. }
  56570. else {
  56571. 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);
  56572. passCubePostProcess.face = options.face;
  56573. passPostProcess = passCubePostProcess;
  56574. }
  56575. if (!passPostProcess.getEffect().isReady()) {
  56576. // Try again later
  56577. passPostProcess.dispose();
  56578. setTimeout(function () { return TextureLineComponent.UpdatePreview(previewCanvas, texture, width, options, onReady, globalState); }, 250);
  56579. return;
  56580. }
  56581. if (globalState) {
  56582. globalState.blockMutationUpdates = true;
  56583. }
  56584. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  56585. passPostProcess.onApply = function (effect) {
  56586. effect.setTexture("textureSampler", texture);
  56587. };
  56588. var internalTexture = rtt.getInternalTexture();
  56589. if (internalTexture) {
  56590. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  56591. // Read the contents of the framebuffer
  56592. var numberOfChannelsByLine = width * 4;
  56593. var halfHeight = height / 2;
  56594. //Reading datas from WebGL
  56595. var data = engine.readPixels(0, 0, width, height);
  56596. if (!texture.isCube) {
  56597. if (!options.displayRed || !options.displayGreen || !options.displayBlue) {
  56598. for (var i = 0; i < width * height * 4; i += 4) {
  56599. if (!options.displayRed) {
  56600. data[i] = 0;
  56601. }
  56602. if (!options.displayGreen) {
  56603. data[i + 1] = 0;
  56604. }
  56605. if (!options.displayBlue) {
  56606. data[i + 2] = 0;
  56607. }
  56608. if (options.displayAlpha) {
  56609. var alpha = data[i + 2];
  56610. data[i] = alpha;
  56611. data[i + 1] = alpha;
  56612. data[i + 2] = alpha;
  56613. data[i + 2] = 0;
  56614. }
  56615. }
  56616. }
  56617. }
  56618. //To flip image on Y axis.
  56619. if (texture.invertY || texture.isCube) {
  56620. for (var i = 0; i < halfHeight; i++) {
  56621. for (var j = 0; j < numberOfChannelsByLine; j++) {
  56622. var currentCell = j + i * numberOfChannelsByLine;
  56623. var targetLine = height - i - 1;
  56624. var targetCell = j + targetLine * numberOfChannelsByLine;
  56625. var temp = data[currentCell];
  56626. data[currentCell] = data[targetCell];
  56627. data[targetCell] = temp;
  56628. }
  56629. }
  56630. }
  56631. previewCanvas.width = width;
  56632. previewCanvas.height = height;
  56633. var context = previewCanvas.getContext('2d');
  56634. if (context) {
  56635. // Copy the pixels to the preview canvas
  56636. var imageData = context.createImageData(width, height);
  56637. var castData = imageData.data;
  56638. castData.set(data);
  56639. context.putImageData(imageData, 0, 0);
  56640. if (onReady) {
  56641. onReady();
  56642. }
  56643. }
  56644. // Unbind
  56645. engine.unBindFramebuffer(internalTexture);
  56646. }
  56647. rtt.dispose();
  56648. passPostProcess.dispose();
  56649. previewCanvas.style.height = height + "px";
  56650. if (globalState) {
  56651. globalState.blockMutationUpdates = false;
  56652. }
  56653. };
  56654. TextureLineComponent.prototype.render = function () {
  56655. var _this = this;
  56656. var texture = this.props.texture;
  56657. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  56658. !this.props.hideChannelSelect && texture.isCube &&
  56659. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  56660. 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"),
  56661. 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"),
  56662. 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"),
  56663. 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"),
  56664. 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"),
  56665. 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")),
  56666. !this.props.hideChannelSelect && !texture.isCube &&
  56667. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  56668. 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"),
  56669. 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"),
  56670. 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"),
  56671. 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"),
  56672. 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")),
  56673. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: this.canvasRef, className: "preview" })));
  56674. };
  56675. return TextureLineComponent;
  56676. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56677. /***/ }),
  56678. /***/ "./sharedComponents/vector2LineComponent.tsx":
  56679. /*!***************************************************!*\
  56680. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  56681. \***************************************************/
  56682. /*! exports provided: Vector2LineComponent */
  56683. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56684. "use strict";
  56685. __webpack_require__.r(__webpack_exports__);
  56686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  56687. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56688. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56689. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56690. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  56691. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  56692. /* 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");
  56693. var Vector2LineComponent = /** @class */ (function (_super) {
  56694. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2LineComponent, _super);
  56695. function Vector2LineComponent(props) {
  56696. var _this = _super.call(this, props) || this;
  56697. _this._localChange = false;
  56698. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  56699. return _this;
  56700. }
  56701. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  56702. var nextPropsValue = nextProps.target[nextProps.propertyName];
  56703. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  56704. nextState.value = nextPropsValue.clone();
  56705. this._localChange = false;
  56706. return true;
  56707. }
  56708. return false;
  56709. };
  56710. Vector2LineComponent.prototype.switchExpandState = function () {
  56711. this._localChange = true;
  56712. this.setState({ isExpanded: !this.state.isExpanded });
  56713. };
  56714. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  56715. if (this.props.onChange) {
  56716. this.props.onChange(this.state.value);
  56717. }
  56718. if (!this.props.onPropertyChangedObservable) {
  56719. return;
  56720. }
  56721. this.props.onPropertyChangedObservable.notifyObservers({
  56722. object: this.props.target,
  56723. property: this.props.propertyName,
  56724. value: this.state.value,
  56725. initialValue: previousValue
  56726. });
  56727. };
  56728. Vector2LineComponent.prototype.updateStateX = function (value) {
  56729. this._localChange = true;
  56730. var store = this.state.value.clone();
  56731. this.props.target[this.props.propertyName].x = value;
  56732. this.state.value.x = value;
  56733. this.setState({ value: this.state.value });
  56734. this.raiseOnPropertyChanged(store);
  56735. };
  56736. Vector2LineComponent.prototype.updateStateY = function (value) {
  56737. this._localChange = true;
  56738. var store = this.state.value.clone();
  56739. this.props.target[this.props.propertyName].y = value;
  56740. this.state.value.y = value;
  56741. this.setState({ value: this.state.value });
  56742. this.raiseOnPropertyChanged(store);
  56743. };
  56744. Vector2LineComponent.prototype.render = function () {
  56745. var _this = this;
  56746. 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"] });
  56747. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  56748. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  56749. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label", title: this.props.label }, this.props.label),
  56750. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  56751. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  56752. this.state.isExpanded &&
  56753. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  56754. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { globalState: this.props.globalState, label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  56755. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { globalState: this.props.globalState, label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }))));
  56756. };
  56757. Vector2LineComponent.defaultProps = {
  56758. step: 0.001,
  56759. };
  56760. return Vector2LineComponent;
  56761. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56762. /***/ }),
  56763. /***/ "./sharedComponents/vector3LineComponent.tsx":
  56764. /*!***************************************************!*\
  56765. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  56766. \***************************************************/
  56767. /*! exports provided: Vector3LineComponent */
  56768. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56769. "use strict";
  56770. __webpack_require__.r(__webpack_exports__);
  56771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  56772. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56773. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56774. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56775. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  56776. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  56777. /* 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");
  56778. var Vector3LineComponent = /** @class */ (function (_super) {
  56779. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3LineComponent, _super);
  56780. function Vector3LineComponent(props) {
  56781. var _this = _super.call(this, props) || this;
  56782. _this._localChange = false;
  56783. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  56784. return _this;
  56785. }
  56786. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  56787. var nextPropsValue = nextProps.target[nextProps.propertyName];
  56788. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  56789. nextState.value = nextPropsValue.clone();
  56790. this._localChange = false;
  56791. return true;
  56792. }
  56793. return false;
  56794. };
  56795. Vector3LineComponent.prototype.switchExpandState = function () {
  56796. this._localChange = true;
  56797. this.setState({ isExpanded: !this.state.isExpanded });
  56798. };
  56799. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  56800. if (this.props.onChange) {
  56801. this.props.onChange(this.state.value);
  56802. }
  56803. if (!this.props.onPropertyChangedObservable) {
  56804. return;
  56805. }
  56806. this.props.onPropertyChangedObservable.notifyObservers({
  56807. object: this.props.target,
  56808. property: this.props.propertyName,
  56809. value: this.state.value,
  56810. initialValue: previousValue
  56811. });
  56812. };
  56813. Vector3LineComponent.prototype.updateVector3 = function () {
  56814. var store = this.props.target[this.props.propertyName].clone();
  56815. this.props.target[this.props.propertyName] = this.state.value;
  56816. this.setState({ value: store });
  56817. this.raiseOnPropertyChanged(store);
  56818. };
  56819. Vector3LineComponent.prototype.updateStateX = function (value) {
  56820. this._localChange = true;
  56821. this.state.value.x = value;
  56822. this.updateVector3();
  56823. };
  56824. Vector3LineComponent.prototype.updateStateY = function (value) {
  56825. this._localChange = true;
  56826. this.state.value.y = value;
  56827. this.updateVector3();
  56828. };
  56829. Vector3LineComponent.prototype.updateStateZ = function (value) {
  56830. this._localChange = true;
  56831. this.state.value.z = value;
  56832. this.updateVector3();
  56833. };
  56834. Vector3LineComponent.prototype.render = function () {
  56835. var _this = this;
  56836. 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"] });
  56837. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  56838. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  56839. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label", title: this.props.label }, this.props.label),
  56840. 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)),
  56841. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  56842. this.state.isExpanded &&
  56843. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  56844. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { globalState: this.props.globalState, label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  56845. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { globalState: this.props.globalState, label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }),
  56846. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { globalState: this.props.globalState, label: "z", step: this.props.step, value: this.state.value.z, onChange: function (value) { return _this.updateStateZ(value); } }))));
  56847. };
  56848. Vector3LineComponent.defaultProps = {
  56849. step: 0.001,
  56850. };
  56851. return Vector3LineComponent;
  56852. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56853. /***/ }),
  56854. /***/ "./sharedComponents/vector4LineComponent.tsx":
  56855. /*!***************************************************!*\
  56856. !*** ./sharedComponents/vector4LineComponent.tsx ***!
  56857. \***************************************************/
  56858. /*! exports provided: Vector4LineComponent */
  56859. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56860. "use strict";
  56861. __webpack_require__.r(__webpack_exports__);
  56862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4LineComponent", function() { return Vector4LineComponent; });
  56863. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56864. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56865. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56866. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  56867. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  56868. /* 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");
  56869. var Vector4LineComponent = /** @class */ (function (_super) {
  56870. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4LineComponent, _super);
  56871. function Vector4LineComponent(props) {
  56872. var _this = _super.call(this, props) || this;
  56873. _this._localChange = false;
  56874. _this.state = { isExpanded: false, value: (_this.props.value || _this.props.target[_this.props.propertyName]).clone() };
  56875. return _this;
  56876. }
  56877. Vector4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  56878. var nextPropsValue = nextProps.value || nextProps.target[nextProps.propertyName];
  56879. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  56880. nextState.value = nextPropsValue.clone();
  56881. this._localChange = false;
  56882. return true;
  56883. }
  56884. return false;
  56885. };
  56886. Vector4LineComponent.prototype.switchExpandState = function () {
  56887. this._localChange = true;
  56888. this.setState({ isExpanded: !this.state.isExpanded });
  56889. };
  56890. Vector4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  56891. if (this.props.onChange) {
  56892. this.props.onChange(this.state.value);
  56893. }
  56894. if (!this.props.onPropertyChangedObservable || !this.props.propertyName) {
  56895. return;
  56896. }
  56897. this.props.onPropertyChangedObservable.notifyObservers({
  56898. object: this.props.target,
  56899. property: this.props.propertyName,
  56900. value: this.state.value,
  56901. initialValue: previousValue
  56902. });
  56903. };
  56904. Vector4LineComponent.prototype.updateVector4 = function () {
  56905. var store = (this.props.value || this.props.target[this.props.propertyName]).clone();
  56906. if (this.props.value) {
  56907. this.props.value.copyFrom(this.state.value);
  56908. }
  56909. else {
  56910. this.props.target[this.props.propertyName] = this.state.value;
  56911. }
  56912. this.forceUpdate();
  56913. this.raiseOnPropertyChanged(store);
  56914. };
  56915. Vector4LineComponent.prototype.updateStateX = function (value) {
  56916. this._localChange = true;
  56917. this.state.value.x = value;
  56918. this.updateVector4();
  56919. };
  56920. Vector4LineComponent.prototype.updateStateY = function (value) {
  56921. this._localChange = true;
  56922. this.state.value.y = value;
  56923. this.updateVector4();
  56924. };
  56925. Vector4LineComponent.prototype.updateStateZ = function (value) {
  56926. this._localChange = true;
  56927. this.state.value.z = value;
  56928. this.updateVector4();
  56929. };
  56930. Vector4LineComponent.prototype.updateStateW = function (value) {
  56931. this._localChange = true;
  56932. this.state.value.w = value;
  56933. this.updateVector4();
  56934. };
  56935. Vector4LineComponent.prototype.render = function () {
  56936. var _this = this;
  56937. 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"] });
  56938. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  56939. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  56940. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label", title: this.props.label }, this.props.label),
  56941. 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)),
  56942. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  56943. this.state.isExpanded &&
  56944. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  56945. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { globalState: this.props.globalState, label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  56946. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { globalState: this.props.globalState, label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }),
  56947. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { globalState: this.props.globalState, label: "z", step: this.props.step, value: this.state.value.z, onChange: function (value) { return _this.updateStateZ(value); } }),
  56948. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { globalState: this.props.globalState, label: "w", step: this.props.step, value: this.state.value.w, onChange: function (value) { return _this.updateStateW(value); } }))));
  56949. };
  56950. Vector4LineComponent.defaultProps = {
  56951. step: 0.001,
  56952. };
  56953. return Vector4LineComponent;
  56954. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56955. /***/ }),
  56956. /***/ "./stringTools.ts":
  56957. /*!************************!*\
  56958. !*** ./stringTools.ts ***!
  56959. \************************/
  56960. /*! exports provided: StringTools */
  56961. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56962. "use strict";
  56963. __webpack_require__.r(__webpack_exports__);
  56964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringTools", function() { return StringTools; });
  56965. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  56966. /* 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__);
  56967. var StringTools = /** @class */ (function () {
  56968. function StringTools() {
  56969. }
  56970. /*
  56971. * Based on FileSaver.js
  56972. * A saveAs() FileSaver implementation.
  56973. *
  56974. * By Eli Grey, http://eligrey.com
  56975. *
  56976. * License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
  56977. * source : http://purl.eligrey.com/github/FileSaver.js
  56978. */
  56979. StringTools._SaveAs = function (blob, name, document) {
  56980. var _this = this;
  56981. if ('download' in HTMLAnchorElement.prototype) {
  56982. var URL = window.URL || window.webkitURL;
  56983. var a = document.createElement('a');
  56984. a.download = name;
  56985. a.rel = 'noopener'; // tabnabbing
  56986. a.href = URL.createObjectURL(blob);
  56987. setTimeout(function () { URL.revokeObjectURL(a.href); }, 4E4); // 40s
  56988. setTimeout(function () { _this._Click(a, document); }, 0);
  56989. return;
  56990. }
  56991. // Open a popup immediately do go around popup blocker
  56992. // Mostly only available on user interaction and the fileReader is async so...
  56993. var popup = open('', '_blank');
  56994. if (popup) {
  56995. popup.document.title = popup.document.body.innerText = 'downloading...';
  56996. }
  56997. var force = blob.type === 'application/octet-stream';
  56998. var isSafari = /constructor/i.test(window.HTMLElement) || window.safari;
  56999. var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent);
  57000. if ((isChromeIOS || (force && isSafari)) && typeof FileReader !== 'undefined') {
  57001. // Safari doesn't allow downloading of blob URLs
  57002. var reader = new FileReader();
  57003. reader.onloadend = function () {
  57004. var url = reader.result;
  57005. url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;');
  57006. if (popup) {
  57007. popup.location.href = url;
  57008. }
  57009. else {
  57010. location = url;
  57011. }
  57012. popup = null;
  57013. };
  57014. reader.readAsDataURL(blob);
  57015. }
  57016. else {
  57017. var URL = window.URL || window.webkitURL;
  57018. var url = URL.createObjectURL(blob);
  57019. if (popup) {
  57020. popup.location.href = url;
  57021. }
  57022. else {
  57023. location.href = url;
  57024. }
  57025. popup = null;
  57026. setTimeout(function () { URL.revokeObjectURL(url); }, 4E4);
  57027. }
  57028. };
  57029. StringTools._Click = function (node, document) {
  57030. try {
  57031. node.dispatchEvent(new MouseEvent('click'));
  57032. }
  57033. catch (e) {
  57034. var evt = document.createEvent('MouseEvents');
  57035. evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null);
  57036. node.dispatchEvent(evt);
  57037. }
  57038. };
  57039. /**
  57040. * Gets the base math type of node material block connection point.
  57041. * @param type Type to parse.
  57042. */
  57043. StringTools.GetBaseType = function (type) {
  57044. return babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"][type];
  57045. };
  57046. /**
  57047. * Download a string into a file that will be saved locally by the browser
  57048. * @param content defines the string to download locally as a file
  57049. */
  57050. StringTools.DownloadAsFile = function (document, content, filename) {
  57051. var blob = new Blob([content], {
  57052. type: "application/octet-stream"
  57053. });
  57054. this._SaveAs(blob, filename, document);
  57055. };
  57056. return StringTools;
  57057. }());
  57058. /***/ }),
  57059. /***/ "babylonjs/Misc/dataStorage":
  57060. /*!****************************************************************************************************!*\
  57061. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  57062. \****************************************************************************************************/
  57063. /*! no static exports found */
  57064. /***/ (function(module, exports) {
  57065. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_dataStorage__;
  57066. /***/ })
  57067. /******/ });
  57068. });
  57069. //# sourceMappingURL=babylon.nodeEditor.max.js.map