babylon.nodeEditor.max.js 3.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917
  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/@icons/material/CheckIcon.js":
  9635. /*!*********************************************************************!*\
  9636. !*** C:/Repos/Babylon.js/node_modules/@icons/material/CheckIcon.js ***!
  9637. \*********************************************************************/
  9638. /*! no static exports found */
  9639. /***/ (function(module, exports, __webpack_require__) {
  9640. "use strict";
  9641. Object.defineProperty(exports, "__esModule", {
  9642. value: true
  9643. });
  9644. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  9645. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  9646. var _react2 = _interopRequireDefault(_react);
  9647. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9648. function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
  9649. var DEFAULT_SIZE = 24;
  9650. exports.default = function (_ref) {
  9651. var _ref$fill = _ref.fill,
  9652. fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
  9653. _ref$width = _ref.width,
  9654. width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
  9655. _ref$height = _ref.height,
  9656. height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
  9657. _ref$style = _ref.style,
  9658. style = _ref$style === undefined ? {} : _ref$style,
  9659. props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);
  9660. return _react2.default.createElement(
  9661. 'svg',
  9662. _extends({
  9663. viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
  9664. style: _extends({ fill: fill, width: width, height: height }, style)
  9665. }, props),
  9666. _react2.default.createElement('path', { d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' })
  9667. );
  9668. };
  9669. /***/ }),
  9670. /***/ "../../node_modules/@icons/material/UnfoldMoreHorizontalIcon.js":
  9671. /*!************************************************************************************!*\
  9672. !*** C:/Repos/Babylon.js/node_modules/@icons/material/UnfoldMoreHorizontalIcon.js ***!
  9673. \************************************************************************************/
  9674. /*! no static exports found */
  9675. /***/ (function(module, exports, __webpack_require__) {
  9676. "use strict";
  9677. Object.defineProperty(exports, "__esModule", {
  9678. value: true
  9679. });
  9680. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  9681. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  9682. var _react2 = _interopRequireDefault(_react);
  9683. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9684. function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
  9685. var DEFAULT_SIZE = 24;
  9686. exports.default = function (_ref) {
  9687. var _ref$fill = _ref.fill,
  9688. fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
  9689. _ref$width = _ref.width,
  9690. width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
  9691. _ref$height = _ref.height,
  9692. height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
  9693. _ref$style = _ref.style,
  9694. style = _ref$style === undefined ? {} : _ref$style,
  9695. props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);
  9696. return _react2.default.createElement(
  9697. 'svg',
  9698. _extends({
  9699. viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
  9700. style: _extends({ fill: fill, width: width, height: height }, style)
  9701. }, props),
  9702. _react2.default.createElement('path', { d: 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z' })
  9703. );
  9704. };
  9705. /***/ }),
  9706. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/log/log.scss":
  9707. /*!**************************************************************************************************************************************************!*\
  9708. !*** 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 ***!
  9709. \**************************************************************************************************************************************************/
  9710. /*! no static exports found */
  9711. /***/ (function(module, exports, __webpack_require__) {
  9712. // Imports
  9713. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9714. exports = ___CSS_LOADER_API_IMPORT___(false);
  9715. // Module
  9716. 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", ""]);
  9717. // Exports
  9718. module.exports = exports;
  9719. /***/ }),
  9720. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/nodeList/nodeList.scss":
  9721. /*!************************************************************************************************************************************************************!*\
  9722. !*** 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 ***!
  9723. \************************************************************************************************************************************************************/
  9724. /*! no static exports found */
  9725. /***/ (function(module, exports, __webpack_require__) {
  9726. // Imports
  9727. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9728. exports = ___CSS_LOADER_API_IMPORT___(false);
  9729. // Module
  9730. 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", ""]);
  9731. // Exports
  9732. module.exports = exports;
  9733. /***/ }),
  9734. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./components/propertyTab/propertyTab.scss":
  9735. /*!******************************************************************************************************************************************************************!*\
  9736. !*** 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 ***!
  9737. \******************************************************************************************************************************************************************/
  9738. /*! no static exports found */
  9739. /***/ (function(module, exports, __webpack_require__) {
  9740. // Imports
  9741. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9742. exports = ___CSS_LOADER_API_IMPORT___(false);
  9743. // Module
  9744. exports.push([module.i, "#propertyTab {\n color: white;\n background: #333333; }\n #propertyTab #header {\n height: 30px;\n font-size: 16px;\n color: white;\n background: #222222;\n grid-row: 1;\n text-align: center;\n display: grid;\n grid-template-columns: 30px 1fr;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #propertyTab #header #logo {\n position: relative;\n grid-column: 1;\n width: 24px;\n height: 24px;\n left: 0;\n display: flex;\n align-self: center;\n justify-self: center; }\n #propertyTab #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #propertyTab .range {\n -webkit-appearance: none;\n width: 120px;\n height: 6px;\n background: #d3d3d3;\n border-radius: 5px;\n outline: none;\n opacity: 0.7;\n -webkit-transition: .2s;\n transition: opacity .2s; }\n #propertyTab .range:hover {\n opacity: 1; }\n #propertyTab .range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: #337ab7;\n cursor: pointer; }\n #propertyTab .range::-moz-range-thumb {\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: #337ab7;\n cursor: pointer; }\n #propertyTab input[type=\"color\"] {\n -webkit-appearance: none;\n border: 1px solid rgba(255, 255, 255, 0.5);\n padding: 0;\n width: 30px;\n height: 20px; }\n #propertyTab input[type=\"color\"]::-webkit-color-swatch-wrapper {\n padding: 0; }\n #propertyTab input[type=\"color\"]::-webkit-color-swatch {\n border: none; }\n #propertyTab .sliderLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .sliderLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .sliderLine .slider {\n grid-column: 2;\n margin-right: 5px;\n display: flex;\n align-items: center; }\n #propertyTab .textInputLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .textInputLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textInputLine .value {\n display: flex;\n align-items: center;\n grid-column: 2; }\n #propertyTab .textInputLine .value input {\n width: calc(100% - 5px); }\n #propertyTab .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #propertyTab .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #propertyTab .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #propertyTab .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #propertyTab .paneContainer .paneContainer-highlight-border {\n grid-row: 1;\n grid-column: 1;\n opacity: 1;\n border: 3px solid red;\n transition: opacity 250ms;\n pointer-events: none; }\n #propertyTab .paneContainer .paneContainer-highlight-border.transparent {\n opacity: 0; }\n #propertyTab .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #propertyTab .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #propertyTab .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #propertyTab .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .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: 30px 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 #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 .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", ""]);
  9745. // Exports
  9746. module.exports = exports;
  9747. /***/ }),
  9748. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./diagram/graphCanvas.scss":
  9749. /*!***************************************************************************************************************************************************!*\
  9750. !*** 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 ***!
  9751. \***************************************************************************************************************************************************/
  9752. /*! no static exports found */
  9753. /***/ (function(module, exports, __webpack_require__) {
  9754. // Imports
  9755. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9756. exports = ___CSS_LOADER_API_IMPORT___(false);
  9757. // Module
  9758. 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", ""]);
  9759. // Exports
  9760. module.exports = exports;
  9761. /***/ }),
  9762. /***/ "../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./main.scss":
  9763. /*!************************************************************************************************************************************!*\
  9764. !*** C:/Repos/Babylon.js/node_modules/css-loader/dist/cjs.js!C:/Repos/Babylon.js/node_modules/sass-loader/dist/cjs.js!./main.scss ***!
  9765. \************************************************************************************************************************************/
  9766. /*! no static exports found */
  9767. /***/ (function(module, exports, __webpack_require__) {
  9768. // Imports
  9769. var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "../../node_modules/css-loader/dist/runtime/api.js");
  9770. exports = ___CSS_LOADER_API_IMPORT___(false);
  9771. // Module
  9772. 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", ""]);
  9773. // Exports
  9774. module.exports = exports;
  9775. /***/ }),
  9776. /***/ "../../node_modules/css-loader/dist/runtime/api.js":
  9777. /*!***********************************************************************!*\
  9778. !*** C:/Repos/Babylon.js/node_modules/css-loader/dist/runtime/api.js ***!
  9779. \***********************************************************************/
  9780. /*! no static exports found */
  9781. /***/ (function(module, exports, __webpack_require__) {
  9782. "use strict";
  9783. /*
  9784. MIT License http://www.opensource.org/licenses/mit-license.php
  9785. Author Tobias Koppers @sokra
  9786. */
  9787. // css base code, injected by the css-loader
  9788. // eslint-disable-next-line func-names
  9789. module.exports = function (useSourceMap) {
  9790. var list = []; // return the list of modules as css string
  9791. list.toString = function toString() {
  9792. return this.map(function (item) {
  9793. var content = cssWithMappingToString(item, useSourceMap);
  9794. if (item[2]) {
  9795. return "@media ".concat(item[2], " {").concat(content, "}");
  9796. }
  9797. return content;
  9798. }).join('');
  9799. }; // import a list of modules into the list
  9800. // eslint-disable-next-line func-names
  9801. list.i = function (modules, mediaQuery, dedupe) {
  9802. if (typeof modules === 'string') {
  9803. // eslint-disable-next-line no-param-reassign
  9804. modules = [[null, modules, '']];
  9805. }
  9806. var alreadyImportedModules = {};
  9807. if (dedupe) {
  9808. for (var i = 0; i < this.length; i++) {
  9809. // eslint-disable-next-line prefer-destructuring
  9810. var id = this[i][0];
  9811. if (id != null) {
  9812. alreadyImportedModules[id] = true;
  9813. }
  9814. }
  9815. }
  9816. for (var _i = 0; _i < modules.length; _i++) {
  9817. var item = [].concat(modules[_i]);
  9818. if (dedupe && alreadyImportedModules[item[0]]) {
  9819. // eslint-disable-next-line no-continue
  9820. continue;
  9821. }
  9822. if (mediaQuery) {
  9823. if (!item[2]) {
  9824. item[2] = mediaQuery;
  9825. } else {
  9826. item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
  9827. }
  9828. }
  9829. list.push(item);
  9830. }
  9831. };
  9832. return list;
  9833. };
  9834. function cssWithMappingToString(item, useSourceMap) {
  9835. var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
  9836. var cssMapping = item[3];
  9837. if (!cssMapping) {
  9838. return content;
  9839. }
  9840. if (useSourceMap && typeof btoa === 'function') {
  9841. var sourceMapping = toComment(cssMapping);
  9842. var sourceURLs = cssMapping.sources.map(function (source) {
  9843. return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
  9844. });
  9845. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  9846. }
  9847. return [content].join('\n');
  9848. } // Adapted from convert-source-map (MIT)
  9849. function toComment(sourceMap) {
  9850. // eslint-disable-next-line no-undef
  9851. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  9852. var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
  9853. return "/*# ".concat(data, " */");
  9854. }
  9855. /***/ }),
  9856. /***/ "../../node_modules/dagre/index.js":
  9857. /*!*******************************************************!*\
  9858. !*** C:/Repos/Babylon.js/node_modules/dagre/index.js ***!
  9859. \*******************************************************/
  9860. /*! no static exports found */
  9861. /***/ (function(module, exports, __webpack_require__) {
  9862. /*
  9863. Copyright (c) 2012-2014 Chris Pettitt
  9864. Permission is hereby granted, free of charge, to any person obtaining a copy
  9865. of this software and associated documentation files (the "Software"), to deal
  9866. in the Software without restriction, including without limitation the rights
  9867. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9868. copies of the Software, and to permit persons to whom the Software is
  9869. furnished to do so, subject to the following conditions:
  9870. The above copyright notice and this permission notice shall be included in
  9871. all copies or substantial portions of the Software.
  9872. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  9873. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  9874. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  9875. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  9876. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  9877. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  9878. THE SOFTWARE.
  9879. */
  9880. module.exports = {
  9881. graphlib: __webpack_require__(/*! ./lib/graphlib */ "../../node_modules/dagre/lib/graphlib.js"),
  9882. layout: __webpack_require__(/*! ./lib/layout */ "../../node_modules/dagre/lib/layout.js"),
  9883. debug: __webpack_require__(/*! ./lib/debug */ "../../node_modules/dagre/lib/debug.js"),
  9884. util: {
  9885. time: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").time,
  9886. notime: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").notime
  9887. },
  9888. version: __webpack_require__(/*! ./lib/version */ "../../node_modules/dagre/lib/version.js")
  9889. };
  9890. /***/ }),
  9891. /***/ "../../node_modules/dagre/lib/acyclic.js":
  9892. /*!*************************************************************!*\
  9893. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/acyclic.js ***!
  9894. \*************************************************************/
  9895. /*! no static exports found */
  9896. /***/ (function(module, exports, __webpack_require__) {
  9897. "use strict";
  9898. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  9899. var greedyFAS = __webpack_require__(/*! ./greedy-fas */ "../../node_modules/dagre/lib/greedy-fas.js");
  9900. module.exports = {
  9901. run: run,
  9902. undo: undo
  9903. };
  9904. function run(g) {
  9905. var fas = (g.graph().acyclicer === "greedy"
  9906. ? greedyFAS(g, weightFn(g))
  9907. : dfsFAS(g));
  9908. _.forEach(fas, function(e) {
  9909. var label = g.edge(e);
  9910. g.removeEdge(e);
  9911. label.forwardName = e.name;
  9912. label.reversed = true;
  9913. g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
  9914. });
  9915. function weightFn(g) {
  9916. return function(e) {
  9917. return g.edge(e).weight;
  9918. };
  9919. }
  9920. }
  9921. function dfsFAS(g) {
  9922. var fas = [];
  9923. var stack = {};
  9924. var visited = {};
  9925. function dfs(v) {
  9926. if (_.has(visited, v)) {
  9927. return;
  9928. }
  9929. visited[v] = true;
  9930. stack[v] = true;
  9931. _.forEach(g.outEdges(v), function(e) {
  9932. if (_.has(stack, e.w)) {
  9933. fas.push(e);
  9934. } else {
  9935. dfs(e.w);
  9936. }
  9937. });
  9938. delete stack[v];
  9939. }
  9940. _.forEach(g.nodes(), dfs);
  9941. return fas;
  9942. }
  9943. function undo(g) {
  9944. _.forEach(g.edges(), function(e) {
  9945. var label = g.edge(e);
  9946. if (label.reversed) {
  9947. g.removeEdge(e);
  9948. var forwardName = label.forwardName;
  9949. delete label.reversed;
  9950. delete label.forwardName;
  9951. g.setEdge(e.w, e.v, label, forwardName);
  9952. }
  9953. });
  9954. }
  9955. /***/ }),
  9956. /***/ "../../node_modules/dagre/lib/add-border-segments.js":
  9957. /*!*************************************************************************!*\
  9958. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/add-border-segments.js ***!
  9959. \*************************************************************************/
  9960. /*! no static exports found */
  9961. /***/ (function(module, exports, __webpack_require__) {
  9962. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  9963. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  9964. module.exports = addBorderSegments;
  9965. function addBorderSegments(g) {
  9966. function dfs(v) {
  9967. var children = g.children(v);
  9968. var node = g.node(v);
  9969. if (children.length) {
  9970. _.forEach(children, dfs);
  9971. }
  9972. if (_.has(node, "minRank")) {
  9973. node.borderLeft = [];
  9974. node.borderRight = [];
  9975. for (var rank = node.minRank, maxRank = node.maxRank + 1;
  9976. rank < maxRank;
  9977. ++rank) {
  9978. addBorderNode(g, "borderLeft", "_bl", v, node, rank);
  9979. addBorderNode(g, "borderRight", "_br", v, node, rank);
  9980. }
  9981. }
  9982. }
  9983. _.forEach(g.children(), dfs);
  9984. }
  9985. function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
  9986. var label = { width: 0, height: 0, rank: rank, borderType: prop };
  9987. var prev = sgNode[prop][rank - 1];
  9988. var curr = util.addDummyNode(g, "border", label, prefix);
  9989. sgNode[prop][rank] = curr;
  9990. g.setParent(curr, sg);
  9991. if (prev) {
  9992. g.setEdge(prev, curr, { weight: 1 });
  9993. }
  9994. }
  9995. /***/ }),
  9996. /***/ "../../node_modules/dagre/lib/coordinate-system.js":
  9997. /*!***********************************************************************!*\
  9998. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/coordinate-system.js ***!
  9999. \***********************************************************************/
  10000. /*! no static exports found */
  10001. /***/ (function(module, exports, __webpack_require__) {
  10002. "use strict";
  10003. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10004. module.exports = {
  10005. adjust: adjust,
  10006. undo: undo
  10007. };
  10008. function adjust(g) {
  10009. var rankDir = g.graph().rankdir.toLowerCase();
  10010. if (rankDir === "lr" || rankDir === "rl") {
  10011. swapWidthHeight(g);
  10012. }
  10013. }
  10014. function undo(g) {
  10015. var rankDir = g.graph().rankdir.toLowerCase();
  10016. if (rankDir === "bt" || rankDir === "rl") {
  10017. reverseY(g);
  10018. }
  10019. if (rankDir === "lr" || rankDir === "rl") {
  10020. swapXY(g);
  10021. swapWidthHeight(g);
  10022. }
  10023. }
  10024. function swapWidthHeight(g) {
  10025. _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
  10026. _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
  10027. }
  10028. function swapWidthHeightOne(attrs) {
  10029. var w = attrs.width;
  10030. attrs.width = attrs.height;
  10031. attrs.height = w;
  10032. }
  10033. function reverseY(g) {
  10034. _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
  10035. _.forEach(g.edges(), function(e) {
  10036. var edge = g.edge(e);
  10037. _.forEach(edge.points, reverseYOne);
  10038. if (_.has(edge, "y")) {
  10039. reverseYOne(edge);
  10040. }
  10041. });
  10042. }
  10043. function reverseYOne(attrs) {
  10044. attrs.y = -attrs.y;
  10045. }
  10046. function swapXY(g) {
  10047. _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
  10048. _.forEach(g.edges(), function(e) {
  10049. var edge = g.edge(e);
  10050. _.forEach(edge.points, swapXYOne);
  10051. if (_.has(edge, "x")) {
  10052. swapXYOne(edge);
  10053. }
  10054. });
  10055. }
  10056. function swapXYOne(attrs) {
  10057. var x = attrs.x;
  10058. attrs.x = attrs.y;
  10059. attrs.y = x;
  10060. }
  10061. /***/ }),
  10062. /***/ "../../node_modules/dagre/lib/data/list.js":
  10063. /*!***************************************************************!*\
  10064. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/data/list.js ***!
  10065. \***************************************************************/
  10066. /*! no static exports found */
  10067. /***/ (function(module, exports) {
  10068. /*
  10069. * Simple doubly linked list implementation derived from Cormen, et al.,
  10070. * "Introduction to Algorithms".
  10071. */
  10072. module.exports = List;
  10073. function List() {
  10074. var sentinel = {};
  10075. sentinel._next = sentinel._prev = sentinel;
  10076. this._sentinel = sentinel;
  10077. }
  10078. List.prototype.dequeue = function() {
  10079. var sentinel = this._sentinel;
  10080. var entry = sentinel._prev;
  10081. if (entry !== sentinel) {
  10082. unlink(entry);
  10083. return entry;
  10084. }
  10085. };
  10086. List.prototype.enqueue = function(entry) {
  10087. var sentinel = this._sentinel;
  10088. if (entry._prev && entry._next) {
  10089. unlink(entry);
  10090. }
  10091. entry._next = sentinel._next;
  10092. sentinel._next._prev = entry;
  10093. sentinel._next = entry;
  10094. entry._prev = sentinel;
  10095. };
  10096. List.prototype.toString = function() {
  10097. var strs = [];
  10098. var sentinel = this._sentinel;
  10099. var curr = sentinel._prev;
  10100. while (curr !== sentinel) {
  10101. strs.push(JSON.stringify(curr, filterOutLinks));
  10102. curr = curr._prev;
  10103. }
  10104. return "[" + strs.join(", ") + "]";
  10105. };
  10106. function unlink(entry) {
  10107. entry._prev._next = entry._next;
  10108. entry._next._prev = entry._prev;
  10109. delete entry._next;
  10110. delete entry._prev;
  10111. }
  10112. function filterOutLinks(k, v) {
  10113. if (k !== "_next" && k !== "_prev") {
  10114. return v;
  10115. }
  10116. }
  10117. /***/ }),
  10118. /***/ "../../node_modules/dagre/lib/debug.js":
  10119. /*!***********************************************************!*\
  10120. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/debug.js ***!
  10121. \***********************************************************/
  10122. /*! no static exports found */
  10123. /***/ (function(module, exports, __webpack_require__) {
  10124. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10125. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  10126. var Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  10127. module.exports = {
  10128. debugOrdering: debugOrdering
  10129. };
  10130. /* istanbul ignore next */
  10131. function debugOrdering(g) {
  10132. var layerMatrix = util.buildLayerMatrix(g);
  10133. var h = new Graph({ compound: true, multigraph: true }).setGraph({});
  10134. _.forEach(g.nodes(), function(v) {
  10135. h.setNode(v, { label: v });
  10136. h.setParent(v, "layer" + g.node(v).rank);
  10137. });
  10138. _.forEach(g.edges(), function(e) {
  10139. h.setEdge(e.v, e.w, {}, e.name);
  10140. });
  10141. _.forEach(layerMatrix, function(layer, i) {
  10142. var layerV = "layer" + i;
  10143. h.setNode(layerV, { rank: "same" });
  10144. _.reduce(layer, function(u, v) {
  10145. h.setEdge(u, v, { style: "invis" });
  10146. return v;
  10147. });
  10148. });
  10149. return h;
  10150. }
  10151. /***/ }),
  10152. /***/ "../../node_modules/dagre/lib/graphlib.js":
  10153. /*!**************************************************************!*\
  10154. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/graphlib.js ***!
  10155. \**************************************************************/
  10156. /*! no static exports found */
  10157. /***/ (function(module, exports, __webpack_require__) {
  10158. /* global window */
  10159. var graphlib;
  10160. if (true) {
  10161. try {
  10162. graphlib = __webpack_require__(/*! graphlib */ "../../node_modules/graphlib/index.js");
  10163. } catch (e) {
  10164. // continue regardless of error
  10165. }
  10166. }
  10167. if (!graphlib) {
  10168. graphlib = window.graphlib;
  10169. }
  10170. module.exports = graphlib;
  10171. /***/ }),
  10172. /***/ "../../node_modules/dagre/lib/greedy-fas.js":
  10173. /*!****************************************************************!*\
  10174. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/greedy-fas.js ***!
  10175. \****************************************************************/
  10176. /*! no static exports found */
  10177. /***/ (function(module, exports, __webpack_require__) {
  10178. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10179. var Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  10180. var List = __webpack_require__(/*! ./data/list */ "../../node_modules/dagre/lib/data/list.js");
  10181. /*
  10182. * A greedy heuristic for finding a feedback arc set for a graph. A feedback
  10183. * arc set is a set of edges that can be removed to make a graph acyclic.
  10184. * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
  10185. * effective heuristic for the feedback arc set problem." This implementation
  10186. * adjusts that from the paper to allow for weighted edges.
  10187. */
  10188. module.exports = greedyFAS;
  10189. var DEFAULT_WEIGHT_FN = _.constant(1);
  10190. function greedyFAS(g, weightFn) {
  10191. if (g.nodeCount() <= 1) {
  10192. return [];
  10193. }
  10194. var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
  10195. var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
  10196. // Expand multi-edges
  10197. return _.flatten(_.map(results, function(e) {
  10198. return g.outEdges(e.v, e.w);
  10199. }), true);
  10200. }
  10201. function doGreedyFAS(g, buckets, zeroIdx) {
  10202. var results = [];
  10203. var sources = buckets[buckets.length - 1];
  10204. var sinks = buckets[0];
  10205. var entry;
  10206. while (g.nodeCount()) {
  10207. while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  10208. while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  10209. if (g.nodeCount()) {
  10210. for (var i = buckets.length - 2; i > 0; --i) {
  10211. entry = buckets[i].dequeue();
  10212. if (entry) {
  10213. results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
  10214. break;
  10215. }
  10216. }
  10217. }
  10218. }
  10219. return results;
  10220. }
  10221. function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
  10222. var results = collectPredecessors ? [] : undefined;
  10223. _.forEach(g.inEdges(entry.v), function(edge) {
  10224. var weight = g.edge(edge);
  10225. var uEntry = g.node(edge.v);
  10226. if (collectPredecessors) {
  10227. results.push({ v: edge.v, w: edge.w });
  10228. }
  10229. uEntry.out -= weight;
  10230. assignBucket(buckets, zeroIdx, uEntry);
  10231. });
  10232. _.forEach(g.outEdges(entry.v), function(edge) {
  10233. var weight = g.edge(edge);
  10234. var w = edge.w;
  10235. var wEntry = g.node(w);
  10236. wEntry["in"] -= weight;
  10237. assignBucket(buckets, zeroIdx, wEntry);
  10238. });
  10239. g.removeNode(entry.v);
  10240. return results;
  10241. }
  10242. function buildState(g, weightFn) {
  10243. var fasGraph = new Graph();
  10244. var maxIn = 0;
  10245. var maxOut = 0;
  10246. _.forEach(g.nodes(), function(v) {
  10247. fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
  10248. });
  10249. // Aggregate weights on nodes, but also sum the weights across multi-edges
  10250. // into a single edge for the fasGraph.
  10251. _.forEach(g.edges(), function(e) {
  10252. var prevWeight = fasGraph.edge(e.v, e.w) || 0;
  10253. var weight = weightFn(e);
  10254. var edgeWeight = prevWeight + weight;
  10255. fasGraph.setEdge(e.v, e.w, edgeWeight);
  10256. maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
  10257. maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
  10258. });
  10259. var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
  10260. var zeroIdx = maxIn + 1;
  10261. _.forEach(fasGraph.nodes(), function(v) {
  10262. assignBucket(buckets, zeroIdx, fasGraph.node(v));
  10263. });
  10264. return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
  10265. }
  10266. function assignBucket(buckets, zeroIdx, entry) {
  10267. if (!entry.out) {
  10268. buckets[0].enqueue(entry);
  10269. } else if (!entry["in"]) {
  10270. buckets[buckets.length - 1].enqueue(entry);
  10271. } else {
  10272. buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
  10273. }
  10274. }
  10275. /***/ }),
  10276. /***/ "../../node_modules/dagre/lib/layout.js":
  10277. /*!************************************************************!*\
  10278. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/layout.js ***!
  10279. \************************************************************/
  10280. /*! no static exports found */
  10281. /***/ (function(module, exports, __webpack_require__) {
  10282. "use strict";
  10283. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10284. var acyclic = __webpack_require__(/*! ./acyclic */ "../../node_modules/dagre/lib/acyclic.js");
  10285. var normalize = __webpack_require__(/*! ./normalize */ "../../node_modules/dagre/lib/normalize.js");
  10286. var rank = __webpack_require__(/*! ./rank */ "../../node_modules/dagre/lib/rank/index.js");
  10287. var normalizeRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").normalizeRanks;
  10288. var parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "../../node_modules/dagre/lib/parent-dummy-chains.js");
  10289. var removeEmptyRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").removeEmptyRanks;
  10290. var nestingGraph = __webpack_require__(/*! ./nesting-graph */ "../../node_modules/dagre/lib/nesting-graph.js");
  10291. var addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "../../node_modules/dagre/lib/add-border-segments.js");
  10292. var coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "../../node_modules/dagre/lib/coordinate-system.js");
  10293. var order = __webpack_require__(/*! ./order */ "../../node_modules/dagre/lib/order/index.js");
  10294. var position = __webpack_require__(/*! ./position */ "../../node_modules/dagre/lib/position/index.js");
  10295. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  10296. var Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  10297. module.exports = layout;
  10298. function layout(g, opts) {
  10299. var time = opts && opts.debugTiming ? util.time : util.notime;
  10300. time("layout", function() {
  10301. var layoutGraph =
  10302. time(" buildLayoutGraph", function() { return buildLayoutGraph(g); });
  10303. time(" runLayout", function() { runLayout(layoutGraph, time); });
  10304. time(" updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
  10305. });
  10306. }
  10307. function runLayout(g, time) {
  10308. time(" makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
  10309. time(" removeSelfEdges", function() { removeSelfEdges(g); });
  10310. time(" acyclic", function() { acyclic.run(g); });
  10311. time(" nestingGraph.run", function() { nestingGraph.run(g); });
  10312. time(" rank", function() { rank(util.asNonCompoundGraph(g)); });
  10313. time(" injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
  10314. time(" removeEmptyRanks", function() { removeEmptyRanks(g); });
  10315. time(" nestingGraph.cleanup", function() { nestingGraph.cleanup(g); });
  10316. time(" normalizeRanks", function() { normalizeRanks(g); });
  10317. time(" assignRankMinMax", function() { assignRankMinMax(g); });
  10318. time(" removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
  10319. time(" normalize.run", function() { normalize.run(g); });
  10320. time(" parentDummyChains", function() { parentDummyChains(g); });
  10321. time(" addBorderSegments", function() { addBorderSegments(g); });
  10322. time(" order", function() { order(g); });
  10323. time(" insertSelfEdges", function() { insertSelfEdges(g); });
  10324. time(" adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
  10325. time(" position", function() { position(g); });
  10326. time(" positionSelfEdges", function() { positionSelfEdges(g); });
  10327. time(" removeBorderNodes", function() { removeBorderNodes(g); });
  10328. time(" normalize.undo", function() { normalize.undo(g); });
  10329. time(" fixupEdgeLabelCoords", function() { fixupEdgeLabelCoords(g); });
  10330. time(" undoCoordinateSystem", function() { coordinateSystem.undo(g); });
  10331. time(" translateGraph", function() { translateGraph(g); });
  10332. time(" assignNodeIntersects", function() { assignNodeIntersects(g); });
  10333. time(" reversePoints", function() { reversePointsForReversedEdges(g); });
  10334. time(" acyclic.undo", function() { acyclic.undo(g); });
  10335. }
  10336. /*
  10337. * Copies final layout information from the layout graph back to the input
  10338. * graph. This process only copies whitelisted attributes from the layout graph
  10339. * to the input graph, so it serves as a good place to determine what
  10340. * attributes can influence layout.
  10341. */
  10342. function updateInputGraph(inputGraph, layoutGraph) {
  10343. _.forEach(inputGraph.nodes(), function(v) {
  10344. var inputLabel = inputGraph.node(v);
  10345. var layoutLabel = layoutGraph.node(v);
  10346. if (inputLabel) {
  10347. inputLabel.x = layoutLabel.x;
  10348. inputLabel.y = layoutLabel.y;
  10349. if (layoutGraph.children(v).length) {
  10350. inputLabel.width = layoutLabel.width;
  10351. inputLabel.height = layoutLabel.height;
  10352. }
  10353. }
  10354. });
  10355. _.forEach(inputGraph.edges(), function(e) {
  10356. var inputLabel = inputGraph.edge(e);
  10357. var layoutLabel = layoutGraph.edge(e);
  10358. inputLabel.points = layoutLabel.points;
  10359. if (_.has(layoutLabel, "x")) {
  10360. inputLabel.x = layoutLabel.x;
  10361. inputLabel.y = layoutLabel.y;
  10362. }
  10363. });
  10364. inputGraph.graph().width = layoutGraph.graph().width;
  10365. inputGraph.graph().height = layoutGraph.graph().height;
  10366. }
  10367. var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"];
  10368. var graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" };
  10369. var graphAttrs = ["acyclicer", "ranker", "rankdir", "align"];
  10370. var nodeNumAttrs = ["width", "height"];
  10371. var nodeDefaults = { width: 0, height: 0 };
  10372. var edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"];
  10373. var edgeDefaults = {
  10374. minlen: 1, weight: 1, width: 0, height: 0,
  10375. labeloffset: 10, labelpos: "r"
  10376. };
  10377. var edgeAttrs = ["labelpos"];
  10378. /*
  10379. * Constructs a new graph from the input graph, which can be used for layout.
  10380. * This process copies only whitelisted attributes from the input graph to the
  10381. * layout graph. Thus this function serves as a good place to determine what
  10382. * attributes can influence layout.
  10383. */
  10384. function buildLayoutGraph(inputGraph) {
  10385. var g = new Graph({ multigraph: true, compound: true });
  10386. var graph = canonicalize(inputGraph.graph());
  10387. g.setGraph(_.merge({},
  10388. graphDefaults,
  10389. selectNumberAttrs(graph, graphNumAttrs),
  10390. _.pick(graph, graphAttrs)));
  10391. _.forEach(inputGraph.nodes(), function(v) {
  10392. var node = canonicalize(inputGraph.node(v));
  10393. g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
  10394. g.setParent(v, inputGraph.parent(v));
  10395. });
  10396. _.forEach(inputGraph.edges(), function(e) {
  10397. var edge = canonicalize(inputGraph.edge(e));
  10398. g.setEdge(e, _.merge({},
  10399. edgeDefaults,
  10400. selectNumberAttrs(edge, edgeNumAttrs),
  10401. _.pick(edge, edgeAttrs)));
  10402. });
  10403. return g;
  10404. }
  10405. /*
  10406. * This idea comes from the Gansner paper: to account for edge labels in our
  10407. * layout we split each rank in half by doubling minlen and halving ranksep.
  10408. * Then we can place labels at these mid-points between nodes.
  10409. *
  10410. * We also add some minimal padding to the width to push the label for the edge
  10411. * away from the edge itself a bit.
  10412. */
  10413. function makeSpaceForEdgeLabels(g) {
  10414. var graph = g.graph();
  10415. graph.ranksep /= 2;
  10416. _.forEach(g.edges(), function(e) {
  10417. var edge = g.edge(e);
  10418. edge.minlen *= 2;
  10419. if (edge.labelpos.toLowerCase() !== "c") {
  10420. if (graph.rankdir === "TB" || graph.rankdir === "BT") {
  10421. edge.width += edge.labeloffset;
  10422. } else {
  10423. edge.height += edge.labeloffset;
  10424. }
  10425. }
  10426. });
  10427. }
  10428. /*
  10429. * Creates temporary dummy nodes that capture the rank in which each edge's
  10430. * label is going to, if it has one of non-zero width and height. We do this
  10431. * so that we can safely remove empty ranks while preserving balance for the
  10432. * label's position.
  10433. */
  10434. function injectEdgeLabelProxies(g) {
  10435. _.forEach(g.edges(), function(e) {
  10436. var edge = g.edge(e);
  10437. if (edge.width && edge.height) {
  10438. var v = g.node(e.v);
  10439. var w = g.node(e.w);
  10440. var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
  10441. util.addDummyNode(g, "edge-proxy", label, "_ep");
  10442. }
  10443. });
  10444. }
  10445. function assignRankMinMax(g) {
  10446. var maxRank = 0;
  10447. _.forEach(g.nodes(), function(v) {
  10448. var node = g.node(v);
  10449. if (node.borderTop) {
  10450. node.minRank = g.node(node.borderTop).rank;
  10451. node.maxRank = g.node(node.borderBottom).rank;
  10452. maxRank = _.max(maxRank, node.maxRank);
  10453. }
  10454. });
  10455. g.graph().maxRank = maxRank;
  10456. }
  10457. function removeEdgeLabelProxies(g) {
  10458. _.forEach(g.nodes(), function(v) {
  10459. var node = g.node(v);
  10460. if (node.dummy === "edge-proxy") {
  10461. g.edge(node.e).labelRank = node.rank;
  10462. g.removeNode(v);
  10463. }
  10464. });
  10465. }
  10466. function translateGraph(g) {
  10467. var minX = Number.POSITIVE_INFINITY;
  10468. var maxX = 0;
  10469. var minY = Number.POSITIVE_INFINITY;
  10470. var maxY = 0;
  10471. var graphLabel = g.graph();
  10472. var marginX = graphLabel.marginx || 0;
  10473. var marginY = graphLabel.marginy || 0;
  10474. function getExtremes(attrs) {
  10475. var x = attrs.x;
  10476. var y = attrs.y;
  10477. var w = attrs.width;
  10478. var h = attrs.height;
  10479. minX = Math.min(minX, x - w / 2);
  10480. maxX = Math.max(maxX, x + w / 2);
  10481. minY = Math.min(minY, y - h / 2);
  10482. maxY = Math.max(maxY, y + h / 2);
  10483. }
  10484. _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
  10485. _.forEach(g.edges(), function(e) {
  10486. var edge = g.edge(e);
  10487. if (_.has(edge, "x")) {
  10488. getExtremes(edge);
  10489. }
  10490. });
  10491. minX -= marginX;
  10492. minY -= marginY;
  10493. _.forEach(g.nodes(), function(v) {
  10494. var node = g.node(v);
  10495. node.x -= minX;
  10496. node.y -= minY;
  10497. });
  10498. _.forEach(g.edges(), function(e) {
  10499. var edge = g.edge(e);
  10500. _.forEach(edge.points, function(p) {
  10501. p.x -= minX;
  10502. p.y -= minY;
  10503. });
  10504. if (_.has(edge, "x")) { edge.x -= minX; }
  10505. if (_.has(edge, "y")) { edge.y -= minY; }
  10506. });
  10507. graphLabel.width = maxX - minX + marginX;
  10508. graphLabel.height = maxY - minY + marginY;
  10509. }
  10510. function assignNodeIntersects(g) {
  10511. _.forEach(g.edges(), function(e) {
  10512. var edge = g.edge(e);
  10513. var nodeV = g.node(e.v);
  10514. var nodeW = g.node(e.w);
  10515. var p1, p2;
  10516. if (!edge.points) {
  10517. edge.points = [];
  10518. p1 = nodeW;
  10519. p2 = nodeV;
  10520. } else {
  10521. p1 = edge.points[0];
  10522. p2 = edge.points[edge.points.length - 1];
  10523. }
  10524. edge.points.unshift(util.intersectRect(nodeV, p1));
  10525. edge.points.push(util.intersectRect(nodeW, p2));
  10526. });
  10527. }
  10528. function fixupEdgeLabelCoords(g) {
  10529. _.forEach(g.edges(), function(e) {
  10530. var edge = g.edge(e);
  10531. if (_.has(edge, "x")) {
  10532. if (edge.labelpos === "l" || edge.labelpos === "r") {
  10533. edge.width -= edge.labeloffset;
  10534. }
  10535. switch (edge.labelpos) {
  10536. case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
  10537. case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
  10538. }
  10539. }
  10540. });
  10541. }
  10542. function reversePointsForReversedEdges(g) {
  10543. _.forEach(g.edges(), function(e) {
  10544. var edge = g.edge(e);
  10545. if (edge.reversed) {
  10546. edge.points.reverse();
  10547. }
  10548. });
  10549. }
  10550. function removeBorderNodes(g) {
  10551. _.forEach(g.nodes(), function(v) {
  10552. if (g.children(v).length) {
  10553. var node = g.node(v);
  10554. var t = g.node(node.borderTop);
  10555. var b = g.node(node.borderBottom);
  10556. var l = g.node(_.last(node.borderLeft));
  10557. var r = g.node(_.last(node.borderRight));
  10558. node.width = Math.abs(r.x - l.x);
  10559. node.height = Math.abs(b.y - t.y);
  10560. node.x = l.x + node.width / 2;
  10561. node.y = t.y + node.height / 2;
  10562. }
  10563. });
  10564. _.forEach(g.nodes(), function(v) {
  10565. if (g.node(v).dummy === "border") {
  10566. g.removeNode(v);
  10567. }
  10568. });
  10569. }
  10570. function removeSelfEdges(g) {
  10571. _.forEach(g.edges(), function(e) {
  10572. if (e.v === e.w) {
  10573. var node = g.node(e.v);
  10574. if (!node.selfEdges) {
  10575. node.selfEdges = [];
  10576. }
  10577. node.selfEdges.push({ e: e, label: g.edge(e) });
  10578. g.removeEdge(e);
  10579. }
  10580. });
  10581. }
  10582. function insertSelfEdges(g) {
  10583. var layers = util.buildLayerMatrix(g);
  10584. _.forEach(layers, function(layer) {
  10585. var orderShift = 0;
  10586. _.forEach(layer, function(v, i) {
  10587. var node = g.node(v);
  10588. node.order = i + orderShift;
  10589. _.forEach(node.selfEdges, function(selfEdge) {
  10590. util.addDummyNode(g, "selfedge", {
  10591. width: selfEdge.label.width,
  10592. height: selfEdge.label.height,
  10593. rank: node.rank,
  10594. order: i + (++orderShift),
  10595. e: selfEdge.e,
  10596. label: selfEdge.label
  10597. }, "_se");
  10598. });
  10599. delete node.selfEdges;
  10600. });
  10601. });
  10602. }
  10603. function positionSelfEdges(g) {
  10604. _.forEach(g.nodes(), function(v) {
  10605. var node = g.node(v);
  10606. if (node.dummy === "selfedge") {
  10607. var selfNode = g.node(node.e.v);
  10608. var x = selfNode.x + selfNode.width / 2;
  10609. var y = selfNode.y;
  10610. var dx = node.x - x;
  10611. var dy = selfNode.height / 2;
  10612. g.setEdge(node.e, node.label);
  10613. g.removeNode(v);
  10614. node.label.points = [
  10615. { x: x + 2 * dx / 3, y: y - dy },
  10616. { x: x + 5 * dx / 6, y: y - dy },
  10617. { x: x + dx , y: y },
  10618. { x: x + 5 * dx / 6, y: y + dy },
  10619. { x: x + 2 * dx / 3, y: y + dy }
  10620. ];
  10621. node.label.x = node.x;
  10622. node.label.y = node.y;
  10623. }
  10624. });
  10625. }
  10626. function selectNumberAttrs(obj, attrs) {
  10627. return _.mapValues(_.pick(obj, attrs), Number);
  10628. }
  10629. function canonicalize(attrs) {
  10630. var newAttrs = {};
  10631. _.forEach(attrs, function(v, k) {
  10632. newAttrs[k.toLowerCase()] = v;
  10633. });
  10634. return newAttrs;
  10635. }
  10636. /***/ }),
  10637. /***/ "../../node_modules/dagre/lib/lodash.js":
  10638. /*!************************************************************!*\
  10639. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/lodash.js ***!
  10640. \************************************************************/
  10641. /*! no static exports found */
  10642. /***/ (function(module, exports, __webpack_require__) {
  10643. /* global window */
  10644. var lodash;
  10645. if (true) {
  10646. try {
  10647. lodash = {
  10648. cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js"),
  10649. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  10650. defaults: __webpack_require__(/*! lodash/defaults */ "../../node_modules/lodash/defaults.js"),
  10651. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  10652. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  10653. find: __webpack_require__(/*! lodash/find */ "../../node_modules/lodash/find.js"),
  10654. flatten: __webpack_require__(/*! lodash/flatten */ "../../node_modules/lodash/flatten.js"),
  10655. forEach: __webpack_require__(/*! lodash/forEach */ "../../node_modules/lodash/forEach.js"),
  10656. forIn: __webpack_require__(/*! lodash/forIn */ "../../node_modules/lodash/forIn.js"),
  10657. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  10658. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  10659. last: __webpack_require__(/*! lodash/last */ "../../node_modules/lodash/last.js"),
  10660. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  10661. mapValues: __webpack_require__(/*! lodash/mapValues */ "../../node_modules/lodash/mapValues.js"),
  10662. max: __webpack_require__(/*! lodash/max */ "../../node_modules/lodash/max.js"),
  10663. merge: __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js"),
  10664. min: __webpack_require__(/*! lodash/min */ "../../node_modules/lodash/min.js"),
  10665. minBy: __webpack_require__(/*! lodash/minBy */ "../../node_modules/lodash/minBy.js"),
  10666. now: __webpack_require__(/*! lodash/now */ "../../node_modules/lodash/now.js"),
  10667. pick: __webpack_require__(/*! lodash/pick */ "../../node_modules/lodash/pick.js"),
  10668. range: __webpack_require__(/*! lodash/range */ "../../node_modules/lodash/range.js"),
  10669. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  10670. sortBy: __webpack_require__(/*! lodash/sortBy */ "../../node_modules/lodash/sortBy.js"),
  10671. uniqueId: __webpack_require__(/*! lodash/uniqueId */ "../../node_modules/lodash/uniqueId.js"),
  10672. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js"),
  10673. zipObject: __webpack_require__(/*! lodash/zipObject */ "../../node_modules/lodash/zipObject.js"),
  10674. };
  10675. } catch (e) {
  10676. // continue regardless of error
  10677. }
  10678. }
  10679. if (!lodash) {
  10680. lodash = window._;
  10681. }
  10682. module.exports = lodash;
  10683. /***/ }),
  10684. /***/ "../../node_modules/dagre/lib/nesting-graph.js":
  10685. /*!*******************************************************************!*\
  10686. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/nesting-graph.js ***!
  10687. \*******************************************************************/
  10688. /*! no static exports found */
  10689. /***/ (function(module, exports, __webpack_require__) {
  10690. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10691. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  10692. module.exports = {
  10693. run: run,
  10694. cleanup: cleanup
  10695. };
  10696. /*
  10697. * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
  10698. * adds appropriate edges to ensure that all cluster nodes are placed between
  10699. * these boundries, and ensures that the graph is connected.
  10700. *
  10701. * In addition we ensure, through the use of the minlen property, that nodes
  10702. * and subgraph border nodes to not end up on the same rank.
  10703. *
  10704. * Preconditions:
  10705. *
  10706. * 1. Input graph is a DAG
  10707. * 2. Nodes in the input graph has a minlen attribute
  10708. *
  10709. * Postconditions:
  10710. *
  10711. * 1. Input graph is connected.
  10712. * 2. Dummy nodes are added for the tops and bottoms of subgraphs.
  10713. * 3. The minlen attribute for nodes is adjusted to ensure nodes do not
  10714. * get placed on the same rank as subgraph border nodes.
  10715. *
  10716. * The nesting graph idea comes from Sander, "Layout of Compound Directed
  10717. * Graphs."
  10718. */
  10719. function run(g) {
  10720. var root = util.addDummyNode(g, "root", {}, "_root");
  10721. var depths = treeDepths(g);
  10722. var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
  10723. var nodeSep = 2 * height + 1;
  10724. g.graph().nestingRoot = root;
  10725. // Multiply minlen by nodeSep to align nodes on non-border ranks.
  10726. _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
  10727. // Calculate a weight that is sufficient to keep subgraphs vertically compact
  10728. var weight = sumWeights(g) + 1;
  10729. // Create border nodes and link them up
  10730. _.forEach(g.children(), function(child) {
  10731. dfs(g, root, nodeSep, weight, height, depths, child);
  10732. });
  10733. // Save the multiplier for node layers for later removal of empty border
  10734. // layers.
  10735. g.graph().nodeRankFactor = nodeSep;
  10736. }
  10737. function dfs(g, root, nodeSep, weight, height, depths, v) {
  10738. var children = g.children(v);
  10739. if (!children.length) {
  10740. if (v !== root) {
  10741. g.setEdge(root, v, { weight: 0, minlen: nodeSep });
  10742. }
  10743. return;
  10744. }
  10745. var top = util.addBorderNode(g, "_bt");
  10746. var bottom = util.addBorderNode(g, "_bb");
  10747. var label = g.node(v);
  10748. g.setParent(top, v);
  10749. label.borderTop = top;
  10750. g.setParent(bottom, v);
  10751. label.borderBottom = bottom;
  10752. _.forEach(children, function(child) {
  10753. dfs(g, root, nodeSep, weight, height, depths, child);
  10754. var childNode = g.node(child);
  10755. var childTop = childNode.borderTop ? childNode.borderTop : child;
  10756. var childBottom = childNode.borderBottom ? childNode.borderBottom : child;
  10757. var thisWeight = childNode.borderTop ? weight : 2 * weight;
  10758. var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
  10759. g.setEdge(top, childTop, {
  10760. weight: thisWeight,
  10761. minlen: minlen,
  10762. nestingEdge: true
  10763. });
  10764. g.setEdge(childBottom, bottom, {
  10765. weight: thisWeight,
  10766. minlen: minlen,
  10767. nestingEdge: true
  10768. });
  10769. });
  10770. if (!g.parent(v)) {
  10771. g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
  10772. }
  10773. }
  10774. function treeDepths(g) {
  10775. var depths = {};
  10776. function dfs(v, depth) {
  10777. var children = g.children(v);
  10778. if (children && children.length) {
  10779. _.forEach(children, function(child) {
  10780. dfs(child, depth + 1);
  10781. });
  10782. }
  10783. depths[v] = depth;
  10784. }
  10785. _.forEach(g.children(), function(v) { dfs(v, 1); });
  10786. return depths;
  10787. }
  10788. function sumWeights(g) {
  10789. return _.reduce(g.edges(), function(acc, e) {
  10790. return acc + g.edge(e).weight;
  10791. }, 0);
  10792. }
  10793. function cleanup(g) {
  10794. var graphLabel = g.graph();
  10795. g.removeNode(graphLabel.nestingRoot);
  10796. delete graphLabel.nestingRoot;
  10797. _.forEach(g.edges(), function(e) {
  10798. var edge = g.edge(e);
  10799. if (edge.nestingEdge) {
  10800. g.removeEdge(e);
  10801. }
  10802. });
  10803. }
  10804. /***/ }),
  10805. /***/ "../../node_modules/dagre/lib/normalize.js":
  10806. /*!***************************************************************!*\
  10807. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/normalize.js ***!
  10808. \***************************************************************/
  10809. /*! no static exports found */
  10810. /***/ (function(module, exports, __webpack_require__) {
  10811. "use strict";
  10812. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  10813. var util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  10814. module.exports = {
  10815. run: run,
  10816. undo: undo
  10817. };
  10818. /*
  10819. * Breaks any long edges in the graph into short segments that span 1 layer
  10820. * each. This operation is undoable with the denormalize function.
  10821. *
  10822. * Pre-conditions:
  10823. *
  10824. * 1. The input graph is a DAG.
  10825. * 2. Each node in the graph has a "rank" property.
  10826. *
  10827. * Post-condition:
  10828. *
  10829. * 1. All edges in the graph have a length of 1.
  10830. * 2. Dummy nodes are added where edges have been split into segments.
  10831. * 3. The graph is augmented with a "dummyChains" attribute which contains
  10832. * the first dummy in each chain of dummy nodes produced.
  10833. */
  10834. function run(g) {
  10835. g.graph().dummyChains = [];
  10836. _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
  10837. }
  10838. function normalizeEdge(g, e) {
  10839. var v = e.v;
  10840. var vRank = g.node(v).rank;
  10841. var w = e.w;
  10842. var wRank = g.node(w).rank;
  10843. var name = e.name;
  10844. var edgeLabel = g.edge(e);
  10845. var labelRank = edgeLabel.labelRank;
  10846. if (wRank === vRank + 1) return;
  10847. g.removeEdge(e);
  10848. var dummy, attrs, i;
  10849. for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
  10850. edgeLabel.points = [];
  10851. attrs = {
  10852. width: 0, height: 0,
  10853. edgeLabel: edgeLabel, edgeObj: e,
  10854. rank: vRank
  10855. };
  10856. dummy = util.addDummyNode(g, "edge", attrs, "_d");
  10857. if (vRank === labelRank) {
  10858. attrs.width = edgeLabel.width;
  10859. attrs.height = edgeLabel.height;
  10860. attrs.dummy = "edge-label";
  10861. attrs.labelpos = edgeLabel.labelpos;
  10862. }
  10863. g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
  10864. if (i === 0) {
  10865. g.graph().dummyChains.push(dummy);
  10866. }
  10867. v = dummy;
  10868. }
  10869. g.setEdge(v, w, { weight: edgeLabel.weight }, name);
  10870. }
  10871. function undo(g) {
  10872. _.forEach(g.graph().dummyChains, function(v) {
  10873. var node = g.node(v);
  10874. var origLabel = node.edgeLabel;
  10875. var w;
  10876. g.setEdge(node.edgeObj, origLabel);
  10877. while (node.dummy) {
  10878. w = g.successors(v)[0];
  10879. g.removeNode(v);
  10880. origLabel.points.push({ x: node.x, y: node.y });
  10881. if (node.dummy === "edge-label") {
  10882. origLabel.x = node.x;
  10883. origLabel.y = node.y;
  10884. origLabel.width = node.width;
  10885. origLabel.height = node.height;
  10886. }
  10887. v = w;
  10888. node = g.node(v);
  10889. }
  10890. });
  10891. }
  10892. /***/ }),
  10893. /***/ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js":
  10894. /*!************************************************************************************!*\
  10895. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
  10896. \************************************************************************************/
  10897. /*! no static exports found */
  10898. /***/ (function(module, exports, __webpack_require__) {
  10899. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  10900. module.exports = addSubgraphConstraints;
  10901. function addSubgraphConstraints(g, cg, vs) {
  10902. var prev = {},
  10903. rootPrev;
  10904. _.forEach(vs, function(v) {
  10905. var child = g.parent(v),
  10906. parent,
  10907. prevChild;
  10908. while (child) {
  10909. parent = g.parent(child);
  10910. if (parent) {
  10911. prevChild = prev[parent];
  10912. prev[parent] = child;
  10913. } else {
  10914. prevChild = rootPrev;
  10915. rootPrev = child;
  10916. }
  10917. if (prevChild && prevChild !== child) {
  10918. cg.setEdge(prevChild, child);
  10919. return;
  10920. }
  10921. child = parent;
  10922. }
  10923. });
  10924. /*
  10925. function dfs(v) {
  10926. var children = v ? g.children(v) : g.children();
  10927. if (children.length) {
  10928. var min = Number.POSITIVE_INFINITY,
  10929. subgraphs = [];
  10930. _.each(children, function(child) {
  10931. var childMin = dfs(child);
  10932. if (g.children(child).length) {
  10933. subgraphs.push({ v: child, order: childMin });
  10934. }
  10935. min = Math.min(min, childMin);
  10936. });
  10937. _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
  10938. cg.setEdge(prev.v, curr.v);
  10939. return curr;
  10940. });
  10941. return min;
  10942. }
  10943. return g.node(v).order;
  10944. }
  10945. dfs(undefined);
  10946. */
  10947. }
  10948. /***/ }),
  10949. /***/ "../../node_modules/dagre/lib/order/barycenter.js":
  10950. /*!**********************************************************************!*\
  10951. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/barycenter.js ***!
  10952. \**********************************************************************/
  10953. /*! no static exports found */
  10954. /***/ (function(module, exports, __webpack_require__) {
  10955. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  10956. module.exports = barycenter;
  10957. function barycenter(g, movable) {
  10958. return _.map(movable, function(v) {
  10959. var inV = g.inEdges(v);
  10960. if (!inV.length) {
  10961. return { v: v };
  10962. } else {
  10963. var result = _.reduce(inV, function(acc, e) {
  10964. var edge = g.edge(e),
  10965. nodeU = g.node(e.v);
  10966. return {
  10967. sum: acc.sum + (edge.weight * nodeU.order),
  10968. weight: acc.weight + edge.weight
  10969. };
  10970. }, { sum: 0, weight: 0 });
  10971. return {
  10972. v: v,
  10973. barycenter: result.sum / result.weight,
  10974. weight: result.weight
  10975. };
  10976. }
  10977. });
  10978. }
  10979. /***/ }),
  10980. /***/ "../../node_modules/dagre/lib/order/build-layer-graph.js":
  10981. /*!*****************************************************************************!*\
  10982. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/build-layer-graph.js ***!
  10983. \*****************************************************************************/
  10984. /*! no static exports found */
  10985. /***/ (function(module, exports, __webpack_require__) {
  10986. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  10987. var Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  10988. module.exports = buildLayerGraph;
  10989. /*
  10990. * Constructs a graph that can be used to sort a layer of nodes. The graph will
  10991. * contain all base and subgraph nodes from the request layer in their original
  10992. * hierarchy and any edges that are incident on these nodes and are of the type
  10993. * requested by the "relationship" parameter.
  10994. *
  10995. * Nodes from the requested rank that do not have parents are assigned a root
  10996. * node in the output graph, which is set in the root graph attribute. This
  10997. * makes it easy to walk the hierarchy of movable nodes during ordering.
  10998. *
  10999. * Pre-conditions:
  11000. *
  11001. * 1. Input graph is a DAG
  11002. * 2. Base nodes in the input graph have a rank attribute
  11003. * 3. Subgraph nodes in the input graph has minRank and maxRank attributes
  11004. * 4. Edges have an assigned weight
  11005. *
  11006. * Post-conditions:
  11007. *
  11008. * 1. Output graph has all nodes in the movable rank with preserved
  11009. * hierarchy.
  11010. * 2. Root nodes in the movable layer are made children of the node
  11011. * indicated by the root attribute of the graph.
  11012. * 3. Non-movable nodes incident on movable nodes, selected by the
  11013. * relationship parameter, are included in the graph (without hierarchy).
  11014. * 4. Edges incident on movable nodes, selected by the relationship
  11015. * parameter, are added to the output graph.
  11016. * 5. The weights for copied edges are aggregated as need, since the output
  11017. * graph is not a multi-graph.
  11018. */
  11019. function buildLayerGraph(g, rank, relationship) {
  11020. var root = createRootNode(g),
  11021. result = new Graph({ compound: true }).setGraph({ root: root })
  11022. .setDefaultNodeLabel(function(v) { return g.node(v); });
  11023. _.forEach(g.nodes(), function(v) {
  11024. var node = g.node(v),
  11025. parent = g.parent(v);
  11026. if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
  11027. result.setNode(v);
  11028. result.setParent(v, parent || root);
  11029. // This assumes we have only short edges!
  11030. _.forEach(g[relationship](v), function(e) {
  11031. var u = e.v === v ? e.w : e.v,
  11032. edge = result.edge(u, v),
  11033. weight = !_.isUndefined(edge) ? edge.weight : 0;
  11034. result.setEdge(u, v, { weight: g.edge(e).weight + weight });
  11035. });
  11036. if (_.has(node, "minRank")) {
  11037. result.setNode(v, {
  11038. borderLeft: node.borderLeft[rank],
  11039. borderRight: node.borderRight[rank]
  11040. });
  11041. }
  11042. }
  11043. });
  11044. return result;
  11045. }
  11046. function createRootNode(g) {
  11047. var v;
  11048. while (g.hasNode((v = _.uniqueId("_root"))));
  11049. return v;
  11050. }
  11051. /***/ }),
  11052. /***/ "../../node_modules/dagre/lib/order/cross-count.js":
  11053. /*!***********************************************************************!*\
  11054. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/cross-count.js ***!
  11055. \***********************************************************************/
  11056. /*! no static exports found */
  11057. /***/ (function(module, exports, __webpack_require__) {
  11058. "use strict";
  11059. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11060. module.exports = crossCount;
  11061. /*
  11062. * A function that takes a layering (an array of layers, each with an array of
  11063. * ordererd nodes) and a graph and returns a weighted crossing count.
  11064. *
  11065. * Pre-conditions:
  11066. *
  11067. * 1. Input graph must be simple (not a multigraph), directed, and include
  11068. * only simple edges.
  11069. * 2. Edges in the input graph must have assigned weights.
  11070. *
  11071. * Post-conditions:
  11072. *
  11073. * 1. The graph and layering matrix are left unchanged.
  11074. *
  11075. * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
  11076. */
  11077. function crossCount(g, layering) {
  11078. var cc = 0;
  11079. for (var i = 1; i < layering.length; ++i) {
  11080. cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
  11081. }
  11082. return cc;
  11083. }
  11084. function twoLayerCrossCount(g, northLayer, southLayer) {
  11085. // Sort all of the edges between the north and south layers by their position
  11086. // in the north layer and then the south. Map these edges to the position of
  11087. // their head in the south layer.
  11088. var southPos = _.zipObject(southLayer,
  11089. _.map(southLayer, function (v, i) { return i; }));
  11090. var southEntries = _.flatten(_.map(northLayer, function(v) {
  11091. return _.sortBy(_.map(g.outEdges(v), function(e) {
  11092. return { pos: southPos[e.w], weight: g.edge(e).weight };
  11093. }), "pos");
  11094. }), true);
  11095. // Build the accumulator tree
  11096. var firstIndex = 1;
  11097. while (firstIndex < southLayer.length) firstIndex <<= 1;
  11098. var treeSize = 2 * firstIndex - 1;
  11099. firstIndex -= 1;
  11100. var tree = _.map(new Array(treeSize), function() { return 0; });
  11101. // Calculate the weighted crossings
  11102. var cc = 0;
  11103. _.forEach(southEntries.forEach(function(entry) {
  11104. var index = entry.pos + firstIndex;
  11105. tree[index] += entry.weight;
  11106. var weightSum = 0;
  11107. while (index > 0) {
  11108. if (index % 2) {
  11109. weightSum += tree[index + 1];
  11110. }
  11111. index = (index - 1) >> 1;
  11112. tree[index] += entry.weight;
  11113. }
  11114. cc += entry.weight * weightSum;
  11115. }));
  11116. return cc;
  11117. }
  11118. /***/ }),
  11119. /***/ "../../node_modules/dagre/lib/order/index.js":
  11120. /*!*****************************************************************!*\
  11121. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/index.js ***!
  11122. \*****************************************************************/
  11123. /*! no static exports found */
  11124. /***/ (function(module, exports, __webpack_require__) {
  11125. "use strict";
  11126. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11127. var initOrder = __webpack_require__(/*! ./init-order */ "../../node_modules/dagre/lib/order/init-order.js");
  11128. var crossCount = __webpack_require__(/*! ./cross-count */ "../../node_modules/dagre/lib/order/cross-count.js");
  11129. var sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "../../node_modules/dagre/lib/order/sort-subgraph.js");
  11130. var buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "../../node_modules/dagre/lib/order/build-layer-graph.js");
  11131. var addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js");
  11132. var Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  11133. var util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  11134. module.exports = order;
  11135. /*
  11136. * Applies heuristics to minimize edge crossings in the graph and sets the best
  11137. * order solution as an order attribute on each node.
  11138. *
  11139. * Pre-conditions:
  11140. *
  11141. * 1. Graph must be DAG
  11142. * 2. Graph nodes must be objects with a "rank" attribute
  11143. * 3. Graph edges must have the "weight" attribute
  11144. *
  11145. * Post-conditions:
  11146. *
  11147. * 1. Graph nodes will have an "order" attribute based on the results of the
  11148. * algorithm.
  11149. */
  11150. function order(g) {
  11151. var maxRank = util.maxRank(g),
  11152. downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
  11153. upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
  11154. var layering = initOrder(g);
  11155. assignOrder(g, layering);
  11156. var bestCC = Number.POSITIVE_INFINITY,
  11157. best;
  11158. for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
  11159. sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
  11160. layering = util.buildLayerMatrix(g);
  11161. var cc = crossCount(g, layering);
  11162. if (cc < bestCC) {
  11163. lastBest = 0;
  11164. best = _.cloneDeep(layering);
  11165. bestCC = cc;
  11166. }
  11167. }
  11168. assignOrder(g, best);
  11169. }
  11170. function buildLayerGraphs(g, ranks, relationship) {
  11171. return _.map(ranks, function(rank) {
  11172. return buildLayerGraph(g, rank, relationship);
  11173. });
  11174. }
  11175. function sweepLayerGraphs(layerGraphs, biasRight) {
  11176. var cg = new Graph();
  11177. _.forEach(layerGraphs, function(lg) {
  11178. var root = lg.graph().root;
  11179. var sorted = sortSubgraph(lg, root, cg, biasRight);
  11180. _.forEach(sorted.vs, function(v, i) {
  11181. lg.node(v).order = i;
  11182. });
  11183. addSubgraphConstraints(lg, cg, sorted.vs);
  11184. });
  11185. }
  11186. function assignOrder(g, layering) {
  11187. _.forEach(layering, function(layer) {
  11188. _.forEach(layer, function(v, i) {
  11189. g.node(v).order = i;
  11190. });
  11191. });
  11192. }
  11193. /***/ }),
  11194. /***/ "../../node_modules/dagre/lib/order/init-order.js":
  11195. /*!**********************************************************************!*\
  11196. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/init-order.js ***!
  11197. \**********************************************************************/
  11198. /*! no static exports found */
  11199. /***/ (function(module, exports, __webpack_require__) {
  11200. "use strict";
  11201. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11202. module.exports = initOrder;
  11203. /*
  11204. * Assigns an initial order value for each node by performing a DFS search
  11205. * starting from nodes in the first rank. Nodes are assigned an order in their
  11206. * rank as they are first visited.
  11207. *
  11208. * This approach comes from Gansner, et al., "A Technique for Drawing Directed
  11209. * Graphs."
  11210. *
  11211. * Returns a layering matrix with an array per layer and each layer sorted by
  11212. * the order of its nodes.
  11213. */
  11214. function initOrder(g) {
  11215. var visited = {};
  11216. var simpleNodes = _.filter(g.nodes(), function(v) {
  11217. return !g.children(v).length;
  11218. });
  11219. var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));
  11220. var layers = _.map(_.range(maxRank + 1), function() { return []; });
  11221. function dfs(v) {
  11222. if (_.has(visited, v)) return;
  11223. visited[v] = true;
  11224. var node = g.node(v);
  11225. layers[node.rank].push(v);
  11226. _.forEach(g.successors(v), dfs);
  11227. }
  11228. var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
  11229. _.forEach(orderedVs, dfs);
  11230. return layers;
  11231. }
  11232. /***/ }),
  11233. /***/ "../../node_modules/dagre/lib/order/resolve-conflicts.js":
  11234. /*!*****************************************************************************!*\
  11235. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/resolve-conflicts.js ***!
  11236. \*****************************************************************************/
  11237. /*! no static exports found */
  11238. /***/ (function(module, exports, __webpack_require__) {
  11239. "use strict";
  11240. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11241. module.exports = resolveConflicts;
  11242. /*
  11243. * Given a list of entries of the form {v, barycenter, weight} and a
  11244. * constraint graph this function will resolve any conflicts between the
  11245. * constraint graph and the barycenters for the entries. If the barycenters for
  11246. * an entry would violate a constraint in the constraint graph then we coalesce
  11247. * the nodes in the conflict into a new node that respects the contraint and
  11248. * aggregates barycenter and weight information.
  11249. *
  11250. * This implementation is based on the description in Forster, "A Fast and
  11251. * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
  11252. * differs in some specific details.
  11253. *
  11254. * Pre-conditions:
  11255. *
  11256. * 1. Each entry has the form {v, barycenter, weight}, or if the node has
  11257. * no barycenter, then {v}.
  11258. *
  11259. * Returns:
  11260. *
  11261. * A new list of entries of the form {vs, i, barycenter, weight}. The list
  11262. * `vs` may either be a singleton or it may be an aggregation of nodes
  11263. * ordered such that they do not violate constraints from the constraint
  11264. * graph. The property `i` is the lowest original index of any of the
  11265. * elements in `vs`.
  11266. */
  11267. function resolveConflicts(entries, cg) {
  11268. var mappedEntries = {};
  11269. _.forEach(entries, function(entry, i) {
  11270. var tmp = mappedEntries[entry.v] = {
  11271. indegree: 0,
  11272. "in": [],
  11273. out: [],
  11274. vs: [entry.v],
  11275. i: i
  11276. };
  11277. if (!_.isUndefined(entry.barycenter)) {
  11278. tmp.barycenter = entry.barycenter;
  11279. tmp.weight = entry.weight;
  11280. }
  11281. });
  11282. _.forEach(cg.edges(), function(e) {
  11283. var entryV = mappedEntries[e.v];
  11284. var entryW = mappedEntries[e.w];
  11285. if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
  11286. entryW.indegree++;
  11287. entryV.out.push(mappedEntries[e.w]);
  11288. }
  11289. });
  11290. var sourceSet = _.filter(mappedEntries, function(entry) {
  11291. return !entry.indegree;
  11292. });
  11293. return doResolveConflicts(sourceSet);
  11294. }
  11295. function doResolveConflicts(sourceSet) {
  11296. var entries = [];
  11297. function handleIn(vEntry) {
  11298. return function(uEntry) {
  11299. if (uEntry.merged) {
  11300. return;
  11301. }
  11302. if (_.isUndefined(uEntry.barycenter) ||
  11303. _.isUndefined(vEntry.barycenter) ||
  11304. uEntry.barycenter >= vEntry.barycenter) {
  11305. mergeEntries(vEntry, uEntry);
  11306. }
  11307. };
  11308. }
  11309. function handleOut(vEntry) {
  11310. return function(wEntry) {
  11311. wEntry["in"].push(vEntry);
  11312. if (--wEntry.indegree === 0) {
  11313. sourceSet.push(wEntry);
  11314. }
  11315. };
  11316. }
  11317. while (sourceSet.length) {
  11318. var entry = sourceSet.pop();
  11319. entries.push(entry);
  11320. _.forEach(entry["in"].reverse(), handleIn(entry));
  11321. _.forEach(entry.out, handleOut(entry));
  11322. }
  11323. return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
  11324. function(entry) {
  11325. return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
  11326. });
  11327. }
  11328. function mergeEntries(target, source) {
  11329. var sum = 0;
  11330. var weight = 0;
  11331. if (target.weight) {
  11332. sum += target.barycenter * target.weight;
  11333. weight += target.weight;
  11334. }
  11335. if (source.weight) {
  11336. sum += source.barycenter * source.weight;
  11337. weight += source.weight;
  11338. }
  11339. target.vs = source.vs.concat(target.vs);
  11340. target.barycenter = sum / weight;
  11341. target.weight = weight;
  11342. target.i = Math.min(source.i, target.i);
  11343. source.merged = true;
  11344. }
  11345. /***/ }),
  11346. /***/ "../../node_modules/dagre/lib/order/sort-subgraph.js":
  11347. /*!*************************************************************************!*\
  11348. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/sort-subgraph.js ***!
  11349. \*************************************************************************/
  11350. /*! no static exports found */
  11351. /***/ (function(module, exports, __webpack_require__) {
  11352. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11353. var barycenter = __webpack_require__(/*! ./barycenter */ "../../node_modules/dagre/lib/order/barycenter.js");
  11354. var resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "../../node_modules/dagre/lib/order/resolve-conflicts.js");
  11355. var sort = __webpack_require__(/*! ./sort */ "../../node_modules/dagre/lib/order/sort.js");
  11356. module.exports = sortSubgraph;
  11357. function sortSubgraph(g, v, cg, biasRight) {
  11358. var movable = g.children(v);
  11359. var node = g.node(v);
  11360. var bl = node ? node.borderLeft : undefined;
  11361. var br = node ? node.borderRight: undefined;
  11362. var subgraphs = {};
  11363. if (bl) {
  11364. movable = _.filter(movable, function(w) {
  11365. return w !== bl && w !== br;
  11366. });
  11367. }
  11368. var barycenters = barycenter(g, movable);
  11369. _.forEach(barycenters, function(entry) {
  11370. if (g.children(entry.v).length) {
  11371. var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
  11372. subgraphs[entry.v] = subgraphResult;
  11373. if (_.has(subgraphResult, "barycenter")) {
  11374. mergeBarycenters(entry, subgraphResult);
  11375. }
  11376. }
  11377. });
  11378. var entries = resolveConflicts(barycenters, cg);
  11379. expandSubgraphs(entries, subgraphs);
  11380. var result = sort(entries, biasRight);
  11381. if (bl) {
  11382. result.vs = _.flatten([bl, result.vs, br], true);
  11383. if (g.predecessors(bl).length) {
  11384. var blPred = g.node(g.predecessors(bl)[0]),
  11385. brPred = g.node(g.predecessors(br)[0]);
  11386. if (!_.has(result, "barycenter")) {
  11387. result.barycenter = 0;
  11388. result.weight = 0;
  11389. }
  11390. result.barycenter = (result.barycenter * result.weight +
  11391. blPred.order + brPred.order) / (result.weight + 2);
  11392. result.weight += 2;
  11393. }
  11394. }
  11395. return result;
  11396. }
  11397. function expandSubgraphs(entries, subgraphs) {
  11398. _.forEach(entries, function(entry) {
  11399. entry.vs = _.flatten(entry.vs.map(function(v) {
  11400. if (subgraphs[v]) {
  11401. return subgraphs[v].vs;
  11402. }
  11403. return v;
  11404. }), true);
  11405. });
  11406. }
  11407. function mergeBarycenters(target, other) {
  11408. if (!_.isUndefined(target.barycenter)) {
  11409. target.barycenter = (target.barycenter * target.weight +
  11410. other.barycenter * other.weight) /
  11411. (target.weight + other.weight);
  11412. target.weight += other.weight;
  11413. } else {
  11414. target.barycenter = other.barycenter;
  11415. target.weight = other.weight;
  11416. }
  11417. }
  11418. /***/ }),
  11419. /***/ "../../node_modules/dagre/lib/order/sort.js":
  11420. /*!****************************************************************!*\
  11421. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/order/sort.js ***!
  11422. \****************************************************************/
  11423. /*! no static exports found */
  11424. /***/ (function(module, exports, __webpack_require__) {
  11425. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11426. var util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  11427. module.exports = sort;
  11428. function sort(entries, biasRight) {
  11429. var parts = util.partition(entries, function(entry) {
  11430. return _.has(entry, "barycenter");
  11431. });
  11432. var sortable = parts.lhs,
  11433. unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
  11434. vs = [],
  11435. sum = 0,
  11436. weight = 0,
  11437. vsIndex = 0;
  11438. sortable.sort(compareWithBias(!!biasRight));
  11439. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  11440. _.forEach(sortable, function (entry) {
  11441. vsIndex += entry.vs.length;
  11442. vs.push(entry.vs);
  11443. sum += entry.barycenter * entry.weight;
  11444. weight += entry.weight;
  11445. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  11446. });
  11447. var result = { vs: _.flatten(vs, true) };
  11448. if (weight) {
  11449. result.barycenter = sum / weight;
  11450. result.weight = weight;
  11451. }
  11452. return result;
  11453. }
  11454. function consumeUnsortable(vs, unsortable, index) {
  11455. var last;
  11456. while (unsortable.length && (last = _.last(unsortable)).i <= index) {
  11457. unsortable.pop();
  11458. vs.push(last.vs);
  11459. index++;
  11460. }
  11461. return index;
  11462. }
  11463. function compareWithBias(bias) {
  11464. return function(entryV, entryW) {
  11465. if (entryV.barycenter < entryW.barycenter) {
  11466. return -1;
  11467. } else if (entryV.barycenter > entryW.barycenter) {
  11468. return 1;
  11469. }
  11470. return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
  11471. };
  11472. }
  11473. /***/ }),
  11474. /***/ "../../node_modules/dagre/lib/parent-dummy-chains.js":
  11475. /*!*************************************************************************!*\
  11476. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/parent-dummy-chains.js ***!
  11477. \*************************************************************************/
  11478. /*! no static exports found */
  11479. /***/ (function(module, exports, __webpack_require__) {
  11480. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  11481. module.exports = parentDummyChains;
  11482. function parentDummyChains(g) {
  11483. var postorderNums = postorder(g);
  11484. _.forEach(g.graph().dummyChains, function(v) {
  11485. var node = g.node(v);
  11486. var edgeObj = node.edgeObj;
  11487. var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);
  11488. var path = pathData.path;
  11489. var lca = pathData.lca;
  11490. var pathIdx = 0;
  11491. var pathV = path[pathIdx];
  11492. var ascending = true;
  11493. while (v !== edgeObj.w) {
  11494. node = g.node(v);
  11495. if (ascending) {
  11496. while ((pathV = path[pathIdx]) !== lca &&
  11497. g.node(pathV).maxRank < node.rank) {
  11498. pathIdx++;
  11499. }
  11500. if (pathV === lca) {
  11501. ascending = false;
  11502. }
  11503. }
  11504. if (!ascending) {
  11505. while (pathIdx < path.length - 1 &&
  11506. g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
  11507. pathIdx++;
  11508. }
  11509. pathV = path[pathIdx];
  11510. }
  11511. g.setParent(v, pathV);
  11512. v = g.successors(v)[0];
  11513. }
  11514. });
  11515. }
  11516. // Find a path from v to w through the lowest common ancestor (LCA). Return the
  11517. // full path and the LCA.
  11518. function findPath(g, postorderNums, v, w) {
  11519. var vPath = [];
  11520. var wPath = [];
  11521. var low = Math.min(postorderNums[v].low, postorderNums[w].low);
  11522. var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);
  11523. var parent;
  11524. var lca;
  11525. // Traverse up from v to find the LCA
  11526. parent = v;
  11527. do {
  11528. parent = g.parent(parent);
  11529. vPath.push(parent);
  11530. } while (parent &&
  11531. (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
  11532. lca = parent;
  11533. // Traverse from w to LCA
  11534. parent = w;
  11535. while ((parent = g.parent(parent)) !== lca) {
  11536. wPath.push(parent);
  11537. }
  11538. return { path: vPath.concat(wPath.reverse()), lca: lca };
  11539. }
  11540. function postorder(g) {
  11541. var result = {};
  11542. var lim = 0;
  11543. function dfs(v) {
  11544. var low = lim;
  11545. _.forEach(g.children(v), dfs);
  11546. result[v] = { low: low, lim: lim++ };
  11547. }
  11548. _.forEach(g.children(), dfs);
  11549. return result;
  11550. }
  11551. /***/ }),
  11552. /***/ "../../node_modules/dagre/lib/position/bk.js":
  11553. /*!*****************************************************************!*\
  11554. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/position/bk.js ***!
  11555. \*****************************************************************/
  11556. /*! no static exports found */
  11557. /***/ (function(module, exports, __webpack_require__) {
  11558. "use strict";
  11559. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11560. var Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  11561. var util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  11562. /*
  11563. * This module provides coordinate assignment based on Brandes and Köpf, "Fast
  11564. * and Simple Horizontal Coordinate Assignment."
  11565. */
  11566. module.exports = {
  11567. positionX: positionX,
  11568. findType1Conflicts: findType1Conflicts,
  11569. findType2Conflicts: findType2Conflicts,
  11570. addConflict: addConflict,
  11571. hasConflict: hasConflict,
  11572. verticalAlignment: verticalAlignment,
  11573. horizontalCompaction: horizontalCompaction,
  11574. alignCoordinates: alignCoordinates,
  11575. findSmallestWidthAlignment: findSmallestWidthAlignment,
  11576. balance: balance
  11577. };
  11578. /*
  11579. * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
  11580. * property. A type-1 conflict is one where a non-inner segment crosses an
  11581. * inner segment. An inner segment is an edge with both incident nodes marked
  11582. * with the "dummy" property.
  11583. *
  11584. * This algorithm scans layer by layer, starting with the second, for type-1
  11585. * conflicts between the current layer and the previous layer. For each layer
  11586. * it scans the nodes from left to right until it reaches one that is incident
  11587. * on an inner segment. It then scans predecessors to determine if they have
  11588. * edges that cross that inner segment. At the end a final scan is done for all
  11589. * nodes on the current rank to see if they cross the last visited inner
  11590. * segment.
  11591. *
  11592. * This algorithm (safely) assumes that a dummy node will only be incident on a
  11593. * single node in the layers being scanned.
  11594. */
  11595. function findType1Conflicts(g, layering) {
  11596. var conflicts = {};
  11597. function visitLayer(prevLayer, layer) {
  11598. var
  11599. // last visited node in the previous layer that is incident on an inner
  11600. // segment.
  11601. k0 = 0,
  11602. // Tracks the last node in this layer scanned for crossings with a type-1
  11603. // segment.
  11604. scanPos = 0,
  11605. prevLayerLength = prevLayer.length,
  11606. lastNode = _.last(layer);
  11607. _.forEach(layer, function(v, i) {
  11608. var w = findOtherInnerSegmentNode(g, v),
  11609. k1 = w ? g.node(w).order : prevLayerLength;
  11610. if (w || v === lastNode) {
  11611. _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
  11612. _.forEach(g.predecessors(scanNode), function(u) {
  11613. var uLabel = g.node(u),
  11614. uPos = uLabel.order;
  11615. if ((uPos < k0 || k1 < uPos) &&
  11616. !(uLabel.dummy && g.node(scanNode).dummy)) {
  11617. addConflict(conflicts, u, scanNode);
  11618. }
  11619. });
  11620. });
  11621. scanPos = i + 1;
  11622. k0 = k1;
  11623. }
  11624. });
  11625. return layer;
  11626. }
  11627. _.reduce(layering, visitLayer);
  11628. return conflicts;
  11629. }
  11630. function findType2Conflicts(g, layering) {
  11631. var conflicts = {};
  11632. function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
  11633. var v;
  11634. _.forEach(_.range(southPos, southEnd), function(i) {
  11635. v = south[i];
  11636. if (g.node(v).dummy) {
  11637. _.forEach(g.predecessors(v), function(u) {
  11638. var uNode = g.node(u);
  11639. if (uNode.dummy &&
  11640. (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
  11641. addConflict(conflicts, u, v);
  11642. }
  11643. });
  11644. }
  11645. });
  11646. }
  11647. function visitLayer(north, south) {
  11648. var prevNorthPos = -1,
  11649. nextNorthPos,
  11650. southPos = 0;
  11651. _.forEach(south, function(v, southLookahead) {
  11652. if (g.node(v).dummy === "border") {
  11653. var predecessors = g.predecessors(v);
  11654. if (predecessors.length) {
  11655. nextNorthPos = g.node(predecessors[0]).order;
  11656. scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
  11657. southPos = southLookahead;
  11658. prevNorthPos = nextNorthPos;
  11659. }
  11660. }
  11661. scan(south, southPos, south.length, nextNorthPos, north.length);
  11662. });
  11663. return south;
  11664. }
  11665. _.reduce(layering, visitLayer);
  11666. return conflicts;
  11667. }
  11668. function findOtherInnerSegmentNode(g, v) {
  11669. if (g.node(v).dummy) {
  11670. return _.find(g.predecessors(v), function(u) {
  11671. return g.node(u).dummy;
  11672. });
  11673. }
  11674. }
  11675. function addConflict(conflicts, v, w) {
  11676. if (v > w) {
  11677. var tmp = v;
  11678. v = w;
  11679. w = tmp;
  11680. }
  11681. var conflictsV = conflicts[v];
  11682. if (!conflictsV) {
  11683. conflicts[v] = conflictsV = {};
  11684. }
  11685. conflictsV[w] = true;
  11686. }
  11687. function hasConflict(conflicts, v, w) {
  11688. if (v > w) {
  11689. var tmp = v;
  11690. v = w;
  11691. w = tmp;
  11692. }
  11693. return _.has(conflicts[v], w);
  11694. }
  11695. /*
  11696. * Try to align nodes into vertical "blocks" where possible. This algorithm
  11697. * attempts to align a node with one of its median neighbors. If the edge
  11698. * connecting a neighbor is a type-1 conflict then we ignore that possibility.
  11699. * If a previous node has already formed a block with a node after the node
  11700. * we're trying to form a block with, we also ignore that possibility - our
  11701. * blocks would be split in that scenario.
  11702. */
  11703. function verticalAlignment(g, layering, conflicts, neighborFn) {
  11704. var root = {},
  11705. align = {},
  11706. pos = {};
  11707. // We cache the position here based on the layering because the graph and
  11708. // layering may be out of sync. The layering matrix is manipulated to
  11709. // generate different extreme alignments.
  11710. _.forEach(layering, function(layer) {
  11711. _.forEach(layer, function(v, order) {
  11712. root[v] = v;
  11713. align[v] = v;
  11714. pos[v] = order;
  11715. });
  11716. });
  11717. _.forEach(layering, function(layer) {
  11718. var prevIdx = -1;
  11719. _.forEach(layer, function(v) {
  11720. var ws = neighborFn(v);
  11721. if (ws.length) {
  11722. ws = _.sortBy(ws, function(w) { return pos[w]; });
  11723. var mp = (ws.length - 1) / 2;
  11724. for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
  11725. var w = ws[i];
  11726. if (align[v] === v &&
  11727. prevIdx < pos[w] &&
  11728. !hasConflict(conflicts, v, w)) {
  11729. align[w] = v;
  11730. align[v] = root[v] = root[w];
  11731. prevIdx = pos[w];
  11732. }
  11733. }
  11734. }
  11735. });
  11736. });
  11737. return { root: root, align: align };
  11738. }
  11739. function horizontalCompaction(g, layering, root, align, reverseSep) {
  11740. // This portion of the algorithm differs from BK due to a number of problems.
  11741. // Instead of their algorithm we construct a new block graph and do two
  11742. // sweeps. The first sweep places blocks with the smallest possible
  11743. // coordinates. The second sweep removes unused space by moving blocks to the
  11744. // greatest coordinates without violating separation.
  11745. var xs = {},
  11746. blockG = buildBlockGraph(g, layering, root, reverseSep),
  11747. borderType = reverseSep ? "borderLeft" : "borderRight";
  11748. function iterate(setXsFunc, nextNodesFunc) {
  11749. var stack = blockG.nodes();
  11750. var elem = stack.pop();
  11751. var visited = {};
  11752. while (elem) {
  11753. if (visited[elem]) {
  11754. setXsFunc(elem);
  11755. } else {
  11756. visited[elem] = true;
  11757. stack.push(elem);
  11758. stack = stack.concat(nextNodesFunc(elem));
  11759. }
  11760. elem = stack.pop();
  11761. }
  11762. }
  11763. // First pass, assign smallest coordinates
  11764. function pass1(elem) {
  11765. xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
  11766. return Math.max(acc, xs[e.v] + blockG.edge(e));
  11767. }, 0);
  11768. }
  11769. // Second pass, assign greatest coordinates
  11770. function pass2(elem) {
  11771. var min = blockG.outEdges(elem).reduce(function(acc, e) {
  11772. return Math.min(acc, xs[e.w] - blockG.edge(e));
  11773. }, Number.POSITIVE_INFINITY);
  11774. var node = g.node(elem);
  11775. if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
  11776. xs[elem] = Math.max(xs[elem], min);
  11777. }
  11778. }
  11779. iterate(pass1, blockG.predecessors.bind(blockG));
  11780. iterate(pass2, blockG.successors.bind(blockG));
  11781. // Assign x coordinates to all nodes
  11782. _.forEach(align, function(v) {
  11783. xs[v] = xs[root[v]];
  11784. });
  11785. return xs;
  11786. }
  11787. function buildBlockGraph(g, layering, root, reverseSep) {
  11788. var blockGraph = new Graph(),
  11789. graphLabel = g.graph(),
  11790. sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
  11791. _.forEach(layering, function(layer) {
  11792. var u;
  11793. _.forEach(layer, function(v) {
  11794. var vRoot = root[v];
  11795. blockGraph.setNode(vRoot);
  11796. if (u) {
  11797. var uRoot = root[u],
  11798. prevMax = blockGraph.edge(uRoot, vRoot);
  11799. blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
  11800. }
  11801. u = v;
  11802. });
  11803. });
  11804. return blockGraph;
  11805. }
  11806. /*
  11807. * Returns the alignment that has the smallest width of the given alignments.
  11808. */
  11809. function findSmallestWidthAlignment(g, xss) {
  11810. return _.minBy(_.values(xss), function (xs) {
  11811. var max = Number.NEGATIVE_INFINITY;
  11812. var min = Number.POSITIVE_INFINITY;
  11813. _.forIn(xs, function (x, v) {
  11814. var halfWidth = width(g, v) / 2;
  11815. max = Math.max(x + halfWidth, max);
  11816. min = Math.min(x - halfWidth, min);
  11817. });
  11818. return max - min;
  11819. });
  11820. }
  11821. /*
  11822. * Align the coordinates of each of the layout alignments such that
  11823. * left-biased alignments have their minimum coordinate at the same point as
  11824. * the minimum coordinate of the smallest width alignment and right-biased
  11825. * alignments have their maximum coordinate at the same point as the maximum
  11826. * coordinate of the smallest width alignment.
  11827. */
  11828. function alignCoordinates(xss, alignTo) {
  11829. var alignToVals = _.values(alignTo),
  11830. alignToMin = _.min(alignToVals),
  11831. alignToMax = _.max(alignToVals);
  11832. _.forEach(["u", "d"], function(vert) {
  11833. _.forEach(["l", "r"], function(horiz) {
  11834. var alignment = vert + horiz,
  11835. xs = xss[alignment],
  11836. delta;
  11837. if (xs === alignTo) return;
  11838. var xsVals = _.values(xs);
  11839. delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
  11840. if (delta) {
  11841. xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
  11842. }
  11843. });
  11844. });
  11845. }
  11846. function balance(xss, align) {
  11847. return _.mapValues(xss.ul, function(ignore, v) {
  11848. if (align) {
  11849. return xss[align.toLowerCase()][v];
  11850. } else {
  11851. var xs = _.sortBy(_.map(xss, v));
  11852. return (xs[1] + xs[2]) / 2;
  11853. }
  11854. });
  11855. }
  11856. function positionX(g) {
  11857. var layering = util.buildLayerMatrix(g);
  11858. var conflicts = _.merge(
  11859. findType1Conflicts(g, layering),
  11860. findType2Conflicts(g, layering));
  11861. var xss = {};
  11862. var adjustedLayering;
  11863. _.forEach(["u", "d"], function(vert) {
  11864. adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
  11865. _.forEach(["l", "r"], function(horiz) {
  11866. if (horiz === "r") {
  11867. adjustedLayering = _.map(adjustedLayering, function(inner) {
  11868. return _.values(inner).reverse();
  11869. });
  11870. }
  11871. var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
  11872. var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
  11873. var xs = horizontalCompaction(g, adjustedLayering,
  11874. align.root, align.align, horiz === "r");
  11875. if (horiz === "r") {
  11876. xs = _.mapValues(xs, function(x) { return -x; });
  11877. }
  11878. xss[vert + horiz] = xs;
  11879. });
  11880. });
  11881. var smallestWidth = findSmallestWidthAlignment(g, xss);
  11882. alignCoordinates(xss, smallestWidth);
  11883. return balance(xss, g.graph().align);
  11884. }
  11885. function sep(nodeSep, edgeSep, reverseSep) {
  11886. return function(g, v, w) {
  11887. var vLabel = g.node(v);
  11888. var wLabel = g.node(w);
  11889. var sum = 0;
  11890. var delta;
  11891. sum += vLabel.width / 2;
  11892. if (_.has(vLabel, "labelpos")) {
  11893. switch (vLabel.labelpos.toLowerCase()) {
  11894. case "l": delta = -vLabel.width / 2; break;
  11895. case "r": delta = vLabel.width / 2; break;
  11896. }
  11897. }
  11898. if (delta) {
  11899. sum += reverseSep ? delta : -delta;
  11900. }
  11901. delta = 0;
  11902. sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
  11903. sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
  11904. sum += wLabel.width / 2;
  11905. if (_.has(wLabel, "labelpos")) {
  11906. switch (wLabel.labelpos.toLowerCase()) {
  11907. case "l": delta = wLabel.width / 2; break;
  11908. case "r": delta = -wLabel.width / 2; break;
  11909. }
  11910. }
  11911. if (delta) {
  11912. sum += reverseSep ? delta : -delta;
  11913. }
  11914. delta = 0;
  11915. return sum;
  11916. };
  11917. }
  11918. function width(g, v) {
  11919. return g.node(v).width;
  11920. }
  11921. /***/ }),
  11922. /***/ "../../node_modules/dagre/lib/position/index.js":
  11923. /*!********************************************************************!*\
  11924. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/position/index.js ***!
  11925. \********************************************************************/
  11926. /*! no static exports found */
  11927. /***/ (function(module, exports, __webpack_require__) {
  11928. "use strict";
  11929. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11930. var util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  11931. var positionX = __webpack_require__(/*! ./bk */ "../../node_modules/dagre/lib/position/bk.js").positionX;
  11932. module.exports = position;
  11933. function position(g) {
  11934. g = util.asNonCompoundGraph(g);
  11935. positionY(g);
  11936. _.forEach(positionX(g), function(x, v) {
  11937. g.node(v).x = x;
  11938. });
  11939. }
  11940. function positionY(g) {
  11941. var layering = util.buildLayerMatrix(g);
  11942. var rankSep = g.graph().ranksep;
  11943. var prevY = 0;
  11944. _.forEach(layering, function(layer) {
  11945. var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
  11946. _.forEach(layer, function(v) {
  11947. g.node(v).y = prevY + maxHeight / 2;
  11948. });
  11949. prevY += maxHeight + rankSep;
  11950. });
  11951. }
  11952. /***/ }),
  11953. /***/ "../../node_modules/dagre/lib/rank/feasible-tree.js":
  11954. /*!************************************************************************!*\
  11955. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/feasible-tree.js ***!
  11956. \************************************************************************/
  11957. /*! no static exports found */
  11958. /***/ (function(module, exports, __webpack_require__) {
  11959. "use strict";
  11960. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  11961. var Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  11962. var slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack;
  11963. module.exports = feasibleTree;
  11964. /*
  11965. * Constructs a spanning tree with tight edges and adjusted the input node's
  11966. * ranks to achieve this. A tight edge is one that is has a length that matches
  11967. * its "minlen" attribute.
  11968. *
  11969. * The basic structure for this function is derived from Gansner, et al., "A
  11970. * Technique for Drawing Directed Graphs."
  11971. *
  11972. * Pre-conditions:
  11973. *
  11974. * 1. Graph must be a DAG.
  11975. * 2. Graph must be connected.
  11976. * 3. Graph must have at least one node.
  11977. * 5. Graph nodes must have been previously assigned a "rank" property that
  11978. * respects the "minlen" property of incident edges.
  11979. * 6. Graph edges must have a "minlen" property.
  11980. *
  11981. * Post-conditions:
  11982. *
  11983. * - Graph nodes will have their rank adjusted to ensure that all edges are
  11984. * tight.
  11985. *
  11986. * Returns a tree (undirected graph) that is constructed using only "tight"
  11987. * edges.
  11988. */
  11989. function feasibleTree(g) {
  11990. var t = new Graph({ directed: false });
  11991. // Choose arbitrary node from which to start our tree
  11992. var start = g.nodes()[0];
  11993. var size = g.nodeCount();
  11994. t.setNode(start, {});
  11995. var edge, delta;
  11996. while (tightTree(t, g) < size) {
  11997. edge = findMinSlackEdge(t, g);
  11998. delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
  11999. shiftRanks(t, g, delta);
  12000. }
  12001. return t;
  12002. }
  12003. /*
  12004. * Finds a maximal tree of tight edges and returns the number of nodes in the
  12005. * tree.
  12006. */
  12007. function tightTree(t, g) {
  12008. function dfs(v) {
  12009. _.forEach(g.nodeEdges(v), function(e) {
  12010. var edgeV = e.v,
  12011. w = (v === edgeV) ? e.w : edgeV;
  12012. if (!t.hasNode(w) && !slack(g, e)) {
  12013. t.setNode(w, {});
  12014. t.setEdge(v, w, {});
  12015. dfs(w);
  12016. }
  12017. });
  12018. }
  12019. _.forEach(t.nodes(), dfs);
  12020. return t.nodeCount();
  12021. }
  12022. /*
  12023. * Finds the edge with the smallest slack that is incident on tree and returns
  12024. * it.
  12025. */
  12026. function findMinSlackEdge(t, g) {
  12027. return _.minBy(g.edges(), function(e) {
  12028. if (t.hasNode(e.v) !== t.hasNode(e.w)) {
  12029. return slack(g, e);
  12030. }
  12031. });
  12032. }
  12033. function shiftRanks(t, g, delta) {
  12034. _.forEach(t.nodes(), function(v) {
  12035. g.node(v).rank += delta;
  12036. });
  12037. }
  12038. /***/ }),
  12039. /***/ "../../node_modules/dagre/lib/rank/index.js":
  12040. /*!****************************************************************!*\
  12041. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/index.js ***!
  12042. \****************************************************************/
  12043. /*! no static exports found */
  12044. /***/ (function(module, exports, __webpack_require__) {
  12045. "use strict";
  12046. var rankUtil = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js");
  12047. var longestPath = rankUtil.longestPath;
  12048. var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js");
  12049. var networkSimplex = __webpack_require__(/*! ./network-simplex */ "../../node_modules/dagre/lib/rank/network-simplex.js");
  12050. module.exports = rank;
  12051. /*
  12052. * Assigns a rank to each node in the input graph that respects the "minlen"
  12053. * constraint specified on edges between nodes.
  12054. *
  12055. * This basic structure is derived from Gansner, et al., "A Technique for
  12056. * Drawing Directed Graphs."
  12057. *
  12058. * Pre-conditions:
  12059. *
  12060. * 1. Graph must be a connected DAG
  12061. * 2. Graph nodes must be objects
  12062. * 3. Graph edges must have "weight" and "minlen" attributes
  12063. *
  12064. * Post-conditions:
  12065. *
  12066. * 1. Graph nodes will have a "rank" attribute based on the results of the
  12067. * algorithm. Ranks can start at any index (including negative), we'll
  12068. * fix them up later.
  12069. */
  12070. function rank(g) {
  12071. switch(g.graph().ranker) {
  12072. case "network-simplex": networkSimplexRanker(g); break;
  12073. case "tight-tree": tightTreeRanker(g); break;
  12074. case "longest-path": longestPathRanker(g); break;
  12075. default: networkSimplexRanker(g);
  12076. }
  12077. }
  12078. // A fast and simple ranker, but results are far from optimal.
  12079. var longestPathRanker = longestPath;
  12080. function tightTreeRanker(g) {
  12081. longestPath(g);
  12082. feasibleTree(g);
  12083. }
  12084. function networkSimplexRanker(g) {
  12085. networkSimplex(g);
  12086. }
  12087. /***/ }),
  12088. /***/ "../../node_modules/dagre/lib/rank/network-simplex.js":
  12089. /*!**************************************************************************!*\
  12090. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/network-simplex.js ***!
  12091. \**************************************************************************/
  12092. /*! no static exports found */
  12093. /***/ (function(module, exports, __webpack_require__) {
  12094. "use strict";
  12095. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  12096. var feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js");
  12097. var slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack;
  12098. var initRank = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").longestPath;
  12099. var preorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.preorder;
  12100. var postorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.postorder;
  12101. var simplify = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js").simplify;
  12102. module.exports = networkSimplex;
  12103. // Expose some internals for testing purposes
  12104. networkSimplex.initLowLimValues = initLowLimValues;
  12105. networkSimplex.initCutValues = initCutValues;
  12106. networkSimplex.calcCutValue = calcCutValue;
  12107. networkSimplex.leaveEdge = leaveEdge;
  12108. networkSimplex.enterEdge = enterEdge;
  12109. networkSimplex.exchangeEdges = exchangeEdges;
  12110. /*
  12111. * The network simplex algorithm assigns ranks to each node in the input graph
  12112. * and iteratively improves the ranking to reduce the length of edges.
  12113. *
  12114. * Preconditions:
  12115. *
  12116. * 1. The input graph must be a DAG.
  12117. * 2. All nodes in the graph must have an object value.
  12118. * 3. All edges in the graph must have "minlen" and "weight" attributes.
  12119. *
  12120. * Postconditions:
  12121. *
  12122. * 1. All nodes in the graph will have an assigned "rank" attribute that has
  12123. * been optimized by the network simplex algorithm. Ranks start at 0.
  12124. *
  12125. *
  12126. * A rough sketch of the algorithm is as follows:
  12127. *
  12128. * 1. Assign initial ranks to each node. We use the longest path algorithm,
  12129. * which assigns ranks to the lowest position possible. In general this
  12130. * leads to very wide bottom ranks and unnecessarily long edges.
  12131. * 2. Construct a feasible tight tree. A tight tree is one such that all
  12132. * edges in the tree have no slack (difference between length of edge
  12133. * and minlen for the edge). This by itself greatly improves the assigned
  12134. * rankings by shorting edges.
  12135. * 3. Iteratively find edges that have negative cut values. Generally a
  12136. * negative cut value indicates that the edge could be removed and a new
  12137. * tree edge could be added to produce a more compact graph.
  12138. *
  12139. * Much of the algorithms here are derived from Gansner, et al., "A Technique
  12140. * for Drawing Directed Graphs." The structure of the file roughly follows the
  12141. * structure of the overall algorithm.
  12142. */
  12143. function networkSimplex(g) {
  12144. g = simplify(g);
  12145. initRank(g);
  12146. var t = feasibleTree(g);
  12147. initLowLimValues(t);
  12148. initCutValues(t, g);
  12149. var e, f;
  12150. while ((e = leaveEdge(t))) {
  12151. f = enterEdge(t, g, e);
  12152. exchangeEdges(t, g, e, f);
  12153. }
  12154. }
  12155. /*
  12156. * Initializes cut values for all edges in the tree.
  12157. */
  12158. function initCutValues(t, g) {
  12159. var vs = postorder(t, t.nodes());
  12160. vs = vs.slice(0, vs.length - 1);
  12161. _.forEach(vs, function(v) {
  12162. assignCutValue(t, g, v);
  12163. });
  12164. }
  12165. function assignCutValue(t, g, child) {
  12166. var childLab = t.node(child);
  12167. var parent = childLab.parent;
  12168. t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
  12169. }
  12170. /*
  12171. * Given the tight tree, its graph, and a child in the graph calculate and
  12172. * return the cut value for the edge between the child and its parent.
  12173. */
  12174. function calcCutValue(t, g, child) {
  12175. var childLab = t.node(child);
  12176. var parent = childLab.parent;
  12177. // True if the child is on the tail end of the edge in the directed graph
  12178. var childIsTail = true;
  12179. // The graph's view of the tree edge we're inspecting
  12180. var graphEdge = g.edge(child, parent);
  12181. // The accumulated cut value for the edge between this node and its parent
  12182. var cutValue = 0;
  12183. if (!graphEdge) {
  12184. childIsTail = false;
  12185. graphEdge = g.edge(parent, child);
  12186. }
  12187. cutValue = graphEdge.weight;
  12188. _.forEach(g.nodeEdges(child), function(e) {
  12189. var isOutEdge = e.v === child,
  12190. other = isOutEdge ? e.w : e.v;
  12191. if (other !== parent) {
  12192. var pointsToHead = isOutEdge === childIsTail,
  12193. otherWeight = g.edge(e).weight;
  12194. cutValue += pointsToHead ? otherWeight : -otherWeight;
  12195. if (isTreeEdge(t, child, other)) {
  12196. var otherCutValue = t.edge(child, other).cutvalue;
  12197. cutValue += pointsToHead ? -otherCutValue : otherCutValue;
  12198. }
  12199. }
  12200. });
  12201. return cutValue;
  12202. }
  12203. function initLowLimValues(tree, root) {
  12204. if (arguments.length < 2) {
  12205. root = tree.nodes()[0];
  12206. }
  12207. dfsAssignLowLim(tree, {}, 1, root);
  12208. }
  12209. function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
  12210. var low = nextLim;
  12211. var label = tree.node(v);
  12212. visited[v] = true;
  12213. _.forEach(tree.neighbors(v), function(w) {
  12214. if (!_.has(visited, w)) {
  12215. nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
  12216. }
  12217. });
  12218. label.low = low;
  12219. label.lim = nextLim++;
  12220. if (parent) {
  12221. label.parent = parent;
  12222. } else {
  12223. // TODO should be able to remove this when we incrementally update low lim
  12224. delete label.parent;
  12225. }
  12226. return nextLim;
  12227. }
  12228. function leaveEdge(tree) {
  12229. return _.find(tree.edges(), function(e) {
  12230. return tree.edge(e).cutvalue < 0;
  12231. });
  12232. }
  12233. function enterEdge(t, g, edge) {
  12234. var v = edge.v;
  12235. var w = edge.w;
  12236. // For the rest of this function we assume that v is the tail and w is the
  12237. // head, so if we don't have this edge in the graph we should flip it to
  12238. // match the correct orientation.
  12239. if (!g.hasEdge(v, w)) {
  12240. v = edge.w;
  12241. w = edge.v;
  12242. }
  12243. var vLabel = t.node(v);
  12244. var wLabel = t.node(w);
  12245. var tailLabel = vLabel;
  12246. var flip = false;
  12247. // If the root is in the tail of the edge then we need to flip the logic that
  12248. // checks for the head and tail nodes in the candidates function below.
  12249. if (vLabel.lim > wLabel.lim) {
  12250. tailLabel = wLabel;
  12251. flip = true;
  12252. }
  12253. var candidates = _.filter(g.edges(), function(edge) {
  12254. return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
  12255. flip !== isDescendant(t, t.node(edge.w), tailLabel);
  12256. });
  12257. return _.minBy(candidates, function(edge) { return slack(g, edge); });
  12258. }
  12259. function exchangeEdges(t, g, e, f) {
  12260. var v = e.v;
  12261. var w = e.w;
  12262. t.removeEdge(v, w);
  12263. t.setEdge(f.v, f.w, {});
  12264. initLowLimValues(t);
  12265. initCutValues(t, g);
  12266. updateRanks(t, g);
  12267. }
  12268. function updateRanks(t, g) {
  12269. var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });
  12270. var vs = preorder(t, root);
  12271. vs = vs.slice(1);
  12272. _.forEach(vs, function(v) {
  12273. var parent = t.node(v).parent,
  12274. edge = g.edge(v, parent),
  12275. flipped = false;
  12276. if (!edge) {
  12277. edge = g.edge(parent, v);
  12278. flipped = true;
  12279. }
  12280. g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
  12281. });
  12282. }
  12283. /*
  12284. * Returns true if the edge is in the tree.
  12285. */
  12286. function isTreeEdge(tree, u, v) {
  12287. return tree.hasEdge(u, v);
  12288. }
  12289. /*
  12290. * Returns true if the specified node is descendant of the root node per the
  12291. * assigned low and lim attributes in the tree.
  12292. */
  12293. function isDescendant(tree, vLabel, rootLabel) {
  12294. return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
  12295. }
  12296. /***/ }),
  12297. /***/ "../../node_modules/dagre/lib/rank/util.js":
  12298. /*!***************************************************************!*\
  12299. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/rank/util.js ***!
  12300. \***************************************************************/
  12301. /*! no static exports found */
  12302. /***/ (function(module, exports, __webpack_require__) {
  12303. "use strict";
  12304. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  12305. module.exports = {
  12306. longestPath: longestPath,
  12307. slack: slack
  12308. };
  12309. /*
  12310. * Initializes ranks for the input graph using the longest path algorithm. This
  12311. * algorithm scales well and is fast in practice, it yields rather poor
  12312. * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
  12313. * ranks wide and leaving edges longer than necessary. However, due to its
  12314. * speed, this algorithm is good for getting an initial ranking that can be fed
  12315. * into other algorithms.
  12316. *
  12317. * This algorithm does not normalize layers because it will be used by other
  12318. * algorithms in most cases. If using this algorithm directly, be sure to
  12319. * run normalize at the end.
  12320. *
  12321. * Pre-conditions:
  12322. *
  12323. * 1. Input graph is a DAG.
  12324. * 2. Input graph node labels can be assigned properties.
  12325. *
  12326. * Post-conditions:
  12327. *
  12328. * 1. Each node will be assign an (unnormalized) "rank" property.
  12329. */
  12330. function longestPath(g) {
  12331. var visited = {};
  12332. function dfs(v) {
  12333. var label = g.node(v);
  12334. if (_.has(visited, v)) {
  12335. return label.rank;
  12336. }
  12337. visited[v] = true;
  12338. var rank = _.min(_.map(g.outEdges(v), function(e) {
  12339. return dfs(e.w) - g.edge(e).minlen;
  12340. }));
  12341. if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
  12342. rank === undefined || // return value of _.map([]) for Lodash 4
  12343. rank === null) { // return value of _.map([null])
  12344. rank = 0;
  12345. }
  12346. return (label.rank = rank);
  12347. }
  12348. _.forEach(g.sources(), dfs);
  12349. }
  12350. /*
  12351. * Returns the amount of slack for the given edge. The slack is defined as the
  12352. * difference between the length of the edge and its minimum length.
  12353. */
  12354. function slack(g, e) {
  12355. return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
  12356. }
  12357. /***/ }),
  12358. /***/ "../../node_modules/dagre/lib/util.js":
  12359. /*!**********************************************************!*\
  12360. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/util.js ***!
  12361. \**********************************************************/
  12362. /*! no static exports found */
  12363. /***/ (function(module, exports, __webpack_require__) {
  12364. "use strict";
  12365. /* eslint "no-console": off */
  12366. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  12367. var Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  12368. module.exports = {
  12369. addDummyNode: addDummyNode,
  12370. simplify: simplify,
  12371. asNonCompoundGraph: asNonCompoundGraph,
  12372. successorWeights: successorWeights,
  12373. predecessorWeights: predecessorWeights,
  12374. intersectRect: intersectRect,
  12375. buildLayerMatrix: buildLayerMatrix,
  12376. normalizeRanks: normalizeRanks,
  12377. removeEmptyRanks: removeEmptyRanks,
  12378. addBorderNode: addBorderNode,
  12379. maxRank: maxRank,
  12380. partition: partition,
  12381. time: time,
  12382. notime: notime
  12383. };
  12384. /*
  12385. * Adds a dummy node to the graph and return v.
  12386. */
  12387. function addDummyNode(g, type, attrs, name) {
  12388. var v;
  12389. do {
  12390. v = _.uniqueId(name);
  12391. } while (g.hasNode(v));
  12392. attrs.dummy = type;
  12393. g.setNode(v, attrs);
  12394. return v;
  12395. }
  12396. /*
  12397. * Returns a new graph with only simple edges. Handles aggregation of data
  12398. * associated with multi-edges.
  12399. */
  12400. function simplify(g) {
  12401. var simplified = new Graph().setGraph(g.graph());
  12402. _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
  12403. _.forEach(g.edges(), function(e) {
  12404. var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };
  12405. var label = g.edge(e);
  12406. simplified.setEdge(e.v, e.w, {
  12407. weight: simpleLabel.weight + label.weight,
  12408. minlen: Math.max(simpleLabel.minlen, label.minlen)
  12409. });
  12410. });
  12411. return simplified;
  12412. }
  12413. function asNonCompoundGraph(g) {
  12414. var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
  12415. _.forEach(g.nodes(), function(v) {
  12416. if (!g.children(v).length) {
  12417. simplified.setNode(v, g.node(v));
  12418. }
  12419. });
  12420. _.forEach(g.edges(), function(e) {
  12421. simplified.setEdge(e, g.edge(e));
  12422. });
  12423. return simplified;
  12424. }
  12425. function successorWeights(g) {
  12426. var weightMap = _.map(g.nodes(), function(v) {
  12427. var sucs = {};
  12428. _.forEach(g.outEdges(v), function(e) {
  12429. sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
  12430. });
  12431. return sucs;
  12432. });
  12433. return _.zipObject(g.nodes(), weightMap);
  12434. }
  12435. function predecessorWeights(g) {
  12436. var weightMap = _.map(g.nodes(), function(v) {
  12437. var preds = {};
  12438. _.forEach(g.inEdges(v), function(e) {
  12439. preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
  12440. });
  12441. return preds;
  12442. });
  12443. return _.zipObject(g.nodes(), weightMap);
  12444. }
  12445. /*
  12446. * Finds where a line starting at point ({x, y}) would intersect a rectangle
  12447. * ({x, y, width, height}) if it were pointing at the rectangle's center.
  12448. */
  12449. function intersectRect(rect, point) {
  12450. var x = rect.x;
  12451. var y = rect.y;
  12452. // Rectangle intersection algorithm from:
  12453. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  12454. var dx = point.x - x;
  12455. var dy = point.y - y;
  12456. var w = rect.width / 2;
  12457. var h = rect.height / 2;
  12458. if (!dx && !dy) {
  12459. throw new Error("Not possible to find intersection inside of the rectangle");
  12460. }
  12461. var sx, sy;
  12462. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  12463. // Intersection is top or bottom of rect.
  12464. if (dy < 0) {
  12465. h = -h;
  12466. }
  12467. sx = h * dx / dy;
  12468. sy = h;
  12469. } else {
  12470. // Intersection is left or right of rect.
  12471. if (dx < 0) {
  12472. w = -w;
  12473. }
  12474. sx = w;
  12475. sy = w * dy / dx;
  12476. }
  12477. return { x: x + sx, y: y + sy };
  12478. }
  12479. /*
  12480. * Given a DAG with each node assigned "rank" and "order" properties, this
  12481. * function will produce a matrix with the ids of each node.
  12482. */
  12483. function buildLayerMatrix(g) {
  12484. var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
  12485. _.forEach(g.nodes(), function(v) {
  12486. var node = g.node(v);
  12487. var rank = node.rank;
  12488. if (!_.isUndefined(rank)) {
  12489. layering[rank][node.order] = v;
  12490. }
  12491. });
  12492. return layering;
  12493. }
  12494. /*
  12495. * Adjusts the ranks for all nodes in the graph such that all nodes v have
  12496. * rank(v) >= 0 and at least one node w has rank(w) = 0.
  12497. */
  12498. function normalizeRanks(g) {
  12499. var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  12500. _.forEach(g.nodes(), function(v) {
  12501. var node = g.node(v);
  12502. if (_.has(node, "rank")) {
  12503. node.rank -= min;
  12504. }
  12505. });
  12506. }
  12507. function removeEmptyRanks(g) {
  12508. // Ranks may not start at 0, so we need to offset them
  12509. var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  12510. var layers = [];
  12511. _.forEach(g.nodes(), function(v) {
  12512. var rank = g.node(v).rank - offset;
  12513. if (!layers[rank]) {
  12514. layers[rank] = [];
  12515. }
  12516. layers[rank].push(v);
  12517. });
  12518. var delta = 0;
  12519. var nodeRankFactor = g.graph().nodeRankFactor;
  12520. _.forEach(layers, function(vs, i) {
  12521. if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
  12522. --delta;
  12523. } else if (delta) {
  12524. _.forEach(vs, function(v) { g.node(v).rank += delta; });
  12525. }
  12526. });
  12527. }
  12528. function addBorderNode(g, prefix, rank, order) {
  12529. var node = {
  12530. width: 0,
  12531. height: 0
  12532. };
  12533. if (arguments.length >= 4) {
  12534. node.rank = rank;
  12535. node.order = order;
  12536. }
  12537. return addDummyNode(g, "border", node, prefix);
  12538. }
  12539. function maxRank(g) {
  12540. return _.max(_.map(g.nodes(), function(v) {
  12541. var rank = g.node(v).rank;
  12542. if (!_.isUndefined(rank)) {
  12543. return rank;
  12544. }
  12545. }));
  12546. }
  12547. /*
  12548. * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
  12549. * function returns true for an entry it goes into `lhs`. Otherwise it goes
  12550. * into `rhs.
  12551. */
  12552. function partition(collection, fn) {
  12553. var result = { lhs: [], rhs: [] };
  12554. _.forEach(collection, function(value) {
  12555. if (fn(value)) {
  12556. result.lhs.push(value);
  12557. } else {
  12558. result.rhs.push(value);
  12559. }
  12560. });
  12561. return result;
  12562. }
  12563. /*
  12564. * Returns a new function that wraps `fn` with a timer. The wrapper logs the
  12565. * time it takes to execute the function.
  12566. */
  12567. function time(name, fn) {
  12568. var start = _.now();
  12569. try {
  12570. return fn();
  12571. } finally {
  12572. console.log(name + " time: " + (_.now() - start) + "ms");
  12573. }
  12574. }
  12575. function notime(name, fn) {
  12576. return fn();
  12577. }
  12578. /***/ }),
  12579. /***/ "../../node_modules/dagre/lib/version.js":
  12580. /*!*************************************************************!*\
  12581. !*** C:/Repos/Babylon.js/node_modules/dagre/lib/version.js ***!
  12582. \*************************************************************/
  12583. /*! no static exports found */
  12584. /***/ (function(module, exports) {
  12585. module.exports = "0.8.5";
  12586. /***/ }),
  12587. /***/ "../../node_modules/graphlib/index.js":
  12588. /*!**********************************************************!*\
  12589. !*** C:/Repos/Babylon.js/node_modules/graphlib/index.js ***!
  12590. \**********************************************************/
  12591. /*! no static exports found */
  12592. /***/ (function(module, exports, __webpack_require__) {
  12593. /**
  12594. * Copyright (c) 2014, Chris Pettitt
  12595. * All rights reserved.
  12596. *
  12597. * Redistribution and use in source and binary forms, with or without
  12598. * modification, are permitted provided that the following conditions are met:
  12599. *
  12600. * 1. Redistributions of source code must retain the above copyright notice, this
  12601. * list of conditions and the following disclaimer.
  12602. *
  12603. * 2. Redistributions in binary form must reproduce the above copyright notice,
  12604. * this list of conditions and the following disclaimer in the documentation
  12605. * and/or other materials provided with the distribution.
  12606. *
  12607. * 3. Neither the name of the copyright holder nor the names of its contributors
  12608. * may be used to endorse or promote products derived from this software without
  12609. * specific prior written permission.
  12610. *
  12611. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  12612. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  12613. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  12614. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  12615. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  12616. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  12617. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  12618. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  12619. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  12620. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  12621. */
  12622. var lib = __webpack_require__(/*! ./lib */ "../../node_modules/graphlib/lib/index.js");
  12623. module.exports = {
  12624. Graph: lib.Graph,
  12625. json: __webpack_require__(/*! ./lib/json */ "../../node_modules/graphlib/lib/json.js"),
  12626. alg: __webpack_require__(/*! ./lib/alg */ "../../node_modules/graphlib/lib/alg/index.js"),
  12627. version: lib.version
  12628. };
  12629. /***/ }),
  12630. /***/ "../../node_modules/graphlib/lib/alg/components.js":
  12631. /*!***********************************************************************!*\
  12632. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/components.js ***!
  12633. \***********************************************************************/
  12634. /*! no static exports found */
  12635. /***/ (function(module, exports, __webpack_require__) {
  12636. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12637. module.exports = components;
  12638. function components(g) {
  12639. var visited = {};
  12640. var cmpts = [];
  12641. var cmpt;
  12642. function dfs(v) {
  12643. if (_.has(visited, v)) return;
  12644. visited[v] = true;
  12645. cmpt.push(v);
  12646. _.each(g.successors(v), dfs);
  12647. _.each(g.predecessors(v), dfs);
  12648. }
  12649. _.each(g.nodes(), function(v) {
  12650. cmpt = [];
  12651. dfs(v);
  12652. if (cmpt.length) {
  12653. cmpts.push(cmpt);
  12654. }
  12655. });
  12656. return cmpts;
  12657. }
  12658. /***/ }),
  12659. /***/ "../../node_modules/graphlib/lib/alg/dfs.js":
  12660. /*!****************************************************************!*\
  12661. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dfs.js ***!
  12662. \****************************************************************/
  12663. /*! no static exports found */
  12664. /***/ (function(module, exports, __webpack_require__) {
  12665. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12666. module.exports = dfs;
  12667. /*
  12668. * A helper that preforms a pre- or post-order traversal on the input graph
  12669. * and returns the nodes in the order they were visited. If the graph is
  12670. * undirected then this algorithm will navigate using neighbors. If the graph
  12671. * is directed then this algorithm will navigate using successors.
  12672. *
  12673. * Order must be one of "pre" or "post".
  12674. */
  12675. function dfs(g, vs, order) {
  12676. if (!_.isArray(vs)) {
  12677. vs = [vs];
  12678. }
  12679. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
  12680. var acc = [];
  12681. var visited = {};
  12682. _.each(vs, function(v) {
  12683. if (!g.hasNode(v)) {
  12684. throw new Error("Graph does not have node: " + v);
  12685. }
  12686. doDfs(g, v, order === "post", visited, navigation, acc);
  12687. });
  12688. return acc;
  12689. }
  12690. function doDfs(g, v, postorder, visited, navigation, acc) {
  12691. if (!_.has(visited, v)) {
  12692. visited[v] = true;
  12693. if (!postorder) { acc.push(v); }
  12694. _.each(navigation(v), function(w) {
  12695. doDfs(g, w, postorder, visited, navigation, acc);
  12696. });
  12697. if (postorder) { acc.push(v); }
  12698. }
  12699. }
  12700. /***/ }),
  12701. /***/ "../../node_modules/graphlib/lib/alg/dijkstra-all.js":
  12702. /*!*************************************************************************!*\
  12703. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra-all.js ***!
  12704. \*************************************************************************/
  12705. /*! no static exports found */
  12706. /***/ (function(module, exports, __webpack_require__) {
  12707. var dijkstra = __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js");
  12708. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12709. module.exports = dijkstraAll;
  12710. function dijkstraAll(g, weightFunc, edgeFunc) {
  12711. return _.transform(g.nodes(), function(acc, v) {
  12712. acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
  12713. }, {});
  12714. }
  12715. /***/ }),
  12716. /***/ "../../node_modules/graphlib/lib/alg/dijkstra.js":
  12717. /*!*********************************************************************!*\
  12718. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra.js ***!
  12719. \*********************************************************************/
  12720. /*! no static exports found */
  12721. /***/ (function(module, exports, __webpack_require__) {
  12722. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12723. var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  12724. module.exports = dijkstra;
  12725. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  12726. function dijkstra(g, source, weightFn, edgeFn) {
  12727. return runDijkstra(g, String(source),
  12728. weightFn || DEFAULT_WEIGHT_FUNC,
  12729. edgeFn || function(v) { return g.outEdges(v); });
  12730. }
  12731. function runDijkstra(g, source, weightFn, edgeFn) {
  12732. var results = {};
  12733. var pq = new PriorityQueue();
  12734. var v, vEntry;
  12735. var updateNeighbors = function(edge) {
  12736. var w = edge.v !== v ? edge.v : edge.w;
  12737. var wEntry = results[w];
  12738. var weight = weightFn(edge);
  12739. var distance = vEntry.distance + weight;
  12740. if (weight < 0) {
  12741. throw new Error("dijkstra does not allow negative edge weights. " +
  12742. "Bad edge: " + edge + " Weight: " + weight);
  12743. }
  12744. if (distance < wEntry.distance) {
  12745. wEntry.distance = distance;
  12746. wEntry.predecessor = v;
  12747. pq.decrease(w, distance);
  12748. }
  12749. };
  12750. g.nodes().forEach(function(v) {
  12751. var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
  12752. results[v] = { distance: distance };
  12753. pq.add(v, distance);
  12754. });
  12755. while (pq.size() > 0) {
  12756. v = pq.removeMin();
  12757. vEntry = results[v];
  12758. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  12759. break;
  12760. }
  12761. edgeFn(v).forEach(updateNeighbors);
  12762. }
  12763. return results;
  12764. }
  12765. /***/ }),
  12766. /***/ "../../node_modules/graphlib/lib/alg/find-cycles.js":
  12767. /*!************************************************************************!*\
  12768. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/find-cycles.js ***!
  12769. \************************************************************************/
  12770. /*! no static exports found */
  12771. /***/ (function(module, exports, __webpack_require__) {
  12772. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12773. var tarjan = __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js");
  12774. module.exports = findCycles;
  12775. function findCycles(g) {
  12776. return _.filter(tarjan(g), function(cmpt) {
  12777. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
  12778. });
  12779. }
  12780. /***/ }),
  12781. /***/ "../../node_modules/graphlib/lib/alg/floyd-warshall.js":
  12782. /*!***************************************************************************!*\
  12783. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/floyd-warshall.js ***!
  12784. \***************************************************************************/
  12785. /*! no static exports found */
  12786. /***/ (function(module, exports, __webpack_require__) {
  12787. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12788. module.exports = floydWarshall;
  12789. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  12790. function floydWarshall(g, weightFn, edgeFn) {
  12791. return runFloydWarshall(g,
  12792. weightFn || DEFAULT_WEIGHT_FUNC,
  12793. edgeFn || function(v) { return g.outEdges(v); });
  12794. }
  12795. function runFloydWarshall(g, weightFn, edgeFn) {
  12796. var results = {};
  12797. var nodes = g.nodes();
  12798. nodes.forEach(function(v) {
  12799. results[v] = {};
  12800. results[v][v] = { distance: 0 };
  12801. nodes.forEach(function(w) {
  12802. if (v !== w) {
  12803. results[v][w] = { distance: Number.POSITIVE_INFINITY };
  12804. }
  12805. });
  12806. edgeFn(v).forEach(function(edge) {
  12807. var w = edge.v === v ? edge.w : edge.v;
  12808. var d = weightFn(edge);
  12809. results[v][w] = { distance: d, predecessor: v };
  12810. });
  12811. });
  12812. nodes.forEach(function(k) {
  12813. var rowK = results[k];
  12814. nodes.forEach(function(i) {
  12815. var rowI = results[i];
  12816. nodes.forEach(function(j) {
  12817. var ik = rowI[k];
  12818. var kj = rowK[j];
  12819. var ij = rowI[j];
  12820. var altDistance = ik.distance + kj.distance;
  12821. if (altDistance < ij.distance) {
  12822. ij.distance = altDistance;
  12823. ij.predecessor = kj.predecessor;
  12824. }
  12825. });
  12826. });
  12827. });
  12828. return results;
  12829. }
  12830. /***/ }),
  12831. /***/ "../../node_modules/graphlib/lib/alg/index.js":
  12832. /*!******************************************************************!*\
  12833. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/index.js ***!
  12834. \******************************************************************/
  12835. /*! no static exports found */
  12836. /***/ (function(module, exports, __webpack_require__) {
  12837. module.exports = {
  12838. components: __webpack_require__(/*! ./components */ "../../node_modules/graphlib/lib/alg/components.js"),
  12839. dijkstra: __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  12840. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "../../node_modules/graphlib/lib/alg/dijkstra-all.js"),
  12841. findCycles: __webpack_require__(/*! ./find-cycles */ "../../node_modules/graphlib/lib/alg/find-cycles.js"),
  12842. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "../../node_modules/graphlib/lib/alg/floyd-warshall.js"),
  12843. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "../../node_modules/graphlib/lib/alg/is-acyclic.js"),
  12844. postorder: __webpack_require__(/*! ./postorder */ "../../node_modules/graphlib/lib/alg/postorder.js"),
  12845. preorder: __webpack_require__(/*! ./preorder */ "../../node_modules/graphlib/lib/alg/preorder.js"),
  12846. prim: __webpack_require__(/*! ./prim */ "../../node_modules/graphlib/lib/alg/prim.js"),
  12847. tarjan: __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js"),
  12848. topsort: __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js")
  12849. };
  12850. /***/ }),
  12851. /***/ "../../node_modules/graphlib/lib/alg/is-acyclic.js":
  12852. /*!***********************************************************************!*\
  12853. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/is-acyclic.js ***!
  12854. \***********************************************************************/
  12855. /*! no static exports found */
  12856. /***/ (function(module, exports, __webpack_require__) {
  12857. var topsort = __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js");
  12858. module.exports = isAcyclic;
  12859. function isAcyclic(g) {
  12860. try {
  12861. topsort(g);
  12862. } catch (e) {
  12863. if (e instanceof topsort.CycleException) {
  12864. return false;
  12865. }
  12866. throw e;
  12867. }
  12868. return true;
  12869. }
  12870. /***/ }),
  12871. /***/ "../../node_modules/graphlib/lib/alg/postorder.js":
  12872. /*!**********************************************************************!*\
  12873. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/postorder.js ***!
  12874. \**********************************************************************/
  12875. /*! no static exports found */
  12876. /***/ (function(module, exports, __webpack_require__) {
  12877. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  12878. module.exports = postorder;
  12879. function postorder(g, vs) {
  12880. return dfs(g, vs, "post");
  12881. }
  12882. /***/ }),
  12883. /***/ "../../node_modules/graphlib/lib/alg/preorder.js":
  12884. /*!*********************************************************************!*\
  12885. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/preorder.js ***!
  12886. \*********************************************************************/
  12887. /*! no static exports found */
  12888. /***/ (function(module, exports, __webpack_require__) {
  12889. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  12890. module.exports = preorder;
  12891. function preorder(g, vs) {
  12892. return dfs(g, vs, "pre");
  12893. }
  12894. /***/ }),
  12895. /***/ "../../node_modules/graphlib/lib/alg/prim.js":
  12896. /*!*****************************************************************!*\
  12897. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/prim.js ***!
  12898. \*****************************************************************/
  12899. /*! no static exports found */
  12900. /***/ (function(module, exports, __webpack_require__) {
  12901. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12902. var Graph = __webpack_require__(/*! ../graph */ "../../node_modules/graphlib/lib/graph.js");
  12903. var PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  12904. module.exports = prim;
  12905. function prim(g, weightFunc) {
  12906. var result = new Graph();
  12907. var parents = {};
  12908. var pq = new PriorityQueue();
  12909. var v;
  12910. function updateNeighbors(edge) {
  12911. var w = edge.v === v ? edge.w : edge.v;
  12912. var pri = pq.priority(w);
  12913. if (pri !== undefined) {
  12914. var edgeWeight = weightFunc(edge);
  12915. if (edgeWeight < pri) {
  12916. parents[w] = v;
  12917. pq.decrease(w, edgeWeight);
  12918. }
  12919. }
  12920. }
  12921. if (g.nodeCount() === 0) {
  12922. return result;
  12923. }
  12924. _.each(g.nodes(), function(v) {
  12925. pq.add(v, Number.POSITIVE_INFINITY);
  12926. result.setNode(v);
  12927. });
  12928. // Start from an arbitrary node
  12929. pq.decrease(g.nodes()[0], 0);
  12930. var init = false;
  12931. while (pq.size() > 0) {
  12932. v = pq.removeMin();
  12933. if (_.has(parents, v)) {
  12934. result.setEdge(v, parents[v]);
  12935. } else if (init) {
  12936. throw new Error("Input graph is not connected: " + g);
  12937. } else {
  12938. init = true;
  12939. }
  12940. g.nodeEdges(v).forEach(updateNeighbors);
  12941. }
  12942. return result;
  12943. }
  12944. /***/ }),
  12945. /***/ "../../node_modules/graphlib/lib/alg/tarjan.js":
  12946. /*!*******************************************************************!*\
  12947. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/tarjan.js ***!
  12948. \*******************************************************************/
  12949. /*! no static exports found */
  12950. /***/ (function(module, exports, __webpack_require__) {
  12951. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12952. module.exports = tarjan;
  12953. function tarjan(g) {
  12954. var index = 0;
  12955. var stack = [];
  12956. var visited = {}; // node id -> { onStack, lowlink, index }
  12957. var results = [];
  12958. function dfs(v) {
  12959. var entry = visited[v] = {
  12960. onStack: true,
  12961. lowlink: index,
  12962. index: index++
  12963. };
  12964. stack.push(v);
  12965. g.successors(v).forEach(function(w) {
  12966. if (!_.has(visited, w)) {
  12967. dfs(w);
  12968. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
  12969. } else if (visited[w].onStack) {
  12970. entry.lowlink = Math.min(entry.lowlink, visited[w].index);
  12971. }
  12972. });
  12973. if (entry.lowlink === entry.index) {
  12974. var cmpt = [];
  12975. var w;
  12976. do {
  12977. w = stack.pop();
  12978. visited[w].onStack = false;
  12979. cmpt.push(w);
  12980. } while (v !== w);
  12981. results.push(cmpt);
  12982. }
  12983. }
  12984. g.nodes().forEach(function(v) {
  12985. if (!_.has(visited, v)) {
  12986. dfs(v);
  12987. }
  12988. });
  12989. return results;
  12990. }
  12991. /***/ }),
  12992. /***/ "../../node_modules/graphlib/lib/alg/topsort.js":
  12993. /*!********************************************************************!*\
  12994. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/topsort.js ***!
  12995. \********************************************************************/
  12996. /*! no static exports found */
  12997. /***/ (function(module, exports, __webpack_require__) {
  12998. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  12999. module.exports = topsort;
  13000. topsort.CycleException = CycleException;
  13001. function topsort(g) {
  13002. var visited = {};
  13003. var stack = {};
  13004. var results = [];
  13005. function visit(node) {
  13006. if (_.has(stack, node)) {
  13007. throw new CycleException();
  13008. }
  13009. if (!_.has(visited, node)) {
  13010. stack[node] = true;
  13011. visited[node] = true;
  13012. _.each(g.predecessors(node), visit);
  13013. delete stack[node];
  13014. results.push(node);
  13015. }
  13016. }
  13017. _.each(g.sinks(), visit);
  13018. if (_.size(visited) !== g.nodeCount()) {
  13019. throw new CycleException();
  13020. }
  13021. return results;
  13022. }
  13023. function CycleException() {}
  13024. CycleException.prototype = new Error(); // must be an instance of Error to pass testing
  13025. /***/ }),
  13026. /***/ "../../node_modules/graphlib/lib/data/priority-queue.js":
  13027. /*!****************************************************************************!*\
  13028. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/data/priority-queue.js ***!
  13029. \****************************************************************************/
  13030. /*! no static exports found */
  13031. /***/ (function(module, exports, __webpack_require__) {
  13032. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  13033. module.exports = PriorityQueue;
  13034. /**
  13035. * A min-priority queue data structure. This algorithm is derived from Cormen,
  13036. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  13037. * queue is that you can efficiently (in O(1) time) get the smallest key in
  13038. * the queue. Adding and removing elements takes O(log n) time. A key can
  13039. * have its priority decreased in O(log n) time.
  13040. */
  13041. function PriorityQueue() {
  13042. this._arr = [];
  13043. this._keyIndices = {};
  13044. }
  13045. /**
  13046. * Returns the number of elements in the queue. Takes `O(1)` time.
  13047. */
  13048. PriorityQueue.prototype.size = function() {
  13049. return this._arr.length;
  13050. };
  13051. /**
  13052. * Returns the keys that are in the queue. Takes `O(n)` time.
  13053. */
  13054. PriorityQueue.prototype.keys = function() {
  13055. return this._arr.map(function(x) { return x.key; });
  13056. };
  13057. /**
  13058. * Returns `true` if **key** is in the queue and `false` if not.
  13059. */
  13060. PriorityQueue.prototype.has = function(key) {
  13061. return _.has(this._keyIndices, key);
  13062. };
  13063. /**
  13064. * Returns the priority for **key**. If **key** is not present in the queue
  13065. * then this function returns `undefined`. Takes `O(1)` time.
  13066. *
  13067. * @param {Object} key
  13068. */
  13069. PriorityQueue.prototype.priority = function(key) {
  13070. var index = this._keyIndices[key];
  13071. if (index !== undefined) {
  13072. return this._arr[index].priority;
  13073. }
  13074. };
  13075. /**
  13076. * Returns the key for the minimum element in this queue. If the queue is
  13077. * empty this function throws an Error. Takes `O(1)` time.
  13078. */
  13079. PriorityQueue.prototype.min = function() {
  13080. if (this.size() === 0) {
  13081. throw new Error("Queue underflow");
  13082. }
  13083. return this._arr[0].key;
  13084. };
  13085. /**
  13086. * Inserts a new key into the priority queue. If the key already exists in
  13087. * the queue this function returns `false`; otherwise it will return `true`.
  13088. * Takes `O(n)` time.
  13089. *
  13090. * @param {Object} key the key to add
  13091. * @param {Number} priority the initial priority for the key
  13092. */
  13093. PriorityQueue.prototype.add = function(key, priority) {
  13094. var keyIndices = this._keyIndices;
  13095. key = String(key);
  13096. if (!_.has(keyIndices, key)) {
  13097. var arr = this._arr;
  13098. var index = arr.length;
  13099. keyIndices[key] = index;
  13100. arr.push({key: key, priority: priority});
  13101. this._decrease(index);
  13102. return true;
  13103. }
  13104. return false;
  13105. };
  13106. /**
  13107. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  13108. */
  13109. PriorityQueue.prototype.removeMin = function() {
  13110. this._swap(0, this._arr.length - 1);
  13111. var min = this._arr.pop();
  13112. delete this._keyIndices[min.key];
  13113. this._heapify(0);
  13114. return min.key;
  13115. };
  13116. /**
  13117. * Decreases the priority for **key** to **priority**. If the new priority is
  13118. * greater than the previous priority, this function will throw an Error.
  13119. *
  13120. * @param {Object} key the key for which to raise priority
  13121. * @param {Number} priority the new priority for the key
  13122. */
  13123. PriorityQueue.prototype.decrease = function(key, priority) {
  13124. var index = this._keyIndices[key];
  13125. if (priority > this._arr[index].priority) {
  13126. throw new Error("New priority is greater than current priority. " +
  13127. "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
  13128. }
  13129. this._arr[index].priority = priority;
  13130. this._decrease(index);
  13131. };
  13132. PriorityQueue.prototype._heapify = function(i) {
  13133. var arr = this._arr;
  13134. var l = 2 * i;
  13135. var r = l + 1;
  13136. var largest = i;
  13137. if (l < arr.length) {
  13138. largest = arr[l].priority < arr[largest].priority ? l : largest;
  13139. if (r < arr.length) {
  13140. largest = arr[r].priority < arr[largest].priority ? r : largest;
  13141. }
  13142. if (largest !== i) {
  13143. this._swap(i, largest);
  13144. this._heapify(largest);
  13145. }
  13146. }
  13147. };
  13148. PriorityQueue.prototype._decrease = function(index) {
  13149. var arr = this._arr;
  13150. var priority = arr[index].priority;
  13151. var parent;
  13152. while (index !== 0) {
  13153. parent = index >> 1;
  13154. if (arr[parent].priority < priority) {
  13155. break;
  13156. }
  13157. this._swap(index, parent);
  13158. index = parent;
  13159. }
  13160. };
  13161. PriorityQueue.prototype._swap = function(i, j) {
  13162. var arr = this._arr;
  13163. var keyIndices = this._keyIndices;
  13164. var origArrI = arr[i];
  13165. var origArrJ = arr[j];
  13166. arr[i] = origArrJ;
  13167. arr[j] = origArrI;
  13168. keyIndices[origArrJ.key] = i;
  13169. keyIndices[origArrI.key] = j;
  13170. };
  13171. /***/ }),
  13172. /***/ "../../node_modules/graphlib/lib/graph.js":
  13173. /*!**************************************************************!*\
  13174. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/graph.js ***!
  13175. \**************************************************************/
  13176. /*! no static exports found */
  13177. /***/ (function(module, exports, __webpack_require__) {
  13178. "use strict";
  13179. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  13180. module.exports = Graph;
  13181. var DEFAULT_EDGE_NAME = "\x00";
  13182. var GRAPH_NODE = "\x00";
  13183. var EDGE_KEY_DELIM = "\x01";
  13184. // Implementation notes:
  13185. //
  13186. // * Node id query functions should return string ids for the nodes
  13187. // * Edge id query functions should return an "edgeObj", edge object, that is
  13188. // composed of enough information to uniquely identify an edge: {v, w, name}.
  13189. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  13190. // reference edges. This is because we need a performant way to look these
  13191. // edges up and, object properties, which have string keys, are the closest
  13192. // we're going to get to a performant hashtable in JavaScript.
  13193. function Graph(opts) {
  13194. this._isDirected = _.has(opts, "directed") ? opts.directed : true;
  13195. this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
  13196. this._isCompound = _.has(opts, "compound") ? opts.compound : false;
  13197. // Label for the graph itself
  13198. this._label = undefined;
  13199. // Defaults to be set when creating a new node
  13200. this._defaultNodeLabelFn = _.constant(undefined);
  13201. // Defaults to be set when creating a new edge
  13202. this._defaultEdgeLabelFn = _.constant(undefined);
  13203. // v -> label
  13204. this._nodes = {};
  13205. if (this._isCompound) {
  13206. // v -> parent
  13207. this._parent = {};
  13208. // v -> children
  13209. this._children = {};
  13210. this._children[GRAPH_NODE] = {};
  13211. }
  13212. // v -> edgeObj
  13213. this._in = {};
  13214. // u -> v -> Number
  13215. this._preds = {};
  13216. // v -> edgeObj
  13217. this._out = {};
  13218. // v -> w -> Number
  13219. this._sucs = {};
  13220. // e -> edgeObj
  13221. this._edgeObjs = {};
  13222. // e -> label
  13223. this._edgeLabels = {};
  13224. }
  13225. /* Number of nodes in the graph. Should only be changed by the implementation. */
  13226. Graph.prototype._nodeCount = 0;
  13227. /* Number of edges in the graph. Should only be changed by the implementation. */
  13228. Graph.prototype._edgeCount = 0;
  13229. /* === Graph functions ========= */
  13230. Graph.prototype.isDirected = function() {
  13231. return this._isDirected;
  13232. };
  13233. Graph.prototype.isMultigraph = function() {
  13234. return this._isMultigraph;
  13235. };
  13236. Graph.prototype.isCompound = function() {
  13237. return this._isCompound;
  13238. };
  13239. Graph.prototype.setGraph = function(label) {
  13240. this._label = label;
  13241. return this;
  13242. };
  13243. Graph.prototype.graph = function() {
  13244. return this._label;
  13245. };
  13246. /* === Node functions ========== */
  13247. Graph.prototype.setDefaultNodeLabel = function(newDefault) {
  13248. if (!_.isFunction(newDefault)) {
  13249. newDefault = _.constant(newDefault);
  13250. }
  13251. this._defaultNodeLabelFn = newDefault;
  13252. return this;
  13253. };
  13254. Graph.prototype.nodeCount = function() {
  13255. return this._nodeCount;
  13256. };
  13257. Graph.prototype.nodes = function() {
  13258. return _.keys(this._nodes);
  13259. };
  13260. Graph.prototype.sources = function() {
  13261. var self = this;
  13262. return _.filter(this.nodes(), function(v) {
  13263. return _.isEmpty(self._in[v]);
  13264. });
  13265. };
  13266. Graph.prototype.sinks = function() {
  13267. var self = this;
  13268. return _.filter(this.nodes(), function(v) {
  13269. return _.isEmpty(self._out[v]);
  13270. });
  13271. };
  13272. Graph.prototype.setNodes = function(vs, value) {
  13273. var args = arguments;
  13274. var self = this;
  13275. _.each(vs, function(v) {
  13276. if (args.length > 1) {
  13277. self.setNode(v, value);
  13278. } else {
  13279. self.setNode(v);
  13280. }
  13281. });
  13282. return this;
  13283. };
  13284. Graph.prototype.setNode = function(v, value) {
  13285. if (_.has(this._nodes, v)) {
  13286. if (arguments.length > 1) {
  13287. this._nodes[v] = value;
  13288. }
  13289. return this;
  13290. }
  13291. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
  13292. if (this._isCompound) {
  13293. this._parent[v] = GRAPH_NODE;
  13294. this._children[v] = {};
  13295. this._children[GRAPH_NODE][v] = true;
  13296. }
  13297. this._in[v] = {};
  13298. this._preds[v] = {};
  13299. this._out[v] = {};
  13300. this._sucs[v] = {};
  13301. ++this._nodeCount;
  13302. return this;
  13303. };
  13304. Graph.prototype.node = function(v) {
  13305. return this._nodes[v];
  13306. };
  13307. Graph.prototype.hasNode = function(v) {
  13308. return _.has(this._nodes, v);
  13309. };
  13310. Graph.prototype.removeNode = function(v) {
  13311. var self = this;
  13312. if (_.has(this._nodes, v)) {
  13313. var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
  13314. delete this._nodes[v];
  13315. if (this._isCompound) {
  13316. this._removeFromParentsChildList(v);
  13317. delete this._parent[v];
  13318. _.each(this.children(v), function(child) {
  13319. self.setParent(child);
  13320. });
  13321. delete this._children[v];
  13322. }
  13323. _.each(_.keys(this._in[v]), removeEdge);
  13324. delete this._in[v];
  13325. delete this._preds[v];
  13326. _.each(_.keys(this._out[v]), removeEdge);
  13327. delete this._out[v];
  13328. delete this._sucs[v];
  13329. --this._nodeCount;
  13330. }
  13331. return this;
  13332. };
  13333. Graph.prototype.setParent = function(v, parent) {
  13334. if (!this._isCompound) {
  13335. throw new Error("Cannot set parent in a non-compound graph");
  13336. }
  13337. if (_.isUndefined(parent)) {
  13338. parent = GRAPH_NODE;
  13339. } else {
  13340. // Coerce parent to string
  13341. parent += "";
  13342. for (var ancestor = parent;
  13343. !_.isUndefined(ancestor);
  13344. ancestor = this.parent(ancestor)) {
  13345. if (ancestor === v) {
  13346. throw new Error("Setting " + parent+ " as parent of " + v +
  13347. " would create a cycle");
  13348. }
  13349. }
  13350. this.setNode(parent);
  13351. }
  13352. this.setNode(v);
  13353. this._removeFromParentsChildList(v);
  13354. this._parent[v] = parent;
  13355. this._children[parent][v] = true;
  13356. return this;
  13357. };
  13358. Graph.prototype._removeFromParentsChildList = function(v) {
  13359. delete this._children[this._parent[v]][v];
  13360. };
  13361. Graph.prototype.parent = function(v) {
  13362. if (this._isCompound) {
  13363. var parent = this._parent[v];
  13364. if (parent !== GRAPH_NODE) {
  13365. return parent;
  13366. }
  13367. }
  13368. };
  13369. Graph.prototype.children = function(v) {
  13370. if (_.isUndefined(v)) {
  13371. v = GRAPH_NODE;
  13372. }
  13373. if (this._isCompound) {
  13374. var children = this._children[v];
  13375. if (children) {
  13376. return _.keys(children);
  13377. }
  13378. } else if (v === GRAPH_NODE) {
  13379. return this.nodes();
  13380. } else if (this.hasNode(v)) {
  13381. return [];
  13382. }
  13383. };
  13384. Graph.prototype.predecessors = function(v) {
  13385. var predsV = this._preds[v];
  13386. if (predsV) {
  13387. return _.keys(predsV);
  13388. }
  13389. };
  13390. Graph.prototype.successors = function(v) {
  13391. var sucsV = this._sucs[v];
  13392. if (sucsV) {
  13393. return _.keys(sucsV);
  13394. }
  13395. };
  13396. Graph.prototype.neighbors = function(v) {
  13397. var preds = this.predecessors(v);
  13398. if (preds) {
  13399. return _.union(preds, this.successors(v));
  13400. }
  13401. };
  13402. Graph.prototype.isLeaf = function (v) {
  13403. var neighbors;
  13404. if (this.isDirected()) {
  13405. neighbors = this.successors(v);
  13406. } else {
  13407. neighbors = this.neighbors(v);
  13408. }
  13409. return neighbors.length === 0;
  13410. };
  13411. Graph.prototype.filterNodes = function(filter) {
  13412. var copy = new this.constructor({
  13413. directed: this._isDirected,
  13414. multigraph: this._isMultigraph,
  13415. compound: this._isCompound
  13416. });
  13417. copy.setGraph(this.graph());
  13418. var self = this;
  13419. _.each(this._nodes, function(value, v) {
  13420. if (filter(v)) {
  13421. copy.setNode(v, value);
  13422. }
  13423. });
  13424. _.each(this._edgeObjs, function(e) {
  13425. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  13426. copy.setEdge(e, self.edge(e));
  13427. }
  13428. });
  13429. var parents = {};
  13430. function findParent(v) {
  13431. var parent = self.parent(v);
  13432. if (parent === undefined || copy.hasNode(parent)) {
  13433. parents[v] = parent;
  13434. return parent;
  13435. } else if (parent in parents) {
  13436. return parents[parent];
  13437. } else {
  13438. return findParent(parent);
  13439. }
  13440. }
  13441. if (this._isCompound) {
  13442. _.each(copy.nodes(), function(v) {
  13443. copy.setParent(v, findParent(v));
  13444. });
  13445. }
  13446. return copy;
  13447. };
  13448. /* === Edge functions ========== */
  13449. Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
  13450. if (!_.isFunction(newDefault)) {
  13451. newDefault = _.constant(newDefault);
  13452. }
  13453. this._defaultEdgeLabelFn = newDefault;
  13454. return this;
  13455. };
  13456. Graph.prototype.edgeCount = function() {
  13457. return this._edgeCount;
  13458. };
  13459. Graph.prototype.edges = function() {
  13460. return _.values(this._edgeObjs);
  13461. };
  13462. Graph.prototype.setPath = function(vs, value) {
  13463. var self = this;
  13464. var args = arguments;
  13465. _.reduce(vs, function(v, w) {
  13466. if (args.length > 1) {
  13467. self.setEdge(v, w, value);
  13468. } else {
  13469. self.setEdge(v, w);
  13470. }
  13471. return w;
  13472. });
  13473. return this;
  13474. };
  13475. /*
  13476. * setEdge(v, w, [value, [name]])
  13477. * setEdge({ v, w, [name] }, [value])
  13478. */
  13479. Graph.prototype.setEdge = function() {
  13480. var v, w, name, value;
  13481. var valueSpecified = false;
  13482. var arg0 = arguments[0];
  13483. if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
  13484. v = arg0.v;
  13485. w = arg0.w;
  13486. name = arg0.name;
  13487. if (arguments.length === 2) {
  13488. value = arguments[1];
  13489. valueSpecified = true;
  13490. }
  13491. } else {
  13492. v = arg0;
  13493. w = arguments[1];
  13494. name = arguments[3];
  13495. if (arguments.length > 2) {
  13496. value = arguments[2];
  13497. valueSpecified = true;
  13498. }
  13499. }
  13500. v = "" + v;
  13501. w = "" + w;
  13502. if (!_.isUndefined(name)) {
  13503. name = "" + name;
  13504. }
  13505. var e = edgeArgsToId(this._isDirected, v, w, name);
  13506. if (_.has(this._edgeLabels, e)) {
  13507. if (valueSpecified) {
  13508. this._edgeLabels[e] = value;
  13509. }
  13510. return this;
  13511. }
  13512. if (!_.isUndefined(name) && !this._isMultigraph) {
  13513. throw new Error("Cannot set a named edge when isMultigraph = false");
  13514. }
  13515. // It didn't exist, so we need to create it.
  13516. // First ensure the nodes exist.
  13517. this.setNode(v);
  13518. this.setNode(w);
  13519. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
  13520. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
  13521. // Ensure we add undirected edges in a consistent way.
  13522. v = edgeObj.v;
  13523. w = edgeObj.w;
  13524. Object.freeze(edgeObj);
  13525. this._edgeObjs[e] = edgeObj;
  13526. incrementOrInitEntry(this._preds[w], v);
  13527. incrementOrInitEntry(this._sucs[v], w);
  13528. this._in[w][e] = edgeObj;
  13529. this._out[v][e] = edgeObj;
  13530. this._edgeCount++;
  13531. return this;
  13532. };
  13533. Graph.prototype.edge = function(v, w, name) {
  13534. var e = (arguments.length === 1
  13535. ? edgeObjToId(this._isDirected, arguments[0])
  13536. : edgeArgsToId(this._isDirected, v, w, name));
  13537. return this._edgeLabels[e];
  13538. };
  13539. Graph.prototype.hasEdge = function(v, w, name) {
  13540. var e = (arguments.length === 1
  13541. ? edgeObjToId(this._isDirected, arguments[0])
  13542. : edgeArgsToId(this._isDirected, v, w, name));
  13543. return _.has(this._edgeLabels, e);
  13544. };
  13545. Graph.prototype.removeEdge = function(v, w, name) {
  13546. var e = (arguments.length === 1
  13547. ? edgeObjToId(this._isDirected, arguments[0])
  13548. : edgeArgsToId(this._isDirected, v, w, name));
  13549. var edge = this._edgeObjs[e];
  13550. if (edge) {
  13551. v = edge.v;
  13552. w = edge.w;
  13553. delete this._edgeLabels[e];
  13554. delete this._edgeObjs[e];
  13555. decrementOrRemoveEntry(this._preds[w], v);
  13556. decrementOrRemoveEntry(this._sucs[v], w);
  13557. delete this._in[w][e];
  13558. delete this._out[v][e];
  13559. this._edgeCount--;
  13560. }
  13561. return this;
  13562. };
  13563. Graph.prototype.inEdges = function(v, u) {
  13564. var inV = this._in[v];
  13565. if (inV) {
  13566. var edges = _.values(inV);
  13567. if (!u) {
  13568. return edges;
  13569. }
  13570. return _.filter(edges, function(edge) { return edge.v === u; });
  13571. }
  13572. };
  13573. Graph.prototype.outEdges = function(v, w) {
  13574. var outV = this._out[v];
  13575. if (outV) {
  13576. var edges = _.values(outV);
  13577. if (!w) {
  13578. return edges;
  13579. }
  13580. return _.filter(edges, function(edge) { return edge.w === w; });
  13581. }
  13582. };
  13583. Graph.prototype.nodeEdges = function(v, w) {
  13584. var inEdges = this.inEdges(v, w);
  13585. if (inEdges) {
  13586. return inEdges.concat(this.outEdges(v, w));
  13587. }
  13588. };
  13589. function incrementOrInitEntry(map, k) {
  13590. if (map[k]) {
  13591. map[k]++;
  13592. } else {
  13593. map[k] = 1;
  13594. }
  13595. }
  13596. function decrementOrRemoveEntry(map, k) {
  13597. if (!--map[k]) { delete map[k]; }
  13598. }
  13599. function edgeArgsToId(isDirected, v_, w_, name) {
  13600. var v = "" + v_;
  13601. var w = "" + w_;
  13602. if (!isDirected && v > w) {
  13603. var tmp = v;
  13604. v = w;
  13605. w = tmp;
  13606. }
  13607. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  13608. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
  13609. }
  13610. function edgeArgsToObj(isDirected, v_, w_, name) {
  13611. var v = "" + v_;
  13612. var w = "" + w_;
  13613. if (!isDirected && v > w) {
  13614. var tmp = v;
  13615. v = w;
  13616. w = tmp;
  13617. }
  13618. var edgeObj = { v: v, w: w };
  13619. if (name) {
  13620. edgeObj.name = name;
  13621. }
  13622. return edgeObj;
  13623. }
  13624. function edgeObjToId(isDirected, edgeObj) {
  13625. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
  13626. }
  13627. /***/ }),
  13628. /***/ "../../node_modules/graphlib/lib/index.js":
  13629. /*!**************************************************************!*\
  13630. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/index.js ***!
  13631. \**************************************************************/
  13632. /*! no static exports found */
  13633. /***/ (function(module, exports, __webpack_require__) {
  13634. // Includes only the "core" of graphlib
  13635. module.exports = {
  13636. Graph: __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js"),
  13637. version: __webpack_require__(/*! ./version */ "../../node_modules/graphlib/lib/version.js")
  13638. };
  13639. /***/ }),
  13640. /***/ "../../node_modules/graphlib/lib/json.js":
  13641. /*!*************************************************************!*\
  13642. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/json.js ***!
  13643. \*************************************************************/
  13644. /*! no static exports found */
  13645. /***/ (function(module, exports, __webpack_require__) {
  13646. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  13647. var Graph = __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js");
  13648. module.exports = {
  13649. write: write,
  13650. read: read
  13651. };
  13652. function write(g) {
  13653. var json = {
  13654. options: {
  13655. directed: g.isDirected(),
  13656. multigraph: g.isMultigraph(),
  13657. compound: g.isCompound()
  13658. },
  13659. nodes: writeNodes(g),
  13660. edges: writeEdges(g)
  13661. };
  13662. if (!_.isUndefined(g.graph())) {
  13663. json.value = _.clone(g.graph());
  13664. }
  13665. return json;
  13666. }
  13667. function writeNodes(g) {
  13668. return _.map(g.nodes(), function(v) {
  13669. var nodeValue = g.node(v);
  13670. var parent = g.parent(v);
  13671. var node = { v: v };
  13672. if (!_.isUndefined(nodeValue)) {
  13673. node.value = nodeValue;
  13674. }
  13675. if (!_.isUndefined(parent)) {
  13676. node.parent = parent;
  13677. }
  13678. return node;
  13679. });
  13680. }
  13681. function writeEdges(g) {
  13682. return _.map(g.edges(), function(e) {
  13683. var edgeValue = g.edge(e);
  13684. var edge = { v: e.v, w: e.w };
  13685. if (!_.isUndefined(e.name)) {
  13686. edge.name = e.name;
  13687. }
  13688. if (!_.isUndefined(edgeValue)) {
  13689. edge.value = edgeValue;
  13690. }
  13691. return edge;
  13692. });
  13693. }
  13694. function read(json) {
  13695. var g = new Graph(json.options).setGraph(json.value);
  13696. _.each(json.nodes, function(entry) {
  13697. g.setNode(entry.v, entry.value);
  13698. if (entry.parent) {
  13699. g.setParent(entry.v, entry.parent);
  13700. }
  13701. });
  13702. _.each(json.edges, function(entry) {
  13703. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
  13704. });
  13705. return g;
  13706. }
  13707. /***/ }),
  13708. /***/ "../../node_modules/graphlib/lib/lodash.js":
  13709. /*!***************************************************************!*\
  13710. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/lodash.js ***!
  13711. \***************************************************************/
  13712. /*! no static exports found */
  13713. /***/ (function(module, exports, __webpack_require__) {
  13714. /* global window */
  13715. var lodash;
  13716. if (true) {
  13717. try {
  13718. lodash = {
  13719. clone: __webpack_require__(/*! lodash/clone */ "../../node_modules/lodash/clone.js"),
  13720. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  13721. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  13722. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  13723. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  13724. isArray: __webpack_require__(/*! lodash/isArray */ "../../node_modules/lodash/isArray.js"),
  13725. isEmpty: __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js"),
  13726. isFunction: __webpack_require__(/*! lodash/isFunction */ "../../node_modules/lodash/isFunction.js"),
  13727. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  13728. keys: __webpack_require__(/*! lodash/keys */ "../../node_modules/lodash/keys.js"),
  13729. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  13730. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  13731. size: __webpack_require__(/*! lodash/size */ "../../node_modules/lodash/size.js"),
  13732. transform: __webpack_require__(/*! lodash/transform */ "../../node_modules/lodash/transform.js"),
  13733. union: __webpack_require__(/*! lodash/union */ "../../node_modules/lodash/union.js"),
  13734. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js")
  13735. };
  13736. } catch (e) {
  13737. // continue regardless of error
  13738. }
  13739. }
  13740. if (!lodash) {
  13741. lodash = window._;
  13742. }
  13743. module.exports = lodash;
  13744. /***/ }),
  13745. /***/ "../../node_modules/graphlib/lib/version.js":
  13746. /*!****************************************************************!*\
  13747. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/version.js ***!
  13748. \****************************************************************/
  13749. /*! no static exports found */
  13750. /***/ (function(module, exports) {
  13751. module.exports = '2.1.8';
  13752. /***/ }),
  13753. /***/ "../../node_modules/lodash/_DataView.js":
  13754. /*!************************************************************!*\
  13755. !*** C:/Repos/Babylon.js/node_modules/lodash/_DataView.js ***!
  13756. \************************************************************/
  13757. /*! no static exports found */
  13758. /***/ (function(module, exports, __webpack_require__) {
  13759. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13760. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13761. /* Built-in method references that are verified to be native. */
  13762. var DataView = getNative(root, 'DataView');
  13763. module.exports = DataView;
  13764. /***/ }),
  13765. /***/ "../../node_modules/lodash/_Hash.js":
  13766. /*!********************************************************!*\
  13767. !*** C:/Repos/Babylon.js/node_modules/lodash/_Hash.js ***!
  13768. \********************************************************/
  13769. /*! no static exports found */
  13770. /***/ (function(module, exports, __webpack_require__) {
  13771. var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
  13772. hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
  13773. hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
  13774. hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
  13775. hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
  13776. /**
  13777. * Creates a hash object.
  13778. *
  13779. * @private
  13780. * @constructor
  13781. * @param {Array} [entries] The key-value pairs to cache.
  13782. */
  13783. function Hash(entries) {
  13784. var index = -1,
  13785. length = entries == null ? 0 : entries.length;
  13786. this.clear();
  13787. while (++index < length) {
  13788. var entry = entries[index];
  13789. this.set(entry[0], entry[1]);
  13790. }
  13791. }
  13792. // Add methods to `Hash`.
  13793. Hash.prototype.clear = hashClear;
  13794. Hash.prototype['delete'] = hashDelete;
  13795. Hash.prototype.get = hashGet;
  13796. Hash.prototype.has = hashHas;
  13797. Hash.prototype.set = hashSet;
  13798. module.exports = Hash;
  13799. /***/ }),
  13800. /***/ "../../node_modules/lodash/_ListCache.js":
  13801. /*!*************************************************************!*\
  13802. !*** C:/Repos/Babylon.js/node_modules/lodash/_ListCache.js ***!
  13803. \*************************************************************/
  13804. /*! no static exports found */
  13805. /***/ (function(module, exports, __webpack_require__) {
  13806. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
  13807. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
  13808. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
  13809. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
  13810. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
  13811. /**
  13812. * Creates an list cache object.
  13813. *
  13814. * @private
  13815. * @constructor
  13816. * @param {Array} [entries] The key-value pairs to cache.
  13817. */
  13818. function ListCache(entries) {
  13819. var index = -1,
  13820. length = entries == null ? 0 : entries.length;
  13821. this.clear();
  13822. while (++index < length) {
  13823. var entry = entries[index];
  13824. this.set(entry[0], entry[1]);
  13825. }
  13826. }
  13827. // Add methods to `ListCache`.
  13828. ListCache.prototype.clear = listCacheClear;
  13829. ListCache.prototype['delete'] = listCacheDelete;
  13830. ListCache.prototype.get = listCacheGet;
  13831. ListCache.prototype.has = listCacheHas;
  13832. ListCache.prototype.set = listCacheSet;
  13833. module.exports = ListCache;
  13834. /***/ }),
  13835. /***/ "../../node_modules/lodash/_Map.js":
  13836. /*!*******************************************************!*\
  13837. !*** C:/Repos/Babylon.js/node_modules/lodash/_Map.js ***!
  13838. \*******************************************************/
  13839. /*! no static exports found */
  13840. /***/ (function(module, exports, __webpack_require__) {
  13841. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13842. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13843. /* Built-in method references that are verified to be native. */
  13844. var Map = getNative(root, 'Map');
  13845. module.exports = Map;
  13846. /***/ }),
  13847. /***/ "../../node_modules/lodash/_MapCache.js":
  13848. /*!************************************************************!*\
  13849. !*** C:/Repos/Babylon.js/node_modules/lodash/_MapCache.js ***!
  13850. \************************************************************/
  13851. /*! no static exports found */
  13852. /***/ (function(module, exports, __webpack_require__) {
  13853. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
  13854. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
  13855. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
  13856. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
  13857. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
  13858. /**
  13859. * Creates a map cache object to store key-value pairs.
  13860. *
  13861. * @private
  13862. * @constructor
  13863. * @param {Array} [entries] The key-value pairs to cache.
  13864. */
  13865. function MapCache(entries) {
  13866. var index = -1,
  13867. length = entries == null ? 0 : entries.length;
  13868. this.clear();
  13869. while (++index < length) {
  13870. var entry = entries[index];
  13871. this.set(entry[0], entry[1]);
  13872. }
  13873. }
  13874. // Add methods to `MapCache`.
  13875. MapCache.prototype.clear = mapCacheClear;
  13876. MapCache.prototype['delete'] = mapCacheDelete;
  13877. MapCache.prototype.get = mapCacheGet;
  13878. MapCache.prototype.has = mapCacheHas;
  13879. MapCache.prototype.set = mapCacheSet;
  13880. module.exports = MapCache;
  13881. /***/ }),
  13882. /***/ "../../node_modules/lodash/_Promise.js":
  13883. /*!***********************************************************!*\
  13884. !*** C:/Repos/Babylon.js/node_modules/lodash/_Promise.js ***!
  13885. \***********************************************************/
  13886. /*! no static exports found */
  13887. /***/ (function(module, exports, __webpack_require__) {
  13888. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13889. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13890. /* Built-in method references that are verified to be native. */
  13891. var Promise = getNative(root, 'Promise');
  13892. module.exports = Promise;
  13893. /***/ }),
  13894. /***/ "../../node_modules/lodash/_Set.js":
  13895. /*!*******************************************************!*\
  13896. !*** C:/Repos/Babylon.js/node_modules/lodash/_Set.js ***!
  13897. \*******************************************************/
  13898. /*! no static exports found */
  13899. /***/ (function(module, exports, __webpack_require__) {
  13900. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13901. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13902. /* Built-in method references that are verified to be native. */
  13903. var Set = getNative(root, 'Set');
  13904. module.exports = Set;
  13905. /***/ }),
  13906. /***/ "../../node_modules/lodash/_SetCache.js":
  13907. /*!************************************************************!*\
  13908. !*** C:/Repos/Babylon.js/node_modules/lodash/_SetCache.js ***!
  13909. \************************************************************/
  13910. /*! no static exports found */
  13911. /***/ (function(module, exports, __webpack_require__) {
  13912. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
  13913. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
  13914. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
  13915. /**
  13916. *
  13917. * Creates an array cache object to store unique values.
  13918. *
  13919. * @private
  13920. * @constructor
  13921. * @param {Array} [values] The values to cache.
  13922. */
  13923. function SetCache(values) {
  13924. var index = -1,
  13925. length = values == null ? 0 : values.length;
  13926. this.__data__ = new MapCache;
  13927. while (++index < length) {
  13928. this.add(values[index]);
  13929. }
  13930. }
  13931. // Add methods to `SetCache`.
  13932. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  13933. SetCache.prototype.has = setCacheHas;
  13934. module.exports = SetCache;
  13935. /***/ }),
  13936. /***/ "../../node_modules/lodash/_Stack.js":
  13937. /*!*********************************************************!*\
  13938. !*** C:/Repos/Babylon.js/node_modules/lodash/_Stack.js ***!
  13939. \*********************************************************/
  13940. /*! no static exports found */
  13941. /***/ (function(module, exports, __webpack_require__) {
  13942. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  13943. stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
  13944. stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
  13945. stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
  13946. stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
  13947. stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
  13948. /**
  13949. * Creates a stack cache object to store key-value pairs.
  13950. *
  13951. * @private
  13952. * @constructor
  13953. * @param {Array} [entries] The key-value pairs to cache.
  13954. */
  13955. function Stack(entries) {
  13956. var data = this.__data__ = new ListCache(entries);
  13957. this.size = data.size;
  13958. }
  13959. // Add methods to `Stack`.
  13960. Stack.prototype.clear = stackClear;
  13961. Stack.prototype['delete'] = stackDelete;
  13962. Stack.prototype.get = stackGet;
  13963. Stack.prototype.has = stackHas;
  13964. Stack.prototype.set = stackSet;
  13965. module.exports = Stack;
  13966. /***/ }),
  13967. /***/ "../../node_modules/lodash/_Symbol.js":
  13968. /*!**********************************************************!*\
  13969. !*** C:/Repos/Babylon.js/node_modules/lodash/_Symbol.js ***!
  13970. \**********************************************************/
  13971. /*! no static exports found */
  13972. /***/ (function(module, exports, __webpack_require__) {
  13973. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13974. /** Built-in value references. */
  13975. var Symbol = root.Symbol;
  13976. module.exports = Symbol;
  13977. /***/ }),
  13978. /***/ "../../node_modules/lodash/_Uint8Array.js":
  13979. /*!**************************************************************!*\
  13980. !*** C:/Repos/Babylon.js/node_modules/lodash/_Uint8Array.js ***!
  13981. \**************************************************************/
  13982. /*! no static exports found */
  13983. /***/ (function(module, exports, __webpack_require__) {
  13984. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13985. /** Built-in value references. */
  13986. var Uint8Array = root.Uint8Array;
  13987. module.exports = Uint8Array;
  13988. /***/ }),
  13989. /***/ "../../node_modules/lodash/_WeakMap.js":
  13990. /*!***********************************************************!*\
  13991. !*** C:/Repos/Babylon.js/node_modules/lodash/_WeakMap.js ***!
  13992. \***********************************************************/
  13993. /*! no static exports found */
  13994. /***/ (function(module, exports, __webpack_require__) {
  13995. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  13996. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  13997. /* Built-in method references that are verified to be native. */
  13998. var WeakMap = getNative(root, 'WeakMap');
  13999. module.exports = WeakMap;
  14000. /***/ }),
  14001. /***/ "../../node_modules/lodash/_apply.js":
  14002. /*!*********************************************************!*\
  14003. !*** C:/Repos/Babylon.js/node_modules/lodash/_apply.js ***!
  14004. \*********************************************************/
  14005. /*! no static exports found */
  14006. /***/ (function(module, exports) {
  14007. /**
  14008. * A faster alternative to `Function#apply`, this function invokes `func`
  14009. * with the `this` binding of `thisArg` and the arguments of `args`.
  14010. *
  14011. * @private
  14012. * @param {Function} func The function to invoke.
  14013. * @param {*} thisArg The `this` binding of `func`.
  14014. * @param {Array} args The arguments to invoke `func` with.
  14015. * @returns {*} Returns the result of `func`.
  14016. */
  14017. function apply(func, thisArg, args) {
  14018. switch (args.length) {
  14019. case 0: return func.call(thisArg);
  14020. case 1: return func.call(thisArg, args[0]);
  14021. case 2: return func.call(thisArg, args[0], args[1]);
  14022. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  14023. }
  14024. return func.apply(thisArg, args);
  14025. }
  14026. module.exports = apply;
  14027. /***/ }),
  14028. /***/ "../../node_modules/lodash/_arrayEach.js":
  14029. /*!*************************************************************!*\
  14030. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayEach.js ***!
  14031. \*************************************************************/
  14032. /*! no static exports found */
  14033. /***/ (function(module, exports) {
  14034. /**
  14035. * A specialized version of `_.forEach` for arrays without support for
  14036. * iteratee shorthands.
  14037. *
  14038. * @private
  14039. * @param {Array} [array] The array to iterate over.
  14040. * @param {Function} iteratee The function invoked per iteration.
  14041. * @returns {Array} Returns `array`.
  14042. */
  14043. function arrayEach(array, iteratee) {
  14044. var index = -1,
  14045. length = array == null ? 0 : array.length;
  14046. while (++index < length) {
  14047. if (iteratee(array[index], index, array) === false) {
  14048. break;
  14049. }
  14050. }
  14051. return array;
  14052. }
  14053. module.exports = arrayEach;
  14054. /***/ }),
  14055. /***/ "../../node_modules/lodash/_arrayFilter.js":
  14056. /*!***************************************************************!*\
  14057. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayFilter.js ***!
  14058. \***************************************************************/
  14059. /*! no static exports found */
  14060. /***/ (function(module, exports) {
  14061. /**
  14062. * A specialized version of `_.filter` for arrays without support for
  14063. * iteratee shorthands.
  14064. *
  14065. * @private
  14066. * @param {Array} [array] The array to iterate over.
  14067. * @param {Function} predicate The function invoked per iteration.
  14068. * @returns {Array} Returns the new filtered array.
  14069. */
  14070. function arrayFilter(array, predicate) {
  14071. var index = -1,
  14072. length = array == null ? 0 : array.length,
  14073. resIndex = 0,
  14074. result = [];
  14075. while (++index < length) {
  14076. var value = array[index];
  14077. if (predicate(value, index, array)) {
  14078. result[resIndex++] = value;
  14079. }
  14080. }
  14081. return result;
  14082. }
  14083. module.exports = arrayFilter;
  14084. /***/ }),
  14085. /***/ "../../node_modules/lodash/_arrayIncludes.js":
  14086. /*!*****************************************************************!*\
  14087. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludes.js ***!
  14088. \*****************************************************************/
  14089. /*! no static exports found */
  14090. /***/ (function(module, exports, __webpack_require__) {
  14091. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../node_modules/lodash/_baseIndexOf.js");
  14092. /**
  14093. * A specialized version of `_.includes` for arrays without support for
  14094. * specifying an index to search from.
  14095. *
  14096. * @private
  14097. * @param {Array} [array] The array to inspect.
  14098. * @param {*} target The value to search for.
  14099. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  14100. */
  14101. function arrayIncludes(array, value) {
  14102. var length = array == null ? 0 : array.length;
  14103. return !!length && baseIndexOf(array, value, 0) > -1;
  14104. }
  14105. module.exports = arrayIncludes;
  14106. /***/ }),
  14107. /***/ "../../node_modules/lodash/_arrayIncludesWith.js":
  14108. /*!*********************************************************************!*\
  14109. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludesWith.js ***!
  14110. \*********************************************************************/
  14111. /*! no static exports found */
  14112. /***/ (function(module, exports) {
  14113. /**
  14114. * This function is like `arrayIncludes` except that it accepts a comparator.
  14115. *
  14116. * @private
  14117. * @param {Array} [array] The array to inspect.
  14118. * @param {*} target The value to search for.
  14119. * @param {Function} comparator The comparator invoked per element.
  14120. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  14121. */
  14122. function arrayIncludesWith(array, value, comparator) {
  14123. var index = -1,
  14124. length = array == null ? 0 : array.length;
  14125. while (++index < length) {
  14126. if (comparator(value, array[index])) {
  14127. return true;
  14128. }
  14129. }
  14130. return false;
  14131. }
  14132. module.exports = arrayIncludesWith;
  14133. /***/ }),
  14134. /***/ "../../node_modules/lodash/_arrayLikeKeys.js":
  14135. /*!*****************************************************************!*\
  14136. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayLikeKeys.js ***!
  14137. \*****************************************************************/
  14138. /*! no static exports found */
  14139. /***/ (function(module, exports, __webpack_require__) {
  14140. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
  14141. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  14142. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  14143. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  14144. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  14145. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  14146. /** Used for built-in method references. */
  14147. var objectProto = Object.prototype;
  14148. /** Used to check objects for own properties. */
  14149. var hasOwnProperty = objectProto.hasOwnProperty;
  14150. /**
  14151. * Creates an array of the enumerable property names of the array-like `value`.
  14152. *
  14153. * @private
  14154. * @param {*} value The value to query.
  14155. * @param {boolean} inherited Specify returning inherited property names.
  14156. * @returns {Array} Returns the array of property names.
  14157. */
  14158. function arrayLikeKeys(value, inherited) {
  14159. var isArr = isArray(value),
  14160. isArg = !isArr && isArguments(value),
  14161. isBuff = !isArr && !isArg && isBuffer(value),
  14162. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  14163. skipIndexes = isArr || isArg || isBuff || isType,
  14164. result = skipIndexes ? baseTimes(value.length, String) : [],
  14165. length = result.length;
  14166. for (var key in value) {
  14167. if ((inherited || hasOwnProperty.call(value, key)) &&
  14168. !(skipIndexes && (
  14169. // Safari 9 has enumerable `arguments.length` in strict mode.
  14170. key == 'length' ||
  14171. // Node.js 0.10 has enumerable non-index properties on buffers.
  14172. (isBuff && (key == 'offset' || key == 'parent')) ||
  14173. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  14174. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  14175. // Skip index properties.
  14176. isIndex(key, length)
  14177. ))) {
  14178. result.push(key);
  14179. }
  14180. }
  14181. return result;
  14182. }
  14183. module.exports = arrayLikeKeys;
  14184. /***/ }),
  14185. /***/ "../../node_modules/lodash/_arrayMap.js":
  14186. /*!************************************************************!*\
  14187. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayMap.js ***!
  14188. \************************************************************/
  14189. /*! no static exports found */
  14190. /***/ (function(module, exports) {
  14191. /**
  14192. * A specialized version of `_.map` for arrays without support for iteratee
  14193. * shorthands.
  14194. *
  14195. * @private
  14196. * @param {Array} [array] The array to iterate over.
  14197. * @param {Function} iteratee The function invoked per iteration.
  14198. * @returns {Array} Returns the new mapped array.
  14199. */
  14200. function arrayMap(array, iteratee) {
  14201. var index = -1,
  14202. length = array == null ? 0 : array.length,
  14203. result = Array(length);
  14204. while (++index < length) {
  14205. result[index] = iteratee(array[index], index, array);
  14206. }
  14207. return result;
  14208. }
  14209. module.exports = arrayMap;
  14210. /***/ }),
  14211. /***/ "../../node_modules/lodash/_arrayPush.js":
  14212. /*!*************************************************************!*\
  14213. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayPush.js ***!
  14214. \*************************************************************/
  14215. /*! no static exports found */
  14216. /***/ (function(module, exports) {
  14217. /**
  14218. * Appends the elements of `values` to `array`.
  14219. *
  14220. * @private
  14221. * @param {Array} array The array to modify.
  14222. * @param {Array} values The values to append.
  14223. * @returns {Array} Returns `array`.
  14224. */
  14225. function arrayPush(array, values) {
  14226. var index = -1,
  14227. length = values.length,
  14228. offset = array.length;
  14229. while (++index < length) {
  14230. array[offset + index] = values[index];
  14231. }
  14232. return array;
  14233. }
  14234. module.exports = arrayPush;
  14235. /***/ }),
  14236. /***/ "../../node_modules/lodash/_arrayReduce.js":
  14237. /*!***************************************************************!*\
  14238. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayReduce.js ***!
  14239. \***************************************************************/
  14240. /*! no static exports found */
  14241. /***/ (function(module, exports) {
  14242. /**
  14243. * A specialized version of `_.reduce` for arrays without support for
  14244. * iteratee shorthands.
  14245. *
  14246. * @private
  14247. * @param {Array} [array] The array to iterate over.
  14248. * @param {Function} iteratee The function invoked per iteration.
  14249. * @param {*} [accumulator] The initial value.
  14250. * @param {boolean} [initAccum] Specify using the first element of `array` as
  14251. * the initial value.
  14252. * @returns {*} Returns the accumulated value.
  14253. */
  14254. function arrayReduce(array, iteratee, accumulator, initAccum) {
  14255. var index = -1,
  14256. length = array == null ? 0 : array.length;
  14257. if (initAccum && length) {
  14258. accumulator = array[++index];
  14259. }
  14260. while (++index < length) {
  14261. accumulator = iteratee(accumulator, array[index], index, array);
  14262. }
  14263. return accumulator;
  14264. }
  14265. module.exports = arrayReduce;
  14266. /***/ }),
  14267. /***/ "../../node_modules/lodash/_arraySome.js":
  14268. /*!*************************************************************!*\
  14269. !*** C:/Repos/Babylon.js/node_modules/lodash/_arraySome.js ***!
  14270. \*************************************************************/
  14271. /*! no static exports found */
  14272. /***/ (function(module, exports) {
  14273. /**
  14274. * A specialized version of `_.some` for arrays without support for iteratee
  14275. * shorthands.
  14276. *
  14277. * @private
  14278. * @param {Array} [array] The array to iterate over.
  14279. * @param {Function} predicate The function invoked per iteration.
  14280. * @returns {boolean} Returns `true` if any element passes the predicate check,
  14281. * else `false`.
  14282. */
  14283. function arraySome(array, predicate) {
  14284. var index = -1,
  14285. length = array == null ? 0 : array.length;
  14286. while (++index < length) {
  14287. if (predicate(array[index], index, array)) {
  14288. return true;
  14289. }
  14290. }
  14291. return false;
  14292. }
  14293. module.exports = arraySome;
  14294. /***/ }),
  14295. /***/ "../../node_modules/lodash/_asciiSize.js":
  14296. /*!*************************************************************!*\
  14297. !*** C:/Repos/Babylon.js/node_modules/lodash/_asciiSize.js ***!
  14298. \*************************************************************/
  14299. /*! no static exports found */
  14300. /***/ (function(module, exports, __webpack_require__) {
  14301. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js");
  14302. /**
  14303. * Gets the size of an ASCII `string`.
  14304. *
  14305. * @private
  14306. * @param {string} string The string inspect.
  14307. * @returns {number} Returns the string size.
  14308. */
  14309. var asciiSize = baseProperty('length');
  14310. module.exports = asciiSize;
  14311. /***/ }),
  14312. /***/ "../../node_modules/lodash/_assignMergeValue.js":
  14313. /*!********************************************************************!*\
  14314. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignMergeValue.js ***!
  14315. \********************************************************************/
  14316. /*! no static exports found */
  14317. /***/ (function(module, exports, __webpack_require__) {
  14318. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  14319. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  14320. /**
  14321. * This function is like `assignValue` except that it doesn't assign
  14322. * `undefined` values.
  14323. *
  14324. * @private
  14325. * @param {Object} object The object to modify.
  14326. * @param {string} key The key of the property to assign.
  14327. * @param {*} value The value to assign.
  14328. */
  14329. function assignMergeValue(object, key, value) {
  14330. if ((value !== undefined && !eq(object[key], value)) ||
  14331. (value === undefined && !(key in object))) {
  14332. baseAssignValue(object, key, value);
  14333. }
  14334. }
  14335. module.exports = assignMergeValue;
  14336. /***/ }),
  14337. /***/ "../../node_modules/lodash/_assignValue.js":
  14338. /*!***************************************************************!*\
  14339. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignValue.js ***!
  14340. \***************************************************************/
  14341. /*! no static exports found */
  14342. /***/ (function(module, exports, __webpack_require__) {
  14343. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  14344. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  14345. /** Used for built-in method references. */
  14346. var objectProto = Object.prototype;
  14347. /** Used to check objects for own properties. */
  14348. var hasOwnProperty = objectProto.hasOwnProperty;
  14349. /**
  14350. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  14351. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  14352. * for equality comparisons.
  14353. *
  14354. * @private
  14355. * @param {Object} object The object to modify.
  14356. * @param {string} key The key of the property to assign.
  14357. * @param {*} value The value to assign.
  14358. */
  14359. function assignValue(object, key, value) {
  14360. var objValue = object[key];
  14361. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  14362. (value === undefined && !(key in object))) {
  14363. baseAssignValue(object, key, value);
  14364. }
  14365. }
  14366. module.exports = assignValue;
  14367. /***/ }),
  14368. /***/ "../../node_modules/lodash/_assocIndexOf.js":
  14369. /*!****************************************************************!*\
  14370. !*** C:/Repos/Babylon.js/node_modules/lodash/_assocIndexOf.js ***!
  14371. \****************************************************************/
  14372. /*! no static exports found */
  14373. /***/ (function(module, exports, __webpack_require__) {
  14374. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  14375. /**
  14376. * Gets the index at which the `key` is found in `array` of key-value pairs.
  14377. *
  14378. * @private
  14379. * @param {Array} array The array to inspect.
  14380. * @param {*} key The key to search for.
  14381. * @returns {number} Returns the index of the matched value, else `-1`.
  14382. */
  14383. function assocIndexOf(array, key) {
  14384. var length = array.length;
  14385. while (length--) {
  14386. if (eq(array[length][0], key)) {
  14387. return length;
  14388. }
  14389. }
  14390. return -1;
  14391. }
  14392. module.exports = assocIndexOf;
  14393. /***/ }),
  14394. /***/ "../../node_modules/lodash/_baseAssign.js":
  14395. /*!**************************************************************!*\
  14396. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssign.js ***!
  14397. \**************************************************************/
  14398. /*! no static exports found */
  14399. /***/ (function(module, exports, __webpack_require__) {
  14400. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  14401. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  14402. /**
  14403. * The base implementation of `_.assign` without support for multiple sources
  14404. * or `customizer` functions.
  14405. *
  14406. * @private
  14407. * @param {Object} object The destination object.
  14408. * @param {Object} source The source object.
  14409. * @returns {Object} Returns `object`.
  14410. */
  14411. function baseAssign(object, source) {
  14412. return object && copyObject(source, keys(source), object);
  14413. }
  14414. module.exports = baseAssign;
  14415. /***/ }),
  14416. /***/ "../../node_modules/lodash/_baseAssignIn.js":
  14417. /*!****************************************************************!*\
  14418. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignIn.js ***!
  14419. \****************************************************************/
  14420. /*! no static exports found */
  14421. /***/ (function(module, exports, __webpack_require__) {
  14422. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  14423. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14424. /**
  14425. * The base implementation of `_.assignIn` without support for multiple sources
  14426. * or `customizer` functions.
  14427. *
  14428. * @private
  14429. * @param {Object} object The destination object.
  14430. * @param {Object} source The source object.
  14431. * @returns {Object} Returns `object`.
  14432. */
  14433. function baseAssignIn(object, source) {
  14434. return object && copyObject(source, keysIn(source), object);
  14435. }
  14436. module.exports = baseAssignIn;
  14437. /***/ }),
  14438. /***/ "../../node_modules/lodash/_baseAssignValue.js":
  14439. /*!*******************************************************************!*\
  14440. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignValue.js ***!
  14441. \*******************************************************************/
  14442. /*! no static exports found */
  14443. /***/ (function(module, exports, __webpack_require__) {
  14444. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js");
  14445. /**
  14446. * The base implementation of `assignValue` and `assignMergeValue` without
  14447. * value checks.
  14448. *
  14449. * @private
  14450. * @param {Object} object The object to modify.
  14451. * @param {string} key The key of the property to assign.
  14452. * @param {*} value The value to assign.
  14453. */
  14454. function baseAssignValue(object, key, value) {
  14455. if (key == '__proto__' && defineProperty) {
  14456. defineProperty(object, key, {
  14457. 'configurable': true,
  14458. 'enumerable': true,
  14459. 'value': value,
  14460. 'writable': true
  14461. });
  14462. } else {
  14463. object[key] = value;
  14464. }
  14465. }
  14466. module.exports = baseAssignValue;
  14467. /***/ }),
  14468. /***/ "../../node_modules/lodash/_baseClone.js":
  14469. /*!*************************************************************!*\
  14470. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseClone.js ***!
  14471. \*************************************************************/
  14472. /*! no static exports found */
  14473. /***/ (function(module, exports, __webpack_require__) {
  14474. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  14475. arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  14476. assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  14477. baseAssign = __webpack_require__(/*! ./_baseAssign */ "../../node_modules/lodash/_baseAssign.js"),
  14478. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "../../node_modules/lodash/_baseAssignIn.js"),
  14479. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  14480. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  14481. copySymbols = __webpack_require__(/*! ./_copySymbols */ "../../node_modules/lodash/_copySymbols.js"),
  14482. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "../../node_modules/lodash/_copySymbolsIn.js"),
  14483. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js"),
  14484. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../node_modules/lodash/_getAllKeysIn.js"),
  14485. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  14486. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "../../node_modules/lodash/_initCloneArray.js"),
  14487. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "../../node_modules/lodash/_initCloneByTag.js"),
  14488. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  14489. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  14490. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  14491. isMap = __webpack_require__(/*! ./isMap */ "../../node_modules/lodash/isMap.js"),
  14492. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  14493. isSet = __webpack_require__(/*! ./isSet */ "../../node_modules/lodash/isSet.js"),
  14494. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js"),
  14495. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14496. /** Used to compose bitmasks for cloning. */
  14497. var CLONE_DEEP_FLAG = 1,
  14498. CLONE_FLAT_FLAG = 2,
  14499. CLONE_SYMBOLS_FLAG = 4;
  14500. /** `Object#toString` result references. */
  14501. var argsTag = '[object Arguments]',
  14502. arrayTag = '[object Array]',
  14503. boolTag = '[object Boolean]',
  14504. dateTag = '[object Date]',
  14505. errorTag = '[object Error]',
  14506. funcTag = '[object Function]',
  14507. genTag = '[object GeneratorFunction]',
  14508. mapTag = '[object Map]',
  14509. numberTag = '[object Number]',
  14510. objectTag = '[object Object]',
  14511. regexpTag = '[object RegExp]',
  14512. setTag = '[object Set]',
  14513. stringTag = '[object String]',
  14514. symbolTag = '[object Symbol]',
  14515. weakMapTag = '[object WeakMap]';
  14516. var arrayBufferTag = '[object ArrayBuffer]',
  14517. dataViewTag = '[object DataView]',
  14518. float32Tag = '[object Float32Array]',
  14519. float64Tag = '[object Float64Array]',
  14520. int8Tag = '[object Int8Array]',
  14521. int16Tag = '[object Int16Array]',
  14522. int32Tag = '[object Int32Array]',
  14523. uint8Tag = '[object Uint8Array]',
  14524. uint8ClampedTag = '[object Uint8ClampedArray]',
  14525. uint16Tag = '[object Uint16Array]',
  14526. uint32Tag = '[object Uint32Array]';
  14527. /** Used to identify `toStringTag` values supported by `_.clone`. */
  14528. var cloneableTags = {};
  14529. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  14530. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  14531. cloneableTags[boolTag] = cloneableTags[dateTag] =
  14532. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  14533. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  14534. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  14535. cloneableTags[numberTag] = cloneableTags[objectTag] =
  14536. cloneableTags[regexpTag] = cloneableTags[setTag] =
  14537. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  14538. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  14539. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  14540. cloneableTags[errorTag] = cloneableTags[funcTag] =
  14541. cloneableTags[weakMapTag] = false;
  14542. /**
  14543. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  14544. * traversed objects.
  14545. *
  14546. * @private
  14547. * @param {*} value The value to clone.
  14548. * @param {boolean} bitmask The bitmask flags.
  14549. * 1 - Deep clone
  14550. * 2 - Flatten inherited properties
  14551. * 4 - Clone symbols
  14552. * @param {Function} [customizer] The function to customize cloning.
  14553. * @param {string} [key] The key of `value`.
  14554. * @param {Object} [object] The parent object of `value`.
  14555. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  14556. * @returns {*} Returns the cloned value.
  14557. */
  14558. function baseClone(value, bitmask, customizer, key, object, stack) {
  14559. var result,
  14560. isDeep = bitmask & CLONE_DEEP_FLAG,
  14561. isFlat = bitmask & CLONE_FLAT_FLAG,
  14562. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  14563. if (customizer) {
  14564. result = object ? customizer(value, key, object, stack) : customizer(value);
  14565. }
  14566. if (result !== undefined) {
  14567. return result;
  14568. }
  14569. if (!isObject(value)) {
  14570. return value;
  14571. }
  14572. var isArr = isArray(value);
  14573. if (isArr) {
  14574. result = initCloneArray(value);
  14575. if (!isDeep) {
  14576. return copyArray(value, result);
  14577. }
  14578. } else {
  14579. var tag = getTag(value),
  14580. isFunc = tag == funcTag || tag == genTag;
  14581. if (isBuffer(value)) {
  14582. return cloneBuffer(value, isDeep);
  14583. }
  14584. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  14585. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  14586. if (!isDeep) {
  14587. return isFlat
  14588. ? copySymbolsIn(value, baseAssignIn(result, value))
  14589. : copySymbols(value, baseAssign(result, value));
  14590. }
  14591. } else {
  14592. if (!cloneableTags[tag]) {
  14593. return object ? value : {};
  14594. }
  14595. result = initCloneByTag(value, tag, isDeep);
  14596. }
  14597. }
  14598. // Check for circular references and return its corresponding clone.
  14599. stack || (stack = new Stack);
  14600. var stacked = stack.get(value);
  14601. if (stacked) {
  14602. return stacked;
  14603. }
  14604. stack.set(value, result);
  14605. if (isSet(value)) {
  14606. value.forEach(function(subValue) {
  14607. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  14608. });
  14609. } else if (isMap(value)) {
  14610. value.forEach(function(subValue, key) {
  14611. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  14612. });
  14613. }
  14614. var keysFunc = isFull
  14615. ? (isFlat ? getAllKeysIn : getAllKeys)
  14616. : (isFlat ? keysIn : keys);
  14617. var props = isArr ? undefined : keysFunc(value);
  14618. arrayEach(props || value, function(subValue, key) {
  14619. if (props) {
  14620. key = subValue;
  14621. subValue = value[key];
  14622. }
  14623. // Recursively populate clone (susceptible to call stack limits).
  14624. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  14625. });
  14626. return result;
  14627. }
  14628. module.exports = baseClone;
  14629. /***/ }),
  14630. /***/ "../../node_modules/lodash/_baseCreate.js":
  14631. /*!**************************************************************!*\
  14632. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseCreate.js ***!
  14633. \**************************************************************/
  14634. /*! no static exports found */
  14635. /***/ (function(module, exports, __webpack_require__) {
  14636. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  14637. /** Built-in value references. */
  14638. var objectCreate = Object.create;
  14639. /**
  14640. * The base implementation of `_.create` without support for assigning
  14641. * properties to the created object.
  14642. *
  14643. * @private
  14644. * @param {Object} proto The object to inherit from.
  14645. * @returns {Object} Returns the new object.
  14646. */
  14647. var baseCreate = (function() {
  14648. function object() {}
  14649. return function(proto) {
  14650. if (!isObject(proto)) {
  14651. return {};
  14652. }
  14653. if (objectCreate) {
  14654. return objectCreate(proto);
  14655. }
  14656. object.prototype = proto;
  14657. var result = new object;
  14658. object.prototype = undefined;
  14659. return result;
  14660. };
  14661. }());
  14662. module.exports = baseCreate;
  14663. /***/ }),
  14664. /***/ "../../node_modules/lodash/_baseEach.js":
  14665. /*!************************************************************!*\
  14666. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseEach.js ***!
  14667. \************************************************************/
  14668. /*! no static exports found */
  14669. /***/ (function(module, exports, __webpack_require__) {
  14670. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  14671. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "../../node_modules/lodash/_createBaseEach.js");
  14672. /**
  14673. * The base implementation of `_.forEach` without support for iteratee shorthands.
  14674. *
  14675. * @private
  14676. * @param {Array|Object} collection The collection to iterate over.
  14677. * @param {Function} iteratee The function invoked per iteration.
  14678. * @returns {Array|Object} Returns `collection`.
  14679. */
  14680. var baseEach = createBaseEach(baseForOwn);
  14681. module.exports = baseEach;
  14682. /***/ }),
  14683. /***/ "../../node_modules/lodash/_baseExtremum.js":
  14684. /*!****************************************************************!*\
  14685. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseExtremum.js ***!
  14686. \****************************************************************/
  14687. /*! no static exports found */
  14688. /***/ (function(module, exports, __webpack_require__) {
  14689. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  14690. /**
  14691. * The base implementation of methods like `_.max` and `_.min` which accepts a
  14692. * `comparator` to determine the extremum value.
  14693. *
  14694. * @private
  14695. * @param {Array} array The array to iterate over.
  14696. * @param {Function} iteratee The iteratee invoked per iteration.
  14697. * @param {Function} comparator The comparator used to compare values.
  14698. * @returns {*} Returns the extremum value.
  14699. */
  14700. function baseExtremum(array, iteratee, comparator) {
  14701. var index = -1,
  14702. length = array.length;
  14703. while (++index < length) {
  14704. var value = array[index],
  14705. current = iteratee(value);
  14706. if (current != null && (computed === undefined
  14707. ? (current === current && !isSymbol(current))
  14708. : comparator(current, computed)
  14709. )) {
  14710. var computed = current,
  14711. result = value;
  14712. }
  14713. }
  14714. return result;
  14715. }
  14716. module.exports = baseExtremum;
  14717. /***/ }),
  14718. /***/ "../../node_modules/lodash/_baseFilter.js":
  14719. /*!**************************************************************!*\
  14720. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFilter.js ***!
  14721. \**************************************************************/
  14722. /*! no static exports found */
  14723. /***/ (function(module, exports, __webpack_require__) {
  14724. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js");
  14725. /**
  14726. * The base implementation of `_.filter` without support for iteratee shorthands.
  14727. *
  14728. * @private
  14729. * @param {Array|Object} collection The collection to iterate over.
  14730. * @param {Function} predicate The function invoked per iteration.
  14731. * @returns {Array} Returns the new filtered array.
  14732. */
  14733. function baseFilter(collection, predicate) {
  14734. var result = [];
  14735. baseEach(collection, function(value, index, collection) {
  14736. if (predicate(value, index, collection)) {
  14737. result.push(value);
  14738. }
  14739. });
  14740. return result;
  14741. }
  14742. module.exports = baseFilter;
  14743. /***/ }),
  14744. /***/ "../../node_modules/lodash/_baseFindIndex.js":
  14745. /*!*****************************************************************!*\
  14746. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFindIndex.js ***!
  14747. \*****************************************************************/
  14748. /*! no static exports found */
  14749. /***/ (function(module, exports) {
  14750. /**
  14751. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  14752. * support for iteratee shorthands.
  14753. *
  14754. * @private
  14755. * @param {Array} array The array to inspect.
  14756. * @param {Function} predicate The function invoked per iteration.
  14757. * @param {number} fromIndex The index to search from.
  14758. * @param {boolean} [fromRight] Specify iterating from right to left.
  14759. * @returns {number} Returns the index of the matched value, else `-1`.
  14760. */
  14761. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  14762. var length = array.length,
  14763. index = fromIndex + (fromRight ? 1 : -1);
  14764. while ((fromRight ? index-- : ++index < length)) {
  14765. if (predicate(array[index], index, array)) {
  14766. return index;
  14767. }
  14768. }
  14769. return -1;
  14770. }
  14771. module.exports = baseFindIndex;
  14772. /***/ }),
  14773. /***/ "../../node_modules/lodash/_baseFlatten.js":
  14774. /*!***************************************************************!*\
  14775. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFlatten.js ***!
  14776. \***************************************************************/
  14777. /*! no static exports found */
  14778. /***/ (function(module, exports, __webpack_require__) {
  14779. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  14780. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../node_modules/lodash/_isFlattenable.js");
  14781. /**
  14782. * The base implementation of `_.flatten` with support for restricting flattening.
  14783. *
  14784. * @private
  14785. * @param {Array} array The array to flatten.
  14786. * @param {number} depth The maximum recursion depth.
  14787. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  14788. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  14789. * @param {Array} [result=[]] The initial result value.
  14790. * @returns {Array} Returns the new flattened array.
  14791. */
  14792. function baseFlatten(array, depth, predicate, isStrict, result) {
  14793. var index = -1,
  14794. length = array.length;
  14795. predicate || (predicate = isFlattenable);
  14796. result || (result = []);
  14797. while (++index < length) {
  14798. var value = array[index];
  14799. if (depth > 0 && predicate(value)) {
  14800. if (depth > 1) {
  14801. // Recursively flatten arrays (susceptible to call stack limits).
  14802. baseFlatten(value, depth - 1, predicate, isStrict, result);
  14803. } else {
  14804. arrayPush(result, value);
  14805. }
  14806. } else if (!isStrict) {
  14807. result[result.length] = value;
  14808. }
  14809. }
  14810. return result;
  14811. }
  14812. module.exports = baseFlatten;
  14813. /***/ }),
  14814. /***/ "../../node_modules/lodash/_baseFor.js":
  14815. /*!***********************************************************!*\
  14816. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFor.js ***!
  14817. \***********************************************************/
  14818. /*! no static exports found */
  14819. /***/ (function(module, exports, __webpack_require__) {
  14820. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../node_modules/lodash/_createBaseFor.js");
  14821. /**
  14822. * The base implementation of `baseForOwn` which iterates over `object`
  14823. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  14824. * Iteratee functions may exit iteration early by explicitly returning `false`.
  14825. *
  14826. * @private
  14827. * @param {Object} object The object to iterate over.
  14828. * @param {Function} iteratee The function invoked per iteration.
  14829. * @param {Function} keysFunc The function to get the keys of `object`.
  14830. * @returns {Object} Returns `object`.
  14831. */
  14832. var baseFor = createBaseFor();
  14833. module.exports = baseFor;
  14834. /***/ }),
  14835. /***/ "../../node_modules/lodash/_baseForOwn.js":
  14836. /*!**************************************************************!*\
  14837. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseForOwn.js ***!
  14838. \**************************************************************/
  14839. /*! no static exports found */
  14840. /***/ (function(module, exports, __webpack_require__) {
  14841. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  14842. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  14843. /**
  14844. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  14845. *
  14846. * @private
  14847. * @param {Object} object The object to iterate over.
  14848. * @param {Function} iteratee The function invoked per iteration.
  14849. * @returns {Object} Returns `object`.
  14850. */
  14851. function baseForOwn(object, iteratee) {
  14852. return object && baseFor(object, iteratee, keys);
  14853. }
  14854. module.exports = baseForOwn;
  14855. /***/ }),
  14856. /***/ "../../node_modules/lodash/_baseGet.js":
  14857. /*!***********************************************************!*\
  14858. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGet.js ***!
  14859. \***********************************************************/
  14860. /*! no static exports found */
  14861. /***/ (function(module, exports, __webpack_require__) {
  14862. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  14863. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  14864. /**
  14865. * The base implementation of `_.get` without support for default values.
  14866. *
  14867. * @private
  14868. * @param {Object} object The object to query.
  14869. * @param {Array|string} path The path of the property to get.
  14870. * @returns {*} Returns the resolved value.
  14871. */
  14872. function baseGet(object, path) {
  14873. path = castPath(path, object);
  14874. var index = 0,
  14875. length = path.length;
  14876. while (object != null && index < length) {
  14877. object = object[toKey(path[index++])];
  14878. }
  14879. return (index && index == length) ? object : undefined;
  14880. }
  14881. module.exports = baseGet;
  14882. /***/ }),
  14883. /***/ "../../node_modules/lodash/_baseGetAllKeys.js":
  14884. /*!******************************************************************!*\
  14885. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetAllKeys.js ***!
  14886. \******************************************************************/
  14887. /*! no static exports found */
  14888. /***/ (function(module, exports, __webpack_require__) {
  14889. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  14890. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14891. /**
  14892. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  14893. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  14894. * symbols of `object`.
  14895. *
  14896. * @private
  14897. * @param {Object} object The object to query.
  14898. * @param {Function} keysFunc The function to get the keys of `object`.
  14899. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  14900. * @returns {Array} Returns the array of property names and symbols.
  14901. */
  14902. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  14903. var result = keysFunc(object);
  14904. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  14905. }
  14906. module.exports = baseGetAllKeys;
  14907. /***/ }),
  14908. /***/ "../../node_modules/lodash/_baseGetTag.js":
  14909. /*!**************************************************************!*\
  14910. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetTag.js ***!
  14911. \**************************************************************/
  14912. /*! no static exports found */
  14913. /***/ (function(module, exports, __webpack_require__) {
  14914. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  14915. getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
  14916. objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
  14917. /** `Object#toString` result references. */
  14918. var nullTag = '[object Null]',
  14919. undefinedTag = '[object Undefined]';
  14920. /** Built-in value references. */
  14921. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  14922. /**
  14923. * The base implementation of `getTag` without fallbacks for buggy environments.
  14924. *
  14925. * @private
  14926. * @param {*} value The value to query.
  14927. * @returns {string} Returns the `toStringTag`.
  14928. */
  14929. function baseGetTag(value) {
  14930. if (value == null) {
  14931. return value === undefined ? undefinedTag : nullTag;
  14932. }
  14933. return (symToStringTag && symToStringTag in Object(value))
  14934. ? getRawTag(value)
  14935. : objectToString(value);
  14936. }
  14937. module.exports = baseGetTag;
  14938. /***/ }),
  14939. /***/ "../../node_modules/lodash/_baseGt.js":
  14940. /*!**********************************************************!*\
  14941. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGt.js ***!
  14942. \**********************************************************/
  14943. /*! no static exports found */
  14944. /***/ (function(module, exports) {
  14945. /**
  14946. * The base implementation of `_.gt` which doesn't coerce arguments.
  14947. *
  14948. * @private
  14949. * @param {*} value The value to compare.
  14950. * @param {*} other The other value to compare.
  14951. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  14952. * else `false`.
  14953. */
  14954. function baseGt(value, other) {
  14955. return value > other;
  14956. }
  14957. module.exports = baseGt;
  14958. /***/ }),
  14959. /***/ "../../node_modules/lodash/_baseHas.js":
  14960. /*!***********************************************************!*\
  14961. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHas.js ***!
  14962. \***********************************************************/
  14963. /*! no static exports found */
  14964. /***/ (function(module, exports) {
  14965. /** Used for built-in method references. */
  14966. var objectProto = Object.prototype;
  14967. /** Used to check objects for own properties. */
  14968. var hasOwnProperty = objectProto.hasOwnProperty;
  14969. /**
  14970. * The base implementation of `_.has` without support for deep paths.
  14971. *
  14972. * @private
  14973. * @param {Object} [object] The object to query.
  14974. * @param {Array|string} key The key to check.
  14975. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  14976. */
  14977. function baseHas(object, key) {
  14978. return object != null && hasOwnProperty.call(object, key);
  14979. }
  14980. module.exports = baseHas;
  14981. /***/ }),
  14982. /***/ "../../node_modules/lodash/_baseHasIn.js":
  14983. /*!*************************************************************!*\
  14984. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHasIn.js ***!
  14985. \*************************************************************/
  14986. /*! no static exports found */
  14987. /***/ (function(module, exports) {
  14988. /**
  14989. * The base implementation of `_.hasIn` without support for deep paths.
  14990. *
  14991. * @private
  14992. * @param {Object} [object] The object to query.
  14993. * @param {Array|string} key The key to check.
  14994. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  14995. */
  14996. function baseHasIn(object, key) {
  14997. return object != null && key in Object(object);
  14998. }
  14999. module.exports = baseHasIn;
  15000. /***/ }),
  15001. /***/ "../../node_modules/lodash/_baseIndexOf.js":
  15002. /*!***************************************************************!*\
  15003. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIndexOf.js ***!
  15004. \***************************************************************/
  15005. /*! no static exports found */
  15006. /***/ (function(module, exports, __webpack_require__) {
  15007. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  15008. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "../../node_modules/lodash/_baseIsNaN.js"),
  15009. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "../../node_modules/lodash/_strictIndexOf.js");
  15010. /**
  15011. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  15012. *
  15013. * @private
  15014. * @param {Array} array The array to inspect.
  15015. * @param {*} value The value to search for.
  15016. * @param {number} fromIndex The index to search from.
  15017. * @returns {number} Returns the index of the matched value, else `-1`.
  15018. */
  15019. function baseIndexOf(array, value, fromIndex) {
  15020. return value === value
  15021. ? strictIndexOf(array, value, fromIndex)
  15022. : baseFindIndex(array, baseIsNaN, fromIndex);
  15023. }
  15024. module.exports = baseIndexOf;
  15025. /***/ }),
  15026. /***/ "../../node_modules/lodash/_baseIsArguments.js":
  15027. /*!*******************************************************************!*\
  15028. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsArguments.js ***!
  15029. \*******************************************************************/
  15030. /*! no static exports found */
  15031. /***/ (function(module, exports, __webpack_require__) {
  15032. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15033. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15034. /** `Object#toString` result references. */
  15035. var argsTag = '[object Arguments]';
  15036. /**
  15037. * The base implementation of `_.isArguments`.
  15038. *
  15039. * @private
  15040. * @param {*} value The value to check.
  15041. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  15042. */
  15043. function baseIsArguments(value) {
  15044. return isObjectLike(value) && baseGetTag(value) == argsTag;
  15045. }
  15046. module.exports = baseIsArguments;
  15047. /***/ }),
  15048. /***/ "../../node_modules/lodash/_baseIsEqual.js":
  15049. /*!***************************************************************!*\
  15050. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqual.js ***!
  15051. \***************************************************************/
  15052. /*! no static exports found */
  15053. /***/ (function(module, exports, __webpack_require__) {
  15054. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
  15055. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15056. /**
  15057. * The base implementation of `_.isEqual` which supports partial comparisons
  15058. * and tracks traversed objects.
  15059. *
  15060. * @private
  15061. * @param {*} value The value to compare.
  15062. * @param {*} other The other value to compare.
  15063. * @param {boolean} bitmask The bitmask flags.
  15064. * 1 - Unordered comparison
  15065. * 2 - Partial comparison
  15066. * @param {Function} [customizer] The function to customize comparisons.
  15067. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  15068. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  15069. */
  15070. function baseIsEqual(value, other, bitmask, customizer, stack) {
  15071. if (value === other) {
  15072. return true;
  15073. }
  15074. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  15075. return value !== value && other !== other;
  15076. }
  15077. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  15078. }
  15079. module.exports = baseIsEqual;
  15080. /***/ }),
  15081. /***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
  15082. /*!*******************************************************************!*\
  15083. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqualDeep.js ***!
  15084. \*******************************************************************/
  15085. /*! no static exports found */
  15086. /***/ (function(module, exports, __webpack_require__) {
  15087. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  15088. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  15089. equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
  15090. equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
  15091. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15092. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15093. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  15094. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  15095. /** Used to compose bitmasks for value comparisons. */
  15096. var COMPARE_PARTIAL_FLAG = 1;
  15097. /** `Object#toString` result references. */
  15098. var argsTag = '[object Arguments]',
  15099. arrayTag = '[object Array]',
  15100. objectTag = '[object Object]';
  15101. /** Used for built-in method references. */
  15102. var objectProto = Object.prototype;
  15103. /** Used to check objects for own properties. */
  15104. var hasOwnProperty = objectProto.hasOwnProperty;
  15105. /**
  15106. * A specialized version of `baseIsEqual` for arrays and objects which performs
  15107. * deep comparisons and tracks traversed objects enabling objects with circular
  15108. * references to be compared.
  15109. *
  15110. * @private
  15111. * @param {Object} object The object to compare.
  15112. * @param {Object} other The other object to compare.
  15113. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  15114. * @param {Function} customizer The function to customize comparisons.
  15115. * @param {Function} equalFunc The function to determine equivalents of values.
  15116. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  15117. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  15118. */
  15119. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  15120. var objIsArr = isArray(object),
  15121. othIsArr = isArray(other),
  15122. objTag = objIsArr ? arrayTag : getTag(object),
  15123. othTag = othIsArr ? arrayTag : getTag(other);
  15124. objTag = objTag == argsTag ? objectTag : objTag;
  15125. othTag = othTag == argsTag ? objectTag : othTag;
  15126. var objIsObj = objTag == objectTag,
  15127. othIsObj = othTag == objectTag,
  15128. isSameTag = objTag == othTag;
  15129. if (isSameTag && isBuffer(object)) {
  15130. if (!isBuffer(other)) {
  15131. return false;
  15132. }
  15133. objIsArr = true;
  15134. objIsObj = false;
  15135. }
  15136. if (isSameTag && !objIsObj) {
  15137. stack || (stack = new Stack);
  15138. return (objIsArr || isTypedArray(object))
  15139. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  15140. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  15141. }
  15142. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  15143. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  15144. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  15145. if (objIsWrapped || othIsWrapped) {
  15146. var objUnwrapped = objIsWrapped ? object.value() : object,
  15147. othUnwrapped = othIsWrapped ? other.value() : other;
  15148. stack || (stack = new Stack);
  15149. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  15150. }
  15151. }
  15152. if (!isSameTag) {
  15153. return false;
  15154. }
  15155. stack || (stack = new Stack);
  15156. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  15157. }
  15158. module.exports = baseIsEqualDeep;
  15159. /***/ }),
  15160. /***/ "../../node_modules/lodash/_baseIsMap.js":
  15161. /*!*************************************************************!*\
  15162. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMap.js ***!
  15163. \*************************************************************/
  15164. /*! no static exports found */
  15165. /***/ (function(module, exports, __webpack_require__) {
  15166. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15167. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15168. /** `Object#toString` result references. */
  15169. var mapTag = '[object Map]';
  15170. /**
  15171. * The base implementation of `_.isMap` without Node.js optimizations.
  15172. *
  15173. * @private
  15174. * @param {*} value The value to check.
  15175. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15176. */
  15177. function baseIsMap(value) {
  15178. return isObjectLike(value) && getTag(value) == mapTag;
  15179. }
  15180. module.exports = baseIsMap;
  15181. /***/ }),
  15182. /***/ "../../node_modules/lodash/_baseIsMatch.js":
  15183. /*!***************************************************************!*\
  15184. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMatch.js ***!
  15185. \***************************************************************/
  15186. /*! no static exports found */
  15187. /***/ (function(module, exports, __webpack_require__) {
  15188. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  15189. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
  15190. /** Used to compose bitmasks for value comparisons. */
  15191. var COMPARE_PARTIAL_FLAG = 1,
  15192. COMPARE_UNORDERED_FLAG = 2;
  15193. /**
  15194. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  15195. *
  15196. * @private
  15197. * @param {Object} object The object to inspect.
  15198. * @param {Object} source The object of property values to match.
  15199. * @param {Array} matchData The property names, values, and compare flags to match.
  15200. * @param {Function} [customizer] The function to customize comparisons.
  15201. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  15202. */
  15203. function baseIsMatch(object, source, matchData, customizer) {
  15204. var index = matchData.length,
  15205. length = index,
  15206. noCustomizer = !customizer;
  15207. if (object == null) {
  15208. return !length;
  15209. }
  15210. object = Object(object);
  15211. while (index--) {
  15212. var data = matchData[index];
  15213. if ((noCustomizer && data[2])
  15214. ? data[1] !== object[data[0]]
  15215. : !(data[0] in object)
  15216. ) {
  15217. return false;
  15218. }
  15219. }
  15220. while (++index < length) {
  15221. data = matchData[index];
  15222. var key = data[0],
  15223. objValue = object[key],
  15224. srcValue = data[1];
  15225. if (noCustomizer && data[2]) {
  15226. if (objValue === undefined && !(key in object)) {
  15227. return false;
  15228. }
  15229. } else {
  15230. var stack = new Stack;
  15231. if (customizer) {
  15232. var result = customizer(objValue, srcValue, key, object, source, stack);
  15233. }
  15234. if (!(result === undefined
  15235. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  15236. : result
  15237. )) {
  15238. return false;
  15239. }
  15240. }
  15241. }
  15242. return true;
  15243. }
  15244. module.exports = baseIsMatch;
  15245. /***/ }),
  15246. /***/ "../../node_modules/lodash/_baseIsNaN.js":
  15247. /*!*************************************************************!*\
  15248. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNaN.js ***!
  15249. \*************************************************************/
  15250. /*! no static exports found */
  15251. /***/ (function(module, exports) {
  15252. /**
  15253. * The base implementation of `_.isNaN` without support for number objects.
  15254. *
  15255. * @private
  15256. * @param {*} value The value to check.
  15257. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  15258. */
  15259. function baseIsNaN(value) {
  15260. return value !== value;
  15261. }
  15262. module.exports = baseIsNaN;
  15263. /***/ }),
  15264. /***/ "../../node_modules/lodash/_baseIsNative.js":
  15265. /*!****************************************************************!*\
  15266. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNative.js ***!
  15267. \****************************************************************/
  15268. /*! no static exports found */
  15269. /***/ (function(module, exports, __webpack_require__) {
  15270. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15271. isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
  15272. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15273. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  15274. /**
  15275. * Used to match `RegExp`
  15276. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  15277. */
  15278. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  15279. /** Used to detect host constructors (Safari). */
  15280. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  15281. /** Used for built-in method references. */
  15282. var funcProto = Function.prototype,
  15283. objectProto = Object.prototype;
  15284. /** Used to resolve the decompiled source of functions. */
  15285. var funcToString = funcProto.toString;
  15286. /** Used to check objects for own properties. */
  15287. var hasOwnProperty = objectProto.hasOwnProperty;
  15288. /** Used to detect if a method is native. */
  15289. var reIsNative = RegExp('^' +
  15290. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  15291. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  15292. );
  15293. /**
  15294. * The base implementation of `_.isNative` without bad shim checks.
  15295. *
  15296. * @private
  15297. * @param {*} value The value to check.
  15298. * @returns {boolean} Returns `true` if `value` is a native function,
  15299. * else `false`.
  15300. */
  15301. function baseIsNative(value) {
  15302. if (!isObject(value) || isMasked(value)) {
  15303. return false;
  15304. }
  15305. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  15306. return pattern.test(toSource(value));
  15307. }
  15308. module.exports = baseIsNative;
  15309. /***/ }),
  15310. /***/ "../../node_modules/lodash/_baseIsSet.js":
  15311. /*!*************************************************************!*\
  15312. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsSet.js ***!
  15313. \*************************************************************/
  15314. /*! no static exports found */
  15315. /***/ (function(module, exports, __webpack_require__) {
  15316. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15317. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15318. /** `Object#toString` result references. */
  15319. var setTag = '[object Set]';
  15320. /**
  15321. * The base implementation of `_.isSet` without Node.js optimizations.
  15322. *
  15323. * @private
  15324. * @param {*} value The value to check.
  15325. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  15326. */
  15327. function baseIsSet(value) {
  15328. return isObjectLike(value) && getTag(value) == setTag;
  15329. }
  15330. module.exports = baseIsSet;
  15331. /***/ }),
  15332. /***/ "../../node_modules/lodash/_baseIsTypedArray.js":
  15333. /*!********************************************************************!*\
  15334. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsTypedArray.js ***!
  15335. \********************************************************************/
  15336. /*! no static exports found */
  15337. /***/ (function(module, exports, __webpack_require__) {
  15338. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15339. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  15340. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15341. /** `Object#toString` result references. */
  15342. var argsTag = '[object Arguments]',
  15343. arrayTag = '[object Array]',
  15344. boolTag = '[object Boolean]',
  15345. dateTag = '[object Date]',
  15346. errorTag = '[object Error]',
  15347. funcTag = '[object Function]',
  15348. mapTag = '[object Map]',
  15349. numberTag = '[object Number]',
  15350. objectTag = '[object Object]',
  15351. regexpTag = '[object RegExp]',
  15352. setTag = '[object Set]',
  15353. stringTag = '[object String]',
  15354. weakMapTag = '[object WeakMap]';
  15355. var arrayBufferTag = '[object ArrayBuffer]',
  15356. dataViewTag = '[object DataView]',
  15357. float32Tag = '[object Float32Array]',
  15358. float64Tag = '[object Float64Array]',
  15359. int8Tag = '[object Int8Array]',
  15360. int16Tag = '[object Int16Array]',
  15361. int32Tag = '[object Int32Array]',
  15362. uint8Tag = '[object Uint8Array]',
  15363. uint8ClampedTag = '[object Uint8ClampedArray]',
  15364. uint16Tag = '[object Uint16Array]',
  15365. uint32Tag = '[object Uint32Array]';
  15366. /** Used to identify `toStringTag` values of typed arrays. */
  15367. var typedArrayTags = {};
  15368. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  15369. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  15370. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  15371. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  15372. typedArrayTags[uint32Tag] = true;
  15373. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  15374. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  15375. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  15376. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  15377. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  15378. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  15379. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  15380. typedArrayTags[weakMapTag] = false;
  15381. /**
  15382. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  15383. *
  15384. * @private
  15385. * @param {*} value The value to check.
  15386. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  15387. */
  15388. function baseIsTypedArray(value) {
  15389. return isObjectLike(value) &&
  15390. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  15391. }
  15392. module.exports = baseIsTypedArray;
  15393. /***/ }),
  15394. /***/ "../../node_modules/lodash/_baseIteratee.js":
  15395. /*!****************************************************************!*\
  15396. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIteratee.js ***!
  15397. \****************************************************************/
  15398. /*! no static exports found */
  15399. /***/ (function(module, exports, __webpack_require__) {
  15400. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../node_modules/lodash/_baseMatches.js"),
  15401. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../node_modules/lodash/_baseMatchesProperty.js"),
  15402. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  15403. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15404. property = __webpack_require__(/*! ./property */ "../../node_modules/lodash/property.js");
  15405. /**
  15406. * The base implementation of `_.iteratee`.
  15407. *
  15408. * @private
  15409. * @param {*} [value=_.identity] The value to convert to an iteratee.
  15410. * @returns {Function} Returns the iteratee.
  15411. */
  15412. function baseIteratee(value) {
  15413. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  15414. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  15415. if (typeof value == 'function') {
  15416. return value;
  15417. }
  15418. if (value == null) {
  15419. return identity;
  15420. }
  15421. if (typeof value == 'object') {
  15422. return isArray(value)
  15423. ? baseMatchesProperty(value[0], value[1])
  15424. : baseMatches(value);
  15425. }
  15426. return property(value);
  15427. }
  15428. module.exports = baseIteratee;
  15429. /***/ }),
  15430. /***/ "../../node_modules/lodash/_baseKeys.js":
  15431. /*!************************************************************!*\
  15432. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeys.js ***!
  15433. \************************************************************/
  15434. /*! no static exports found */
  15435. /***/ (function(module, exports, __webpack_require__) {
  15436. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  15437. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
  15438. /** Used for built-in method references. */
  15439. var objectProto = Object.prototype;
  15440. /** Used to check objects for own properties. */
  15441. var hasOwnProperty = objectProto.hasOwnProperty;
  15442. /**
  15443. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  15444. *
  15445. * @private
  15446. * @param {Object} object The object to query.
  15447. * @returns {Array} Returns the array of property names.
  15448. */
  15449. function baseKeys(object) {
  15450. if (!isPrototype(object)) {
  15451. return nativeKeys(object);
  15452. }
  15453. var result = [];
  15454. for (var key in Object(object)) {
  15455. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  15456. result.push(key);
  15457. }
  15458. }
  15459. return result;
  15460. }
  15461. module.exports = baseKeys;
  15462. /***/ }),
  15463. /***/ "../../node_modules/lodash/_baseKeysIn.js":
  15464. /*!**************************************************************!*\
  15465. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeysIn.js ***!
  15466. \**************************************************************/
  15467. /*! no static exports found */
  15468. /***/ (function(module, exports, __webpack_require__) {
  15469. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15470. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  15471. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "../../node_modules/lodash/_nativeKeysIn.js");
  15472. /** Used for built-in method references. */
  15473. var objectProto = Object.prototype;
  15474. /** Used to check objects for own properties. */
  15475. var hasOwnProperty = objectProto.hasOwnProperty;
  15476. /**
  15477. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  15478. *
  15479. * @private
  15480. * @param {Object} object The object to query.
  15481. * @returns {Array} Returns the array of property names.
  15482. */
  15483. function baseKeysIn(object) {
  15484. if (!isObject(object)) {
  15485. return nativeKeysIn(object);
  15486. }
  15487. var isProto = isPrototype(object),
  15488. result = [];
  15489. for (var key in object) {
  15490. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  15491. result.push(key);
  15492. }
  15493. }
  15494. return result;
  15495. }
  15496. module.exports = baseKeysIn;
  15497. /***/ }),
  15498. /***/ "../../node_modules/lodash/_baseLt.js":
  15499. /*!**********************************************************!*\
  15500. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseLt.js ***!
  15501. \**********************************************************/
  15502. /*! no static exports found */
  15503. /***/ (function(module, exports) {
  15504. /**
  15505. * The base implementation of `_.lt` which doesn't coerce arguments.
  15506. *
  15507. * @private
  15508. * @param {*} value The value to compare.
  15509. * @param {*} other The other value to compare.
  15510. * @returns {boolean} Returns `true` if `value` is less than `other`,
  15511. * else `false`.
  15512. */
  15513. function baseLt(value, other) {
  15514. return value < other;
  15515. }
  15516. module.exports = baseLt;
  15517. /***/ }),
  15518. /***/ "../../node_modules/lodash/_baseMap.js":
  15519. /*!***********************************************************!*\
  15520. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMap.js ***!
  15521. \***********************************************************/
  15522. /*! no static exports found */
  15523. /***/ (function(module, exports, __webpack_require__) {
  15524. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  15525. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15526. /**
  15527. * The base implementation of `_.map` without support for iteratee shorthands.
  15528. *
  15529. * @private
  15530. * @param {Array|Object} collection The collection to iterate over.
  15531. * @param {Function} iteratee The function invoked per iteration.
  15532. * @returns {Array} Returns the new mapped array.
  15533. */
  15534. function baseMap(collection, iteratee) {
  15535. var index = -1,
  15536. result = isArrayLike(collection) ? Array(collection.length) : [];
  15537. baseEach(collection, function(value, key, collection) {
  15538. result[++index] = iteratee(value, key, collection);
  15539. });
  15540. return result;
  15541. }
  15542. module.exports = baseMap;
  15543. /***/ }),
  15544. /***/ "../../node_modules/lodash/_baseMatches.js":
  15545. /*!***************************************************************!*\
  15546. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatches.js ***!
  15547. \***************************************************************/
  15548. /*! no static exports found */
  15549. /***/ (function(module, exports, __webpack_require__) {
  15550. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../node_modules/lodash/_baseIsMatch.js"),
  15551. getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../node_modules/lodash/_getMatchData.js"),
  15552. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js");
  15553. /**
  15554. * The base implementation of `_.matches` which doesn't clone `source`.
  15555. *
  15556. * @private
  15557. * @param {Object} source The object of property values to match.
  15558. * @returns {Function} Returns the new spec function.
  15559. */
  15560. function baseMatches(source) {
  15561. var matchData = getMatchData(source);
  15562. if (matchData.length == 1 && matchData[0][2]) {
  15563. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  15564. }
  15565. return function(object) {
  15566. return object === source || baseIsMatch(object, source, matchData);
  15567. };
  15568. }
  15569. module.exports = baseMatches;
  15570. /***/ }),
  15571. /***/ "../../node_modules/lodash/_baseMatchesProperty.js":
  15572. /*!***********************************************************************!*\
  15573. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatchesProperty.js ***!
  15574. \***********************************************************************/
  15575. /*! no static exports found */
  15576. /***/ (function(module, exports, __webpack_require__) {
  15577. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js"),
  15578. get = __webpack_require__(/*! ./get */ "../../node_modules/lodash/get.js"),
  15579. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js"),
  15580. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  15581. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  15582. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js"),
  15583. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  15584. /** Used to compose bitmasks for value comparisons. */
  15585. var COMPARE_PARTIAL_FLAG = 1,
  15586. COMPARE_UNORDERED_FLAG = 2;
  15587. /**
  15588. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  15589. *
  15590. * @private
  15591. * @param {string} path The path of the property to get.
  15592. * @param {*} srcValue The value to match.
  15593. * @returns {Function} Returns the new spec function.
  15594. */
  15595. function baseMatchesProperty(path, srcValue) {
  15596. if (isKey(path) && isStrictComparable(srcValue)) {
  15597. return matchesStrictComparable(toKey(path), srcValue);
  15598. }
  15599. return function(object) {
  15600. var objValue = get(object, path);
  15601. return (objValue === undefined && objValue === srcValue)
  15602. ? hasIn(object, path)
  15603. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  15604. };
  15605. }
  15606. module.exports = baseMatchesProperty;
  15607. /***/ }),
  15608. /***/ "../../node_modules/lodash/_baseMerge.js":
  15609. /*!*************************************************************!*\
  15610. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMerge.js ***!
  15611. \*************************************************************/
  15612. /*! no static exports found */
  15613. /***/ (function(module, exports, __webpack_require__) {
  15614. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  15615. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  15616. baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  15617. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "../../node_modules/lodash/_baseMergeDeep.js"),
  15618. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15619. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js"),
  15620. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js");
  15621. /**
  15622. * The base implementation of `_.merge` without support for multiple sources.
  15623. *
  15624. * @private
  15625. * @param {Object} object The destination object.
  15626. * @param {Object} source The source object.
  15627. * @param {number} srcIndex The index of `source`.
  15628. * @param {Function} [customizer] The function to customize merged values.
  15629. * @param {Object} [stack] Tracks traversed source values and their merged
  15630. * counterparts.
  15631. */
  15632. function baseMerge(object, source, srcIndex, customizer, stack) {
  15633. if (object === source) {
  15634. return;
  15635. }
  15636. baseFor(source, function(srcValue, key) {
  15637. stack || (stack = new Stack);
  15638. if (isObject(srcValue)) {
  15639. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  15640. }
  15641. else {
  15642. var newValue = customizer
  15643. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  15644. : undefined;
  15645. if (newValue === undefined) {
  15646. newValue = srcValue;
  15647. }
  15648. assignMergeValue(object, key, newValue);
  15649. }
  15650. }, keysIn);
  15651. }
  15652. module.exports = baseMerge;
  15653. /***/ }),
  15654. /***/ "../../node_modules/lodash/_baseMergeDeep.js":
  15655. /*!*****************************************************************!*\
  15656. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMergeDeep.js ***!
  15657. \*****************************************************************/
  15658. /*! no static exports found */
  15659. /***/ (function(module, exports, __webpack_require__) {
  15660. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  15661. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  15662. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js"),
  15663. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  15664. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  15665. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  15666. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15667. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js"),
  15668. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  15669. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15670. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15671. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../node_modules/lodash/isPlainObject.js"),
  15672. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js"),
  15673. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js"),
  15674. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "../../node_modules/lodash/toPlainObject.js");
  15675. /**
  15676. * A specialized version of `baseMerge` for arrays and objects which performs
  15677. * deep merges and tracks traversed objects enabling objects with circular
  15678. * references to be merged.
  15679. *
  15680. * @private
  15681. * @param {Object} object The destination object.
  15682. * @param {Object} source The source object.
  15683. * @param {string} key The key of the value to merge.
  15684. * @param {number} srcIndex The index of `source`.
  15685. * @param {Function} mergeFunc The function to merge values.
  15686. * @param {Function} [customizer] The function to customize assigned values.
  15687. * @param {Object} [stack] Tracks traversed source values and their merged
  15688. * counterparts.
  15689. */
  15690. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  15691. var objValue = safeGet(object, key),
  15692. srcValue = safeGet(source, key),
  15693. stacked = stack.get(srcValue);
  15694. if (stacked) {
  15695. assignMergeValue(object, key, stacked);
  15696. return;
  15697. }
  15698. var newValue = customizer
  15699. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  15700. : undefined;
  15701. var isCommon = newValue === undefined;
  15702. if (isCommon) {
  15703. var isArr = isArray(srcValue),
  15704. isBuff = !isArr && isBuffer(srcValue),
  15705. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  15706. newValue = srcValue;
  15707. if (isArr || isBuff || isTyped) {
  15708. if (isArray(objValue)) {
  15709. newValue = objValue;
  15710. }
  15711. else if (isArrayLikeObject(objValue)) {
  15712. newValue = copyArray(objValue);
  15713. }
  15714. else if (isBuff) {
  15715. isCommon = false;
  15716. newValue = cloneBuffer(srcValue, true);
  15717. }
  15718. else if (isTyped) {
  15719. isCommon = false;
  15720. newValue = cloneTypedArray(srcValue, true);
  15721. }
  15722. else {
  15723. newValue = [];
  15724. }
  15725. }
  15726. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  15727. newValue = objValue;
  15728. if (isArguments(objValue)) {
  15729. newValue = toPlainObject(objValue);
  15730. }
  15731. else if (!isObject(objValue) || isFunction(objValue)) {
  15732. newValue = initCloneObject(srcValue);
  15733. }
  15734. }
  15735. else {
  15736. isCommon = false;
  15737. }
  15738. }
  15739. if (isCommon) {
  15740. // Recursively merge objects and arrays (susceptible to call stack limits).
  15741. stack.set(srcValue, newValue);
  15742. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  15743. stack['delete'](srcValue);
  15744. }
  15745. assignMergeValue(object, key, newValue);
  15746. }
  15747. module.exports = baseMergeDeep;
  15748. /***/ }),
  15749. /***/ "../../node_modules/lodash/_baseOrderBy.js":
  15750. /*!***************************************************************!*\
  15751. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseOrderBy.js ***!
  15752. \***************************************************************/
  15753. /*! no static exports found */
  15754. /***/ (function(module, exports, __webpack_require__) {
  15755. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  15756. baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  15757. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  15758. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  15759. baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "../../node_modules/lodash/_baseSortBy.js"),
  15760. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15761. compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "../../node_modules/lodash/_compareMultiple.js"),
  15762. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  15763. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  15764. /**
  15765. * The base implementation of `_.orderBy` without param guards.
  15766. *
  15767. * @private
  15768. * @param {Array|Object} collection The collection to iterate over.
  15769. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  15770. * @param {string[]} orders The sort orders of `iteratees`.
  15771. * @returns {Array} Returns the new sorted array.
  15772. */
  15773. function baseOrderBy(collection, iteratees, orders) {
  15774. if (iteratees.length) {
  15775. iteratees = arrayMap(iteratees, function(iteratee) {
  15776. if (isArray(iteratee)) {
  15777. return function(value) {
  15778. return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
  15779. }
  15780. }
  15781. return iteratee;
  15782. });
  15783. } else {
  15784. iteratees = [identity];
  15785. }
  15786. var index = -1;
  15787. iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
  15788. var result = baseMap(collection, function(value, key, collection) {
  15789. var criteria = arrayMap(iteratees, function(iteratee) {
  15790. return iteratee(value);
  15791. });
  15792. return { 'criteria': criteria, 'index': ++index, 'value': value };
  15793. });
  15794. return baseSortBy(result, function(object, other) {
  15795. return compareMultiple(object, other, orders);
  15796. });
  15797. }
  15798. module.exports = baseOrderBy;
  15799. /***/ }),
  15800. /***/ "../../node_modules/lodash/_basePick.js":
  15801. /*!************************************************************!*\
  15802. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePick.js ***!
  15803. \************************************************************/
  15804. /*! no static exports found */
  15805. /***/ (function(module, exports, __webpack_require__) {
  15806. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../node_modules/lodash/_basePickBy.js"),
  15807. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js");
  15808. /**
  15809. * The base implementation of `_.pick` without support for individual
  15810. * property identifiers.
  15811. *
  15812. * @private
  15813. * @param {Object} object The source object.
  15814. * @param {string[]} paths The property paths to pick.
  15815. * @returns {Object} Returns the new object.
  15816. */
  15817. function basePick(object, paths) {
  15818. return basePickBy(object, paths, function(value, path) {
  15819. return hasIn(object, path);
  15820. });
  15821. }
  15822. module.exports = basePick;
  15823. /***/ }),
  15824. /***/ "../../node_modules/lodash/_basePickBy.js":
  15825. /*!**************************************************************!*\
  15826. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePickBy.js ***!
  15827. \**************************************************************/
  15828. /*! no static exports found */
  15829. /***/ (function(module, exports, __webpack_require__) {
  15830. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  15831. baseSet = __webpack_require__(/*! ./_baseSet */ "../../node_modules/lodash/_baseSet.js"),
  15832. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js");
  15833. /**
  15834. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  15835. *
  15836. * @private
  15837. * @param {Object} object The source object.
  15838. * @param {string[]} paths The property paths to pick.
  15839. * @param {Function} predicate The function invoked per property.
  15840. * @returns {Object} Returns the new object.
  15841. */
  15842. function basePickBy(object, paths, predicate) {
  15843. var index = -1,
  15844. length = paths.length,
  15845. result = {};
  15846. while (++index < length) {
  15847. var path = paths[index],
  15848. value = baseGet(object, path);
  15849. if (predicate(value, path)) {
  15850. baseSet(result, castPath(path, object), value);
  15851. }
  15852. }
  15853. return result;
  15854. }
  15855. module.exports = basePickBy;
  15856. /***/ }),
  15857. /***/ "../../node_modules/lodash/_baseProperty.js":
  15858. /*!****************************************************************!*\
  15859. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseProperty.js ***!
  15860. \****************************************************************/
  15861. /*! no static exports found */
  15862. /***/ (function(module, exports) {
  15863. /**
  15864. * The base implementation of `_.property` without support for deep paths.
  15865. *
  15866. * @private
  15867. * @param {string} key The key of the property to get.
  15868. * @returns {Function} Returns the new accessor function.
  15869. */
  15870. function baseProperty(key) {
  15871. return function(object) {
  15872. return object == null ? undefined : object[key];
  15873. };
  15874. }
  15875. module.exports = baseProperty;
  15876. /***/ }),
  15877. /***/ "../../node_modules/lodash/_basePropertyDeep.js":
  15878. /*!********************************************************************!*\
  15879. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePropertyDeep.js ***!
  15880. \********************************************************************/
  15881. /*! no static exports found */
  15882. /***/ (function(module, exports, __webpack_require__) {
  15883. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  15884. /**
  15885. * A specialized version of `baseProperty` which supports deep paths.
  15886. *
  15887. * @private
  15888. * @param {Array|string} path The path of the property to get.
  15889. * @returns {Function} Returns the new accessor function.
  15890. */
  15891. function basePropertyDeep(path) {
  15892. return function(object) {
  15893. return baseGet(object, path);
  15894. };
  15895. }
  15896. module.exports = basePropertyDeep;
  15897. /***/ }),
  15898. /***/ "../../node_modules/lodash/_baseRange.js":
  15899. /*!*************************************************************!*\
  15900. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRange.js ***!
  15901. \*************************************************************/
  15902. /*! no static exports found */
  15903. /***/ (function(module, exports) {
  15904. /* Built-in method references for those with the same name as other `lodash` methods. */
  15905. var nativeCeil = Math.ceil,
  15906. nativeMax = Math.max;
  15907. /**
  15908. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  15909. * coerce arguments.
  15910. *
  15911. * @private
  15912. * @param {number} start The start of the range.
  15913. * @param {number} end The end of the range.
  15914. * @param {number} step The value to increment or decrement by.
  15915. * @param {boolean} [fromRight] Specify iterating from right to left.
  15916. * @returns {Array} Returns the range of numbers.
  15917. */
  15918. function baseRange(start, end, step, fromRight) {
  15919. var index = -1,
  15920. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  15921. result = Array(length);
  15922. while (length--) {
  15923. result[fromRight ? length : ++index] = start;
  15924. start += step;
  15925. }
  15926. return result;
  15927. }
  15928. module.exports = baseRange;
  15929. /***/ }),
  15930. /***/ "../../node_modules/lodash/_baseReduce.js":
  15931. /*!**************************************************************!*\
  15932. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseReduce.js ***!
  15933. \**************************************************************/
  15934. /*! no static exports found */
  15935. /***/ (function(module, exports) {
  15936. /**
  15937. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  15938. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  15939. *
  15940. * @private
  15941. * @param {Array|Object} collection The collection to iterate over.
  15942. * @param {Function} iteratee The function invoked per iteration.
  15943. * @param {*} accumulator The initial value.
  15944. * @param {boolean} initAccum Specify using the first or last element of
  15945. * `collection` as the initial value.
  15946. * @param {Function} eachFunc The function to iterate over `collection`.
  15947. * @returns {*} Returns the accumulated value.
  15948. */
  15949. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  15950. eachFunc(collection, function(value, index, collection) {
  15951. accumulator = initAccum
  15952. ? (initAccum = false, value)
  15953. : iteratee(accumulator, value, index, collection);
  15954. });
  15955. return accumulator;
  15956. }
  15957. module.exports = baseReduce;
  15958. /***/ }),
  15959. /***/ "../../node_modules/lodash/_baseRest.js":
  15960. /*!************************************************************!*\
  15961. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRest.js ***!
  15962. \************************************************************/
  15963. /*! no static exports found */
  15964. /***/ (function(module, exports, __webpack_require__) {
  15965. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  15966. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  15967. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  15968. /**
  15969. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  15970. *
  15971. * @private
  15972. * @param {Function} func The function to apply a rest parameter to.
  15973. * @param {number} [start=func.length-1] The start position of the rest parameter.
  15974. * @returns {Function} Returns the new function.
  15975. */
  15976. function baseRest(func, start) {
  15977. return setToString(overRest(func, start, identity), func + '');
  15978. }
  15979. module.exports = baseRest;
  15980. /***/ }),
  15981. /***/ "../../node_modules/lodash/_baseSet.js":
  15982. /*!***********************************************************!*\
  15983. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSet.js ***!
  15984. \***********************************************************/
  15985. /*! no static exports found */
  15986. /***/ (function(module, exports, __webpack_require__) {
  15987. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  15988. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  15989. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  15990. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  15991. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  15992. /**
  15993. * The base implementation of `_.set`.
  15994. *
  15995. * @private
  15996. * @param {Object} object The object to modify.
  15997. * @param {Array|string} path The path of the property to set.
  15998. * @param {*} value The value to set.
  15999. * @param {Function} [customizer] The function to customize path creation.
  16000. * @returns {Object} Returns `object`.
  16001. */
  16002. function baseSet(object, path, value, customizer) {
  16003. if (!isObject(object)) {
  16004. return object;
  16005. }
  16006. path = castPath(path, object);
  16007. var index = -1,
  16008. length = path.length,
  16009. lastIndex = length - 1,
  16010. nested = object;
  16011. while (nested != null && ++index < length) {
  16012. var key = toKey(path[index]),
  16013. newValue = value;
  16014. if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
  16015. return object;
  16016. }
  16017. if (index != lastIndex) {
  16018. var objValue = nested[key];
  16019. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  16020. if (newValue === undefined) {
  16021. newValue = isObject(objValue)
  16022. ? objValue
  16023. : (isIndex(path[index + 1]) ? [] : {});
  16024. }
  16025. }
  16026. assignValue(nested, key, newValue);
  16027. nested = nested[key];
  16028. }
  16029. return object;
  16030. }
  16031. module.exports = baseSet;
  16032. /***/ }),
  16033. /***/ "../../node_modules/lodash/_baseSetToString.js":
  16034. /*!*******************************************************************!*\
  16035. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSetToString.js ***!
  16036. \*******************************************************************/
  16037. /*! no static exports found */
  16038. /***/ (function(module, exports, __webpack_require__) {
  16039. var constant = __webpack_require__(/*! ./constant */ "../../node_modules/lodash/constant.js"),
  16040. defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js"),
  16041. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  16042. /**
  16043. * The base implementation of `setToString` without support for hot loop shorting.
  16044. *
  16045. * @private
  16046. * @param {Function} func The function to modify.
  16047. * @param {Function} string The `toString` result.
  16048. * @returns {Function} Returns `func`.
  16049. */
  16050. var baseSetToString = !defineProperty ? identity : function(func, string) {
  16051. return defineProperty(func, 'toString', {
  16052. 'configurable': true,
  16053. 'enumerable': false,
  16054. 'value': constant(string),
  16055. 'writable': true
  16056. });
  16057. };
  16058. module.exports = baseSetToString;
  16059. /***/ }),
  16060. /***/ "../../node_modules/lodash/_baseSortBy.js":
  16061. /*!**************************************************************!*\
  16062. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSortBy.js ***!
  16063. \**************************************************************/
  16064. /*! no static exports found */
  16065. /***/ (function(module, exports) {
  16066. /**
  16067. * The base implementation of `_.sortBy` which uses `comparer` to define the
  16068. * sort order of `array` and replaces criteria objects with their corresponding
  16069. * values.
  16070. *
  16071. * @private
  16072. * @param {Array} array The array to sort.
  16073. * @param {Function} comparer The function to define sort order.
  16074. * @returns {Array} Returns `array`.
  16075. */
  16076. function baseSortBy(array, comparer) {
  16077. var length = array.length;
  16078. array.sort(comparer);
  16079. while (length--) {
  16080. array[length] = array[length].value;
  16081. }
  16082. return array;
  16083. }
  16084. module.exports = baseSortBy;
  16085. /***/ }),
  16086. /***/ "../../node_modules/lodash/_baseTimes.js":
  16087. /*!*************************************************************!*\
  16088. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseTimes.js ***!
  16089. \*************************************************************/
  16090. /*! no static exports found */
  16091. /***/ (function(module, exports) {
  16092. /**
  16093. * The base implementation of `_.times` without support for iteratee shorthands
  16094. * or max array length checks.
  16095. *
  16096. * @private
  16097. * @param {number} n The number of times to invoke `iteratee`.
  16098. * @param {Function} iteratee The function invoked per iteration.
  16099. * @returns {Array} Returns the array of results.
  16100. */
  16101. function baseTimes(n, iteratee) {
  16102. var index = -1,
  16103. result = Array(n);
  16104. while (++index < n) {
  16105. result[index] = iteratee(index);
  16106. }
  16107. return result;
  16108. }
  16109. module.exports = baseTimes;
  16110. /***/ }),
  16111. /***/ "../../node_modules/lodash/_baseToString.js":
  16112. /*!****************************************************************!*\
  16113. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseToString.js ***!
  16114. \****************************************************************/
  16115. /*! no static exports found */
  16116. /***/ (function(module, exports, __webpack_require__) {
  16117. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  16118. arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  16119. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  16120. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  16121. /** Used as references for various `Number` constants. */
  16122. var INFINITY = 1 / 0;
  16123. /** Used to convert symbols to primitives and strings. */
  16124. var symbolProto = Symbol ? Symbol.prototype : undefined,
  16125. symbolToString = symbolProto ? symbolProto.toString : undefined;
  16126. /**
  16127. * The base implementation of `_.toString` which doesn't convert nullish
  16128. * values to empty strings.
  16129. *
  16130. * @private
  16131. * @param {*} value The value to process.
  16132. * @returns {string} Returns the string.
  16133. */
  16134. function baseToString(value) {
  16135. // Exit early for strings to avoid a performance hit in some environments.
  16136. if (typeof value == 'string') {
  16137. return value;
  16138. }
  16139. if (isArray(value)) {
  16140. // Recursively convert values (susceptible to call stack limits).
  16141. return arrayMap(value, baseToString) + '';
  16142. }
  16143. if (isSymbol(value)) {
  16144. return symbolToString ? symbolToString.call(value) : '';
  16145. }
  16146. var result = (value + '');
  16147. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  16148. }
  16149. module.exports = baseToString;
  16150. /***/ }),
  16151. /***/ "../../node_modules/lodash/_baseUnary.js":
  16152. /*!*************************************************************!*\
  16153. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUnary.js ***!
  16154. \*************************************************************/
  16155. /*! no static exports found */
  16156. /***/ (function(module, exports) {
  16157. /**
  16158. * The base implementation of `_.unary` without support for storing metadata.
  16159. *
  16160. * @private
  16161. * @param {Function} func The function to cap arguments for.
  16162. * @returns {Function} Returns the new capped function.
  16163. */
  16164. function baseUnary(func) {
  16165. return function(value) {
  16166. return func(value);
  16167. };
  16168. }
  16169. module.exports = baseUnary;
  16170. /***/ }),
  16171. /***/ "../../node_modules/lodash/_baseUniq.js":
  16172. /*!************************************************************!*\
  16173. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUniq.js ***!
  16174. \************************************************************/
  16175. /*! no static exports found */
  16176. /***/ (function(module, exports, __webpack_require__) {
  16177. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  16178. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../node_modules/lodash/_arrayIncludes.js"),
  16179. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../node_modules/lodash/_arrayIncludesWith.js"),
  16180. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js"),
  16181. createSet = __webpack_require__(/*! ./_createSet */ "../../node_modules/lodash/_createSet.js"),
  16182. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  16183. /** Used as the size to enable large array optimizations. */
  16184. var LARGE_ARRAY_SIZE = 200;
  16185. /**
  16186. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  16187. *
  16188. * @private
  16189. * @param {Array} array The array to inspect.
  16190. * @param {Function} [iteratee] The iteratee invoked per element.
  16191. * @param {Function} [comparator] The comparator invoked per element.
  16192. * @returns {Array} Returns the new duplicate free array.
  16193. */
  16194. function baseUniq(array, iteratee, comparator) {
  16195. var index = -1,
  16196. includes = arrayIncludes,
  16197. length = array.length,
  16198. isCommon = true,
  16199. result = [],
  16200. seen = result;
  16201. if (comparator) {
  16202. isCommon = false;
  16203. includes = arrayIncludesWith;
  16204. }
  16205. else if (length >= LARGE_ARRAY_SIZE) {
  16206. var set = iteratee ? null : createSet(array);
  16207. if (set) {
  16208. return setToArray(set);
  16209. }
  16210. isCommon = false;
  16211. includes = cacheHas;
  16212. seen = new SetCache;
  16213. }
  16214. else {
  16215. seen = iteratee ? [] : result;
  16216. }
  16217. outer:
  16218. while (++index < length) {
  16219. var value = array[index],
  16220. computed = iteratee ? iteratee(value) : value;
  16221. value = (comparator || value !== 0) ? value : 0;
  16222. if (isCommon && computed === computed) {
  16223. var seenIndex = seen.length;
  16224. while (seenIndex--) {
  16225. if (seen[seenIndex] === computed) {
  16226. continue outer;
  16227. }
  16228. }
  16229. if (iteratee) {
  16230. seen.push(computed);
  16231. }
  16232. result.push(value);
  16233. }
  16234. else if (!includes(seen, computed, comparator)) {
  16235. if (seen !== result) {
  16236. seen.push(computed);
  16237. }
  16238. result.push(value);
  16239. }
  16240. }
  16241. return result;
  16242. }
  16243. module.exports = baseUniq;
  16244. /***/ }),
  16245. /***/ "../../node_modules/lodash/_baseValues.js":
  16246. /*!**************************************************************!*\
  16247. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseValues.js ***!
  16248. \**************************************************************/
  16249. /*! no static exports found */
  16250. /***/ (function(module, exports, __webpack_require__) {
  16251. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js");
  16252. /**
  16253. * The base implementation of `_.values` and `_.valuesIn` which creates an
  16254. * array of `object` property values corresponding to the property names
  16255. * of `props`.
  16256. *
  16257. * @private
  16258. * @param {Object} object The object to query.
  16259. * @param {Array} props The property names to get values for.
  16260. * @returns {Object} Returns the array of property values.
  16261. */
  16262. function baseValues(object, props) {
  16263. return arrayMap(props, function(key) {
  16264. return object[key];
  16265. });
  16266. }
  16267. module.exports = baseValues;
  16268. /***/ }),
  16269. /***/ "../../node_modules/lodash/_baseZipObject.js":
  16270. /*!*****************************************************************!*\
  16271. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseZipObject.js ***!
  16272. \*****************************************************************/
  16273. /*! no static exports found */
  16274. /***/ (function(module, exports) {
  16275. /**
  16276. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  16277. *
  16278. * @private
  16279. * @param {Array} props The property identifiers.
  16280. * @param {Array} values The property values.
  16281. * @param {Function} assignFunc The function to assign values.
  16282. * @returns {Object} Returns the new object.
  16283. */
  16284. function baseZipObject(props, values, assignFunc) {
  16285. var index = -1,
  16286. length = props.length,
  16287. valsLength = values.length,
  16288. result = {};
  16289. while (++index < length) {
  16290. var value = index < valsLength ? values[index] : undefined;
  16291. assignFunc(result, props[index], value);
  16292. }
  16293. return result;
  16294. }
  16295. module.exports = baseZipObject;
  16296. /***/ }),
  16297. /***/ "../../node_modules/lodash/_cacheHas.js":
  16298. /*!************************************************************!*\
  16299. !*** C:/Repos/Babylon.js/node_modules/lodash/_cacheHas.js ***!
  16300. \************************************************************/
  16301. /*! no static exports found */
  16302. /***/ (function(module, exports) {
  16303. /**
  16304. * Checks if a `cache` value for `key` exists.
  16305. *
  16306. * @private
  16307. * @param {Object} cache The cache to query.
  16308. * @param {string} key The key of the entry to check.
  16309. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  16310. */
  16311. function cacheHas(cache, key) {
  16312. return cache.has(key);
  16313. }
  16314. module.exports = cacheHas;
  16315. /***/ }),
  16316. /***/ "../../node_modules/lodash/_castFunction.js":
  16317. /*!****************************************************************!*\
  16318. !*** C:/Repos/Babylon.js/node_modules/lodash/_castFunction.js ***!
  16319. \****************************************************************/
  16320. /*! no static exports found */
  16321. /***/ (function(module, exports, __webpack_require__) {
  16322. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  16323. /**
  16324. * Casts `value` to `identity` if it's not a function.
  16325. *
  16326. * @private
  16327. * @param {*} value The value to inspect.
  16328. * @returns {Function} Returns cast function.
  16329. */
  16330. function castFunction(value) {
  16331. return typeof value == 'function' ? value : identity;
  16332. }
  16333. module.exports = castFunction;
  16334. /***/ }),
  16335. /***/ "../../node_modules/lodash/_castPath.js":
  16336. /*!************************************************************!*\
  16337. !*** C:/Repos/Babylon.js/node_modules/lodash/_castPath.js ***!
  16338. \************************************************************/
  16339. /*! no static exports found */
  16340. /***/ (function(module, exports, __webpack_require__) {
  16341. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  16342. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  16343. stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
  16344. toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  16345. /**
  16346. * Casts `value` to a path array if it's not one.
  16347. *
  16348. * @private
  16349. * @param {*} value The value to inspect.
  16350. * @param {Object} [object] The object to query keys on.
  16351. * @returns {Array} Returns the cast property path array.
  16352. */
  16353. function castPath(value, object) {
  16354. if (isArray(value)) {
  16355. return value;
  16356. }
  16357. return isKey(value, object) ? [value] : stringToPath(toString(value));
  16358. }
  16359. module.exports = castPath;
  16360. /***/ }),
  16361. /***/ "../../node_modules/lodash/_cloneArrayBuffer.js":
  16362. /*!********************************************************************!*\
  16363. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneArrayBuffer.js ***!
  16364. \********************************************************************/
  16365. /*! no static exports found */
  16366. /***/ (function(module, exports, __webpack_require__) {
  16367. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js");
  16368. /**
  16369. * Creates a clone of `arrayBuffer`.
  16370. *
  16371. * @private
  16372. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  16373. * @returns {ArrayBuffer} Returns the cloned array buffer.
  16374. */
  16375. function cloneArrayBuffer(arrayBuffer) {
  16376. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  16377. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  16378. return result;
  16379. }
  16380. module.exports = cloneArrayBuffer;
  16381. /***/ }),
  16382. /***/ "../../node_modules/lodash/_cloneBuffer.js":
  16383. /*!***************************************************************!*\
  16384. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneBuffer.js ***!
  16385. \***************************************************************/
  16386. /*! no static exports found */
  16387. /***/ (function(module, exports, __webpack_require__) {
  16388. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  16389. /** Detect free variable `exports`. */
  16390. var freeExports = true && exports && !exports.nodeType && exports;
  16391. /** Detect free variable `module`. */
  16392. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  16393. /** Detect the popular CommonJS extension `module.exports`. */
  16394. var moduleExports = freeModule && freeModule.exports === freeExports;
  16395. /** Built-in value references. */
  16396. var Buffer = moduleExports ? root.Buffer : undefined,
  16397. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  16398. /**
  16399. * Creates a clone of `buffer`.
  16400. *
  16401. * @private
  16402. * @param {Buffer} buffer The buffer to clone.
  16403. * @param {boolean} [isDeep] Specify a deep clone.
  16404. * @returns {Buffer} Returns the cloned buffer.
  16405. */
  16406. function cloneBuffer(buffer, isDeep) {
  16407. if (isDeep) {
  16408. return buffer.slice();
  16409. }
  16410. var length = buffer.length,
  16411. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  16412. buffer.copy(result);
  16413. return result;
  16414. }
  16415. module.exports = cloneBuffer;
  16416. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  16417. /***/ }),
  16418. /***/ "../../node_modules/lodash/_cloneDataView.js":
  16419. /*!*****************************************************************!*\
  16420. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneDataView.js ***!
  16421. \*****************************************************************/
  16422. /*! no static exports found */
  16423. /***/ (function(module, exports, __webpack_require__) {
  16424. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  16425. /**
  16426. * Creates a clone of `dataView`.
  16427. *
  16428. * @private
  16429. * @param {Object} dataView The data view to clone.
  16430. * @param {boolean} [isDeep] Specify a deep clone.
  16431. * @returns {Object} Returns the cloned data view.
  16432. */
  16433. function cloneDataView(dataView, isDeep) {
  16434. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  16435. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  16436. }
  16437. module.exports = cloneDataView;
  16438. /***/ }),
  16439. /***/ "../../node_modules/lodash/_cloneRegExp.js":
  16440. /*!***************************************************************!*\
  16441. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneRegExp.js ***!
  16442. \***************************************************************/
  16443. /*! no static exports found */
  16444. /***/ (function(module, exports) {
  16445. /** Used to match `RegExp` flags from their coerced string values. */
  16446. var reFlags = /\w*$/;
  16447. /**
  16448. * Creates a clone of `regexp`.
  16449. *
  16450. * @private
  16451. * @param {Object} regexp The regexp to clone.
  16452. * @returns {Object} Returns the cloned regexp.
  16453. */
  16454. function cloneRegExp(regexp) {
  16455. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  16456. result.lastIndex = regexp.lastIndex;
  16457. return result;
  16458. }
  16459. module.exports = cloneRegExp;
  16460. /***/ }),
  16461. /***/ "../../node_modules/lodash/_cloneSymbol.js":
  16462. /*!***************************************************************!*\
  16463. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneSymbol.js ***!
  16464. \***************************************************************/
  16465. /*! no static exports found */
  16466. /***/ (function(module, exports, __webpack_require__) {
  16467. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  16468. /** Used to convert symbols to primitives and strings. */
  16469. var symbolProto = Symbol ? Symbol.prototype : undefined,
  16470. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  16471. /**
  16472. * Creates a clone of the `symbol` object.
  16473. *
  16474. * @private
  16475. * @param {Object} symbol The symbol object to clone.
  16476. * @returns {Object} Returns the cloned symbol object.
  16477. */
  16478. function cloneSymbol(symbol) {
  16479. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  16480. }
  16481. module.exports = cloneSymbol;
  16482. /***/ }),
  16483. /***/ "../../node_modules/lodash/_cloneTypedArray.js":
  16484. /*!*******************************************************************!*\
  16485. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneTypedArray.js ***!
  16486. \*******************************************************************/
  16487. /*! no static exports found */
  16488. /***/ (function(module, exports, __webpack_require__) {
  16489. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  16490. /**
  16491. * Creates a clone of `typedArray`.
  16492. *
  16493. * @private
  16494. * @param {Object} typedArray The typed array to clone.
  16495. * @param {boolean} [isDeep] Specify a deep clone.
  16496. * @returns {Object} Returns the cloned typed array.
  16497. */
  16498. function cloneTypedArray(typedArray, isDeep) {
  16499. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  16500. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  16501. }
  16502. module.exports = cloneTypedArray;
  16503. /***/ }),
  16504. /***/ "../../node_modules/lodash/_compareAscending.js":
  16505. /*!********************************************************************!*\
  16506. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareAscending.js ***!
  16507. \********************************************************************/
  16508. /*! no static exports found */
  16509. /***/ (function(module, exports, __webpack_require__) {
  16510. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  16511. /**
  16512. * Compares values to sort them in ascending order.
  16513. *
  16514. * @private
  16515. * @param {*} value The value to compare.
  16516. * @param {*} other The other value to compare.
  16517. * @returns {number} Returns the sort order indicator for `value`.
  16518. */
  16519. function compareAscending(value, other) {
  16520. if (value !== other) {
  16521. var valIsDefined = value !== undefined,
  16522. valIsNull = value === null,
  16523. valIsReflexive = value === value,
  16524. valIsSymbol = isSymbol(value);
  16525. var othIsDefined = other !== undefined,
  16526. othIsNull = other === null,
  16527. othIsReflexive = other === other,
  16528. othIsSymbol = isSymbol(other);
  16529. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  16530. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  16531. (valIsNull && othIsDefined && othIsReflexive) ||
  16532. (!valIsDefined && othIsReflexive) ||
  16533. !valIsReflexive) {
  16534. return 1;
  16535. }
  16536. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  16537. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  16538. (othIsNull && valIsDefined && valIsReflexive) ||
  16539. (!othIsDefined && valIsReflexive) ||
  16540. !othIsReflexive) {
  16541. return -1;
  16542. }
  16543. }
  16544. return 0;
  16545. }
  16546. module.exports = compareAscending;
  16547. /***/ }),
  16548. /***/ "../../node_modules/lodash/_compareMultiple.js":
  16549. /*!*******************************************************************!*\
  16550. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareMultiple.js ***!
  16551. \*******************************************************************/
  16552. /*! no static exports found */
  16553. /***/ (function(module, exports, __webpack_require__) {
  16554. var compareAscending = __webpack_require__(/*! ./_compareAscending */ "../../node_modules/lodash/_compareAscending.js");
  16555. /**
  16556. * Used by `_.orderBy` to compare multiple properties of a value to another
  16557. * and stable sort them.
  16558. *
  16559. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  16560. * specify an order of "desc" for descending or "asc" for ascending sort order
  16561. * of corresponding values.
  16562. *
  16563. * @private
  16564. * @param {Object} object The object to compare.
  16565. * @param {Object} other The other object to compare.
  16566. * @param {boolean[]|string[]} orders The order to sort by for each property.
  16567. * @returns {number} Returns the sort order indicator for `object`.
  16568. */
  16569. function compareMultiple(object, other, orders) {
  16570. var index = -1,
  16571. objCriteria = object.criteria,
  16572. othCriteria = other.criteria,
  16573. length = objCriteria.length,
  16574. ordersLength = orders.length;
  16575. while (++index < length) {
  16576. var result = compareAscending(objCriteria[index], othCriteria[index]);
  16577. if (result) {
  16578. if (index >= ordersLength) {
  16579. return result;
  16580. }
  16581. var order = orders[index];
  16582. return result * (order == 'desc' ? -1 : 1);
  16583. }
  16584. }
  16585. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  16586. // that causes it, under certain circumstances, to provide the same value for
  16587. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  16588. // for more details.
  16589. //
  16590. // This also ensures a stable sort in V8 and other engines.
  16591. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  16592. return object.index - other.index;
  16593. }
  16594. module.exports = compareMultiple;
  16595. /***/ }),
  16596. /***/ "../../node_modules/lodash/_copyArray.js":
  16597. /*!*************************************************************!*\
  16598. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyArray.js ***!
  16599. \*************************************************************/
  16600. /*! no static exports found */
  16601. /***/ (function(module, exports) {
  16602. /**
  16603. * Copies the values of `source` to `array`.
  16604. *
  16605. * @private
  16606. * @param {Array} source The array to copy values from.
  16607. * @param {Array} [array=[]] The array to copy values to.
  16608. * @returns {Array} Returns `array`.
  16609. */
  16610. function copyArray(source, array) {
  16611. var index = -1,
  16612. length = source.length;
  16613. array || (array = Array(length));
  16614. while (++index < length) {
  16615. array[index] = source[index];
  16616. }
  16617. return array;
  16618. }
  16619. module.exports = copyArray;
  16620. /***/ }),
  16621. /***/ "../../node_modules/lodash/_copyObject.js":
  16622. /*!**************************************************************!*\
  16623. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyObject.js ***!
  16624. \**************************************************************/
  16625. /*! no static exports found */
  16626. /***/ (function(module, exports, __webpack_require__) {
  16627. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  16628. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js");
  16629. /**
  16630. * Copies properties of `source` to `object`.
  16631. *
  16632. * @private
  16633. * @param {Object} source The object to copy properties from.
  16634. * @param {Array} props The property identifiers to copy.
  16635. * @param {Object} [object={}] The object to copy properties to.
  16636. * @param {Function} [customizer] The function to customize copied values.
  16637. * @returns {Object} Returns `object`.
  16638. */
  16639. function copyObject(source, props, object, customizer) {
  16640. var isNew = !object;
  16641. object || (object = {});
  16642. var index = -1,
  16643. length = props.length;
  16644. while (++index < length) {
  16645. var key = props[index];
  16646. var newValue = customizer
  16647. ? customizer(object[key], source[key], key, object, source)
  16648. : undefined;
  16649. if (newValue === undefined) {
  16650. newValue = source[key];
  16651. }
  16652. if (isNew) {
  16653. baseAssignValue(object, key, newValue);
  16654. } else {
  16655. assignValue(object, key, newValue);
  16656. }
  16657. }
  16658. return object;
  16659. }
  16660. module.exports = copyObject;
  16661. /***/ }),
  16662. /***/ "../../node_modules/lodash/_copySymbols.js":
  16663. /*!***************************************************************!*\
  16664. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbols.js ***!
  16665. \***************************************************************/
  16666. /*! no static exports found */
  16667. /***/ (function(module, exports, __webpack_require__) {
  16668. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  16669. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js");
  16670. /**
  16671. * Copies own symbols of `source` to `object`.
  16672. *
  16673. * @private
  16674. * @param {Object} source The object to copy symbols from.
  16675. * @param {Object} [object={}] The object to copy symbols to.
  16676. * @returns {Object} Returns `object`.
  16677. */
  16678. function copySymbols(source, object) {
  16679. return copyObject(source, getSymbols(source), object);
  16680. }
  16681. module.exports = copySymbols;
  16682. /***/ }),
  16683. /***/ "../../node_modules/lodash/_copySymbolsIn.js":
  16684. /*!*****************************************************************!*\
  16685. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbolsIn.js ***!
  16686. \*****************************************************************/
  16687. /*! no static exports found */
  16688. /***/ (function(module, exports, __webpack_require__) {
  16689. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  16690. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js");
  16691. /**
  16692. * Copies own and inherited symbols of `source` to `object`.
  16693. *
  16694. * @private
  16695. * @param {Object} source The object to copy symbols from.
  16696. * @param {Object} [object={}] The object to copy symbols to.
  16697. * @returns {Object} Returns `object`.
  16698. */
  16699. function copySymbolsIn(source, object) {
  16700. return copyObject(source, getSymbolsIn(source), object);
  16701. }
  16702. module.exports = copySymbolsIn;
  16703. /***/ }),
  16704. /***/ "../../node_modules/lodash/_coreJsData.js":
  16705. /*!**************************************************************!*\
  16706. !*** C:/Repos/Babylon.js/node_modules/lodash/_coreJsData.js ***!
  16707. \**************************************************************/
  16708. /*! no static exports found */
  16709. /***/ (function(module, exports, __webpack_require__) {
  16710. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  16711. /** Used to detect overreaching core-js shims. */
  16712. var coreJsData = root['__core-js_shared__'];
  16713. module.exports = coreJsData;
  16714. /***/ }),
  16715. /***/ "../../node_modules/lodash/_createAssigner.js":
  16716. /*!******************************************************************!*\
  16717. !*** C:/Repos/Babylon.js/node_modules/lodash/_createAssigner.js ***!
  16718. \******************************************************************/
  16719. /*! no static exports found */
  16720. /***/ (function(module, exports, __webpack_require__) {
  16721. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  16722. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  16723. /**
  16724. * Creates a function like `_.assign`.
  16725. *
  16726. * @private
  16727. * @param {Function} assigner The function to assign values.
  16728. * @returns {Function} Returns the new assigner function.
  16729. */
  16730. function createAssigner(assigner) {
  16731. return baseRest(function(object, sources) {
  16732. var index = -1,
  16733. length = sources.length,
  16734. customizer = length > 1 ? sources[length - 1] : undefined,
  16735. guard = length > 2 ? sources[2] : undefined;
  16736. customizer = (assigner.length > 3 && typeof customizer == 'function')
  16737. ? (length--, customizer)
  16738. : undefined;
  16739. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  16740. customizer = length < 3 ? undefined : customizer;
  16741. length = 1;
  16742. }
  16743. object = Object(object);
  16744. while (++index < length) {
  16745. var source = sources[index];
  16746. if (source) {
  16747. assigner(object, source, index, customizer);
  16748. }
  16749. }
  16750. return object;
  16751. });
  16752. }
  16753. module.exports = createAssigner;
  16754. /***/ }),
  16755. /***/ "../../node_modules/lodash/_createBaseEach.js":
  16756. /*!******************************************************************!*\
  16757. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseEach.js ***!
  16758. \******************************************************************/
  16759. /*! no static exports found */
  16760. /***/ (function(module, exports, __webpack_require__) {
  16761. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  16762. /**
  16763. * Creates a `baseEach` or `baseEachRight` function.
  16764. *
  16765. * @private
  16766. * @param {Function} eachFunc The function to iterate over a collection.
  16767. * @param {boolean} [fromRight] Specify iterating from right to left.
  16768. * @returns {Function} Returns the new base function.
  16769. */
  16770. function createBaseEach(eachFunc, fromRight) {
  16771. return function(collection, iteratee) {
  16772. if (collection == null) {
  16773. return collection;
  16774. }
  16775. if (!isArrayLike(collection)) {
  16776. return eachFunc(collection, iteratee);
  16777. }
  16778. var length = collection.length,
  16779. index = fromRight ? length : -1,
  16780. iterable = Object(collection);
  16781. while ((fromRight ? index-- : ++index < length)) {
  16782. if (iteratee(iterable[index], index, iterable) === false) {
  16783. break;
  16784. }
  16785. }
  16786. return collection;
  16787. };
  16788. }
  16789. module.exports = createBaseEach;
  16790. /***/ }),
  16791. /***/ "../../node_modules/lodash/_createBaseFor.js":
  16792. /*!*****************************************************************!*\
  16793. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseFor.js ***!
  16794. \*****************************************************************/
  16795. /*! no static exports found */
  16796. /***/ (function(module, exports) {
  16797. /**
  16798. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  16799. *
  16800. * @private
  16801. * @param {boolean} [fromRight] Specify iterating from right to left.
  16802. * @returns {Function} Returns the new base function.
  16803. */
  16804. function createBaseFor(fromRight) {
  16805. return function(object, iteratee, keysFunc) {
  16806. var index = -1,
  16807. iterable = Object(object),
  16808. props = keysFunc(object),
  16809. length = props.length;
  16810. while (length--) {
  16811. var key = props[fromRight ? length : ++index];
  16812. if (iteratee(iterable[key], key, iterable) === false) {
  16813. break;
  16814. }
  16815. }
  16816. return object;
  16817. };
  16818. }
  16819. module.exports = createBaseFor;
  16820. /***/ }),
  16821. /***/ "../../node_modules/lodash/_createFind.js":
  16822. /*!**************************************************************!*\
  16823. !*** C:/Repos/Babylon.js/node_modules/lodash/_createFind.js ***!
  16824. \**************************************************************/
  16825. /*! no static exports found */
  16826. /***/ (function(module, exports, __webpack_require__) {
  16827. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  16828. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  16829. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  16830. /**
  16831. * Creates a `_.find` or `_.findLast` function.
  16832. *
  16833. * @private
  16834. * @param {Function} findIndexFunc The function to find the collection index.
  16835. * @returns {Function} Returns the new find function.
  16836. */
  16837. function createFind(findIndexFunc) {
  16838. return function(collection, predicate, fromIndex) {
  16839. var iterable = Object(collection);
  16840. if (!isArrayLike(collection)) {
  16841. var iteratee = baseIteratee(predicate, 3);
  16842. collection = keys(collection);
  16843. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  16844. }
  16845. var index = findIndexFunc(collection, predicate, fromIndex);
  16846. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  16847. };
  16848. }
  16849. module.exports = createFind;
  16850. /***/ }),
  16851. /***/ "../../node_modules/lodash/_createRange.js":
  16852. /*!***************************************************************!*\
  16853. !*** C:/Repos/Babylon.js/node_modules/lodash/_createRange.js ***!
  16854. \***************************************************************/
  16855. /*! no static exports found */
  16856. /***/ (function(module, exports, __webpack_require__) {
  16857. var baseRange = __webpack_require__(/*! ./_baseRange */ "../../node_modules/lodash/_baseRange.js"),
  16858. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  16859. toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  16860. /**
  16861. * Creates a `_.range` or `_.rangeRight` function.
  16862. *
  16863. * @private
  16864. * @param {boolean} [fromRight] Specify iterating from right to left.
  16865. * @returns {Function} Returns the new range function.
  16866. */
  16867. function createRange(fromRight) {
  16868. return function(start, end, step) {
  16869. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  16870. end = step = undefined;
  16871. }
  16872. // Ensure the sign of `-0` is preserved.
  16873. start = toFinite(start);
  16874. if (end === undefined) {
  16875. end = start;
  16876. start = 0;
  16877. } else {
  16878. end = toFinite(end);
  16879. }
  16880. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  16881. return baseRange(start, end, step, fromRight);
  16882. };
  16883. }
  16884. module.exports = createRange;
  16885. /***/ }),
  16886. /***/ "../../node_modules/lodash/_createSet.js":
  16887. /*!*************************************************************!*\
  16888. !*** C:/Repos/Babylon.js/node_modules/lodash/_createSet.js ***!
  16889. \*************************************************************/
  16890. /*! no static exports found */
  16891. /***/ (function(module, exports, __webpack_require__) {
  16892. var Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  16893. noop = __webpack_require__(/*! ./noop */ "../../node_modules/lodash/noop.js"),
  16894. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  16895. /** Used as references for various `Number` constants. */
  16896. var INFINITY = 1 / 0;
  16897. /**
  16898. * Creates a set object of `values`.
  16899. *
  16900. * @private
  16901. * @param {Array} values The values to add to the set.
  16902. * @returns {Object} Returns the new set.
  16903. */
  16904. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  16905. return new Set(values);
  16906. };
  16907. module.exports = createSet;
  16908. /***/ }),
  16909. /***/ "../../node_modules/lodash/_defineProperty.js":
  16910. /*!******************************************************************!*\
  16911. !*** C:/Repos/Babylon.js/node_modules/lodash/_defineProperty.js ***!
  16912. \******************************************************************/
  16913. /*! no static exports found */
  16914. /***/ (function(module, exports, __webpack_require__) {
  16915. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  16916. var defineProperty = (function() {
  16917. try {
  16918. var func = getNative(Object, 'defineProperty');
  16919. func({}, '', {});
  16920. return func;
  16921. } catch (e) {}
  16922. }());
  16923. module.exports = defineProperty;
  16924. /***/ }),
  16925. /***/ "../../node_modules/lodash/_equalArrays.js":
  16926. /*!***************************************************************!*\
  16927. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalArrays.js ***!
  16928. \***************************************************************/
  16929. /*! no static exports found */
  16930. /***/ (function(module, exports, __webpack_require__) {
  16931. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  16932. arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
  16933. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
  16934. /** Used to compose bitmasks for value comparisons. */
  16935. var COMPARE_PARTIAL_FLAG = 1,
  16936. COMPARE_UNORDERED_FLAG = 2;
  16937. /**
  16938. * A specialized version of `baseIsEqualDeep` for arrays with support for
  16939. * partial deep comparisons.
  16940. *
  16941. * @private
  16942. * @param {Array} array The array to compare.
  16943. * @param {Array} other The other array to compare.
  16944. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  16945. * @param {Function} customizer The function to customize comparisons.
  16946. * @param {Function} equalFunc The function to determine equivalents of values.
  16947. * @param {Object} stack Tracks traversed `array` and `other` objects.
  16948. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  16949. */
  16950. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  16951. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  16952. arrLength = array.length,
  16953. othLength = other.length;
  16954. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  16955. return false;
  16956. }
  16957. // Check that cyclic values are equal.
  16958. var arrStacked = stack.get(array);
  16959. var othStacked = stack.get(other);
  16960. if (arrStacked && othStacked) {
  16961. return arrStacked == other && othStacked == array;
  16962. }
  16963. var index = -1,
  16964. result = true,
  16965. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  16966. stack.set(array, other);
  16967. stack.set(other, array);
  16968. // Ignore non-index properties.
  16969. while (++index < arrLength) {
  16970. var arrValue = array[index],
  16971. othValue = other[index];
  16972. if (customizer) {
  16973. var compared = isPartial
  16974. ? customizer(othValue, arrValue, index, other, array, stack)
  16975. : customizer(arrValue, othValue, index, array, other, stack);
  16976. }
  16977. if (compared !== undefined) {
  16978. if (compared) {
  16979. continue;
  16980. }
  16981. result = false;
  16982. break;
  16983. }
  16984. // Recursively compare arrays (susceptible to call stack limits).
  16985. if (seen) {
  16986. if (!arraySome(other, function(othValue, othIndex) {
  16987. if (!cacheHas(seen, othIndex) &&
  16988. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  16989. return seen.push(othIndex);
  16990. }
  16991. })) {
  16992. result = false;
  16993. break;
  16994. }
  16995. } else if (!(
  16996. arrValue === othValue ||
  16997. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  16998. )) {
  16999. result = false;
  17000. break;
  17001. }
  17002. }
  17003. stack['delete'](array);
  17004. stack['delete'](other);
  17005. return result;
  17006. }
  17007. module.exports = equalArrays;
  17008. /***/ }),
  17009. /***/ "../../node_modules/lodash/_equalByTag.js":
  17010. /*!**************************************************************!*\
  17011. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalByTag.js ***!
  17012. \**************************************************************/
  17013. /*! no static exports found */
  17014. /***/ (function(module, exports, __webpack_require__) {
  17015. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  17016. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
  17017. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  17018. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  17019. mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
  17020. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  17021. /** Used to compose bitmasks for value comparisons. */
  17022. var COMPARE_PARTIAL_FLAG = 1,
  17023. COMPARE_UNORDERED_FLAG = 2;
  17024. /** `Object#toString` result references. */
  17025. var boolTag = '[object Boolean]',
  17026. dateTag = '[object Date]',
  17027. errorTag = '[object Error]',
  17028. mapTag = '[object Map]',
  17029. numberTag = '[object Number]',
  17030. regexpTag = '[object RegExp]',
  17031. setTag = '[object Set]',
  17032. stringTag = '[object String]',
  17033. symbolTag = '[object Symbol]';
  17034. var arrayBufferTag = '[object ArrayBuffer]',
  17035. dataViewTag = '[object DataView]';
  17036. /** Used to convert symbols to primitives and strings. */
  17037. var symbolProto = Symbol ? Symbol.prototype : undefined,
  17038. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  17039. /**
  17040. * A specialized version of `baseIsEqualDeep` for comparing objects of
  17041. * the same `toStringTag`.
  17042. *
  17043. * **Note:** This function only supports comparing values with tags of
  17044. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  17045. *
  17046. * @private
  17047. * @param {Object} object The object to compare.
  17048. * @param {Object} other The other object to compare.
  17049. * @param {string} tag The `toStringTag` of the objects to compare.
  17050. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  17051. * @param {Function} customizer The function to customize comparisons.
  17052. * @param {Function} equalFunc The function to determine equivalents of values.
  17053. * @param {Object} stack Tracks traversed `object` and `other` objects.
  17054. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  17055. */
  17056. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  17057. switch (tag) {
  17058. case dataViewTag:
  17059. if ((object.byteLength != other.byteLength) ||
  17060. (object.byteOffset != other.byteOffset)) {
  17061. return false;
  17062. }
  17063. object = object.buffer;
  17064. other = other.buffer;
  17065. case arrayBufferTag:
  17066. if ((object.byteLength != other.byteLength) ||
  17067. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  17068. return false;
  17069. }
  17070. return true;
  17071. case boolTag:
  17072. case dateTag:
  17073. case numberTag:
  17074. // Coerce booleans to `1` or `0` and dates to milliseconds.
  17075. // Invalid dates are coerced to `NaN`.
  17076. return eq(+object, +other);
  17077. case errorTag:
  17078. return object.name == other.name && object.message == other.message;
  17079. case regexpTag:
  17080. case stringTag:
  17081. // Coerce regexes to strings and treat strings, primitives and objects,
  17082. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  17083. // for more details.
  17084. return object == (other + '');
  17085. case mapTag:
  17086. var convert = mapToArray;
  17087. case setTag:
  17088. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  17089. convert || (convert = setToArray);
  17090. if (object.size != other.size && !isPartial) {
  17091. return false;
  17092. }
  17093. // Assume cyclic values are equal.
  17094. var stacked = stack.get(object);
  17095. if (stacked) {
  17096. return stacked == other;
  17097. }
  17098. bitmask |= COMPARE_UNORDERED_FLAG;
  17099. // Recursively compare objects (susceptible to call stack limits).
  17100. stack.set(object, other);
  17101. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  17102. stack['delete'](object);
  17103. return result;
  17104. case symbolTag:
  17105. if (symbolValueOf) {
  17106. return symbolValueOf.call(object) == symbolValueOf.call(other);
  17107. }
  17108. }
  17109. return false;
  17110. }
  17111. module.exports = equalByTag;
  17112. /***/ }),
  17113. /***/ "../../node_modules/lodash/_equalObjects.js":
  17114. /*!****************************************************************!*\
  17115. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalObjects.js ***!
  17116. \****************************************************************/
  17117. /*! no static exports found */
  17118. /***/ (function(module, exports, __webpack_require__) {
  17119. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
  17120. /** Used to compose bitmasks for value comparisons. */
  17121. var COMPARE_PARTIAL_FLAG = 1;
  17122. /** Used for built-in method references. */
  17123. var objectProto = Object.prototype;
  17124. /** Used to check objects for own properties. */
  17125. var hasOwnProperty = objectProto.hasOwnProperty;
  17126. /**
  17127. * A specialized version of `baseIsEqualDeep` for objects with support for
  17128. * partial deep comparisons.
  17129. *
  17130. * @private
  17131. * @param {Object} object The object to compare.
  17132. * @param {Object} other The other object to compare.
  17133. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  17134. * @param {Function} customizer The function to customize comparisons.
  17135. * @param {Function} equalFunc The function to determine equivalents of values.
  17136. * @param {Object} stack Tracks traversed `object` and `other` objects.
  17137. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  17138. */
  17139. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  17140. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  17141. objProps = getAllKeys(object),
  17142. objLength = objProps.length,
  17143. othProps = getAllKeys(other),
  17144. othLength = othProps.length;
  17145. if (objLength != othLength && !isPartial) {
  17146. return false;
  17147. }
  17148. var index = objLength;
  17149. while (index--) {
  17150. var key = objProps[index];
  17151. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  17152. return false;
  17153. }
  17154. }
  17155. // Check that cyclic values are equal.
  17156. var objStacked = stack.get(object);
  17157. var othStacked = stack.get(other);
  17158. if (objStacked && othStacked) {
  17159. return objStacked == other && othStacked == object;
  17160. }
  17161. var result = true;
  17162. stack.set(object, other);
  17163. stack.set(other, object);
  17164. var skipCtor = isPartial;
  17165. while (++index < objLength) {
  17166. key = objProps[index];
  17167. var objValue = object[key],
  17168. othValue = other[key];
  17169. if (customizer) {
  17170. var compared = isPartial
  17171. ? customizer(othValue, objValue, key, other, object, stack)
  17172. : customizer(objValue, othValue, key, object, other, stack);
  17173. }
  17174. // Recursively compare objects (susceptible to call stack limits).
  17175. if (!(compared === undefined
  17176. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  17177. : compared
  17178. )) {
  17179. result = false;
  17180. break;
  17181. }
  17182. skipCtor || (skipCtor = key == 'constructor');
  17183. }
  17184. if (result && !skipCtor) {
  17185. var objCtor = object.constructor,
  17186. othCtor = other.constructor;
  17187. // Non `Object` object instances with different constructors are not equal.
  17188. if (objCtor != othCtor &&
  17189. ('constructor' in object && 'constructor' in other) &&
  17190. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  17191. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  17192. result = false;
  17193. }
  17194. }
  17195. stack['delete'](object);
  17196. stack['delete'](other);
  17197. return result;
  17198. }
  17199. module.exports = equalObjects;
  17200. /***/ }),
  17201. /***/ "../../node_modules/lodash/_flatRest.js":
  17202. /*!************************************************************!*\
  17203. !*** C:/Repos/Babylon.js/node_modules/lodash/_flatRest.js ***!
  17204. \************************************************************/
  17205. /*! no static exports found */
  17206. /***/ (function(module, exports, __webpack_require__) {
  17207. var flatten = __webpack_require__(/*! ./flatten */ "../../node_modules/lodash/flatten.js"),
  17208. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  17209. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  17210. /**
  17211. * A specialized version of `baseRest` which flattens the rest array.
  17212. *
  17213. * @private
  17214. * @param {Function} func The function to apply a rest parameter to.
  17215. * @returns {Function} Returns the new function.
  17216. */
  17217. function flatRest(func) {
  17218. return setToString(overRest(func, undefined, flatten), func + '');
  17219. }
  17220. module.exports = flatRest;
  17221. /***/ }),
  17222. /***/ "../../node_modules/lodash/_freeGlobal.js":
  17223. /*!**************************************************************!*\
  17224. !*** C:/Repos/Babylon.js/node_modules/lodash/_freeGlobal.js ***!
  17225. \**************************************************************/
  17226. /*! no static exports found */
  17227. /***/ (function(module, exports, __webpack_require__) {
  17228. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  17229. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  17230. module.exports = freeGlobal;
  17231. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  17232. /***/ }),
  17233. /***/ "../../node_modules/lodash/_getAllKeys.js":
  17234. /*!**************************************************************!*\
  17235. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeys.js ***!
  17236. \**************************************************************/
  17237. /*! no static exports found */
  17238. /***/ (function(module, exports, __webpack_require__) {
  17239. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  17240. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  17241. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  17242. /**
  17243. * Creates an array of own enumerable property names and symbols of `object`.
  17244. *
  17245. * @private
  17246. * @param {Object} object The object to query.
  17247. * @returns {Array} Returns the array of property names and symbols.
  17248. */
  17249. function getAllKeys(object) {
  17250. return baseGetAllKeys(object, keys, getSymbols);
  17251. }
  17252. module.exports = getAllKeys;
  17253. /***/ }),
  17254. /***/ "../../node_modules/lodash/_getAllKeysIn.js":
  17255. /*!****************************************************************!*\
  17256. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeysIn.js ***!
  17257. \****************************************************************/
  17258. /*! no static exports found */
  17259. /***/ (function(module, exports, __webpack_require__) {
  17260. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  17261. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js"),
  17262. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  17263. /**
  17264. * Creates an array of own and inherited enumerable property names and
  17265. * symbols of `object`.
  17266. *
  17267. * @private
  17268. * @param {Object} object The object to query.
  17269. * @returns {Array} Returns the array of property names and symbols.
  17270. */
  17271. function getAllKeysIn(object) {
  17272. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  17273. }
  17274. module.exports = getAllKeysIn;
  17275. /***/ }),
  17276. /***/ "../../node_modules/lodash/_getMapData.js":
  17277. /*!**************************************************************!*\
  17278. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMapData.js ***!
  17279. \**************************************************************/
  17280. /*! no static exports found */
  17281. /***/ (function(module, exports, __webpack_require__) {
  17282. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
  17283. /**
  17284. * Gets the data for `map`.
  17285. *
  17286. * @private
  17287. * @param {Object} map The map to query.
  17288. * @param {string} key The reference key.
  17289. * @returns {*} Returns the map data.
  17290. */
  17291. function getMapData(map, key) {
  17292. var data = map.__data__;
  17293. return isKeyable(key)
  17294. ? data[typeof key == 'string' ? 'string' : 'hash']
  17295. : data.map;
  17296. }
  17297. module.exports = getMapData;
  17298. /***/ }),
  17299. /***/ "../../node_modules/lodash/_getMatchData.js":
  17300. /*!****************************************************************!*\
  17301. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMatchData.js ***!
  17302. \****************************************************************/
  17303. /*! no static exports found */
  17304. /***/ (function(module, exports, __webpack_require__) {
  17305. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  17306. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  17307. /**
  17308. * Gets the property names, values, and compare flags of `object`.
  17309. *
  17310. * @private
  17311. * @param {Object} object The object to query.
  17312. * @returns {Array} Returns the match data of `object`.
  17313. */
  17314. function getMatchData(object) {
  17315. var result = keys(object),
  17316. length = result.length;
  17317. while (length--) {
  17318. var key = result[length],
  17319. value = object[key];
  17320. result[length] = [key, value, isStrictComparable(value)];
  17321. }
  17322. return result;
  17323. }
  17324. module.exports = getMatchData;
  17325. /***/ }),
  17326. /***/ "../../node_modules/lodash/_getNative.js":
  17327. /*!*************************************************************!*\
  17328. !*** C:/Repos/Babylon.js/node_modules/lodash/_getNative.js ***!
  17329. \*************************************************************/
  17330. /*! no static exports found */
  17331. /***/ (function(module, exports, __webpack_require__) {
  17332. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
  17333. getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
  17334. /**
  17335. * Gets the native function at `key` of `object`.
  17336. *
  17337. * @private
  17338. * @param {Object} object The object to query.
  17339. * @param {string} key The key of the method to get.
  17340. * @returns {*} Returns the function if it's native, else `undefined`.
  17341. */
  17342. function getNative(object, key) {
  17343. var value = getValue(object, key);
  17344. return baseIsNative(value) ? value : undefined;
  17345. }
  17346. module.exports = getNative;
  17347. /***/ }),
  17348. /***/ "../../node_modules/lodash/_getPrototype.js":
  17349. /*!****************************************************************!*\
  17350. !*** C:/Repos/Babylon.js/node_modules/lodash/_getPrototype.js ***!
  17351. \****************************************************************/
  17352. /*! no static exports found */
  17353. /***/ (function(module, exports, __webpack_require__) {
  17354. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  17355. /** Built-in value references. */
  17356. var getPrototype = overArg(Object.getPrototypeOf, Object);
  17357. module.exports = getPrototype;
  17358. /***/ }),
  17359. /***/ "../../node_modules/lodash/_getRawTag.js":
  17360. /*!*************************************************************!*\
  17361. !*** C:/Repos/Babylon.js/node_modules/lodash/_getRawTag.js ***!
  17362. \*************************************************************/
  17363. /*! no static exports found */
  17364. /***/ (function(module, exports, __webpack_require__) {
  17365. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  17366. /** Used for built-in method references. */
  17367. var objectProto = Object.prototype;
  17368. /** Used to check objects for own properties. */
  17369. var hasOwnProperty = objectProto.hasOwnProperty;
  17370. /**
  17371. * Used to resolve the
  17372. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  17373. * of values.
  17374. */
  17375. var nativeObjectToString = objectProto.toString;
  17376. /** Built-in value references. */
  17377. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  17378. /**
  17379. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  17380. *
  17381. * @private
  17382. * @param {*} value The value to query.
  17383. * @returns {string} Returns the raw `toStringTag`.
  17384. */
  17385. function getRawTag(value) {
  17386. var isOwn = hasOwnProperty.call(value, symToStringTag),
  17387. tag = value[symToStringTag];
  17388. try {
  17389. value[symToStringTag] = undefined;
  17390. var unmasked = true;
  17391. } catch (e) {}
  17392. var result = nativeObjectToString.call(value);
  17393. if (unmasked) {
  17394. if (isOwn) {
  17395. value[symToStringTag] = tag;
  17396. } else {
  17397. delete value[symToStringTag];
  17398. }
  17399. }
  17400. return result;
  17401. }
  17402. module.exports = getRawTag;
  17403. /***/ }),
  17404. /***/ "../../node_modules/lodash/_getSymbols.js":
  17405. /*!**************************************************************!*\
  17406. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbols.js ***!
  17407. \**************************************************************/
  17408. /*! no static exports found */
  17409. /***/ (function(module, exports, __webpack_require__) {
  17410. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  17411. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  17412. /** Used for built-in method references. */
  17413. var objectProto = Object.prototype;
  17414. /** Built-in value references. */
  17415. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  17416. /* Built-in method references for those with the same name as other `lodash` methods. */
  17417. var nativeGetSymbols = Object.getOwnPropertySymbols;
  17418. /**
  17419. * Creates an array of the own enumerable symbols of `object`.
  17420. *
  17421. * @private
  17422. * @param {Object} object The object to query.
  17423. * @returns {Array} Returns the array of symbols.
  17424. */
  17425. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  17426. if (object == null) {
  17427. return [];
  17428. }
  17429. object = Object(object);
  17430. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  17431. return propertyIsEnumerable.call(object, symbol);
  17432. });
  17433. };
  17434. module.exports = getSymbols;
  17435. /***/ }),
  17436. /***/ "../../node_modules/lodash/_getSymbolsIn.js":
  17437. /*!****************************************************************!*\
  17438. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbolsIn.js ***!
  17439. \****************************************************************/
  17440. /*! no static exports found */
  17441. /***/ (function(module, exports, __webpack_require__) {
  17442. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  17443. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  17444. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  17445. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  17446. /* Built-in method references for those with the same name as other `lodash` methods. */
  17447. var nativeGetSymbols = Object.getOwnPropertySymbols;
  17448. /**
  17449. * Creates an array of the own and inherited enumerable symbols of `object`.
  17450. *
  17451. * @private
  17452. * @param {Object} object The object to query.
  17453. * @returns {Array} Returns the array of symbols.
  17454. */
  17455. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  17456. var result = [];
  17457. while (object) {
  17458. arrayPush(result, getSymbols(object));
  17459. object = getPrototype(object);
  17460. }
  17461. return result;
  17462. };
  17463. module.exports = getSymbolsIn;
  17464. /***/ }),
  17465. /***/ "../../node_modules/lodash/_getTag.js":
  17466. /*!**********************************************************!*\
  17467. !*** C:/Repos/Babylon.js/node_modules/lodash/_getTag.js ***!
  17468. \**********************************************************/
  17469. /*! no static exports found */
  17470. /***/ (function(module, exports, __webpack_require__) {
  17471. var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
  17472. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  17473. Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
  17474. Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  17475. WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
  17476. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  17477. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  17478. /** `Object#toString` result references. */
  17479. var mapTag = '[object Map]',
  17480. objectTag = '[object Object]',
  17481. promiseTag = '[object Promise]',
  17482. setTag = '[object Set]',
  17483. weakMapTag = '[object WeakMap]';
  17484. var dataViewTag = '[object DataView]';
  17485. /** Used to detect maps, sets, and weakmaps. */
  17486. var dataViewCtorString = toSource(DataView),
  17487. mapCtorString = toSource(Map),
  17488. promiseCtorString = toSource(Promise),
  17489. setCtorString = toSource(Set),
  17490. weakMapCtorString = toSource(WeakMap);
  17491. /**
  17492. * Gets the `toStringTag` of `value`.
  17493. *
  17494. * @private
  17495. * @param {*} value The value to query.
  17496. * @returns {string} Returns the `toStringTag`.
  17497. */
  17498. var getTag = baseGetTag;
  17499. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  17500. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  17501. (Map && getTag(new Map) != mapTag) ||
  17502. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  17503. (Set && getTag(new Set) != setTag) ||
  17504. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  17505. getTag = function(value) {
  17506. var result = baseGetTag(value),
  17507. Ctor = result == objectTag ? value.constructor : undefined,
  17508. ctorString = Ctor ? toSource(Ctor) : '';
  17509. if (ctorString) {
  17510. switch (ctorString) {
  17511. case dataViewCtorString: return dataViewTag;
  17512. case mapCtorString: return mapTag;
  17513. case promiseCtorString: return promiseTag;
  17514. case setCtorString: return setTag;
  17515. case weakMapCtorString: return weakMapTag;
  17516. }
  17517. }
  17518. return result;
  17519. };
  17520. }
  17521. module.exports = getTag;
  17522. /***/ }),
  17523. /***/ "../../node_modules/lodash/_getValue.js":
  17524. /*!************************************************************!*\
  17525. !*** C:/Repos/Babylon.js/node_modules/lodash/_getValue.js ***!
  17526. \************************************************************/
  17527. /*! no static exports found */
  17528. /***/ (function(module, exports) {
  17529. /**
  17530. * Gets the value at `key` of `object`.
  17531. *
  17532. * @private
  17533. * @param {Object} [object] The object to query.
  17534. * @param {string} key The key of the property to get.
  17535. * @returns {*} Returns the property value.
  17536. */
  17537. function getValue(object, key) {
  17538. return object == null ? undefined : object[key];
  17539. }
  17540. module.exports = getValue;
  17541. /***/ }),
  17542. /***/ "../../node_modules/lodash/_hasPath.js":
  17543. /*!***********************************************************!*\
  17544. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasPath.js ***!
  17545. \***********************************************************/
  17546. /*! no static exports found */
  17547. /***/ (function(module, exports, __webpack_require__) {
  17548. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  17549. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  17550. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  17551. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  17552. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  17553. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  17554. /**
  17555. * Checks if `path` exists on `object`.
  17556. *
  17557. * @private
  17558. * @param {Object} object The object to query.
  17559. * @param {Array|string} path The path to check.
  17560. * @param {Function} hasFunc The function to check properties.
  17561. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  17562. */
  17563. function hasPath(object, path, hasFunc) {
  17564. path = castPath(path, object);
  17565. var index = -1,
  17566. length = path.length,
  17567. result = false;
  17568. while (++index < length) {
  17569. var key = toKey(path[index]);
  17570. if (!(result = object != null && hasFunc(object, key))) {
  17571. break;
  17572. }
  17573. object = object[key];
  17574. }
  17575. if (result || ++index != length) {
  17576. return result;
  17577. }
  17578. length = object == null ? 0 : object.length;
  17579. return !!length && isLength(length) && isIndex(key, length) &&
  17580. (isArray(object) || isArguments(object));
  17581. }
  17582. module.exports = hasPath;
  17583. /***/ }),
  17584. /***/ "../../node_modules/lodash/_hasUnicode.js":
  17585. /*!**************************************************************!*\
  17586. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasUnicode.js ***!
  17587. \**************************************************************/
  17588. /*! no static exports found */
  17589. /***/ (function(module, exports) {
  17590. /** Used to compose unicode character classes. */
  17591. var rsAstralRange = '\\ud800-\\udfff',
  17592. rsComboMarksRange = '\\u0300-\\u036f',
  17593. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  17594. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  17595. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  17596. rsVarRange = '\\ufe0e\\ufe0f';
  17597. /** Used to compose unicode capture groups. */
  17598. var rsZWJ = '\\u200d';
  17599. /** 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/). */
  17600. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  17601. /**
  17602. * Checks if `string` contains Unicode symbols.
  17603. *
  17604. * @private
  17605. * @param {string} string The string to inspect.
  17606. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  17607. */
  17608. function hasUnicode(string) {
  17609. return reHasUnicode.test(string);
  17610. }
  17611. module.exports = hasUnicode;
  17612. /***/ }),
  17613. /***/ "../../node_modules/lodash/_hashClear.js":
  17614. /*!*************************************************************!*\
  17615. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashClear.js ***!
  17616. \*************************************************************/
  17617. /*! no static exports found */
  17618. /***/ (function(module, exports, __webpack_require__) {
  17619. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  17620. /**
  17621. * Removes all key-value entries from the hash.
  17622. *
  17623. * @private
  17624. * @name clear
  17625. * @memberOf Hash
  17626. */
  17627. function hashClear() {
  17628. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  17629. this.size = 0;
  17630. }
  17631. module.exports = hashClear;
  17632. /***/ }),
  17633. /***/ "../../node_modules/lodash/_hashDelete.js":
  17634. /*!**************************************************************!*\
  17635. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashDelete.js ***!
  17636. \**************************************************************/
  17637. /*! no static exports found */
  17638. /***/ (function(module, exports) {
  17639. /**
  17640. * Removes `key` and its value from the hash.
  17641. *
  17642. * @private
  17643. * @name delete
  17644. * @memberOf Hash
  17645. * @param {Object} hash The hash to modify.
  17646. * @param {string} key The key of the value to remove.
  17647. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17648. */
  17649. function hashDelete(key) {
  17650. var result = this.has(key) && delete this.__data__[key];
  17651. this.size -= result ? 1 : 0;
  17652. return result;
  17653. }
  17654. module.exports = hashDelete;
  17655. /***/ }),
  17656. /***/ "../../node_modules/lodash/_hashGet.js":
  17657. /*!***********************************************************!*\
  17658. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashGet.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. /** Used for built-in method references. */
  17666. var objectProto = Object.prototype;
  17667. /** Used to check objects for own properties. */
  17668. var hasOwnProperty = objectProto.hasOwnProperty;
  17669. /**
  17670. * Gets the hash value for `key`.
  17671. *
  17672. * @private
  17673. * @name get
  17674. * @memberOf Hash
  17675. * @param {string} key The key of the value to get.
  17676. * @returns {*} Returns the entry value.
  17677. */
  17678. function hashGet(key) {
  17679. var data = this.__data__;
  17680. if (nativeCreate) {
  17681. var result = data[key];
  17682. return result === HASH_UNDEFINED ? undefined : result;
  17683. }
  17684. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  17685. }
  17686. module.exports = hashGet;
  17687. /***/ }),
  17688. /***/ "../../node_modules/lodash/_hashHas.js":
  17689. /*!***********************************************************!*\
  17690. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashHas.js ***!
  17691. \***********************************************************/
  17692. /*! no static exports found */
  17693. /***/ (function(module, exports, __webpack_require__) {
  17694. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  17695. /** Used for built-in method references. */
  17696. var objectProto = Object.prototype;
  17697. /** Used to check objects for own properties. */
  17698. var hasOwnProperty = objectProto.hasOwnProperty;
  17699. /**
  17700. * Checks if a hash value for `key` exists.
  17701. *
  17702. * @private
  17703. * @name has
  17704. * @memberOf Hash
  17705. * @param {string} key The key of the entry to check.
  17706. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17707. */
  17708. function hashHas(key) {
  17709. var data = this.__data__;
  17710. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  17711. }
  17712. module.exports = hashHas;
  17713. /***/ }),
  17714. /***/ "../../node_modules/lodash/_hashSet.js":
  17715. /*!***********************************************************!*\
  17716. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashSet.js ***!
  17717. \***********************************************************/
  17718. /*! no static exports found */
  17719. /***/ (function(module, exports, __webpack_require__) {
  17720. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  17721. /** Used to stand-in for `undefined` hash values. */
  17722. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  17723. /**
  17724. * Sets the hash `key` to `value`.
  17725. *
  17726. * @private
  17727. * @name set
  17728. * @memberOf Hash
  17729. * @param {string} key The key of the value to set.
  17730. * @param {*} value The value to set.
  17731. * @returns {Object} Returns the hash instance.
  17732. */
  17733. function hashSet(key, value) {
  17734. var data = this.__data__;
  17735. this.size += this.has(key) ? 0 : 1;
  17736. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  17737. return this;
  17738. }
  17739. module.exports = hashSet;
  17740. /***/ }),
  17741. /***/ "../../node_modules/lodash/_initCloneArray.js":
  17742. /*!******************************************************************!*\
  17743. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneArray.js ***!
  17744. \******************************************************************/
  17745. /*! no static exports found */
  17746. /***/ (function(module, exports) {
  17747. /** Used for built-in method references. */
  17748. var objectProto = Object.prototype;
  17749. /** Used to check objects for own properties. */
  17750. var hasOwnProperty = objectProto.hasOwnProperty;
  17751. /**
  17752. * Initializes an array clone.
  17753. *
  17754. * @private
  17755. * @param {Array} array The array to clone.
  17756. * @returns {Array} Returns the initialized clone.
  17757. */
  17758. function initCloneArray(array) {
  17759. var length = array.length,
  17760. result = new array.constructor(length);
  17761. // Add properties assigned by `RegExp#exec`.
  17762. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  17763. result.index = array.index;
  17764. result.input = array.input;
  17765. }
  17766. return result;
  17767. }
  17768. module.exports = initCloneArray;
  17769. /***/ }),
  17770. /***/ "../../node_modules/lodash/_initCloneByTag.js":
  17771. /*!******************************************************************!*\
  17772. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneByTag.js ***!
  17773. \******************************************************************/
  17774. /*! no static exports found */
  17775. /***/ (function(module, exports, __webpack_require__) {
  17776. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js"),
  17777. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "../../node_modules/lodash/_cloneDataView.js"),
  17778. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "../../node_modules/lodash/_cloneRegExp.js"),
  17779. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "../../node_modules/lodash/_cloneSymbol.js"),
  17780. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js");
  17781. /** `Object#toString` result references. */
  17782. var boolTag = '[object Boolean]',
  17783. dateTag = '[object Date]',
  17784. mapTag = '[object Map]',
  17785. numberTag = '[object Number]',
  17786. regexpTag = '[object RegExp]',
  17787. setTag = '[object Set]',
  17788. stringTag = '[object String]',
  17789. symbolTag = '[object Symbol]';
  17790. var arrayBufferTag = '[object ArrayBuffer]',
  17791. dataViewTag = '[object DataView]',
  17792. float32Tag = '[object Float32Array]',
  17793. float64Tag = '[object Float64Array]',
  17794. int8Tag = '[object Int8Array]',
  17795. int16Tag = '[object Int16Array]',
  17796. int32Tag = '[object Int32Array]',
  17797. uint8Tag = '[object Uint8Array]',
  17798. uint8ClampedTag = '[object Uint8ClampedArray]',
  17799. uint16Tag = '[object Uint16Array]',
  17800. uint32Tag = '[object Uint32Array]';
  17801. /**
  17802. * Initializes an object clone based on its `toStringTag`.
  17803. *
  17804. * **Note:** This function only supports cloning values with tags of
  17805. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  17806. *
  17807. * @private
  17808. * @param {Object} object The object to clone.
  17809. * @param {string} tag The `toStringTag` of the object to clone.
  17810. * @param {boolean} [isDeep] Specify a deep clone.
  17811. * @returns {Object} Returns the initialized clone.
  17812. */
  17813. function initCloneByTag(object, tag, isDeep) {
  17814. var Ctor = object.constructor;
  17815. switch (tag) {
  17816. case arrayBufferTag:
  17817. return cloneArrayBuffer(object);
  17818. case boolTag:
  17819. case dateTag:
  17820. return new Ctor(+object);
  17821. case dataViewTag:
  17822. return cloneDataView(object, isDeep);
  17823. case float32Tag: case float64Tag:
  17824. case int8Tag: case int16Tag: case int32Tag:
  17825. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  17826. return cloneTypedArray(object, isDeep);
  17827. case mapTag:
  17828. return new Ctor;
  17829. case numberTag:
  17830. case stringTag:
  17831. return new Ctor(object);
  17832. case regexpTag:
  17833. return cloneRegExp(object);
  17834. case setTag:
  17835. return new Ctor;
  17836. case symbolTag:
  17837. return cloneSymbol(object);
  17838. }
  17839. }
  17840. module.exports = initCloneByTag;
  17841. /***/ }),
  17842. /***/ "../../node_modules/lodash/_initCloneObject.js":
  17843. /*!*******************************************************************!*\
  17844. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneObject.js ***!
  17845. \*******************************************************************/
  17846. /*! no static exports found */
  17847. /***/ (function(module, exports, __webpack_require__) {
  17848. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  17849. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  17850. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js");
  17851. /**
  17852. * Initializes an object clone.
  17853. *
  17854. * @private
  17855. * @param {Object} object The object to clone.
  17856. * @returns {Object} Returns the initialized clone.
  17857. */
  17858. function initCloneObject(object) {
  17859. return (typeof object.constructor == 'function' && !isPrototype(object))
  17860. ? baseCreate(getPrototype(object))
  17861. : {};
  17862. }
  17863. module.exports = initCloneObject;
  17864. /***/ }),
  17865. /***/ "../../node_modules/lodash/_isFlattenable.js":
  17866. /*!*****************************************************************!*\
  17867. !*** C:/Repos/Babylon.js/node_modules/lodash/_isFlattenable.js ***!
  17868. \*****************************************************************/
  17869. /*! no static exports found */
  17870. /***/ (function(module, exports, __webpack_require__) {
  17871. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  17872. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  17873. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  17874. /** Built-in value references. */
  17875. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  17876. /**
  17877. * Checks if `value` is a flattenable `arguments` object or array.
  17878. *
  17879. * @private
  17880. * @param {*} value The value to check.
  17881. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  17882. */
  17883. function isFlattenable(value) {
  17884. return isArray(value) || isArguments(value) ||
  17885. !!(spreadableSymbol && value && value[spreadableSymbol]);
  17886. }
  17887. module.exports = isFlattenable;
  17888. /***/ }),
  17889. /***/ "../../node_modules/lodash/_isIndex.js":
  17890. /*!***********************************************************!*\
  17891. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIndex.js ***!
  17892. \***********************************************************/
  17893. /*! no static exports found */
  17894. /***/ (function(module, exports) {
  17895. /** Used as references for various `Number` constants. */
  17896. var MAX_SAFE_INTEGER = 9007199254740991;
  17897. /** Used to detect unsigned integer values. */
  17898. var reIsUint = /^(?:0|[1-9]\d*)$/;
  17899. /**
  17900. * Checks if `value` is a valid array-like index.
  17901. *
  17902. * @private
  17903. * @param {*} value The value to check.
  17904. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  17905. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  17906. */
  17907. function isIndex(value, length) {
  17908. var type = typeof value;
  17909. length = length == null ? MAX_SAFE_INTEGER : length;
  17910. return !!length &&
  17911. (type == 'number' ||
  17912. (type != 'symbol' && reIsUint.test(value))) &&
  17913. (value > -1 && value % 1 == 0 && value < length);
  17914. }
  17915. module.exports = isIndex;
  17916. /***/ }),
  17917. /***/ "../../node_modules/lodash/_isIterateeCall.js":
  17918. /*!******************************************************************!*\
  17919. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIterateeCall.js ***!
  17920. \******************************************************************/
  17921. /*! no static exports found */
  17922. /***/ (function(module, exports, __webpack_require__) {
  17923. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  17924. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  17925. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  17926. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  17927. /**
  17928. * Checks if the given arguments are from an iteratee call.
  17929. *
  17930. * @private
  17931. * @param {*} value The potential iteratee value argument.
  17932. * @param {*} index The potential iteratee index or key argument.
  17933. * @param {*} object The potential iteratee object argument.
  17934. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  17935. * else `false`.
  17936. */
  17937. function isIterateeCall(value, index, object) {
  17938. if (!isObject(object)) {
  17939. return false;
  17940. }
  17941. var type = typeof index;
  17942. if (type == 'number'
  17943. ? (isArrayLike(object) && isIndex(index, object.length))
  17944. : (type == 'string' && index in object)
  17945. ) {
  17946. return eq(object[index], value);
  17947. }
  17948. return false;
  17949. }
  17950. module.exports = isIterateeCall;
  17951. /***/ }),
  17952. /***/ "../../node_modules/lodash/_isKey.js":
  17953. /*!*********************************************************!*\
  17954. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKey.js ***!
  17955. \*********************************************************/
  17956. /*! no static exports found */
  17957. /***/ (function(module, exports, __webpack_require__) {
  17958. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  17959. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  17960. /** Used to match property names within property paths. */
  17961. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  17962. reIsPlainProp = /^\w*$/;
  17963. /**
  17964. * Checks if `value` is a property name and not a property path.
  17965. *
  17966. * @private
  17967. * @param {*} value The value to check.
  17968. * @param {Object} [object] The object to query keys on.
  17969. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  17970. */
  17971. function isKey(value, object) {
  17972. if (isArray(value)) {
  17973. return false;
  17974. }
  17975. var type = typeof value;
  17976. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  17977. value == null || isSymbol(value)) {
  17978. return true;
  17979. }
  17980. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  17981. (object != null && value in Object(object));
  17982. }
  17983. module.exports = isKey;
  17984. /***/ }),
  17985. /***/ "../../node_modules/lodash/_isKeyable.js":
  17986. /*!*************************************************************!*\
  17987. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKeyable.js ***!
  17988. \*************************************************************/
  17989. /*! no static exports found */
  17990. /***/ (function(module, exports) {
  17991. /**
  17992. * Checks if `value` is suitable for use as unique object key.
  17993. *
  17994. * @private
  17995. * @param {*} value The value to check.
  17996. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  17997. */
  17998. function isKeyable(value) {
  17999. var type = typeof value;
  18000. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  18001. ? (value !== '__proto__')
  18002. : (value === null);
  18003. }
  18004. module.exports = isKeyable;
  18005. /***/ }),
  18006. /***/ "../../node_modules/lodash/_isMasked.js":
  18007. /*!************************************************************!*\
  18008. !*** C:/Repos/Babylon.js/node_modules/lodash/_isMasked.js ***!
  18009. \************************************************************/
  18010. /*! no static exports found */
  18011. /***/ (function(module, exports, __webpack_require__) {
  18012. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
  18013. /** Used to detect methods masquerading as native. */
  18014. var maskSrcKey = (function() {
  18015. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  18016. return uid ? ('Symbol(src)_1.' + uid) : '';
  18017. }());
  18018. /**
  18019. * Checks if `func` has its source masked.
  18020. *
  18021. * @private
  18022. * @param {Function} func The function to check.
  18023. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  18024. */
  18025. function isMasked(func) {
  18026. return !!maskSrcKey && (maskSrcKey in func);
  18027. }
  18028. module.exports = isMasked;
  18029. /***/ }),
  18030. /***/ "../../node_modules/lodash/_isPrototype.js":
  18031. /*!***************************************************************!*\
  18032. !*** C:/Repos/Babylon.js/node_modules/lodash/_isPrototype.js ***!
  18033. \***************************************************************/
  18034. /*! no static exports found */
  18035. /***/ (function(module, exports) {
  18036. /** Used for built-in method references. */
  18037. var objectProto = Object.prototype;
  18038. /**
  18039. * Checks if `value` is likely a prototype object.
  18040. *
  18041. * @private
  18042. * @param {*} value The value to check.
  18043. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  18044. */
  18045. function isPrototype(value) {
  18046. var Ctor = value && value.constructor,
  18047. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  18048. return value === proto;
  18049. }
  18050. module.exports = isPrototype;
  18051. /***/ }),
  18052. /***/ "../../node_modules/lodash/_isStrictComparable.js":
  18053. /*!**********************************************************************!*\
  18054. !*** C:/Repos/Babylon.js/node_modules/lodash/_isStrictComparable.js ***!
  18055. \**********************************************************************/
  18056. /*! no static exports found */
  18057. /***/ (function(module, exports, __webpack_require__) {
  18058. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  18059. /**
  18060. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  18061. *
  18062. * @private
  18063. * @param {*} value The value to check.
  18064. * @returns {boolean} Returns `true` if `value` if suitable for strict
  18065. * equality comparisons, else `false`.
  18066. */
  18067. function isStrictComparable(value) {
  18068. return value === value && !isObject(value);
  18069. }
  18070. module.exports = isStrictComparable;
  18071. /***/ }),
  18072. /***/ "../../node_modules/lodash/_listCacheClear.js":
  18073. /*!******************************************************************!*\
  18074. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheClear.js ***!
  18075. \******************************************************************/
  18076. /*! no static exports found */
  18077. /***/ (function(module, exports) {
  18078. /**
  18079. * Removes all key-value entries from the list cache.
  18080. *
  18081. * @private
  18082. * @name clear
  18083. * @memberOf ListCache
  18084. */
  18085. function listCacheClear() {
  18086. this.__data__ = [];
  18087. this.size = 0;
  18088. }
  18089. module.exports = listCacheClear;
  18090. /***/ }),
  18091. /***/ "../../node_modules/lodash/_listCacheDelete.js":
  18092. /*!*******************************************************************!*\
  18093. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheDelete.js ***!
  18094. \*******************************************************************/
  18095. /*! no static exports found */
  18096. /***/ (function(module, exports, __webpack_require__) {
  18097. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  18098. /** Used for built-in method references. */
  18099. var arrayProto = Array.prototype;
  18100. /** Built-in value references. */
  18101. var splice = arrayProto.splice;
  18102. /**
  18103. * Removes `key` and its value from the list cache.
  18104. *
  18105. * @private
  18106. * @name delete
  18107. * @memberOf ListCache
  18108. * @param {string} key The key of the value to remove.
  18109. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  18110. */
  18111. function listCacheDelete(key) {
  18112. var data = this.__data__,
  18113. index = assocIndexOf(data, key);
  18114. if (index < 0) {
  18115. return false;
  18116. }
  18117. var lastIndex = data.length - 1;
  18118. if (index == lastIndex) {
  18119. data.pop();
  18120. } else {
  18121. splice.call(data, index, 1);
  18122. }
  18123. --this.size;
  18124. return true;
  18125. }
  18126. module.exports = listCacheDelete;
  18127. /***/ }),
  18128. /***/ "../../node_modules/lodash/_listCacheGet.js":
  18129. /*!****************************************************************!*\
  18130. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheGet.js ***!
  18131. \****************************************************************/
  18132. /*! no static exports found */
  18133. /***/ (function(module, exports, __webpack_require__) {
  18134. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  18135. /**
  18136. * Gets the list cache value for `key`.
  18137. *
  18138. * @private
  18139. * @name get
  18140. * @memberOf ListCache
  18141. * @param {string} key The key of the value to get.
  18142. * @returns {*} Returns the entry value.
  18143. */
  18144. function listCacheGet(key) {
  18145. var data = this.__data__,
  18146. index = assocIndexOf(data, key);
  18147. return index < 0 ? undefined : data[index][1];
  18148. }
  18149. module.exports = listCacheGet;
  18150. /***/ }),
  18151. /***/ "../../node_modules/lodash/_listCacheHas.js":
  18152. /*!****************************************************************!*\
  18153. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheHas.js ***!
  18154. \****************************************************************/
  18155. /*! no static exports found */
  18156. /***/ (function(module, exports, __webpack_require__) {
  18157. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  18158. /**
  18159. * Checks if a list cache value for `key` exists.
  18160. *
  18161. * @private
  18162. * @name has
  18163. * @memberOf ListCache
  18164. * @param {string} key The key of the entry to check.
  18165. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  18166. */
  18167. function listCacheHas(key) {
  18168. return assocIndexOf(this.__data__, key) > -1;
  18169. }
  18170. module.exports = listCacheHas;
  18171. /***/ }),
  18172. /***/ "../../node_modules/lodash/_listCacheSet.js":
  18173. /*!****************************************************************!*\
  18174. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheSet.js ***!
  18175. \****************************************************************/
  18176. /*! no static exports found */
  18177. /***/ (function(module, exports, __webpack_require__) {
  18178. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  18179. /**
  18180. * Sets the list cache `key` to `value`.
  18181. *
  18182. * @private
  18183. * @name set
  18184. * @memberOf ListCache
  18185. * @param {string} key The key of the value to set.
  18186. * @param {*} value The value to set.
  18187. * @returns {Object} Returns the list cache instance.
  18188. */
  18189. function listCacheSet(key, value) {
  18190. var data = this.__data__,
  18191. index = assocIndexOf(data, key);
  18192. if (index < 0) {
  18193. ++this.size;
  18194. data.push([key, value]);
  18195. } else {
  18196. data[index][1] = value;
  18197. }
  18198. return this;
  18199. }
  18200. module.exports = listCacheSet;
  18201. /***/ }),
  18202. /***/ "../../node_modules/lodash/_mapCacheClear.js":
  18203. /*!*****************************************************************!*\
  18204. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheClear.js ***!
  18205. \*****************************************************************/
  18206. /*! no static exports found */
  18207. /***/ (function(module, exports, __webpack_require__) {
  18208. var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
  18209. ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  18210. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
  18211. /**
  18212. * Removes all key-value entries from the map.
  18213. *
  18214. * @private
  18215. * @name clear
  18216. * @memberOf MapCache
  18217. */
  18218. function mapCacheClear() {
  18219. this.size = 0;
  18220. this.__data__ = {
  18221. 'hash': new Hash,
  18222. 'map': new (Map || ListCache),
  18223. 'string': new Hash
  18224. };
  18225. }
  18226. module.exports = mapCacheClear;
  18227. /***/ }),
  18228. /***/ "../../node_modules/lodash/_mapCacheDelete.js":
  18229. /*!******************************************************************!*\
  18230. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheDelete.js ***!
  18231. \******************************************************************/
  18232. /*! no static exports found */
  18233. /***/ (function(module, exports, __webpack_require__) {
  18234. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  18235. /**
  18236. * Removes `key` and its value from the map.
  18237. *
  18238. * @private
  18239. * @name delete
  18240. * @memberOf MapCache
  18241. * @param {string} key The key of the value to remove.
  18242. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  18243. */
  18244. function mapCacheDelete(key) {
  18245. var result = getMapData(this, key)['delete'](key);
  18246. this.size -= result ? 1 : 0;
  18247. return result;
  18248. }
  18249. module.exports = mapCacheDelete;
  18250. /***/ }),
  18251. /***/ "../../node_modules/lodash/_mapCacheGet.js":
  18252. /*!***************************************************************!*\
  18253. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheGet.js ***!
  18254. \***************************************************************/
  18255. /*! no static exports found */
  18256. /***/ (function(module, exports, __webpack_require__) {
  18257. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  18258. /**
  18259. * Gets the map value for `key`.
  18260. *
  18261. * @private
  18262. * @name get
  18263. * @memberOf MapCache
  18264. * @param {string} key The key of the value to get.
  18265. * @returns {*} Returns the entry value.
  18266. */
  18267. function mapCacheGet(key) {
  18268. return getMapData(this, key).get(key);
  18269. }
  18270. module.exports = mapCacheGet;
  18271. /***/ }),
  18272. /***/ "../../node_modules/lodash/_mapCacheHas.js":
  18273. /*!***************************************************************!*\
  18274. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheHas.js ***!
  18275. \***************************************************************/
  18276. /*! no static exports found */
  18277. /***/ (function(module, exports, __webpack_require__) {
  18278. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  18279. /**
  18280. * Checks if a map value for `key` exists.
  18281. *
  18282. * @private
  18283. * @name has
  18284. * @memberOf MapCache
  18285. * @param {string} key The key of the entry to check.
  18286. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  18287. */
  18288. function mapCacheHas(key) {
  18289. return getMapData(this, key).has(key);
  18290. }
  18291. module.exports = mapCacheHas;
  18292. /***/ }),
  18293. /***/ "../../node_modules/lodash/_mapCacheSet.js":
  18294. /*!***************************************************************!*\
  18295. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheSet.js ***!
  18296. \***************************************************************/
  18297. /*! no static exports found */
  18298. /***/ (function(module, exports, __webpack_require__) {
  18299. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  18300. /**
  18301. * Sets the map `key` to `value`.
  18302. *
  18303. * @private
  18304. * @name set
  18305. * @memberOf MapCache
  18306. * @param {string} key The key of the value to set.
  18307. * @param {*} value The value to set.
  18308. * @returns {Object} Returns the map cache instance.
  18309. */
  18310. function mapCacheSet(key, value) {
  18311. var data = getMapData(this, key),
  18312. size = data.size;
  18313. data.set(key, value);
  18314. this.size += data.size == size ? 0 : 1;
  18315. return this;
  18316. }
  18317. module.exports = mapCacheSet;
  18318. /***/ }),
  18319. /***/ "../../node_modules/lodash/_mapToArray.js":
  18320. /*!**************************************************************!*\
  18321. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapToArray.js ***!
  18322. \**************************************************************/
  18323. /*! no static exports found */
  18324. /***/ (function(module, exports) {
  18325. /**
  18326. * Converts `map` to its key-value pairs.
  18327. *
  18328. * @private
  18329. * @param {Object} map The map to convert.
  18330. * @returns {Array} Returns the key-value pairs.
  18331. */
  18332. function mapToArray(map) {
  18333. var index = -1,
  18334. result = Array(map.size);
  18335. map.forEach(function(value, key) {
  18336. result[++index] = [key, value];
  18337. });
  18338. return result;
  18339. }
  18340. module.exports = mapToArray;
  18341. /***/ }),
  18342. /***/ "../../node_modules/lodash/_matchesStrictComparable.js":
  18343. /*!***************************************************************************!*\
  18344. !*** C:/Repos/Babylon.js/node_modules/lodash/_matchesStrictComparable.js ***!
  18345. \***************************************************************************/
  18346. /*! no static exports found */
  18347. /***/ (function(module, exports) {
  18348. /**
  18349. * A specialized version of `matchesProperty` for source values suitable
  18350. * for strict equality comparisons, i.e. `===`.
  18351. *
  18352. * @private
  18353. * @param {string} key The key of the property to get.
  18354. * @param {*} srcValue The value to match.
  18355. * @returns {Function} Returns the new spec function.
  18356. */
  18357. function matchesStrictComparable(key, srcValue) {
  18358. return function(object) {
  18359. if (object == null) {
  18360. return false;
  18361. }
  18362. return object[key] === srcValue &&
  18363. (srcValue !== undefined || (key in Object(object)));
  18364. };
  18365. }
  18366. module.exports = matchesStrictComparable;
  18367. /***/ }),
  18368. /***/ "../../node_modules/lodash/_memoizeCapped.js":
  18369. /*!*****************************************************************!*\
  18370. !*** C:/Repos/Babylon.js/node_modules/lodash/_memoizeCapped.js ***!
  18371. \*****************************************************************/
  18372. /*! no static exports found */
  18373. /***/ (function(module, exports, __webpack_require__) {
  18374. var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
  18375. /** Used as the maximum memoize cache size. */
  18376. var MAX_MEMOIZE_SIZE = 500;
  18377. /**
  18378. * A specialized version of `_.memoize` which clears the memoized function's
  18379. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  18380. *
  18381. * @private
  18382. * @param {Function} func The function to have its output memoized.
  18383. * @returns {Function} Returns the new memoized function.
  18384. */
  18385. function memoizeCapped(func) {
  18386. var result = memoize(func, function(key) {
  18387. if (cache.size === MAX_MEMOIZE_SIZE) {
  18388. cache.clear();
  18389. }
  18390. return key;
  18391. });
  18392. var cache = result.cache;
  18393. return result;
  18394. }
  18395. module.exports = memoizeCapped;
  18396. /***/ }),
  18397. /***/ "../../node_modules/lodash/_nativeCreate.js":
  18398. /*!****************************************************************!*\
  18399. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeCreate.js ***!
  18400. \****************************************************************/
  18401. /*! no static exports found */
  18402. /***/ (function(module, exports, __webpack_require__) {
  18403. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  18404. /* Built-in method references that are verified to be native. */
  18405. var nativeCreate = getNative(Object, 'create');
  18406. module.exports = nativeCreate;
  18407. /***/ }),
  18408. /***/ "../../node_modules/lodash/_nativeKeys.js":
  18409. /*!**************************************************************!*\
  18410. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeys.js ***!
  18411. \**************************************************************/
  18412. /*! no static exports found */
  18413. /***/ (function(module, exports, __webpack_require__) {
  18414. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  18415. /* Built-in method references for those with the same name as other `lodash` methods. */
  18416. var nativeKeys = overArg(Object.keys, Object);
  18417. module.exports = nativeKeys;
  18418. /***/ }),
  18419. /***/ "../../node_modules/lodash/_nativeKeysIn.js":
  18420. /*!****************************************************************!*\
  18421. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeysIn.js ***!
  18422. \****************************************************************/
  18423. /*! no static exports found */
  18424. /***/ (function(module, exports) {
  18425. /**
  18426. * This function is like
  18427. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  18428. * except that it includes inherited enumerable properties.
  18429. *
  18430. * @private
  18431. * @param {Object} object The object to query.
  18432. * @returns {Array} Returns the array of property names.
  18433. */
  18434. function nativeKeysIn(object) {
  18435. var result = [];
  18436. if (object != null) {
  18437. for (var key in Object(object)) {
  18438. result.push(key);
  18439. }
  18440. }
  18441. return result;
  18442. }
  18443. module.exports = nativeKeysIn;
  18444. /***/ }),
  18445. /***/ "../../node_modules/lodash/_nodeUtil.js":
  18446. /*!************************************************************!*\
  18447. !*** C:/Repos/Babylon.js/node_modules/lodash/_nodeUtil.js ***!
  18448. \************************************************************/
  18449. /*! no static exports found */
  18450. /***/ (function(module, exports, __webpack_require__) {
  18451. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  18452. /** Detect free variable `exports`. */
  18453. var freeExports = true && exports && !exports.nodeType && exports;
  18454. /** Detect free variable `module`. */
  18455. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  18456. /** Detect the popular CommonJS extension `module.exports`. */
  18457. var moduleExports = freeModule && freeModule.exports === freeExports;
  18458. /** Detect free variable `process` from Node.js. */
  18459. var freeProcess = moduleExports && freeGlobal.process;
  18460. /** Used to access faster Node.js helpers. */
  18461. var nodeUtil = (function() {
  18462. try {
  18463. // Use `util.types` for Node.js 10+.
  18464. var types = freeModule && freeModule.require && freeModule.require('util').types;
  18465. if (types) {
  18466. return types;
  18467. }
  18468. // Legacy `process.binding('util')` for Node.js < 10.
  18469. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  18470. } catch (e) {}
  18471. }());
  18472. module.exports = nodeUtil;
  18473. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  18474. /***/ }),
  18475. /***/ "../../node_modules/lodash/_objectToString.js":
  18476. /*!******************************************************************!*\
  18477. !*** C:/Repos/Babylon.js/node_modules/lodash/_objectToString.js ***!
  18478. \******************************************************************/
  18479. /*! no static exports found */
  18480. /***/ (function(module, exports) {
  18481. /** Used for built-in method references. */
  18482. var objectProto = Object.prototype;
  18483. /**
  18484. * Used to resolve the
  18485. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  18486. * of values.
  18487. */
  18488. var nativeObjectToString = objectProto.toString;
  18489. /**
  18490. * Converts `value` to a string using `Object.prototype.toString`.
  18491. *
  18492. * @private
  18493. * @param {*} value The value to convert.
  18494. * @returns {string} Returns the converted string.
  18495. */
  18496. function objectToString(value) {
  18497. return nativeObjectToString.call(value);
  18498. }
  18499. module.exports = objectToString;
  18500. /***/ }),
  18501. /***/ "../../node_modules/lodash/_overArg.js":
  18502. /*!***********************************************************!*\
  18503. !*** C:/Repos/Babylon.js/node_modules/lodash/_overArg.js ***!
  18504. \***********************************************************/
  18505. /*! no static exports found */
  18506. /***/ (function(module, exports) {
  18507. /**
  18508. * Creates a unary function that invokes `func` with its argument transformed.
  18509. *
  18510. * @private
  18511. * @param {Function} func The function to wrap.
  18512. * @param {Function} transform The argument transform.
  18513. * @returns {Function} Returns the new function.
  18514. */
  18515. function overArg(func, transform) {
  18516. return function(arg) {
  18517. return func(transform(arg));
  18518. };
  18519. }
  18520. module.exports = overArg;
  18521. /***/ }),
  18522. /***/ "../../node_modules/lodash/_overRest.js":
  18523. /*!************************************************************!*\
  18524. !*** C:/Repos/Babylon.js/node_modules/lodash/_overRest.js ***!
  18525. \************************************************************/
  18526. /*! no static exports found */
  18527. /***/ (function(module, exports, __webpack_require__) {
  18528. var apply = __webpack_require__(/*! ./_apply */ "../../node_modules/lodash/_apply.js");
  18529. /* Built-in method references for those with the same name as other `lodash` methods. */
  18530. var nativeMax = Math.max;
  18531. /**
  18532. * A specialized version of `baseRest` which transforms the rest array.
  18533. *
  18534. * @private
  18535. * @param {Function} func The function to apply a rest parameter to.
  18536. * @param {number} [start=func.length-1] The start position of the rest parameter.
  18537. * @param {Function} transform The rest array transform.
  18538. * @returns {Function} Returns the new function.
  18539. */
  18540. function overRest(func, start, transform) {
  18541. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  18542. return function() {
  18543. var args = arguments,
  18544. index = -1,
  18545. length = nativeMax(args.length - start, 0),
  18546. array = Array(length);
  18547. while (++index < length) {
  18548. array[index] = args[start + index];
  18549. }
  18550. index = -1;
  18551. var otherArgs = Array(start + 1);
  18552. while (++index < start) {
  18553. otherArgs[index] = args[index];
  18554. }
  18555. otherArgs[start] = transform(array);
  18556. return apply(func, this, otherArgs);
  18557. };
  18558. }
  18559. module.exports = overRest;
  18560. /***/ }),
  18561. /***/ "../../node_modules/lodash/_root.js":
  18562. /*!********************************************************!*\
  18563. !*** C:/Repos/Babylon.js/node_modules/lodash/_root.js ***!
  18564. \********************************************************/
  18565. /*! no static exports found */
  18566. /***/ (function(module, exports, __webpack_require__) {
  18567. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  18568. /** Detect free variable `self`. */
  18569. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  18570. /** Used as a reference to the global object. */
  18571. var root = freeGlobal || freeSelf || Function('return this')();
  18572. module.exports = root;
  18573. /***/ }),
  18574. /***/ "../../node_modules/lodash/_safeGet.js":
  18575. /*!***********************************************************!*\
  18576. !*** C:/Repos/Babylon.js/node_modules/lodash/_safeGet.js ***!
  18577. \***********************************************************/
  18578. /*! no static exports found */
  18579. /***/ (function(module, exports) {
  18580. /**
  18581. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  18582. *
  18583. * @private
  18584. * @param {Object} object The object to query.
  18585. * @param {string} key The key of the property to get.
  18586. * @returns {*} Returns the property value.
  18587. */
  18588. function safeGet(object, key) {
  18589. if (key === 'constructor' && typeof object[key] === 'function') {
  18590. return;
  18591. }
  18592. if (key == '__proto__') {
  18593. return;
  18594. }
  18595. return object[key];
  18596. }
  18597. module.exports = safeGet;
  18598. /***/ }),
  18599. /***/ "../../node_modules/lodash/_setCacheAdd.js":
  18600. /*!***************************************************************!*\
  18601. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheAdd.js ***!
  18602. \***************************************************************/
  18603. /*! no static exports found */
  18604. /***/ (function(module, exports) {
  18605. /** Used to stand-in for `undefined` hash values. */
  18606. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  18607. /**
  18608. * Adds `value` to the array cache.
  18609. *
  18610. * @private
  18611. * @name add
  18612. * @memberOf SetCache
  18613. * @alias push
  18614. * @param {*} value The value to cache.
  18615. * @returns {Object} Returns the cache instance.
  18616. */
  18617. function setCacheAdd(value) {
  18618. this.__data__.set(value, HASH_UNDEFINED);
  18619. return this;
  18620. }
  18621. module.exports = setCacheAdd;
  18622. /***/ }),
  18623. /***/ "../../node_modules/lodash/_setCacheHas.js":
  18624. /*!***************************************************************!*\
  18625. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheHas.js ***!
  18626. \***************************************************************/
  18627. /*! no static exports found */
  18628. /***/ (function(module, exports) {
  18629. /**
  18630. * Checks if `value` is in the array cache.
  18631. *
  18632. * @private
  18633. * @name has
  18634. * @memberOf SetCache
  18635. * @param {*} value The value to search for.
  18636. * @returns {number} Returns `true` if `value` is found, else `false`.
  18637. */
  18638. function setCacheHas(value) {
  18639. return this.__data__.has(value);
  18640. }
  18641. module.exports = setCacheHas;
  18642. /***/ }),
  18643. /***/ "../../node_modules/lodash/_setToArray.js":
  18644. /*!**************************************************************!*\
  18645. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToArray.js ***!
  18646. \**************************************************************/
  18647. /*! no static exports found */
  18648. /***/ (function(module, exports) {
  18649. /**
  18650. * Converts `set` to an array of its values.
  18651. *
  18652. * @private
  18653. * @param {Object} set The set to convert.
  18654. * @returns {Array} Returns the values.
  18655. */
  18656. function setToArray(set) {
  18657. var index = -1,
  18658. result = Array(set.size);
  18659. set.forEach(function(value) {
  18660. result[++index] = value;
  18661. });
  18662. return result;
  18663. }
  18664. module.exports = setToArray;
  18665. /***/ }),
  18666. /***/ "../../node_modules/lodash/_setToString.js":
  18667. /*!***************************************************************!*\
  18668. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToString.js ***!
  18669. \***************************************************************/
  18670. /*! no static exports found */
  18671. /***/ (function(module, exports, __webpack_require__) {
  18672. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "../../node_modules/lodash/_baseSetToString.js"),
  18673. shortOut = __webpack_require__(/*! ./_shortOut */ "../../node_modules/lodash/_shortOut.js");
  18674. /**
  18675. * Sets the `toString` method of `func` to return `string`.
  18676. *
  18677. * @private
  18678. * @param {Function} func The function to modify.
  18679. * @param {Function} string The `toString` result.
  18680. * @returns {Function} Returns `func`.
  18681. */
  18682. var setToString = shortOut(baseSetToString);
  18683. module.exports = setToString;
  18684. /***/ }),
  18685. /***/ "../../node_modules/lodash/_shortOut.js":
  18686. /*!************************************************************!*\
  18687. !*** C:/Repos/Babylon.js/node_modules/lodash/_shortOut.js ***!
  18688. \************************************************************/
  18689. /*! no static exports found */
  18690. /***/ (function(module, exports) {
  18691. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  18692. var HOT_COUNT = 800,
  18693. HOT_SPAN = 16;
  18694. /* Built-in method references for those with the same name as other `lodash` methods. */
  18695. var nativeNow = Date.now;
  18696. /**
  18697. * Creates a function that'll short out and invoke `identity` instead
  18698. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  18699. * milliseconds.
  18700. *
  18701. * @private
  18702. * @param {Function} func The function to restrict.
  18703. * @returns {Function} Returns the new shortable function.
  18704. */
  18705. function shortOut(func) {
  18706. var count = 0,
  18707. lastCalled = 0;
  18708. return function() {
  18709. var stamp = nativeNow(),
  18710. remaining = HOT_SPAN - (stamp - lastCalled);
  18711. lastCalled = stamp;
  18712. if (remaining > 0) {
  18713. if (++count >= HOT_COUNT) {
  18714. return arguments[0];
  18715. }
  18716. } else {
  18717. count = 0;
  18718. }
  18719. return func.apply(undefined, arguments);
  18720. };
  18721. }
  18722. module.exports = shortOut;
  18723. /***/ }),
  18724. /***/ "../../node_modules/lodash/_stackClear.js":
  18725. /*!**************************************************************!*\
  18726. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackClear.js ***!
  18727. \**************************************************************/
  18728. /*! no static exports found */
  18729. /***/ (function(module, exports, __webpack_require__) {
  18730. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
  18731. /**
  18732. * Removes all key-value entries from the stack.
  18733. *
  18734. * @private
  18735. * @name clear
  18736. * @memberOf Stack
  18737. */
  18738. function stackClear() {
  18739. this.__data__ = new ListCache;
  18740. this.size = 0;
  18741. }
  18742. module.exports = stackClear;
  18743. /***/ }),
  18744. /***/ "../../node_modules/lodash/_stackDelete.js":
  18745. /*!***************************************************************!*\
  18746. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackDelete.js ***!
  18747. \***************************************************************/
  18748. /*! no static exports found */
  18749. /***/ (function(module, exports) {
  18750. /**
  18751. * Removes `key` and its value from the stack.
  18752. *
  18753. * @private
  18754. * @name delete
  18755. * @memberOf Stack
  18756. * @param {string} key The key of the value to remove.
  18757. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  18758. */
  18759. function stackDelete(key) {
  18760. var data = this.__data__,
  18761. result = data['delete'](key);
  18762. this.size = data.size;
  18763. return result;
  18764. }
  18765. module.exports = stackDelete;
  18766. /***/ }),
  18767. /***/ "../../node_modules/lodash/_stackGet.js":
  18768. /*!************************************************************!*\
  18769. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackGet.js ***!
  18770. \************************************************************/
  18771. /*! no static exports found */
  18772. /***/ (function(module, exports) {
  18773. /**
  18774. * Gets the stack value for `key`.
  18775. *
  18776. * @private
  18777. * @name get
  18778. * @memberOf Stack
  18779. * @param {string} key The key of the value to get.
  18780. * @returns {*} Returns the entry value.
  18781. */
  18782. function stackGet(key) {
  18783. return this.__data__.get(key);
  18784. }
  18785. module.exports = stackGet;
  18786. /***/ }),
  18787. /***/ "../../node_modules/lodash/_stackHas.js":
  18788. /*!************************************************************!*\
  18789. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackHas.js ***!
  18790. \************************************************************/
  18791. /*! no static exports found */
  18792. /***/ (function(module, exports) {
  18793. /**
  18794. * Checks if a stack value for `key` exists.
  18795. *
  18796. * @private
  18797. * @name has
  18798. * @memberOf Stack
  18799. * @param {string} key The key of the entry to check.
  18800. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  18801. */
  18802. function stackHas(key) {
  18803. return this.__data__.has(key);
  18804. }
  18805. module.exports = stackHas;
  18806. /***/ }),
  18807. /***/ "../../node_modules/lodash/_stackSet.js":
  18808. /*!************************************************************!*\
  18809. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackSet.js ***!
  18810. \************************************************************/
  18811. /*! no static exports found */
  18812. /***/ (function(module, exports, __webpack_require__) {
  18813. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  18814. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  18815. MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  18816. /** Used as the size to enable large array optimizations. */
  18817. var LARGE_ARRAY_SIZE = 200;
  18818. /**
  18819. * Sets the stack `key` to `value`.
  18820. *
  18821. * @private
  18822. * @name set
  18823. * @memberOf Stack
  18824. * @param {string} key The key of the value to set.
  18825. * @param {*} value The value to set.
  18826. * @returns {Object} Returns the stack cache instance.
  18827. */
  18828. function stackSet(key, value) {
  18829. var data = this.__data__;
  18830. if (data instanceof ListCache) {
  18831. var pairs = data.__data__;
  18832. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  18833. pairs.push([key, value]);
  18834. this.size = ++data.size;
  18835. return this;
  18836. }
  18837. data = this.__data__ = new MapCache(pairs);
  18838. }
  18839. data.set(key, value);
  18840. this.size = data.size;
  18841. return this;
  18842. }
  18843. module.exports = stackSet;
  18844. /***/ }),
  18845. /***/ "../../node_modules/lodash/_strictIndexOf.js":
  18846. /*!*****************************************************************!*\
  18847. !*** C:/Repos/Babylon.js/node_modules/lodash/_strictIndexOf.js ***!
  18848. \*****************************************************************/
  18849. /*! no static exports found */
  18850. /***/ (function(module, exports) {
  18851. /**
  18852. * A specialized version of `_.indexOf` which performs strict equality
  18853. * comparisons of values, i.e. `===`.
  18854. *
  18855. * @private
  18856. * @param {Array} array The array to inspect.
  18857. * @param {*} value The value to search for.
  18858. * @param {number} fromIndex The index to search from.
  18859. * @returns {number} Returns the index of the matched value, else `-1`.
  18860. */
  18861. function strictIndexOf(array, value, fromIndex) {
  18862. var index = fromIndex - 1,
  18863. length = array.length;
  18864. while (++index < length) {
  18865. if (array[index] === value) {
  18866. return index;
  18867. }
  18868. }
  18869. return -1;
  18870. }
  18871. module.exports = strictIndexOf;
  18872. /***/ }),
  18873. /***/ "../../node_modules/lodash/_stringSize.js":
  18874. /*!**************************************************************!*\
  18875. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringSize.js ***!
  18876. \**************************************************************/
  18877. /*! no static exports found */
  18878. /***/ (function(module, exports, __webpack_require__) {
  18879. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "../../node_modules/lodash/_asciiSize.js"),
  18880. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "../../node_modules/lodash/_hasUnicode.js"),
  18881. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "../../node_modules/lodash/_unicodeSize.js");
  18882. /**
  18883. * Gets the number of symbols in `string`.
  18884. *
  18885. * @private
  18886. * @param {string} string The string to inspect.
  18887. * @returns {number} Returns the string size.
  18888. */
  18889. function stringSize(string) {
  18890. return hasUnicode(string)
  18891. ? unicodeSize(string)
  18892. : asciiSize(string);
  18893. }
  18894. module.exports = stringSize;
  18895. /***/ }),
  18896. /***/ "../../node_modules/lodash/_stringToPath.js":
  18897. /*!****************************************************************!*\
  18898. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringToPath.js ***!
  18899. \****************************************************************/
  18900. /*! no static exports found */
  18901. /***/ (function(module, exports, __webpack_require__) {
  18902. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
  18903. /** Used to match property names within property paths. */
  18904. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  18905. /** Used to match backslashes in property paths. */
  18906. var reEscapeChar = /\\(\\)?/g;
  18907. /**
  18908. * Converts `string` to a property path array.
  18909. *
  18910. * @private
  18911. * @param {string} string The string to convert.
  18912. * @returns {Array} Returns the property path array.
  18913. */
  18914. var stringToPath = memoizeCapped(function(string) {
  18915. var result = [];
  18916. if (string.charCodeAt(0) === 46 /* . */) {
  18917. result.push('');
  18918. }
  18919. string.replace(rePropName, function(match, number, quote, subString) {
  18920. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  18921. });
  18922. return result;
  18923. });
  18924. module.exports = stringToPath;
  18925. /***/ }),
  18926. /***/ "../../node_modules/lodash/_toKey.js":
  18927. /*!*********************************************************!*\
  18928. !*** C:/Repos/Babylon.js/node_modules/lodash/_toKey.js ***!
  18929. \*********************************************************/
  18930. /*! no static exports found */
  18931. /***/ (function(module, exports, __webpack_require__) {
  18932. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  18933. /** Used as references for various `Number` constants. */
  18934. var INFINITY = 1 / 0;
  18935. /**
  18936. * Converts `value` to a string key if it's not a string or symbol.
  18937. *
  18938. * @private
  18939. * @param {*} value The value to inspect.
  18940. * @returns {string|symbol} Returns the key.
  18941. */
  18942. function toKey(value) {
  18943. if (typeof value == 'string' || isSymbol(value)) {
  18944. return value;
  18945. }
  18946. var result = (value + '');
  18947. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  18948. }
  18949. module.exports = toKey;
  18950. /***/ }),
  18951. /***/ "../../node_modules/lodash/_toSource.js":
  18952. /*!************************************************************!*\
  18953. !*** C:/Repos/Babylon.js/node_modules/lodash/_toSource.js ***!
  18954. \************************************************************/
  18955. /*! no static exports found */
  18956. /***/ (function(module, exports) {
  18957. /** Used for built-in method references. */
  18958. var funcProto = Function.prototype;
  18959. /** Used to resolve the decompiled source of functions. */
  18960. var funcToString = funcProto.toString;
  18961. /**
  18962. * Converts `func` to its source code.
  18963. *
  18964. * @private
  18965. * @param {Function} func The function to convert.
  18966. * @returns {string} Returns the source code.
  18967. */
  18968. function toSource(func) {
  18969. if (func != null) {
  18970. try {
  18971. return funcToString.call(func);
  18972. } catch (e) {}
  18973. try {
  18974. return (func + '');
  18975. } catch (e) {}
  18976. }
  18977. return '';
  18978. }
  18979. module.exports = toSource;
  18980. /***/ }),
  18981. /***/ "../../node_modules/lodash/_unicodeSize.js":
  18982. /*!***************************************************************!*\
  18983. !*** C:/Repos/Babylon.js/node_modules/lodash/_unicodeSize.js ***!
  18984. \***************************************************************/
  18985. /*! no static exports found */
  18986. /***/ (function(module, exports) {
  18987. /** Used to compose unicode character classes. */
  18988. var rsAstralRange = '\\ud800-\\udfff',
  18989. rsComboMarksRange = '\\u0300-\\u036f',
  18990. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  18991. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  18992. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  18993. rsVarRange = '\\ufe0e\\ufe0f';
  18994. /** Used to compose unicode capture groups. */
  18995. var rsAstral = '[' + rsAstralRange + ']',
  18996. rsCombo = '[' + rsComboRange + ']',
  18997. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  18998. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  18999. rsNonAstral = '[^' + rsAstralRange + ']',
  19000. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  19001. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  19002. rsZWJ = '\\u200d';
  19003. /** Used to compose unicode regexes. */
  19004. var reOptMod = rsModifier + '?',
  19005. rsOptVar = '[' + rsVarRange + ']?',
  19006. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  19007. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  19008. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  19009. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  19010. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  19011. /**
  19012. * Gets the size of a Unicode `string`.
  19013. *
  19014. * @private
  19015. * @param {string} string The string inspect.
  19016. * @returns {number} Returns the string size.
  19017. */
  19018. function unicodeSize(string) {
  19019. var result = reUnicode.lastIndex = 0;
  19020. while (reUnicode.test(string)) {
  19021. ++result;
  19022. }
  19023. return result;
  19024. }
  19025. module.exports = unicodeSize;
  19026. /***/ }),
  19027. /***/ "../../node_modules/lodash/clone.js":
  19028. /*!********************************************************!*\
  19029. !*** C:/Repos/Babylon.js/node_modules/lodash/clone.js ***!
  19030. \********************************************************/
  19031. /*! no static exports found */
  19032. /***/ (function(module, exports, __webpack_require__) {
  19033. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  19034. /** Used to compose bitmasks for cloning. */
  19035. var CLONE_SYMBOLS_FLAG = 4;
  19036. /**
  19037. * Creates a shallow clone of `value`.
  19038. *
  19039. * **Note:** This method is loosely based on the
  19040. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  19041. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  19042. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  19043. * arrays. The own enumerable properties of `arguments` objects are cloned
  19044. * as plain objects. An empty object is returned for uncloneable values such
  19045. * as error objects, functions, DOM nodes, and WeakMaps.
  19046. *
  19047. * @static
  19048. * @memberOf _
  19049. * @since 0.1.0
  19050. * @category Lang
  19051. * @param {*} value The value to clone.
  19052. * @returns {*} Returns the cloned value.
  19053. * @see _.cloneDeep
  19054. * @example
  19055. *
  19056. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  19057. *
  19058. * var shallow = _.clone(objects);
  19059. * console.log(shallow[0] === objects[0]);
  19060. * // => true
  19061. */
  19062. function clone(value) {
  19063. return baseClone(value, CLONE_SYMBOLS_FLAG);
  19064. }
  19065. module.exports = clone;
  19066. /***/ }),
  19067. /***/ "../../node_modules/lodash/cloneDeep.js":
  19068. /*!************************************************************!*\
  19069. !*** C:/Repos/Babylon.js/node_modules/lodash/cloneDeep.js ***!
  19070. \************************************************************/
  19071. /*! no static exports found */
  19072. /***/ (function(module, exports, __webpack_require__) {
  19073. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  19074. /** Used to compose bitmasks for cloning. */
  19075. var CLONE_DEEP_FLAG = 1,
  19076. CLONE_SYMBOLS_FLAG = 4;
  19077. /**
  19078. * This method is like `_.clone` except that it recursively clones `value`.
  19079. *
  19080. * @static
  19081. * @memberOf _
  19082. * @since 1.0.0
  19083. * @category Lang
  19084. * @param {*} value The value to recursively clone.
  19085. * @returns {*} Returns the deep cloned value.
  19086. * @see _.clone
  19087. * @example
  19088. *
  19089. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  19090. *
  19091. * var deep = _.cloneDeep(objects);
  19092. * console.log(deep[0] === objects[0]);
  19093. * // => false
  19094. */
  19095. function cloneDeep(value) {
  19096. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  19097. }
  19098. module.exports = cloneDeep;
  19099. /***/ }),
  19100. /***/ "../../node_modules/lodash/constant.js":
  19101. /*!***********************************************************!*\
  19102. !*** C:/Repos/Babylon.js/node_modules/lodash/constant.js ***!
  19103. \***********************************************************/
  19104. /*! no static exports found */
  19105. /***/ (function(module, exports) {
  19106. /**
  19107. * Creates a function that returns `value`.
  19108. *
  19109. * @static
  19110. * @memberOf _
  19111. * @since 2.4.0
  19112. * @category Util
  19113. * @param {*} value The value to return from the new function.
  19114. * @returns {Function} Returns the new constant function.
  19115. * @example
  19116. *
  19117. * var objects = _.times(2, _.constant({ 'a': 1 }));
  19118. *
  19119. * console.log(objects);
  19120. * // => [{ 'a': 1 }, { 'a': 1 }]
  19121. *
  19122. * console.log(objects[0] === objects[1]);
  19123. * // => true
  19124. */
  19125. function constant(value) {
  19126. return function() {
  19127. return value;
  19128. };
  19129. }
  19130. module.exports = constant;
  19131. /***/ }),
  19132. /***/ "../../node_modules/lodash/debounce.js":
  19133. /*!***********************************************************!*\
  19134. !*** C:/Repos/Babylon.js/node_modules/lodash/debounce.js ***!
  19135. \***********************************************************/
  19136. /*! no static exports found */
  19137. /***/ (function(module, exports, __webpack_require__) {
  19138. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  19139. now = __webpack_require__(/*! ./now */ "../../node_modules/lodash/now.js"),
  19140. toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  19141. /** Error message constants. */
  19142. var FUNC_ERROR_TEXT = 'Expected a function';
  19143. /* Built-in method references for those with the same name as other `lodash` methods. */
  19144. var nativeMax = Math.max,
  19145. nativeMin = Math.min;
  19146. /**
  19147. * Creates a debounced function that delays invoking `func` until after `wait`
  19148. * milliseconds have elapsed since the last time the debounced function was
  19149. * invoked. The debounced function comes with a `cancel` method to cancel
  19150. * delayed `func` invocations and a `flush` method to immediately invoke them.
  19151. * Provide `options` to indicate whether `func` should be invoked on the
  19152. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  19153. * with the last arguments provided to the debounced function. Subsequent
  19154. * calls to the debounced function return the result of the last `func`
  19155. * invocation.
  19156. *
  19157. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  19158. * invoked on the trailing edge of the timeout only if the debounced function
  19159. * is invoked more than once during the `wait` timeout.
  19160. *
  19161. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  19162. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  19163. *
  19164. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  19165. * for details over the differences between `_.debounce` and `_.throttle`.
  19166. *
  19167. * @static
  19168. * @memberOf _
  19169. * @since 0.1.0
  19170. * @category Function
  19171. * @param {Function} func The function to debounce.
  19172. * @param {number} [wait=0] The number of milliseconds to delay.
  19173. * @param {Object} [options={}] The options object.
  19174. * @param {boolean} [options.leading=false]
  19175. * Specify invoking on the leading edge of the timeout.
  19176. * @param {number} [options.maxWait]
  19177. * The maximum time `func` is allowed to be delayed before it's invoked.
  19178. * @param {boolean} [options.trailing=true]
  19179. * Specify invoking on the trailing edge of the timeout.
  19180. * @returns {Function} Returns the new debounced function.
  19181. * @example
  19182. *
  19183. * // Avoid costly calculations while the window size is in flux.
  19184. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  19185. *
  19186. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  19187. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  19188. * 'leading': true,
  19189. * 'trailing': false
  19190. * }));
  19191. *
  19192. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  19193. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  19194. * var source = new EventSource('/stream');
  19195. * jQuery(source).on('message', debounced);
  19196. *
  19197. * // Cancel the trailing debounced invocation.
  19198. * jQuery(window).on('popstate', debounced.cancel);
  19199. */
  19200. function debounce(func, wait, options) {
  19201. var lastArgs,
  19202. lastThis,
  19203. maxWait,
  19204. result,
  19205. timerId,
  19206. lastCallTime,
  19207. lastInvokeTime = 0,
  19208. leading = false,
  19209. maxing = false,
  19210. trailing = true;
  19211. if (typeof func != 'function') {
  19212. throw new TypeError(FUNC_ERROR_TEXT);
  19213. }
  19214. wait = toNumber(wait) || 0;
  19215. if (isObject(options)) {
  19216. leading = !!options.leading;
  19217. maxing = 'maxWait' in options;
  19218. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  19219. trailing = 'trailing' in options ? !!options.trailing : trailing;
  19220. }
  19221. function invokeFunc(time) {
  19222. var args = lastArgs,
  19223. thisArg = lastThis;
  19224. lastArgs = lastThis = undefined;
  19225. lastInvokeTime = time;
  19226. result = func.apply(thisArg, args);
  19227. return result;
  19228. }
  19229. function leadingEdge(time) {
  19230. // Reset any `maxWait` timer.
  19231. lastInvokeTime = time;
  19232. // Start the timer for the trailing edge.
  19233. timerId = setTimeout(timerExpired, wait);
  19234. // Invoke the leading edge.
  19235. return leading ? invokeFunc(time) : result;
  19236. }
  19237. function remainingWait(time) {
  19238. var timeSinceLastCall = time - lastCallTime,
  19239. timeSinceLastInvoke = time - lastInvokeTime,
  19240. timeWaiting = wait - timeSinceLastCall;
  19241. return maxing
  19242. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  19243. : timeWaiting;
  19244. }
  19245. function shouldInvoke(time) {
  19246. var timeSinceLastCall = time - lastCallTime,
  19247. timeSinceLastInvoke = time - lastInvokeTime;
  19248. // Either this is the first call, activity has stopped and we're at the
  19249. // trailing edge, the system time has gone backwards and we're treating
  19250. // it as the trailing edge, or we've hit the `maxWait` limit.
  19251. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  19252. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  19253. }
  19254. function timerExpired() {
  19255. var time = now();
  19256. if (shouldInvoke(time)) {
  19257. return trailingEdge(time);
  19258. }
  19259. // Restart the timer.
  19260. timerId = setTimeout(timerExpired, remainingWait(time));
  19261. }
  19262. function trailingEdge(time) {
  19263. timerId = undefined;
  19264. // Only invoke if we have `lastArgs` which means `func` has been
  19265. // debounced at least once.
  19266. if (trailing && lastArgs) {
  19267. return invokeFunc(time);
  19268. }
  19269. lastArgs = lastThis = undefined;
  19270. return result;
  19271. }
  19272. function cancel() {
  19273. if (timerId !== undefined) {
  19274. clearTimeout(timerId);
  19275. }
  19276. lastInvokeTime = 0;
  19277. lastArgs = lastCallTime = lastThis = timerId = undefined;
  19278. }
  19279. function flush() {
  19280. return timerId === undefined ? result : trailingEdge(now());
  19281. }
  19282. function debounced() {
  19283. var time = now(),
  19284. isInvoking = shouldInvoke(time);
  19285. lastArgs = arguments;
  19286. lastThis = this;
  19287. lastCallTime = time;
  19288. if (isInvoking) {
  19289. if (timerId === undefined) {
  19290. return leadingEdge(lastCallTime);
  19291. }
  19292. if (maxing) {
  19293. // Handle invocations in a tight loop.
  19294. clearTimeout(timerId);
  19295. timerId = setTimeout(timerExpired, wait);
  19296. return invokeFunc(lastCallTime);
  19297. }
  19298. }
  19299. if (timerId === undefined) {
  19300. timerId = setTimeout(timerExpired, wait);
  19301. }
  19302. return result;
  19303. }
  19304. debounced.cancel = cancel;
  19305. debounced.flush = flush;
  19306. return debounced;
  19307. }
  19308. module.exports = debounce;
  19309. /***/ }),
  19310. /***/ "../../node_modules/lodash/defaults.js":
  19311. /*!***********************************************************!*\
  19312. !*** C:/Repos/Babylon.js/node_modules/lodash/defaults.js ***!
  19313. \***********************************************************/
  19314. /*! no static exports found */
  19315. /***/ (function(module, exports, __webpack_require__) {
  19316. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  19317. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  19318. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  19319. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  19320. /** Used for built-in method references. */
  19321. var objectProto = Object.prototype;
  19322. /** Used to check objects for own properties. */
  19323. var hasOwnProperty = objectProto.hasOwnProperty;
  19324. /**
  19325. * Assigns own and inherited enumerable string keyed properties of source
  19326. * objects to the destination object for all destination properties that
  19327. * resolve to `undefined`. Source objects are applied from left to right.
  19328. * Once a property is set, additional values of the same property are ignored.
  19329. *
  19330. * **Note:** This method mutates `object`.
  19331. *
  19332. * @static
  19333. * @since 0.1.0
  19334. * @memberOf _
  19335. * @category Object
  19336. * @param {Object} object The destination object.
  19337. * @param {...Object} [sources] The source objects.
  19338. * @returns {Object} Returns `object`.
  19339. * @see _.defaultsDeep
  19340. * @example
  19341. *
  19342. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  19343. * // => { 'a': 1, 'b': 2 }
  19344. */
  19345. var defaults = baseRest(function(object, sources) {
  19346. object = Object(object);
  19347. var index = -1;
  19348. var length = sources.length;
  19349. var guard = length > 2 ? sources[2] : undefined;
  19350. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  19351. length = 1;
  19352. }
  19353. while (++index < length) {
  19354. var source = sources[index];
  19355. var props = keysIn(source);
  19356. var propsIndex = -1;
  19357. var propsLength = props.length;
  19358. while (++propsIndex < propsLength) {
  19359. var key = props[propsIndex];
  19360. var value = object[key];
  19361. if (value === undefined ||
  19362. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  19363. object[key] = source[key];
  19364. }
  19365. }
  19366. }
  19367. return object;
  19368. });
  19369. module.exports = defaults;
  19370. /***/ }),
  19371. /***/ "../../node_modules/lodash/each.js":
  19372. /*!*******************************************************!*\
  19373. !*** C:/Repos/Babylon.js/node_modules/lodash/each.js ***!
  19374. \*******************************************************/
  19375. /*! no static exports found */
  19376. /***/ (function(module, exports, __webpack_require__) {
  19377. module.exports = __webpack_require__(/*! ./forEach */ "../../node_modules/lodash/forEach.js");
  19378. /***/ }),
  19379. /***/ "../../node_modules/lodash/eq.js":
  19380. /*!*****************************************************!*\
  19381. !*** C:/Repos/Babylon.js/node_modules/lodash/eq.js ***!
  19382. \*****************************************************/
  19383. /*! no static exports found */
  19384. /***/ (function(module, exports) {
  19385. /**
  19386. * Performs a
  19387. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  19388. * comparison between two values to determine if they are equivalent.
  19389. *
  19390. * @static
  19391. * @memberOf _
  19392. * @since 4.0.0
  19393. * @category Lang
  19394. * @param {*} value The value to compare.
  19395. * @param {*} other The other value to compare.
  19396. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  19397. * @example
  19398. *
  19399. * var object = { 'a': 1 };
  19400. * var other = { 'a': 1 };
  19401. *
  19402. * _.eq(object, object);
  19403. * // => true
  19404. *
  19405. * _.eq(object, other);
  19406. * // => false
  19407. *
  19408. * _.eq('a', 'a');
  19409. * // => true
  19410. *
  19411. * _.eq('a', Object('a'));
  19412. * // => false
  19413. *
  19414. * _.eq(NaN, NaN);
  19415. * // => true
  19416. */
  19417. function eq(value, other) {
  19418. return value === other || (value !== value && other !== other);
  19419. }
  19420. module.exports = eq;
  19421. /***/ }),
  19422. /***/ "../../node_modules/lodash/filter.js":
  19423. /*!*********************************************************!*\
  19424. !*** C:/Repos/Babylon.js/node_modules/lodash/filter.js ***!
  19425. \*********************************************************/
  19426. /*! no static exports found */
  19427. /***/ (function(module, exports, __webpack_require__) {
  19428. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  19429. baseFilter = __webpack_require__(/*! ./_baseFilter */ "../../node_modules/lodash/_baseFilter.js"),
  19430. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  19431. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  19432. /**
  19433. * Iterates over elements of `collection`, returning an array of all elements
  19434. * `predicate` returns truthy for. The predicate is invoked with three
  19435. * arguments: (value, index|key, collection).
  19436. *
  19437. * **Note:** Unlike `_.remove`, this method returns a new array.
  19438. *
  19439. * @static
  19440. * @memberOf _
  19441. * @since 0.1.0
  19442. * @category Collection
  19443. * @param {Array|Object} collection The collection to iterate over.
  19444. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  19445. * @returns {Array} Returns the new filtered array.
  19446. * @see _.reject
  19447. * @example
  19448. *
  19449. * var users = [
  19450. * { 'user': 'barney', 'age': 36, 'active': true },
  19451. * { 'user': 'fred', 'age': 40, 'active': false }
  19452. * ];
  19453. *
  19454. * _.filter(users, function(o) { return !o.active; });
  19455. * // => objects for ['fred']
  19456. *
  19457. * // The `_.matches` iteratee shorthand.
  19458. * _.filter(users, { 'age': 36, 'active': true });
  19459. * // => objects for ['barney']
  19460. *
  19461. * // The `_.matchesProperty` iteratee shorthand.
  19462. * _.filter(users, ['active', false]);
  19463. * // => objects for ['fred']
  19464. *
  19465. * // The `_.property` iteratee shorthand.
  19466. * _.filter(users, 'active');
  19467. * // => objects for ['barney']
  19468. *
  19469. * // Combining several predicates using `_.overEvery` or `_.overSome`.
  19470. * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
  19471. * // => objects for ['fred', 'barney']
  19472. */
  19473. function filter(collection, predicate) {
  19474. var func = isArray(collection) ? arrayFilter : baseFilter;
  19475. return func(collection, baseIteratee(predicate, 3));
  19476. }
  19477. module.exports = filter;
  19478. /***/ }),
  19479. /***/ "../../node_modules/lodash/find.js":
  19480. /*!*******************************************************!*\
  19481. !*** C:/Repos/Babylon.js/node_modules/lodash/find.js ***!
  19482. \*******************************************************/
  19483. /*! no static exports found */
  19484. /***/ (function(module, exports, __webpack_require__) {
  19485. var createFind = __webpack_require__(/*! ./_createFind */ "../../node_modules/lodash/_createFind.js"),
  19486. findIndex = __webpack_require__(/*! ./findIndex */ "../../node_modules/lodash/findIndex.js");
  19487. /**
  19488. * Iterates over elements of `collection`, returning the first element
  19489. * `predicate` returns truthy for. The predicate is invoked with three
  19490. * arguments: (value, index|key, collection).
  19491. *
  19492. * @static
  19493. * @memberOf _
  19494. * @since 0.1.0
  19495. * @category Collection
  19496. * @param {Array|Object} collection The collection to inspect.
  19497. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  19498. * @param {number} [fromIndex=0] The index to search from.
  19499. * @returns {*} Returns the matched element, else `undefined`.
  19500. * @example
  19501. *
  19502. * var users = [
  19503. * { 'user': 'barney', 'age': 36, 'active': true },
  19504. * { 'user': 'fred', 'age': 40, 'active': false },
  19505. * { 'user': 'pebbles', 'age': 1, 'active': true }
  19506. * ];
  19507. *
  19508. * _.find(users, function(o) { return o.age < 40; });
  19509. * // => object for 'barney'
  19510. *
  19511. * // The `_.matches` iteratee shorthand.
  19512. * _.find(users, { 'age': 1, 'active': true });
  19513. * // => object for 'pebbles'
  19514. *
  19515. * // The `_.matchesProperty` iteratee shorthand.
  19516. * _.find(users, ['active', false]);
  19517. * // => object for 'fred'
  19518. *
  19519. * // The `_.property` iteratee shorthand.
  19520. * _.find(users, 'active');
  19521. * // => object for 'barney'
  19522. */
  19523. var find = createFind(findIndex);
  19524. module.exports = find;
  19525. /***/ }),
  19526. /***/ "../../node_modules/lodash/findIndex.js":
  19527. /*!************************************************************!*\
  19528. !*** C:/Repos/Babylon.js/node_modules/lodash/findIndex.js ***!
  19529. \************************************************************/
  19530. /*! no static exports found */
  19531. /***/ (function(module, exports, __webpack_require__) {
  19532. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  19533. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  19534. toInteger = __webpack_require__(/*! ./toInteger */ "../../node_modules/lodash/toInteger.js");
  19535. /* Built-in method references for those with the same name as other `lodash` methods. */
  19536. var nativeMax = Math.max;
  19537. /**
  19538. * This method is like `_.find` except that it returns the index of the first
  19539. * element `predicate` returns truthy for instead of the element itself.
  19540. *
  19541. * @static
  19542. * @memberOf _
  19543. * @since 1.1.0
  19544. * @category Array
  19545. * @param {Array} array The array to inspect.
  19546. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  19547. * @param {number} [fromIndex=0] The index to search from.
  19548. * @returns {number} Returns the index of the found element, else `-1`.
  19549. * @example
  19550. *
  19551. * var users = [
  19552. * { 'user': 'barney', 'active': false },
  19553. * { 'user': 'fred', 'active': false },
  19554. * { 'user': 'pebbles', 'active': true }
  19555. * ];
  19556. *
  19557. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  19558. * // => 0
  19559. *
  19560. * // The `_.matches` iteratee shorthand.
  19561. * _.findIndex(users, { 'user': 'fred', 'active': false });
  19562. * // => 1
  19563. *
  19564. * // The `_.matchesProperty` iteratee shorthand.
  19565. * _.findIndex(users, ['active', false]);
  19566. * // => 0
  19567. *
  19568. * // The `_.property` iteratee shorthand.
  19569. * _.findIndex(users, 'active');
  19570. * // => 2
  19571. */
  19572. function findIndex(array, predicate, fromIndex) {
  19573. var length = array == null ? 0 : array.length;
  19574. if (!length) {
  19575. return -1;
  19576. }
  19577. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  19578. if (index < 0) {
  19579. index = nativeMax(length + index, 0);
  19580. }
  19581. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  19582. }
  19583. module.exports = findIndex;
  19584. /***/ }),
  19585. /***/ "../../node_modules/lodash/flatten.js":
  19586. /*!**********************************************************!*\
  19587. !*** C:/Repos/Babylon.js/node_modules/lodash/flatten.js ***!
  19588. \**********************************************************/
  19589. /*! no static exports found */
  19590. /***/ (function(module, exports, __webpack_require__) {
  19591. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js");
  19592. /**
  19593. * Flattens `array` a single level deep.
  19594. *
  19595. * @static
  19596. * @memberOf _
  19597. * @since 0.1.0
  19598. * @category Array
  19599. * @param {Array} array The array to flatten.
  19600. * @returns {Array} Returns the new flattened array.
  19601. * @example
  19602. *
  19603. * _.flatten([1, [2, [3, [4]], 5]]);
  19604. * // => [1, 2, [3, [4]], 5]
  19605. */
  19606. function flatten(array) {
  19607. var length = array == null ? 0 : array.length;
  19608. return length ? baseFlatten(array, 1) : [];
  19609. }
  19610. module.exports = flatten;
  19611. /***/ }),
  19612. /***/ "../../node_modules/lodash/forEach.js":
  19613. /*!**********************************************************!*\
  19614. !*** C:/Repos/Babylon.js/node_modules/lodash/forEach.js ***!
  19615. \**********************************************************/
  19616. /*! no static exports found */
  19617. /***/ (function(module, exports, __webpack_require__) {
  19618. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  19619. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  19620. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  19621. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  19622. /**
  19623. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  19624. * The iteratee is invoked with three arguments: (value, index|key, collection).
  19625. * Iteratee functions may exit iteration early by explicitly returning `false`.
  19626. *
  19627. * **Note:** As with other "Collections" methods, objects with a "length"
  19628. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  19629. * or `_.forOwn` for object iteration.
  19630. *
  19631. * @static
  19632. * @memberOf _
  19633. * @since 0.1.0
  19634. * @alias each
  19635. * @category Collection
  19636. * @param {Array|Object} collection The collection to iterate over.
  19637. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  19638. * @returns {Array|Object} Returns `collection`.
  19639. * @see _.forEachRight
  19640. * @example
  19641. *
  19642. * _.forEach([1, 2], function(value) {
  19643. * console.log(value);
  19644. * });
  19645. * // => Logs `1` then `2`.
  19646. *
  19647. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  19648. * console.log(key);
  19649. * });
  19650. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  19651. */
  19652. function forEach(collection, iteratee) {
  19653. var func = isArray(collection) ? arrayEach : baseEach;
  19654. return func(collection, castFunction(iteratee));
  19655. }
  19656. module.exports = forEach;
  19657. /***/ }),
  19658. /***/ "../../node_modules/lodash/forIn.js":
  19659. /*!********************************************************!*\
  19660. !*** C:/Repos/Babylon.js/node_modules/lodash/forIn.js ***!
  19661. \********************************************************/
  19662. /*! no static exports found */
  19663. /***/ (function(module, exports, __webpack_require__) {
  19664. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  19665. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  19666. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  19667. /**
  19668. * Iterates over own and inherited enumerable string keyed properties of an
  19669. * object and invokes `iteratee` for each property. The iteratee is invoked
  19670. * with three arguments: (value, key, object). Iteratee functions may exit
  19671. * iteration early by explicitly returning `false`.
  19672. *
  19673. * @static
  19674. * @memberOf _
  19675. * @since 0.3.0
  19676. * @category Object
  19677. * @param {Object} object The object to iterate over.
  19678. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  19679. * @returns {Object} Returns `object`.
  19680. * @see _.forInRight
  19681. * @example
  19682. *
  19683. * function Foo() {
  19684. * this.a = 1;
  19685. * this.b = 2;
  19686. * }
  19687. *
  19688. * Foo.prototype.c = 3;
  19689. *
  19690. * _.forIn(new Foo, function(value, key) {
  19691. * console.log(key);
  19692. * });
  19693. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  19694. */
  19695. function forIn(object, iteratee) {
  19696. return object == null
  19697. ? object
  19698. : baseFor(object, castFunction(iteratee), keysIn);
  19699. }
  19700. module.exports = forIn;
  19701. /***/ }),
  19702. /***/ "../../node_modules/lodash/forOwn.js":
  19703. /*!*********************************************************!*\
  19704. !*** C:/Repos/Babylon.js/node_modules/lodash/forOwn.js ***!
  19705. \*********************************************************/
  19706. /*! no static exports found */
  19707. /***/ (function(module, exports, __webpack_require__) {
  19708. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  19709. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js");
  19710. /**
  19711. * Iterates over own enumerable string keyed properties of an object and
  19712. * invokes `iteratee` for each property. The iteratee is invoked with three
  19713. * arguments: (value, key, object). Iteratee functions may exit iteration
  19714. * early by explicitly returning `false`.
  19715. *
  19716. * @static
  19717. * @memberOf _
  19718. * @since 0.3.0
  19719. * @category Object
  19720. * @param {Object} object The object to iterate over.
  19721. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  19722. * @returns {Object} Returns `object`.
  19723. * @see _.forOwnRight
  19724. * @example
  19725. *
  19726. * function Foo() {
  19727. * this.a = 1;
  19728. * this.b = 2;
  19729. * }
  19730. *
  19731. * Foo.prototype.c = 3;
  19732. *
  19733. * _.forOwn(new Foo, function(value, key) {
  19734. * console.log(key);
  19735. * });
  19736. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  19737. */
  19738. function forOwn(object, iteratee) {
  19739. return object && baseForOwn(object, castFunction(iteratee));
  19740. }
  19741. module.exports = forOwn;
  19742. /***/ }),
  19743. /***/ "../../node_modules/lodash/get.js":
  19744. /*!******************************************************!*\
  19745. !*** C:/Repos/Babylon.js/node_modules/lodash/get.js ***!
  19746. \******************************************************/
  19747. /*! no static exports found */
  19748. /***/ (function(module, exports, __webpack_require__) {
  19749. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  19750. /**
  19751. * Gets the value at `path` of `object`. If the resolved value is
  19752. * `undefined`, the `defaultValue` is returned in its place.
  19753. *
  19754. * @static
  19755. * @memberOf _
  19756. * @since 3.7.0
  19757. * @category Object
  19758. * @param {Object} object The object to query.
  19759. * @param {Array|string} path The path of the property to get.
  19760. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  19761. * @returns {*} Returns the resolved value.
  19762. * @example
  19763. *
  19764. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  19765. *
  19766. * _.get(object, 'a[0].b.c');
  19767. * // => 3
  19768. *
  19769. * _.get(object, ['a', '0', 'b', 'c']);
  19770. * // => 3
  19771. *
  19772. * _.get(object, 'a.b.c', 'default');
  19773. * // => 'default'
  19774. */
  19775. function get(object, path, defaultValue) {
  19776. var result = object == null ? undefined : baseGet(object, path);
  19777. return result === undefined ? defaultValue : result;
  19778. }
  19779. module.exports = get;
  19780. /***/ }),
  19781. /***/ "../../node_modules/lodash/has.js":
  19782. /*!******************************************************!*\
  19783. !*** C:/Repos/Babylon.js/node_modules/lodash/has.js ***!
  19784. \******************************************************/
  19785. /*! no static exports found */
  19786. /***/ (function(module, exports, __webpack_require__) {
  19787. var baseHas = __webpack_require__(/*! ./_baseHas */ "../../node_modules/lodash/_baseHas.js"),
  19788. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  19789. /**
  19790. * Checks if `path` is a direct property of `object`.
  19791. *
  19792. * @static
  19793. * @since 0.1.0
  19794. * @memberOf _
  19795. * @category Object
  19796. * @param {Object} object The object to query.
  19797. * @param {Array|string} path The path to check.
  19798. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  19799. * @example
  19800. *
  19801. * var object = { 'a': { 'b': 2 } };
  19802. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  19803. *
  19804. * _.has(object, 'a');
  19805. * // => true
  19806. *
  19807. * _.has(object, 'a.b');
  19808. * // => true
  19809. *
  19810. * _.has(object, ['a', 'b']);
  19811. * // => true
  19812. *
  19813. * _.has(other, 'a');
  19814. * // => false
  19815. */
  19816. function has(object, path) {
  19817. return object != null && hasPath(object, path, baseHas);
  19818. }
  19819. module.exports = has;
  19820. /***/ }),
  19821. /***/ "../../node_modules/lodash/hasIn.js":
  19822. /*!********************************************************!*\
  19823. !*** C:/Repos/Babylon.js/node_modules/lodash/hasIn.js ***!
  19824. \********************************************************/
  19825. /*! no static exports found */
  19826. /***/ (function(module, exports, __webpack_require__) {
  19827. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../node_modules/lodash/_baseHasIn.js"),
  19828. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  19829. /**
  19830. * Checks if `path` is a direct or inherited property of `object`.
  19831. *
  19832. * @static
  19833. * @memberOf _
  19834. * @since 4.0.0
  19835. * @category Object
  19836. * @param {Object} object The object to query.
  19837. * @param {Array|string} path The path to check.
  19838. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  19839. * @example
  19840. *
  19841. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  19842. *
  19843. * _.hasIn(object, 'a');
  19844. * // => true
  19845. *
  19846. * _.hasIn(object, 'a.b');
  19847. * // => true
  19848. *
  19849. * _.hasIn(object, ['a', 'b']);
  19850. * // => true
  19851. *
  19852. * _.hasIn(object, 'b');
  19853. * // => false
  19854. */
  19855. function hasIn(object, path) {
  19856. return object != null && hasPath(object, path, baseHasIn);
  19857. }
  19858. module.exports = hasIn;
  19859. /***/ }),
  19860. /***/ "../../node_modules/lodash/identity.js":
  19861. /*!***********************************************************!*\
  19862. !*** C:/Repos/Babylon.js/node_modules/lodash/identity.js ***!
  19863. \***********************************************************/
  19864. /*! no static exports found */
  19865. /***/ (function(module, exports) {
  19866. /**
  19867. * This method returns the first argument it receives.
  19868. *
  19869. * @static
  19870. * @since 0.1.0
  19871. * @memberOf _
  19872. * @category Util
  19873. * @param {*} value Any value.
  19874. * @returns {*} Returns `value`.
  19875. * @example
  19876. *
  19877. * var object = { 'a': 1 };
  19878. *
  19879. * console.log(_.identity(object) === object);
  19880. * // => true
  19881. */
  19882. function identity(value) {
  19883. return value;
  19884. }
  19885. module.exports = identity;
  19886. /***/ }),
  19887. /***/ "../../node_modules/lodash/isArguments.js":
  19888. /*!**************************************************************!*\
  19889. !*** C:/Repos/Babylon.js/node_modules/lodash/isArguments.js ***!
  19890. \**************************************************************/
  19891. /*! no static exports found */
  19892. /***/ (function(module, exports, __webpack_require__) {
  19893. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
  19894. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  19895. /** Used for built-in method references. */
  19896. var objectProto = Object.prototype;
  19897. /** Used to check objects for own properties. */
  19898. var hasOwnProperty = objectProto.hasOwnProperty;
  19899. /** Built-in value references. */
  19900. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  19901. /**
  19902. * Checks if `value` is likely an `arguments` object.
  19903. *
  19904. * @static
  19905. * @memberOf _
  19906. * @since 0.1.0
  19907. * @category Lang
  19908. * @param {*} value The value to check.
  19909. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  19910. * else `false`.
  19911. * @example
  19912. *
  19913. * _.isArguments(function() { return arguments; }());
  19914. * // => true
  19915. *
  19916. * _.isArguments([1, 2, 3]);
  19917. * // => false
  19918. */
  19919. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  19920. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  19921. !propertyIsEnumerable.call(value, 'callee');
  19922. };
  19923. module.exports = isArguments;
  19924. /***/ }),
  19925. /***/ "../../node_modules/lodash/isArray.js":
  19926. /*!**********************************************************!*\
  19927. !*** C:/Repos/Babylon.js/node_modules/lodash/isArray.js ***!
  19928. \**********************************************************/
  19929. /*! no static exports found */
  19930. /***/ (function(module, exports) {
  19931. /**
  19932. * Checks if `value` is classified as an `Array` object.
  19933. *
  19934. * @static
  19935. * @memberOf _
  19936. * @since 0.1.0
  19937. * @category Lang
  19938. * @param {*} value The value to check.
  19939. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  19940. * @example
  19941. *
  19942. * _.isArray([1, 2, 3]);
  19943. * // => true
  19944. *
  19945. * _.isArray(document.body.children);
  19946. * // => false
  19947. *
  19948. * _.isArray('abc');
  19949. * // => false
  19950. *
  19951. * _.isArray(_.noop);
  19952. * // => false
  19953. */
  19954. var isArray = Array.isArray;
  19955. module.exports = isArray;
  19956. /***/ }),
  19957. /***/ "../../node_modules/lodash/isArrayLike.js":
  19958. /*!**************************************************************!*\
  19959. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLike.js ***!
  19960. \**************************************************************/
  19961. /*! no static exports found */
  19962. /***/ (function(module, exports, __webpack_require__) {
  19963. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  19964. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
  19965. /**
  19966. * Checks if `value` is array-like. A value is considered array-like if it's
  19967. * not a function and has a `value.length` that's an integer greater than or
  19968. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  19969. *
  19970. * @static
  19971. * @memberOf _
  19972. * @since 4.0.0
  19973. * @category Lang
  19974. * @param {*} value The value to check.
  19975. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  19976. * @example
  19977. *
  19978. * _.isArrayLike([1, 2, 3]);
  19979. * // => true
  19980. *
  19981. * _.isArrayLike(document.body.children);
  19982. * // => true
  19983. *
  19984. * _.isArrayLike('abc');
  19985. * // => true
  19986. *
  19987. * _.isArrayLike(_.noop);
  19988. * // => false
  19989. */
  19990. function isArrayLike(value) {
  19991. return value != null && isLength(value.length) && !isFunction(value);
  19992. }
  19993. module.exports = isArrayLike;
  19994. /***/ }),
  19995. /***/ "../../node_modules/lodash/isArrayLikeObject.js":
  19996. /*!********************************************************************!*\
  19997. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLikeObject.js ***!
  19998. \********************************************************************/
  19999. /*! no static exports found */
  20000. /***/ (function(module, exports, __webpack_require__) {
  20001. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  20002. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  20003. /**
  20004. * This method is like `_.isArrayLike` except that it also checks if `value`
  20005. * is an object.
  20006. *
  20007. * @static
  20008. * @memberOf _
  20009. * @since 4.0.0
  20010. * @category Lang
  20011. * @param {*} value The value to check.
  20012. * @returns {boolean} Returns `true` if `value` is an array-like object,
  20013. * else `false`.
  20014. * @example
  20015. *
  20016. * _.isArrayLikeObject([1, 2, 3]);
  20017. * // => true
  20018. *
  20019. * _.isArrayLikeObject(document.body.children);
  20020. * // => true
  20021. *
  20022. * _.isArrayLikeObject('abc');
  20023. * // => false
  20024. *
  20025. * _.isArrayLikeObject(_.noop);
  20026. * // => false
  20027. */
  20028. function isArrayLikeObject(value) {
  20029. return isObjectLike(value) && isArrayLike(value);
  20030. }
  20031. module.exports = isArrayLikeObject;
  20032. /***/ }),
  20033. /***/ "../../node_modules/lodash/isBuffer.js":
  20034. /*!***********************************************************!*\
  20035. !*** C:/Repos/Babylon.js/node_modules/lodash/isBuffer.js ***!
  20036. \***********************************************************/
  20037. /*! no static exports found */
  20038. /***/ (function(module, exports, __webpack_require__) {
  20039. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
  20040. stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
  20041. /** Detect free variable `exports`. */
  20042. var freeExports = true && exports && !exports.nodeType && exports;
  20043. /** Detect free variable `module`. */
  20044. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  20045. /** Detect the popular CommonJS extension `module.exports`. */
  20046. var moduleExports = freeModule && freeModule.exports === freeExports;
  20047. /** Built-in value references. */
  20048. var Buffer = moduleExports ? root.Buffer : undefined;
  20049. /* Built-in method references for those with the same name as other `lodash` methods. */
  20050. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  20051. /**
  20052. * Checks if `value` is a buffer.
  20053. *
  20054. * @static
  20055. * @memberOf _
  20056. * @since 4.3.0
  20057. * @category Lang
  20058. * @param {*} value The value to check.
  20059. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  20060. * @example
  20061. *
  20062. * _.isBuffer(new Buffer(2));
  20063. * // => true
  20064. *
  20065. * _.isBuffer(new Uint8Array(2));
  20066. * // => false
  20067. */
  20068. var isBuffer = nativeIsBuffer || stubFalse;
  20069. module.exports = isBuffer;
  20070. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  20071. /***/ }),
  20072. /***/ "../../node_modules/lodash/isEmpty.js":
  20073. /*!**********************************************************!*\
  20074. !*** C:/Repos/Babylon.js/node_modules/lodash/isEmpty.js ***!
  20075. \**********************************************************/
  20076. /*! no static exports found */
  20077. /***/ (function(module, exports, __webpack_require__) {
  20078. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  20079. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  20080. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  20081. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  20082. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  20083. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  20084. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  20085. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  20086. /** `Object#toString` result references. */
  20087. var mapTag = '[object Map]',
  20088. setTag = '[object Set]';
  20089. /** Used for built-in method references. */
  20090. var objectProto = Object.prototype;
  20091. /** Used to check objects for own properties. */
  20092. var hasOwnProperty = objectProto.hasOwnProperty;
  20093. /**
  20094. * Checks if `value` is an empty object, collection, map, or set.
  20095. *
  20096. * Objects are considered empty if they have no own enumerable string keyed
  20097. * properties.
  20098. *
  20099. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  20100. * jQuery-like collections are considered empty if they have a `length` of `0`.
  20101. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  20102. *
  20103. * @static
  20104. * @memberOf _
  20105. * @since 0.1.0
  20106. * @category Lang
  20107. * @param {*} value The value to check.
  20108. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  20109. * @example
  20110. *
  20111. * _.isEmpty(null);
  20112. * // => true
  20113. *
  20114. * _.isEmpty(true);
  20115. * // => true
  20116. *
  20117. * _.isEmpty(1);
  20118. * // => true
  20119. *
  20120. * _.isEmpty([1, 2, 3]);
  20121. * // => false
  20122. *
  20123. * _.isEmpty({ 'a': 1 });
  20124. * // => false
  20125. */
  20126. function isEmpty(value) {
  20127. if (value == null) {
  20128. return true;
  20129. }
  20130. if (isArrayLike(value) &&
  20131. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  20132. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  20133. return !value.length;
  20134. }
  20135. var tag = getTag(value);
  20136. if (tag == mapTag || tag == setTag) {
  20137. return !value.size;
  20138. }
  20139. if (isPrototype(value)) {
  20140. return !baseKeys(value).length;
  20141. }
  20142. for (var key in value) {
  20143. if (hasOwnProperty.call(value, key)) {
  20144. return false;
  20145. }
  20146. }
  20147. return true;
  20148. }
  20149. module.exports = isEmpty;
  20150. /***/ }),
  20151. /***/ "../../node_modules/lodash/isFunction.js":
  20152. /*!*************************************************************!*\
  20153. !*** C:/Repos/Babylon.js/node_modules/lodash/isFunction.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. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  20159. /** `Object#toString` result references. */
  20160. var asyncTag = '[object AsyncFunction]',
  20161. funcTag = '[object Function]',
  20162. genTag = '[object GeneratorFunction]',
  20163. proxyTag = '[object Proxy]';
  20164. /**
  20165. * Checks if `value` is classified as a `Function` object.
  20166. *
  20167. * @static
  20168. * @memberOf _
  20169. * @since 0.1.0
  20170. * @category Lang
  20171. * @param {*} value The value to check.
  20172. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  20173. * @example
  20174. *
  20175. * _.isFunction(_);
  20176. * // => true
  20177. *
  20178. * _.isFunction(/abc/);
  20179. * // => false
  20180. */
  20181. function isFunction(value) {
  20182. if (!isObject(value)) {
  20183. return false;
  20184. }
  20185. // The use of `Object#toString` avoids issues with the `typeof` operator
  20186. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  20187. var tag = baseGetTag(value);
  20188. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  20189. }
  20190. module.exports = isFunction;
  20191. /***/ }),
  20192. /***/ "../../node_modules/lodash/isLength.js":
  20193. /*!***********************************************************!*\
  20194. !*** C:/Repos/Babylon.js/node_modules/lodash/isLength.js ***!
  20195. \***********************************************************/
  20196. /*! no static exports found */
  20197. /***/ (function(module, exports) {
  20198. /** Used as references for various `Number` constants. */
  20199. var MAX_SAFE_INTEGER = 9007199254740991;
  20200. /**
  20201. * Checks if `value` is a valid array-like length.
  20202. *
  20203. * **Note:** This method is loosely based on
  20204. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  20205. *
  20206. * @static
  20207. * @memberOf _
  20208. * @since 4.0.0
  20209. * @category Lang
  20210. * @param {*} value The value to check.
  20211. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  20212. * @example
  20213. *
  20214. * _.isLength(3);
  20215. * // => true
  20216. *
  20217. * _.isLength(Number.MIN_VALUE);
  20218. * // => false
  20219. *
  20220. * _.isLength(Infinity);
  20221. * // => false
  20222. *
  20223. * _.isLength('3');
  20224. * // => false
  20225. */
  20226. function isLength(value) {
  20227. return typeof value == 'number' &&
  20228. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  20229. }
  20230. module.exports = isLength;
  20231. /***/ }),
  20232. /***/ "../../node_modules/lodash/isMap.js":
  20233. /*!********************************************************!*\
  20234. !*** C:/Repos/Babylon.js/node_modules/lodash/isMap.js ***!
  20235. \********************************************************/
  20236. /*! no static exports found */
  20237. /***/ (function(module, exports, __webpack_require__) {
  20238. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "../../node_modules/lodash/_baseIsMap.js"),
  20239. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  20240. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  20241. /* Node.js helper references. */
  20242. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  20243. /**
  20244. * Checks if `value` is classified as a `Map` object.
  20245. *
  20246. * @static
  20247. * @memberOf _
  20248. * @since 4.3.0
  20249. * @category Lang
  20250. * @param {*} value The value to check.
  20251. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  20252. * @example
  20253. *
  20254. * _.isMap(new Map);
  20255. * // => true
  20256. *
  20257. * _.isMap(new WeakMap);
  20258. * // => false
  20259. */
  20260. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  20261. module.exports = isMap;
  20262. /***/ }),
  20263. /***/ "../../node_modules/lodash/isObject.js":
  20264. /*!***********************************************************!*\
  20265. !*** C:/Repos/Babylon.js/node_modules/lodash/isObject.js ***!
  20266. \***********************************************************/
  20267. /*! no static exports found */
  20268. /***/ (function(module, exports) {
  20269. /**
  20270. * Checks if `value` is the
  20271. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  20272. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  20273. *
  20274. * @static
  20275. * @memberOf _
  20276. * @since 0.1.0
  20277. * @category Lang
  20278. * @param {*} value The value to check.
  20279. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  20280. * @example
  20281. *
  20282. * _.isObject({});
  20283. * // => true
  20284. *
  20285. * _.isObject([1, 2, 3]);
  20286. * // => true
  20287. *
  20288. * _.isObject(_.noop);
  20289. * // => true
  20290. *
  20291. * _.isObject(null);
  20292. * // => false
  20293. */
  20294. function isObject(value) {
  20295. var type = typeof value;
  20296. return value != null && (type == 'object' || type == 'function');
  20297. }
  20298. module.exports = isObject;
  20299. /***/ }),
  20300. /***/ "../../node_modules/lodash/isObjectLike.js":
  20301. /*!***************************************************************!*\
  20302. !*** C:/Repos/Babylon.js/node_modules/lodash/isObjectLike.js ***!
  20303. \***************************************************************/
  20304. /*! no static exports found */
  20305. /***/ (function(module, exports) {
  20306. /**
  20307. * Checks if `value` is object-like. A value is object-like if it's not `null`
  20308. * and has a `typeof` result of "object".
  20309. *
  20310. * @static
  20311. * @memberOf _
  20312. * @since 4.0.0
  20313. * @category Lang
  20314. * @param {*} value The value to check.
  20315. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  20316. * @example
  20317. *
  20318. * _.isObjectLike({});
  20319. * // => true
  20320. *
  20321. * _.isObjectLike([1, 2, 3]);
  20322. * // => true
  20323. *
  20324. * _.isObjectLike(_.noop);
  20325. * // => false
  20326. *
  20327. * _.isObjectLike(null);
  20328. * // => false
  20329. */
  20330. function isObjectLike(value) {
  20331. return value != null && typeof value == 'object';
  20332. }
  20333. module.exports = isObjectLike;
  20334. /***/ }),
  20335. /***/ "../../node_modules/lodash/isPlainObject.js":
  20336. /*!****************************************************************!*\
  20337. !*** C:/Repos/Babylon.js/node_modules/lodash/isPlainObject.js ***!
  20338. \****************************************************************/
  20339. /*! no static exports found */
  20340. /***/ (function(module, exports, __webpack_require__) {
  20341. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  20342. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  20343. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  20344. /** `Object#toString` result references. */
  20345. var objectTag = '[object Object]';
  20346. /** Used for built-in method references. */
  20347. var funcProto = Function.prototype,
  20348. objectProto = Object.prototype;
  20349. /** Used to resolve the decompiled source of functions. */
  20350. var funcToString = funcProto.toString;
  20351. /** Used to check objects for own properties. */
  20352. var hasOwnProperty = objectProto.hasOwnProperty;
  20353. /** Used to infer the `Object` constructor. */
  20354. var objectCtorString = funcToString.call(Object);
  20355. /**
  20356. * Checks if `value` is a plain object, that is, an object created by the
  20357. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  20358. *
  20359. * @static
  20360. * @memberOf _
  20361. * @since 0.8.0
  20362. * @category Lang
  20363. * @param {*} value The value to check.
  20364. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  20365. * @example
  20366. *
  20367. * function Foo() {
  20368. * this.a = 1;
  20369. * }
  20370. *
  20371. * _.isPlainObject(new Foo);
  20372. * // => false
  20373. *
  20374. * _.isPlainObject([1, 2, 3]);
  20375. * // => false
  20376. *
  20377. * _.isPlainObject({ 'x': 0, 'y': 0 });
  20378. * // => true
  20379. *
  20380. * _.isPlainObject(Object.create(null));
  20381. * // => true
  20382. */
  20383. function isPlainObject(value) {
  20384. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  20385. return false;
  20386. }
  20387. var proto = getPrototype(value);
  20388. if (proto === null) {
  20389. return true;
  20390. }
  20391. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  20392. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  20393. funcToString.call(Ctor) == objectCtorString;
  20394. }
  20395. module.exports = isPlainObject;
  20396. /***/ }),
  20397. /***/ "../../node_modules/lodash/isSet.js":
  20398. /*!********************************************************!*\
  20399. !*** C:/Repos/Babylon.js/node_modules/lodash/isSet.js ***!
  20400. \********************************************************/
  20401. /*! no static exports found */
  20402. /***/ (function(module, exports, __webpack_require__) {
  20403. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "../../node_modules/lodash/_baseIsSet.js"),
  20404. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  20405. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  20406. /* Node.js helper references. */
  20407. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  20408. /**
  20409. * Checks if `value` is classified as a `Set` object.
  20410. *
  20411. * @static
  20412. * @memberOf _
  20413. * @since 4.3.0
  20414. * @category Lang
  20415. * @param {*} value The value to check.
  20416. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  20417. * @example
  20418. *
  20419. * _.isSet(new Set);
  20420. * // => true
  20421. *
  20422. * _.isSet(new WeakSet);
  20423. * // => false
  20424. */
  20425. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  20426. module.exports = isSet;
  20427. /***/ }),
  20428. /***/ "../../node_modules/lodash/isString.js":
  20429. /*!***********************************************************!*\
  20430. !*** C:/Repos/Babylon.js/node_modules/lodash/isString.js ***!
  20431. \***********************************************************/
  20432. /*! no static exports found */
  20433. /***/ (function(module, exports, __webpack_require__) {
  20434. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  20435. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  20436. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  20437. /** `Object#toString` result references. */
  20438. var stringTag = '[object String]';
  20439. /**
  20440. * Checks if `value` is classified as a `String` primitive or object.
  20441. *
  20442. * @static
  20443. * @since 0.1.0
  20444. * @memberOf _
  20445. * @category Lang
  20446. * @param {*} value The value to check.
  20447. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  20448. * @example
  20449. *
  20450. * _.isString('abc');
  20451. * // => true
  20452. *
  20453. * _.isString(1);
  20454. * // => false
  20455. */
  20456. function isString(value) {
  20457. return typeof value == 'string' ||
  20458. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  20459. }
  20460. module.exports = isString;
  20461. /***/ }),
  20462. /***/ "../../node_modules/lodash/isSymbol.js":
  20463. /*!***********************************************************!*\
  20464. !*** C:/Repos/Babylon.js/node_modules/lodash/isSymbol.js ***!
  20465. \***********************************************************/
  20466. /*! no static exports found */
  20467. /***/ (function(module, exports, __webpack_require__) {
  20468. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  20469. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  20470. /** `Object#toString` result references. */
  20471. var symbolTag = '[object Symbol]';
  20472. /**
  20473. * Checks if `value` is classified as a `Symbol` primitive or object.
  20474. *
  20475. * @static
  20476. * @memberOf _
  20477. * @since 4.0.0
  20478. * @category Lang
  20479. * @param {*} value The value to check.
  20480. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  20481. * @example
  20482. *
  20483. * _.isSymbol(Symbol.iterator);
  20484. * // => true
  20485. *
  20486. * _.isSymbol('abc');
  20487. * // => false
  20488. */
  20489. function isSymbol(value) {
  20490. return typeof value == 'symbol' ||
  20491. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  20492. }
  20493. module.exports = isSymbol;
  20494. /***/ }),
  20495. /***/ "../../node_modules/lodash/isTypedArray.js":
  20496. /*!***************************************************************!*\
  20497. !*** C:/Repos/Babylon.js/node_modules/lodash/isTypedArray.js ***!
  20498. \***************************************************************/
  20499. /*! no static exports found */
  20500. /***/ (function(module, exports, __webpack_require__) {
  20501. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
  20502. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  20503. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  20504. /* Node.js helper references. */
  20505. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  20506. /**
  20507. * Checks if `value` is classified as a typed array.
  20508. *
  20509. * @static
  20510. * @memberOf _
  20511. * @since 3.0.0
  20512. * @category Lang
  20513. * @param {*} value The value to check.
  20514. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  20515. * @example
  20516. *
  20517. * _.isTypedArray(new Uint8Array);
  20518. * // => true
  20519. *
  20520. * _.isTypedArray([]);
  20521. * // => false
  20522. */
  20523. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  20524. module.exports = isTypedArray;
  20525. /***/ }),
  20526. /***/ "../../node_modules/lodash/isUndefined.js":
  20527. /*!**************************************************************!*\
  20528. !*** C:/Repos/Babylon.js/node_modules/lodash/isUndefined.js ***!
  20529. \**************************************************************/
  20530. /*! no static exports found */
  20531. /***/ (function(module, exports) {
  20532. /**
  20533. * Checks if `value` is `undefined`.
  20534. *
  20535. * @static
  20536. * @since 0.1.0
  20537. * @memberOf _
  20538. * @category Lang
  20539. * @param {*} value The value to check.
  20540. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  20541. * @example
  20542. *
  20543. * _.isUndefined(void 0);
  20544. * // => true
  20545. *
  20546. * _.isUndefined(null);
  20547. * // => false
  20548. */
  20549. function isUndefined(value) {
  20550. return value === undefined;
  20551. }
  20552. module.exports = isUndefined;
  20553. /***/ }),
  20554. /***/ "../../node_modules/lodash/keys.js":
  20555. /*!*******************************************************!*\
  20556. !*** C:/Repos/Babylon.js/node_modules/lodash/keys.js ***!
  20557. \*******************************************************/
  20558. /*! no static exports found */
  20559. /***/ (function(module, exports, __webpack_require__) {
  20560. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  20561. baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  20562. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  20563. /**
  20564. * Creates an array of the own enumerable property names of `object`.
  20565. *
  20566. * **Note:** Non-object values are coerced to objects. See the
  20567. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  20568. * for more details.
  20569. *
  20570. * @static
  20571. * @since 0.1.0
  20572. * @memberOf _
  20573. * @category Object
  20574. * @param {Object} object The object to query.
  20575. * @returns {Array} Returns the array of property names.
  20576. * @example
  20577. *
  20578. * function Foo() {
  20579. * this.a = 1;
  20580. * this.b = 2;
  20581. * }
  20582. *
  20583. * Foo.prototype.c = 3;
  20584. *
  20585. * _.keys(new Foo);
  20586. * // => ['a', 'b'] (iteration order is not guaranteed)
  20587. *
  20588. * _.keys('hi');
  20589. * // => ['0', '1']
  20590. */
  20591. function keys(object) {
  20592. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  20593. }
  20594. module.exports = keys;
  20595. /***/ }),
  20596. /***/ "../../node_modules/lodash/keysIn.js":
  20597. /*!*********************************************************!*\
  20598. !*** C:/Repos/Babylon.js/node_modules/lodash/keysIn.js ***!
  20599. \*********************************************************/
  20600. /*! no static exports found */
  20601. /***/ (function(module, exports, __webpack_require__) {
  20602. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  20603. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "../../node_modules/lodash/_baseKeysIn.js"),
  20604. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  20605. /**
  20606. * Creates an array of the own and inherited enumerable property names of `object`.
  20607. *
  20608. * **Note:** Non-object values are coerced to objects.
  20609. *
  20610. * @static
  20611. * @memberOf _
  20612. * @since 3.0.0
  20613. * @category Object
  20614. * @param {Object} object The object to query.
  20615. * @returns {Array} Returns the array of property names.
  20616. * @example
  20617. *
  20618. * function Foo() {
  20619. * this.a = 1;
  20620. * this.b = 2;
  20621. * }
  20622. *
  20623. * Foo.prototype.c = 3;
  20624. *
  20625. * _.keysIn(new Foo);
  20626. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  20627. */
  20628. function keysIn(object) {
  20629. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  20630. }
  20631. module.exports = keysIn;
  20632. /***/ }),
  20633. /***/ "../../node_modules/lodash/last.js":
  20634. /*!*******************************************************!*\
  20635. !*** C:/Repos/Babylon.js/node_modules/lodash/last.js ***!
  20636. \*******************************************************/
  20637. /*! no static exports found */
  20638. /***/ (function(module, exports) {
  20639. /**
  20640. * Gets the last element of `array`.
  20641. *
  20642. * @static
  20643. * @memberOf _
  20644. * @since 0.1.0
  20645. * @category Array
  20646. * @param {Array} array The array to query.
  20647. * @returns {*} Returns the last element of `array`.
  20648. * @example
  20649. *
  20650. * _.last([1, 2, 3]);
  20651. * // => 3
  20652. */
  20653. function last(array) {
  20654. var length = array == null ? 0 : array.length;
  20655. return length ? array[length - 1] : undefined;
  20656. }
  20657. module.exports = last;
  20658. /***/ }),
  20659. /***/ "../../node_modules/lodash/map.js":
  20660. /*!******************************************************!*\
  20661. !*** C:/Repos/Babylon.js/node_modules/lodash/map.js ***!
  20662. \******************************************************/
  20663. /*! no static exports found */
  20664. /***/ (function(module, exports, __webpack_require__) {
  20665. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  20666. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  20667. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  20668. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  20669. /**
  20670. * Creates an array of values by running each element in `collection` thru
  20671. * `iteratee`. The iteratee is invoked with three arguments:
  20672. * (value, index|key, collection).
  20673. *
  20674. * Many lodash methods are guarded to work as iteratees for methods like
  20675. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  20676. *
  20677. * The guarded methods are:
  20678. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  20679. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  20680. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  20681. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  20682. *
  20683. * @static
  20684. * @memberOf _
  20685. * @since 0.1.0
  20686. * @category Collection
  20687. * @param {Array|Object} collection The collection to iterate over.
  20688. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  20689. * @returns {Array} Returns the new mapped array.
  20690. * @example
  20691. *
  20692. * function square(n) {
  20693. * return n * n;
  20694. * }
  20695. *
  20696. * _.map([4, 8], square);
  20697. * // => [16, 64]
  20698. *
  20699. * _.map({ 'a': 4, 'b': 8 }, square);
  20700. * // => [16, 64] (iteration order is not guaranteed)
  20701. *
  20702. * var users = [
  20703. * { 'user': 'barney' },
  20704. * { 'user': 'fred' }
  20705. * ];
  20706. *
  20707. * // The `_.property` iteratee shorthand.
  20708. * _.map(users, 'user');
  20709. * // => ['barney', 'fred']
  20710. */
  20711. function map(collection, iteratee) {
  20712. var func = isArray(collection) ? arrayMap : baseMap;
  20713. return func(collection, baseIteratee(iteratee, 3));
  20714. }
  20715. module.exports = map;
  20716. /***/ }),
  20717. /***/ "../../node_modules/lodash/mapValues.js":
  20718. /*!************************************************************!*\
  20719. !*** C:/Repos/Babylon.js/node_modules/lodash/mapValues.js ***!
  20720. \************************************************************/
  20721. /*! no static exports found */
  20722. /***/ (function(module, exports, __webpack_require__) {
  20723. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  20724. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  20725. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js");
  20726. /**
  20727. * Creates an object with the same keys as `object` and values generated
  20728. * by running each own enumerable string keyed property of `object` thru
  20729. * `iteratee`. The iteratee is invoked with three arguments:
  20730. * (value, key, object).
  20731. *
  20732. * @static
  20733. * @memberOf _
  20734. * @since 2.4.0
  20735. * @category Object
  20736. * @param {Object} object The object to iterate over.
  20737. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  20738. * @returns {Object} Returns the new mapped object.
  20739. * @see _.mapKeys
  20740. * @example
  20741. *
  20742. * var users = {
  20743. * 'fred': { 'user': 'fred', 'age': 40 },
  20744. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  20745. * };
  20746. *
  20747. * _.mapValues(users, function(o) { return o.age; });
  20748. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  20749. *
  20750. * // The `_.property` iteratee shorthand.
  20751. * _.mapValues(users, 'age');
  20752. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  20753. */
  20754. function mapValues(object, iteratee) {
  20755. var result = {};
  20756. iteratee = baseIteratee(iteratee, 3);
  20757. baseForOwn(object, function(value, key, object) {
  20758. baseAssignValue(result, key, iteratee(value, key, object));
  20759. });
  20760. return result;
  20761. }
  20762. module.exports = mapValues;
  20763. /***/ }),
  20764. /***/ "../../node_modules/lodash/max.js":
  20765. /*!******************************************************!*\
  20766. !*** C:/Repos/Babylon.js/node_modules/lodash/max.js ***!
  20767. \******************************************************/
  20768. /*! no static exports found */
  20769. /***/ (function(module, exports, __webpack_require__) {
  20770. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  20771. baseGt = __webpack_require__(/*! ./_baseGt */ "../../node_modules/lodash/_baseGt.js"),
  20772. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  20773. /**
  20774. * Computes the maximum value of `array`. If `array` is empty or falsey,
  20775. * `undefined` is returned.
  20776. *
  20777. * @static
  20778. * @since 0.1.0
  20779. * @memberOf _
  20780. * @category Math
  20781. * @param {Array} array The array to iterate over.
  20782. * @returns {*} Returns the maximum value.
  20783. * @example
  20784. *
  20785. * _.max([4, 2, 8, 6]);
  20786. * // => 8
  20787. *
  20788. * _.max([]);
  20789. * // => undefined
  20790. */
  20791. function max(array) {
  20792. return (array && array.length)
  20793. ? baseExtremum(array, identity, baseGt)
  20794. : undefined;
  20795. }
  20796. module.exports = max;
  20797. /***/ }),
  20798. /***/ "../../node_modules/lodash/memoize.js":
  20799. /*!**********************************************************!*\
  20800. !*** C:/Repos/Babylon.js/node_modules/lodash/memoize.js ***!
  20801. \**********************************************************/
  20802. /*! no static exports found */
  20803. /***/ (function(module, exports, __webpack_require__) {
  20804. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  20805. /** Error message constants. */
  20806. var FUNC_ERROR_TEXT = 'Expected a function';
  20807. /**
  20808. * Creates a function that memoizes the result of `func`. If `resolver` is
  20809. * provided, it determines the cache key for storing the result based on the
  20810. * arguments provided to the memoized function. By default, the first argument
  20811. * provided to the memoized function is used as the map cache key. The `func`
  20812. * is invoked with the `this` binding of the memoized function.
  20813. *
  20814. * **Note:** The cache is exposed as the `cache` property on the memoized
  20815. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  20816. * constructor with one whose instances implement the
  20817. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  20818. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  20819. *
  20820. * @static
  20821. * @memberOf _
  20822. * @since 0.1.0
  20823. * @category Function
  20824. * @param {Function} func The function to have its output memoized.
  20825. * @param {Function} [resolver] The function to resolve the cache key.
  20826. * @returns {Function} Returns the new memoized function.
  20827. * @example
  20828. *
  20829. * var object = { 'a': 1, 'b': 2 };
  20830. * var other = { 'c': 3, 'd': 4 };
  20831. *
  20832. * var values = _.memoize(_.values);
  20833. * values(object);
  20834. * // => [1, 2]
  20835. *
  20836. * values(other);
  20837. * // => [3, 4]
  20838. *
  20839. * object.a = 2;
  20840. * values(object);
  20841. * // => [1, 2]
  20842. *
  20843. * // Modify the result cache.
  20844. * values.cache.set(object, ['a', 'b']);
  20845. * values(object);
  20846. * // => ['a', 'b']
  20847. *
  20848. * // Replace `_.memoize.Cache`.
  20849. * _.memoize.Cache = WeakMap;
  20850. */
  20851. function memoize(func, resolver) {
  20852. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  20853. throw new TypeError(FUNC_ERROR_TEXT);
  20854. }
  20855. var memoized = function() {
  20856. var args = arguments,
  20857. key = resolver ? resolver.apply(this, args) : args[0],
  20858. cache = memoized.cache;
  20859. if (cache.has(key)) {
  20860. return cache.get(key);
  20861. }
  20862. var result = func.apply(this, args);
  20863. memoized.cache = cache.set(key, result) || cache;
  20864. return result;
  20865. };
  20866. memoized.cache = new (memoize.Cache || MapCache);
  20867. return memoized;
  20868. }
  20869. // Expose `MapCache`.
  20870. memoize.Cache = MapCache;
  20871. module.exports = memoize;
  20872. /***/ }),
  20873. /***/ "../../node_modules/lodash/merge.js":
  20874. /*!********************************************************!*\
  20875. !*** C:/Repos/Babylon.js/node_modules/lodash/merge.js ***!
  20876. \********************************************************/
  20877. /*! no static exports found */
  20878. /***/ (function(module, exports, __webpack_require__) {
  20879. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "../../node_modules/lodash/_baseMerge.js"),
  20880. createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../node_modules/lodash/_createAssigner.js");
  20881. /**
  20882. * This method is like `_.assign` except that it recursively merges own and
  20883. * inherited enumerable string keyed properties of source objects into the
  20884. * destination object. Source properties that resolve to `undefined` are
  20885. * skipped if a destination value exists. Array and plain object properties
  20886. * are merged recursively. Other objects and value types are overridden by
  20887. * assignment. Source objects are applied from left to right. Subsequent
  20888. * sources overwrite property assignments of previous sources.
  20889. *
  20890. * **Note:** This method mutates `object`.
  20891. *
  20892. * @static
  20893. * @memberOf _
  20894. * @since 0.5.0
  20895. * @category Object
  20896. * @param {Object} object The destination object.
  20897. * @param {...Object} [sources] The source objects.
  20898. * @returns {Object} Returns `object`.
  20899. * @example
  20900. *
  20901. * var object = {
  20902. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  20903. * };
  20904. *
  20905. * var other = {
  20906. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  20907. * };
  20908. *
  20909. * _.merge(object, other);
  20910. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  20911. */
  20912. var merge = createAssigner(function(object, source, srcIndex) {
  20913. baseMerge(object, source, srcIndex);
  20914. });
  20915. module.exports = merge;
  20916. /***/ }),
  20917. /***/ "../../node_modules/lodash/min.js":
  20918. /*!******************************************************!*\
  20919. !*** C:/Repos/Babylon.js/node_modules/lodash/min.js ***!
  20920. \******************************************************/
  20921. /*! no static exports found */
  20922. /***/ (function(module, exports, __webpack_require__) {
  20923. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  20924. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js"),
  20925. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  20926. /**
  20927. * Computes the minimum value of `array`. If `array` is empty or falsey,
  20928. * `undefined` is returned.
  20929. *
  20930. * @static
  20931. * @since 0.1.0
  20932. * @memberOf _
  20933. * @category Math
  20934. * @param {Array} array The array to iterate over.
  20935. * @returns {*} Returns the minimum value.
  20936. * @example
  20937. *
  20938. * _.min([4, 2, 8, 6]);
  20939. * // => 2
  20940. *
  20941. * _.min([]);
  20942. * // => undefined
  20943. */
  20944. function min(array) {
  20945. return (array && array.length)
  20946. ? baseExtremum(array, identity, baseLt)
  20947. : undefined;
  20948. }
  20949. module.exports = min;
  20950. /***/ }),
  20951. /***/ "../../node_modules/lodash/minBy.js":
  20952. /*!********************************************************!*\
  20953. !*** C:/Repos/Babylon.js/node_modules/lodash/minBy.js ***!
  20954. \********************************************************/
  20955. /*! no static exports found */
  20956. /***/ (function(module, exports, __webpack_require__) {
  20957. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  20958. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  20959. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js");
  20960. /**
  20961. * This method is like `_.min` except that it accepts `iteratee` which is
  20962. * invoked for each element in `array` to generate the criterion by which
  20963. * the value is ranked. The iteratee is invoked with one argument: (value).
  20964. *
  20965. * @static
  20966. * @memberOf _
  20967. * @since 4.0.0
  20968. * @category Math
  20969. * @param {Array} array The array to iterate over.
  20970. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  20971. * @returns {*} Returns the minimum value.
  20972. * @example
  20973. *
  20974. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  20975. *
  20976. * _.minBy(objects, function(o) { return o.n; });
  20977. * // => { 'n': 1 }
  20978. *
  20979. * // The `_.property` iteratee shorthand.
  20980. * _.minBy(objects, 'n');
  20981. * // => { 'n': 1 }
  20982. */
  20983. function minBy(array, iteratee) {
  20984. return (array && array.length)
  20985. ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
  20986. : undefined;
  20987. }
  20988. module.exports = minBy;
  20989. /***/ }),
  20990. /***/ "../../node_modules/lodash/noop.js":
  20991. /*!*******************************************************!*\
  20992. !*** C:/Repos/Babylon.js/node_modules/lodash/noop.js ***!
  20993. \*******************************************************/
  20994. /*! no static exports found */
  20995. /***/ (function(module, exports) {
  20996. /**
  20997. * This method returns `undefined`.
  20998. *
  20999. * @static
  21000. * @memberOf _
  21001. * @since 2.3.0
  21002. * @category Util
  21003. * @example
  21004. *
  21005. * _.times(2, _.noop);
  21006. * // => [undefined, undefined]
  21007. */
  21008. function noop() {
  21009. // No operation performed.
  21010. }
  21011. module.exports = noop;
  21012. /***/ }),
  21013. /***/ "../../node_modules/lodash/now.js":
  21014. /*!******************************************************!*\
  21015. !*** C:/Repos/Babylon.js/node_modules/lodash/now.js ***!
  21016. \******************************************************/
  21017. /*! no static exports found */
  21018. /***/ (function(module, exports, __webpack_require__) {
  21019. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  21020. /**
  21021. * Gets the timestamp of the number of milliseconds that have elapsed since
  21022. * the Unix epoch (1 January 1970 00:00:00 UTC).
  21023. *
  21024. * @static
  21025. * @memberOf _
  21026. * @since 2.4.0
  21027. * @category Date
  21028. * @returns {number} Returns the timestamp.
  21029. * @example
  21030. *
  21031. * _.defer(function(stamp) {
  21032. * console.log(_.now() - stamp);
  21033. * }, _.now());
  21034. * // => Logs the number of milliseconds it took for the deferred invocation.
  21035. */
  21036. var now = function() {
  21037. return root.Date.now();
  21038. };
  21039. module.exports = now;
  21040. /***/ }),
  21041. /***/ "../../node_modules/lodash/pick.js":
  21042. /*!*******************************************************!*\
  21043. !*** C:/Repos/Babylon.js/node_modules/lodash/pick.js ***!
  21044. \*******************************************************/
  21045. /*! no static exports found */
  21046. /***/ (function(module, exports, __webpack_require__) {
  21047. var basePick = __webpack_require__(/*! ./_basePick */ "../../node_modules/lodash/_basePick.js"),
  21048. flatRest = __webpack_require__(/*! ./_flatRest */ "../../node_modules/lodash/_flatRest.js");
  21049. /**
  21050. * Creates an object composed of the picked `object` properties.
  21051. *
  21052. * @static
  21053. * @since 0.1.0
  21054. * @memberOf _
  21055. * @category Object
  21056. * @param {Object} object The source object.
  21057. * @param {...(string|string[])} [paths] The property paths to pick.
  21058. * @returns {Object} Returns the new object.
  21059. * @example
  21060. *
  21061. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  21062. *
  21063. * _.pick(object, ['a', 'c']);
  21064. * // => { 'a': 1, 'c': 3 }
  21065. */
  21066. var pick = flatRest(function(object, paths) {
  21067. return object == null ? {} : basePick(object, paths);
  21068. });
  21069. module.exports = pick;
  21070. /***/ }),
  21071. /***/ "../../node_modules/lodash/property.js":
  21072. /*!***********************************************************!*\
  21073. !*** C:/Repos/Babylon.js/node_modules/lodash/property.js ***!
  21074. \***********************************************************/
  21075. /*! no static exports found */
  21076. /***/ (function(module, exports, __webpack_require__) {
  21077. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js"),
  21078. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../node_modules/lodash/_basePropertyDeep.js"),
  21079. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  21080. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  21081. /**
  21082. * Creates a function that returns the value at `path` of a given object.
  21083. *
  21084. * @static
  21085. * @memberOf _
  21086. * @since 2.4.0
  21087. * @category Util
  21088. * @param {Array|string} path The path of the property to get.
  21089. * @returns {Function} Returns the new accessor function.
  21090. * @example
  21091. *
  21092. * var objects = [
  21093. * { 'a': { 'b': 2 } },
  21094. * { 'a': { 'b': 1 } }
  21095. * ];
  21096. *
  21097. * _.map(objects, _.property('a.b'));
  21098. * // => [2, 1]
  21099. *
  21100. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  21101. * // => [1, 2]
  21102. */
  21103. function property(path) {
  21104. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  21105. }
  21106. module.exports = property;
  21107. /***/ }),
  21108. /***/ "../../node_modules/lodash/range.js":
  21109. /*!********************************************************!*\
  21110. !*** C:/Repos/Babylon.js/node_modules/lodash/range.js ***!
  21111. \********************************************************/
  21112. /*! no static exports found */
  21113. /***/ (function(module, exports, __webpack_require__) {
  21114. var createRange = __webpack_require__(/*! ./_createRange */ "../../node_modules/lodash/_createRange.js");
  21115. /**
  21116. * Creates an array of numbers (positive and/or negative) progressing from
  21117. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  21118. * `start` is specified without an `end` or `step`. If `end` is not specified,
  21119. * it's set to `start` with `start` then set to `0`.
  21120. *
  21121. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  21122. * floating-point values which can produce unexpected results.
  21123. *
  21124. * @static
  21125. * @since 0.1.0
  21126. * @memberOf _
  21127. * @category Util
  21128. * @param {number} [start=0] The start of the range.
  21129. * @param {number} end The end of the range.
  21130. * @param {number} [step=1] The value to increment or decrement by.
  21131. * @returns {Array} Returns the range of numbers.
  21132. * @see _.inRange, _.rangeRight
  21133. * @example
  21134. *
  21135. * _.range(4);
  21136. * // => [0, 1, 2, 3]
  21137. *
  21138. * _.range(-4);
  21139. * // => [0, -1, -2, -3]
  21140. *
  21141. * _.range(1, 5);
  21142. * // => [1, 2, 3, 4]
  21143. *
  21144. * _.range(0, 20, 5);
  21145. * // => [0, 5, 10, 15]
  21146. *
  21147. * _.range(0, -4, -1);
  21148. * // => [0, -1, -2, -3]
  21149. *
  21150. * _.range(1, 4, 0);
  21151. * // => [1, 1, 1]
  21152. *
  21153. * _.range(0);
  21154. * // => []
  21155. */
  21156. var range = createRange();
  21157. module.exports = range;
  21158. /***/ }),
  21159. /***/ "../../node_modules/lodash/reduce.js":
  21160. /*!*********************************************************!*\
  21161. !*** C:/Repos/Babylon.js/node_modules/lodash/reduce.js ***!
  21162. \*********************************************************/
  21163. /*! no static exports found */
  21164. /***/ (function(module, exports, __webpack_require__) {
  21165. var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "../../node_modules/lodash/_arrayReduce.js"),
  21166. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  21167. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  21168. baseReduce = __webpack_require__(/*! ./_baseReduce */ "../../node_modules/lodash/_baseReduce.js"),
  21169. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  21170. /**
  21171. * Reduces `collection` to a value which is the accumulated result of running
  21172. * each element in `collection` thru `iteratee`, where each successive
  21173. * invocation is supplied the return value of the previous. If `accumulator`
  21174. * is not given, the first element of `collection` is used as the initial
  21175. * value. The iteratee is invoked with four arguments:
  21176. * (accumulator, value, index|key, collection).
  21177. *
  21178. * Many lodash methods are guarded to work as iteratees for methods like
  21179. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  21180. *
  21181. * The guarded methods are:
  21182. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  21183. * and `sortBy`
  21184. *
  21185. * @static
  21186. * @memberOf _
  21187. * @since 0.1.0
  21188. * @category Collection
  21189. * @param {Array|Object} collection The collection to iterate over.
  21190. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  21191. * @param {*} [accumulator] The initial value.
  21192. * @returns {*} Returns the accumulated value.
  21193. * @see _.reduceRight
  21194. * @example
  21195. *
  21196. * _.reduce([1, 2], function(sum, n) {
  21197. * return sum + n;
  21198. * }, 0);
  21199. * // => 3
  21200. *
  21201. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  21202. * (result[value] || (result[value] = [])).push(key);
  21203. * return result;
  21204. * }, {});
  21205. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  21206. */
  21207. function reduce(collection, iteratee, accumulator) {
  21208. var func = isArray(collection) ? arrayReduce : baseReduce,
  21209. initAccum = arguments.length < 3;
  21210. return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  21211. }
  21212. module.exports = reduce;
  21213. /***/ }),
  21214. /***/ "../../node_modules/lodash/size.js":
  21215. /*!*******************************************************!*\
  21216. !*** C:/Repos/Babylon.js/node_modules/lodash/size.js ***!
  21217. \*******************************************************/
  21218. /*! no static exports found */
  21219. /***/ (function(module, exports, __webpack_require__) {
  21220. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  21221. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  21222. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  21223. isString = __webpack_require__(/*! ./isString */ "../../node_modules/lodash/isString.js"),
  21224. stringSize = __webpack_require__(/*! ./_stringSize */ "../../node_modules/lodash/_stringSize.js");
  21225. /** `Object#toString` result references. */
  21226. var mapTag = '[object Map]',
  21227. setTag = '[object Set]';
  21228. /**
  21229. * Gets the size of `collection` by returning its length for array-like
  21230. * values or the number of own enumerable string keyed properties for objects.
  21231. *
  21232. * @static
  21233. * @memberOf _
  21234. * @since 0.1.0
  21235. * @category Collection
  21236. * @param {Array|Object|string} collection The collection to inspect.
  21237. * @returns {number} Returns the collection size.
  21238. * @example
  21239. *
  21240. * _.size([1, 2, 3]);
  21241. * // => 3
  21242. *
  21243. * _.size({ 'a': 1, 'b': 2 });
  21244. * // => 2
  21245. *
  21246. * _.size('pebbles');
  21247. * // => 7
  21248. */
  21249. function size(collection) {
  21250. if (collection == null) {
  21251. return 0;
  21252. }
  21253. if (isArrayLike(collection)) {
  21254. return isString(collection) ? stringSize(collection) : collection.length;
  21255. }
  21256. var tag = getTag(collection);
  21257. if (tag == mapTag || tag == setTag) {
  21258. return collection.size;
  21259. }
  21260. return baseKeys(collection).length;
  21261. }
  21262. module.exports = size;
  21263. /***/ }),
  21264. /***/ "../../node_modules/lodash/sortBy.js":
  21265. /*!*********************************************************!*\
  21266. !*** C:/Repos/Babylon.js/node_modules/lodash/sortBy.js ***!
  21267. \*********************************************************/
  21268. /*! no static exports found */
  21269. /***/ (function(module, exports, __webpack_require__) {
  21270. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  21271. baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "../../node_modules/lodash/_baseOrderBy.js"),
  21272. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  21273. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  21274. /**
  21275. * Creates an array of elements, sorted in ascending order by the results of
  21276. * running each element in a collection thru each iteratee. This method
  21277. * performs a stable sort, that is, it preserves the original sort order of
  21278. * equal elements. The iteratees are invoked with one argument: (value).
  21279. *
  21280. * @static
  21281. * @memberOf _
  21282. * @since 0.1.0
  21283. * @category Collection
  21284. * @param {Array|Object} collection The collection to iterate over.
  21285. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  21286. * The iteratees to sort by.
  21287. * @returns {Array} Returns the new sorted array.
  21288. * @example
  21289. *
  21290. * var users = [
  21291. * { 'user': 'fred', 'age': 48 },
  21292. * { 'user': 'barney', 'age': 36 },
  21293. * { 'user': 'fred', 'age': 30 },
  21294. * { 'user': 'barney', 'age': 34 }
  21295. * ];
  21296. *
  21297. * _.sortBy(users, [function(o) { return o.user; }]);
  21298. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
  21299. *
  21300. * _.sortBy(users, ['user', 'age']);
  21301. * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
  21302. */
  21303. var sortBy = baseRest(function(collection, iteratees) {
  21304. if (collection == null) {
  21305. return [];
  21306. }
  21307. var length = iteratees.length;
  21308. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  21309. iteratees = [];
  21310. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  21311. iteratees = [iteratees[0]];
  21312. }
  21313. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  21314. });
  21315. module.exports = sortBy;
  21316. /***/ }),
  21317. /***/ "../../node_modules/lodash/stubArray.js":
  21318. /*!************************************************************!*\
  21319. !*** C:/Repos/Babylon.js/node_modules/lodash/stubArray.js ***!
  21320. \************************************************************/
  21321. /*! no static exports found */
  21322. /***/ (function(module, exports) {
  21323. /**
  21324. * This method returns a new empty array.
  21325. *
  21326. * @static
  21327. * @memberOf _
  21328. * @since 4.13.0
  21329. * @category Util
  21330. * @returns {Array} Returns the new empty array.
  21331. * @example
  21332. *
  21333. * var arrays = _.times(2, _.stubArray);
  21334. *
  21335. * console.log(arrays);
  21336. * // => [[], []]
  21337. *
  21338. * console.log(arrays[0] === arrays[1]);
  21339. * // => false
  21340. */
  21341. function stubArray() {
  21342. return [];
  21343. }
  21344. module.exports = stubArray;
  21345. /***/ }),
  21346. /***/ "../../node_modules/lodash/stubFalse.js":
  21347. /*!************************************************************!*\
  21348. !*** C:/Repos/Babylon.js/node_modules/lodash/stubFalse.js ***!
  21349. \************************************************************/
  21350. /*! no static exports found */
  21351. /***/ (function(module, exports) {
  21352. /**
  21353. * This method returns `false`.
  21354. *
  21355. * @static
  21356. * @memberOf _
  21357. * @since 4.13.0
  21358. * @category Util
  21359. * @returns {boolean} Returns `false`.
  21360. * @example
  21361. *
  21362. * _.times(2, _.stubFalse);
  21363. * // => [false, false]
  21364. */
  21365. function stubFalse() {
  21366. return false;
  21367. }
  21368. module.exports = stubFalse;
  21369. /***/ }),
  21370. /***/ "../../node_modules/lodash/throttle.js":
  21371. /*!***********************************************************!*\
  21372. !*** C:/Repos/Babylon.js/node_modules/lodash/throttle.js ***!
  21373. \***********************************************************/
  21374. /*! no static exports found */
  21375. /***/ (function(module, exports, __webpack_require__) {
  21376. var debounce = __webpack_require__(/*! ./debounce */ "../../node_modules/lodash/debounce.js"),
  21377. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  21378. /** Error message constants. */
  21379. var FUNC_ERROR_TEXT = 'Expected a function';
  21380. /**
  21381. * Creates a throttled function that only invokes `func` at most once per
  21382. * every `wait` milliseconds. The throttled function comes with a `cancel`
  21383. * method to cancel delayed `func` invocations and a `flush` method to
  21384. * immediately invoke them. Provide `options` to indicate whether `func`
  21385. * should be invoked on the leading and/or trailing edge of the `wait`
  21386. * timeout. The `func` is invoked with the last arguments provided to the
  21387. * throttled function. Subsequent calls to the throttled function return the
  21388. * result of the last `func` invocation.
  21389. *
  21390. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  21391. * invoked on the trailing edge of the timeout only if the throttled function
  21392. * is invoked more than once during the `wait` timeout.
  21393. *
  21394. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  21395. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  21396. *
  21397. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  21398. * for details over the differences between `_.throttle` and `_.debounce`.
  21399. *
  21400. * @static
  21401. * @memberOf _
  21402. * @since 0.1.0
  21403. * @category Function
  21404. * @param {Function} func The function to throttle.
  21405. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  21406. * @param {Object} [options={}] The options object.
  21407. * @param {boolean} [options.leading=true]
  21408. * Specify invoking on the leading edge of the timeout.
  21409. * @param {boolean} [options.trailing=true]
  21410. * Specify invoking on the trailing edge of the timeout.
  21411. * @returns {Function} Returns the new throttled function.
  21412. * @example
  21413. *
  21414. * // Avoid excessively updating the position while scrolling.
  21415. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  21416. *
  21417. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  21418. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  21419. * jQuery(element).on('click', throttled);
  21420. *
  21421. * // Cancel the trailing throttled invocation.
  21422. * jQuery(window).on('popstate', throttled.cancel);
  21423. */
  21424. function throttle(func, wait, options) {
  21425. var leading = true,
  21426. trailing = true;
  21427. if (typeof func != 'function') {
  21428. throw new TypeError(FUNC_ERROR_TEXT);
  21429. }
  21430. if (isObject(options)) {
  21431. leading = 'leading' in options ? !!options.leading : leading;
  21432. trailing = 'trailing' in options ? !!options.trailing : trailing;
  21433. }
  21434. return debounce(func, wait, {
  21435. 'leading': leading,
  21436. 'maxWait': wait,
  21437. 'trailing': trailing
  21438. });
  21439. }
  21440. module.exports = throttle;
  21441. /***/ }),
  21442. /***/ "../../node_modules/lodash/toFinite.js":
  21443. /*!***********************************************************!*\
  21444. !*** C:/Repos/Babylon.js/node_modules/lodash/toFinite.js ***!
  21445. \***********************************************************/
  21446. /*! no static exports found */
  21447. /***/ (function(module, exports, __webpack_require__) {
  21448. var toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  21449. /** Used as references for various `Number` constants. */
  21450. var INFINITY = 1 / 0,
  21451. MAX_INTEGER = 1.7976931348623157e+308;
  21452. /**
  21453. * Converts `value` to a finite number.
  21454. *
  21455. * @static
  21456. * @memberOf _
  21457. * @since 4.12.0
  21458. * @category Lang
  21459. * @param {*} value The value to convert.
  21460. * @returns {number} Returns the converted number.
  21461. * @example
  21462. *
  21463. * _.toFinite(3.2);
  21464. * // => 3.2
  21465. *
  21466. * _.toFinite(Number.MIN_VALUE);
  21467. * // => 5e-324
  21468. *
  21469. * _.toFinite(Infinity);
  21470. * // => 1.7976931348623157e+308
  21471. *
  21472. * _.toFinite('3.2');
  21473. * // => 3.2
  21474. */
  21475. function toFinite(value) {
  21476. if (!value) {
  21477. return value === 0 ? value : 0;
  21478. }
  21479. value = toNumber(value);
  21480. if (value === INFINITY || value === -INFINITY) {
  21481. var sign = (value < 0 ? -1 : 1);
  21482. return sign * MAX_INTEGER;
  21483. }
  21484. return value === value ? value : 0;
  21485. }
  21486. module.exports = toFinite;
  21487. /***/ }),
  21488. /***/ "../../node_modules/lodash/toInteger.js":
  21489. /*!************************************************************!*\
  21490. !*** C:/Repos/Babylon.js/node_modules/lodash/toInteger.js ***!
  21491. \************************************************************/
  21492. /*! no static exports found */
  21493. /***/ (function(module, exports, __webpack_require__) {
  21494. var toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  21495. /**
  21496. * Converts `value` to an integer.
  21497. *
  21498. * **Note:** This method is loosely based on
  21499. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  21500. *
  21501. * @static
  21502. * @memberOf _
  21503. * @since 4.0.0
  21504. * @category Lang
  21505. * @param {*} value The value to convert.
  21506. * @returns {number} Returns the converted integer.
  21507. * @example
  21508. *
  21509. * _.toInteger(3.2);
  21510. * // => 3
  21511. *
  21512. * _.toInteger(Number.MIN_VALUE);
  21513. * // => 0
  21514. *
  21515. * _.toInteger(Infinity);
  21516. * // => 1.7976931348623157e+308
  21517. *
  21518. * _.toInteger('3.2');
  21519. * // => 3
  21520. */
  21521. function toInteger(value) {
  21522. var result = toFinite(value),
  21523. remainder = result % 1;
  21524. return result === result ? (remainder ? result - remainder : result) : 0;
  21525. }
  21526. module.exports = toInteger;
  21527. /***/ }),
  21528. /***/ "../../node_modules/lodash/toNumber.js":
  21529. /*!***********************************************************!*\
  21530. !*** C:/Repos/Babylon.js/node_modules/lodash/toNumber.js ***!
  21531. \***********************************************************/
  21532. /*! no static exports found */
  21533. /***/ (function(module, exports, __webpack_require__) {
  21534. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  21535. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  21536. /** Used as references for various `Number` constants. */
  21537. var NAN = 0 / 0;
  21538. /** Used to match leading and trailing whitespace. */
  21539. var reTrim = /^\s+|\s+$/g;
  21540. /** Used to detect bad signed hexadecimal string values. */
  21541. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  21542. /** Used to detect binary string values. */
  21543. var reIsBinary = /^0b[01]+$/i;
  21544. /** Used to detect octal string values. */
  21545. var reIsOctal = /^0o[0-7]+$/i;
  21546. /** Built-in method references without a dependency on `root`. */
  21547. var freeParseInt = parseInt;
  21548. /**
  21549. * Converts `value` to a number.
  21550. *
  21551. * @static
  21552. * @memberOf _
  21553. * @since 4.0.0
  21554. * @category Lang
  21555. * @param {*} value The value to process.
  21556. * @returns {number} Returns the number.
  21557. * @example
  21558. *
  21559. * _.toNumber(3.2);
  21560. * // => 3.2
  21561. *
  21562. * _.toNumber(Number.MIN_VALUE);
  21563. * // => 5e-324
  21564. *
  21565. * _.toNumber(Infinity);
  21566. * // => Infinity
  21567. *
  21568. * _.toNumber('3.2');
  21569. * // => 3.2
  21570. */
  21571. function toNumber(value) {
  21572. if (typeof value == 'number') {
  21573. return value;
  21574. }
  21575. if (isSymbol(value)) {
  21576. return NAN;
  21577. }
  21578. if (isObject(value)) {
  21579. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  21580. value = isObject(other) ? (other + '') : other;
  21581. }
  21582. if (typeof value != 'string') {
  21583. return value === 0 ? value : +value;
  21584. }
  21585. value = value.replace(reTrim, '');
  21586. var isBinary = reIsBinary.test(value);
  21587. return (isBinary || reIsOctal.test(value))
  21588. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  21589. : (reIsBadHex.test(value) ? NAN : +value);
  21590. }
  21591. module.exports = toNumber;
  21592. /***/ }),
  21593. /***/ "../../node_modules/lodash/toPlainObject.js":
  21594. /*!****************************************************************!*\
  21595. !*** C:/Repos/Babylon.js/node_modules/lodash/toPlainObject.js ***!
  21596. \****************************************************************/
  21597. /*! no static exports found */
  21598. /***/ (function(module, exports, __webpack_require__) {
  21599. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  21600. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  21601. /**
  21602. * Converts `value` to a plain object flattening inherited enumerable string
  21603. * keyed properties of `value` to own properties of the plain object.
  21604. *
  21605. * @static
  21606. * @memberOf _
  21607. * @since 3.0.0
  21608. * @category Lang
  21609. * @param {*} value The value to convert.
  21610. * @returns {Object} Returns the converted plain object.
  21611. * @example
  21612. *
  21613. * function Foo() {
  21614. * this.b = 2;
  21615. * }
  21616. *
  21617. * Foo.prototype.c = 3;
  21618. *
  21619. * _.assign({ 'a': 1 }, new Foo);
  21620. * // => { 'a': 1, 'b': 2 }
  21621. *
  21622. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  21623. * // => { 'a': 1, 'b': 2, 'c': 3 }
  21624. */
  21625. function toPlainObject(value) {
  21626. return copyObject(value, keysIn(value));
  21627. }
  21628. module.exports = toPlainObject;
  21629. /***/ }),
  21630. /***/ "../../node_modules/lodash/toString.js":
  21631. /*!***********************************************************!*\
  21632. !*** C:/Repos/Babylon.js/node_modules/lodash/toString.js ***!
  21633. \***********************************************************/
  21634. /*! no static exports found */
  21635. /***/ (function(module, exports, __webpack_require__) {
  21636. var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
  21637. /**
  21638. * Converts `value` to a string. An empty string is returned for `null`
  21639. * and `undefined` values. The sign of `-0` is preserved.
  21640. *
  21641. * @static
  21642. * @memberOf _
  21643. * @since 4.0.0
  21644. * @category Lang
  21645. * @param {*} value The value to convert.
  21646. * @returns {string} Returns the converted string.
  21647. * @example
  21648. *
  21649. * _.toString(null);
  21650. * // => ''
  21651. *
  21652. * _.toString(-0);
  21653. * // => '-0'
  21654. *
  21655. * _.toString([1, 2, 3]);
  21656. * // => '1,2,3'
  21657. */
  21658. function toString(value) {
  21659. return value == null ? '' : baseToString(value);
  21660. }
  21661. module.exports = toString;
  21662. /***/ }),
  21663. /***/ "../../node_modules/lodash/transform.js":
  21664. /*!************************************************************!*\
  21665. !*** C:/Repos/Babylon.js/node_modules/lodash/transform.js ***!
  21666. \************************************************************/
  21667. /*! no static exports found */
  21668. /***/ (function(module, exports, __webpack_require__) {
  21669. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  21670. baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  21671. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  21672. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  21673. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  21674. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  21675. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  21676. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  21677. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  21678. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  21679. /**
  21680. * An alternative to `_.reduce`; this method transforms `object` to a new
  21681. * `accumulator` object which is the result of running each of its own
  21682. * enumerable string keyed properties thru `iteratee`, with each invocation
  21683. * potentially mutating the `accumulator` object. If `accumulator` is not
  21684. * provided, a new object with the same `[[Prototype]]` will be used. The
  21685. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  21686. * Iteratee functions may exit iteration early by explicitly returning `false`.
  21687. *
  21688. * @static
  21689. * @memberOf _
  21690. * @since 1.3.0
  21691. * @category Object
  21692. * @param {Object} object The object to iterate over.
  21693. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  21694. * @param {*} [accumulator] The custom accumulator value.
  21695. * @returns {*} Returns the accumulated value.
  21696. * @example
  21697. *
  21698. * _.transform([2, 3, 4], function(result, n) {
  21699. * result.push(n *= n);
  21700. * return n % 2 == 0;
  21701. * }, []);
  21702. * // => [4, 9]
  21703. *
  21704. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  21705. * (result[value] || (result[value] = [])).push(key);
  21706. * }, {});
  21707. * // => { '1': ['a', 'c'], '2': ['b'] }
  21708. */
  21709. function transform(object, iteratee, accumulator) {
  21710. var isArr = isArray(object),
  21711. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  21712. iteratee = baseIteratee(iteratee, 4);
  21713. if (accumulator == null) {
  21714. var Ctor = object && object.constructor;
  21715. if (isArrLike) {
  21716. accumulator = isArr ? new Ctor : [];
  21717. }
  21718. else if (isObject(object)) {
  21719. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  21720. }
  21721. else {
  21722. accumulator = {};
  21723. }
  21724. }
  21725. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  21726. return iteratee(accumulator, value, index, object);
  21727. });
  21728. return accumulator;
  21729. }
  21730. module.exports = transform;
  21731. /***/ }),
  21732. /***/ "../../node_modules/lodash/union.js":
  21733. /*!********************************************************!*\
  21734. !*** C:/Repos/Babylon.js/node_modules/lodash/union.js ***!
  21735. \********************************************************/
  21736. /*! no static exports found */
  21737. /***/ (function(module, exports, __webpack_require__) {
  21738. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  21739. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  21740. baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../node_modules/lodash/_baseUniq.js"),
  21741. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js");
  21742. /**
  21743. * Creates an array of unique values, in order, from all given arrays using
  21744. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  21745. * for equality comparisons.
  21746. *
  21747. * @static
  21748. * @memberOf _
  21749. * @since 0.1.0
  21750. * @category Array
  21751. * @param {...Array} [arrays] The arrays to inspect.
  21752. * @returns {Array} Returns the new array of combined values.
  21753. * @example
  21754. *
  21755. * _.union([2], [1, 2]);
  21756. * // => [2, 1]
  21757. */
  21758. var union = baseRest(function(arrays) {
  21759. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  21760. });
  21761. module.exports = union;
  21762. /***/ }),
  21763. /***/ "../../node_modules/lodash/uniqueId.js":
  21764. /*!***********************************************************!*\
  21765. !*** C:/Repos/Babylon.js/node_modules/lodash/uniqueId.js ***!
  21766. \***********************************************************/
  21767. /*! no static exports found */
  21768. /***/ (function(module, exports, __webpack_require__) {
  21769. var toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  21770. /** Used to generate unique IDs. */
  21771. var idCounter = 0;
  21772. /**
  21773. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  21774. *
  21775. * @static
  21776. * @since 0.1.0
  21777. * @memberOf _
  21778. * @category Util
  21779. * @param {string} [prefix=''] The value to prefix the ID with.
  21780. * @returns {string} Returns the unique ID.
  21781. * @example
  21782. *
  21783. * _.uniqueId('contact_');
  21784. * // => 'contact_104'
  21785. *
  21786. * _.uniqueId();
  21787. * // => '105'
  21788. */
  21789. function uniqueId(prefix) {
  21790. var id = ++idCounter;
  21791. return toString(prefix) + id;
  21792. }
  21793. module.exports = uniqueId;
  21794. /***/ }),
  21795. /***/ "../../node_modules/lodash/values.js":
  21796. /*!*********************************************************!*\
  21797. !*** C:/Repos/Babylon.js/node_modules/lodash/values.js ***!
  21798. \*********************************************************/
  21799. /*! no static exports found */
  21800. /***/ (function(module, exports, __webpack_require__) {
  21801. var baseValues = __webpack_require__(/*! ./_baseValues */ "../../node_modules/lodash/_baseValues.js"),
  21802. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  21803. /**
  21804. * Creates an array of the own enumerable string keyed property values of `object`.
  21805. *
  21806. * **Note:** Non-object values are coerced to objects.
  21807. *
  21808. * @static
  21809. * @since 0.1.0
  21810. * @memberOf _
  21811. * @category Object
  21812. * @param {Object} object The object to query.
  21813. * @returns {Array} Returns the array of property values.
  21814. * @example
  21815. *
  21816. * function Foo() {
  21817. * this.a = 1;
  21818. * this.b = 2;
  21819. * }
  21820. *
  21821. * Foo.prototype.c = 3;
  21822. *
  21823. * _.values(new Foo);
  21824. * // => [1, 2] (iteration order is not guaranteed)
  21825. *
  21826. * _.values('hi');
  21827. * // => ['h', 'i']
  21828. */
  21829. function values(object) {
  21830. return object == null ? [] : baseValues(object, keys(object));
  21831. }
  21832. module.exports = values;
  21833. /***/ }),
  21834. /***/ "../../node_modules/lodash/zipObject.js":
  21835. /*!************************************************************!*\
  21836. !*** C:/Repos/Babylon.js/node_modules/lodash/zipObject.js ***!
  21837. \************************************************************/
  21838. /*! no static exports found */
  21839. /***/ (function(module, exports, __webpack_require__) {
  21840. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  21841. baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "../../node_modules/lodash/_baseZipObject.js");
  21842. /**
  21843. * This method is like `_.fromPairs` except that it accepts two arrays,
  21844. * one of property identifiers and one of corresponding values.
  21845. *
  21846. * @static
  21847. * @memberOf _
  21848. * @since 0.4.0
  21849. * @category Array
  21850. * @param {Array} [props=[]] The property identifiers.
  21851. * @param {Array} [values=[]] The property values.
  21852. * @returns {Object} Returns the new object.
  21853. * @example
  21854. *
  21855. * _.zipObject(['a', 'b'], [1, 2]);
  21856. * // => { 'a': 1, 'b': 2 }
  21857. */
  21858. function zipObject(props, values) {
  21859. return baseZipObject(props || [], values || [], assignValue);
  21860. }
  21861. module.exports = zipObject;
  21862. /***/ }),
  21863. /***/ "../../node_modules/material-colors/dist/colors.es2015.js":
  21864. /*!******************************************************************************!*\
  21865. !*** C:/Repos/Babylon.js/node_modules/material-colors/dist/colors.es2015.js ***!
  21866. \******************************************************************************/
  21867. /*! exports provided: red, pink, purple, deepPurple, indigo, blue, lightBlue, cyan, teal, green, lightGreen, lime, yellow, amber, orange, deepOrange, brown, grey, blueGrey, darkText, lightText, darkIcons, lightIcons, white, black, default */
  21868. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21869. "use strict";
  21870. __webpack_require__.r(__webpack_exports__);
  21871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "red", function() { return red; });
  21872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pink", function() { return pink; });
  21873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "purple", function() { return purple; });
  21874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepPurple", function() { return deepPurple; });
  21875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "indigo", function() { return indigo; });
  21876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blue", function() { return blue; });
  21877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightBlue", function() { return lightBlue; });
  21878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cyan", function() { return cyan; });
  21879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "teal", function() { return teal; });
  21880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "green", function() { return green; });
  21881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightGreen", function() { return lightGreen; });
  21882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lime", function() { return lime; });
  21883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yellow", function() { return yellow; });
  21884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "amber", function() { return amber; });
  21885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "orange", function() { return orange; });
  21886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepOrange", function() { return deepOrange; });
  21887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brown", function() { return brown; });
  21888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "grey", function() { return grey; });
  21889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blueGrey", function() { return blueGrey; });
  21890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darkText", function() { return darkText; });
  21891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightText", function() { return lightText; });
  21892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darkIcons", function() { return darkIcons; });
  21893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lightIcons", function() { return lightIcons; });
  21894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "white", function() { return white; });
  21895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "black", function() { return black; });
  21896. var red = {"50":"#ffebee","100":"#ffcdd2","200":"#ef9a9a","300":"#e57373","400":"#ef5350","500":"#f44336","600":"#e53935","700":"#d32f2f","800":"#c62828","900":"#b71c1c","a100":"#ff8a80","a200":"#ff5252","a400":"#ff1744","a700":"#d50000"};
  21897. var pink = {"50":"#fce4ec","100":"#f8bbd0","200":"#f48fb1","300":"#f06292","400":"#ec407a","500":"#e91e63","600":"#d81b60","700":"#c2185b","800":"#ad1457","900":"#880e4f","a100":"#ff80ab","a200":"#ff4081","a400":"#f50057","a700":"#c51162"};
  21898. var purple = {"50":"#f3e5f5","100":"#e1bee7","200":"#ce93d8","300":"#ba68c8","400":"#ab47bc","500":"#9c27b0","600":"#8e24aa","700":"#7b1fa2","800":"#6a1b9a","900":"#4a148c","a100":"#ea80fc","a200":"#e040fb","a400":"#d500f9","a700":"#aa00ff"};
  21899. var deepPurple = {"50":"#ede7f6","100":"#d1c4e9","200":"#b39ddb","300":"#9575cd","400":"#7e57c2","500":"#673ab7","600":"#5e35b1","700":"#512da8","800":"#4527a0","900":"#311b92","a100":"#b388ff","a200":"#7c4dff","a400":"#651fff","a700":"#6200ea"};
  21900. var indigo = {"50":"#e8eaf6","100":"#c5cae9","200":"#9fa8da","300":"#7986cb","400":"#5c6bc0","500":"#3f51b5","600":"#3949ab","700":"#303f9f","800":"#283593","900":"#1a237e","a100":"#8c9eff","a200":"#536dfe","a400":"#3d5afe","a700":"#304ffe"};
  21901. var blue = {"50":"#e3f2fd","100":"#bbdefb","200":"#90caf9","300":"#64b5f6","400":"#42a5f5","500":"#2196f3","600":"#1e88e5","700":"#1976d2","800":"#1565c0","900":"#0d47a1","a100":"#82b1ff","a200":"#448aff","a400":"#2979ff","a700":"#2962ff"};
  21902. var lightBlue = {"50":"#e1f5fe","100":"#b3e5fc","200":"#81d4fa","300":"#4fc3f7","400":"#29b6f6","500":"#03a9f4","600":"#039be5","700":"#0288d1","800":"#0277bd","900":"#01579b","a100":"#80d8ff","a200":"#40c4ff","a400":"#00b0ff","a700":"#0091ea"};
  21903. var cyan = {"50":"#e0f7fa","100":"#b2ebf2","200":"#80deea","300":"#4dd0e1","400":"#26c6da","500":"#00bcd4","600":"#00acc1","700":"#0097a7","800":"#00838f","900":"#006064","a100":"#84ffff","a200":"#18ffff","a400":"#00e5ff","a700":"#00b8d4"};
  21904. var teal = {"50":"#e0f2f1","100":"#b2dfdb","200":"#80cbc4","300":"#4db6ac","400":"#26a69a","500":"#009688","600":"#00897b","700":"#00796b","800":"#00695c","900":"#004d40","a100":"#a7ffeb","a200":"#64ffda","a400":"#1de9b6","a700":"#00bfa5"};
  21905. var green = {"50":"#e8f5e9","100":"#c8e6c9","200":"#a5d6a7","300":"#81c784","400":"#66bb6a","500":"#4caf50","600":"#43a047","700":"#388e3c","800":"#2e7d32","900":"#1b5e20","a100":"#b9f6ca","a200":"#69f0ae","a400":"#00e676","a700":"#00c853"};
  21906. var lightGreen = {"50":"#f1f8e9","100":"#dcedc8","200":"#c5e1a5","300":"#aed581","400":"#9ccc65","500":"#8bc34a","600":"#7cb342","700":"#689f38","800":"#558b2f","900":"#33691e","a100":"#ccff90","a200":"#b2ff59","a400":"#76ff03","a700":"#64dd17"};
  21907. var lime = {"50":"#f9fbe7","100":"#f0f4c3","200":"#e6ee9c","300":"#dce775","400":"#d4e157","500":"#cddc39","600":"#c0ca33","700":"#afb42b","800":"#9e9d24","900":"#827717","a100":"#f4ff81","a200":"#eeff41","a400":"#c6ff00","a700":"#aeea00"};
  21908. var yellow = {"50":"#fffde7","100":"#fff9c4","200":"#fff59d","300":"#fff176","400":"#ffee58","500":"#ffeb3b","600":"#fdd835","700":"#fbc02d","800":"#f9a825","900":"#f57f17","a100":"#ffff8d","a200":"#ffff00","a400":"#ffea00","a700":"#ffd600"};
  21909. var amber = {"50":"#fff8e1","100":"#ffecb3","200":"#ffe082","300":"#ffd54f","400":"#ffca28","500":"#ffc107","600":"#ffb300","700":"#ffa000","800":"#ff8f00","900":"#ff6f00","a100":"#ffe57f","a200":"#ffd740","a400":"#ffc400","a700":"#ffab00"};
  21910. var orange = {"50":"#fff3e0","100":"#ffe0b2","200":"#ffcc80","300":"#ffb74d","400":"#ffa726","500":"#ff9800","600":"#fb8c00","700":"#f57c00","800":"#ef6c00","900":"#e65100","a100":"#ffd180","a200":"#ffab40","a400":"#ff9100","a700":"#ff6d00"};
  21911. var deepOrange = {"50":"#fbe9e7","100":"#ffccbc","200":"#ffab91","300":"#ff8a65","400":"#ff7043","500":"#ff5722","600":"#f4511e","700":"#e64a19","800":"#d84315","900":"#bf360c","a100":"#ff9e80","a200":"#ff6e40","a400":"#ff3d00","a700":"#dd2c00"};
  21912. var brown = {"50":"#efebe9","100":"#d7ccc8","200":"#bcaaa4","300":"#a1887f","400":"#8d6e63","500":"#795548","600":"#6d4c41","700":"#5d4037","800":"#4e342e","900":"#3e2723"};
  21913. var grey = {"50":"#fafafa","100":"#f5f5f5","200":"#eeeeee","300":"#e0e0e0","400":"#bdbdbd","500":"#9e9e9e","600":"#757575","700":"#616161","800":"#424242","900":"#212121"};
  21914. var blueGrey = {"50":"#eceff1","100":"#cfd8dc","200":"#b0bec5","300":"#90a4ae","400":"#78909c","500":"#607d8b","600":"#546e7a","700":"#455a64","800":"#37474f","900":"#263238"};
  21915. var darkText = {"primary":"rgba(0, 0, 0, 0.87)","secondary":"rgba(0, 0, 0, 0.54)","disabled":"rgba(0, 0, 0, 0.38)","dividers":"rgba(0, 0, 0, 0.12)"};
  21916. var lightText = {"primary":"rgba(255, 255, 255, 1)","secondary":"rgba(255, 255, 255, 0.7)","disabled":"rgba(255, 255, 255, 0.5)","dividers":"rgba(255, 255, 255, 0.12)"};
  21917. var darkIcons = {"active":"rgba(0, 0, 0, 0.54)","inactive":"rgba(0, 0, 0, 0.38)"};
  21918. var lightIcons = {"active":"rgba(255, 255, 255, 1)","inactive":"rgba(255, 255, 255, 0.5)"};
  21919. var white = "#ffffff";
  21920. var black = "#000000";
  21921. /* harmony default export */ __webpack_exports__["default"] = ({
  21922. red: red,
  21923. pink: pink,
  21924. purple: purple,
  21925. deepPurple: deepPurple,
  21926. indigo: indigo,
  21927. blue: blue,
  21928. lightBlue: lightBlue,
  21929. cyan: cyan,
  21930. teal: teal,
  21931. green: green,
  21932. lightGreen: lightGreen,
  21933. lime: lime,
  21934. yellow: yellow,
  21935. amber: amber,
  21936. orange: orange,
  21937. deepOrange: deepOrange,
  21938. brown: brown,
  21939. grey: grey,
  21940. blueGrey: blueGrey,
  21941. darkText: darkText,
  21942. lightText: lightText,
  21943. darkIcons: darkIcons,
  21944. lightIcons: lightIcons,
  21945. white: white,
  21946. black: black
  21947. });
  21948. /***/ }),
  21949. /***/ "../../node_modules/object-assign/index.js":
  21950. /*!***************************************************************!*\
  21951. !*** C:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  21952. \***************************************************************/
  21953. /*! no static exports found */
  21954. /***/ (function(module, exports, __webpack_require__) {
  21955. "use strict";
  21956. /*
  21957. object-assign
  21958. (c) Sindre Sorhus
  21959. @license MIT
  21960. */
  21961. /* eslint-disable no-unused-vars */
  21962. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  21963. var hasOwnProperty = Object.prototype.hasOwnProperty;
  21964. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  21965. function toObject(val) {
  21966. if (val === null || val === undefined) {
  21967. throw new TypeError('Object.assign cannot be called with null or undefined');
  21968. }
  21969. return Object(val);
  21970. }
  21971. function shouldUseNative() {
  21972. try {
  21973. if (!Object.assign) {
  21974. return false;
  21975. }
  21976. // Detect buggy property enumeration order in older V8 versions.
  21977. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  21978. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  21979. test1[5] = 'de';
  21980. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  21981. return false;
  21982. }
  21983. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  21984. var test2 = {};
  21985. for (var i = 0; i < 10; i++) {
  21986. test2['_' + String.fromCharCode(i)] = i;
  21987. }
  21988. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  21989. return test2[n];
  21990. });
  21991. if (order2.join('') !== '0123456789') {
  21992. return false;
  21993. }
  21994. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  21995. var test3 = {};
  21996. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  21997. test3[letter] = letter;
  21998. });
  21999. if (Object.keys(Object.assign({}, test3)).join('') !==
  22000. 'abcdefghijklmnopqrst') {
  22001. return false;
  22002. }
  22003. return true;
  22004. } catch (err) {
  22005. // We don't expect any of the above to throw, but better to be safe.
  22006. return false;
  22007. }
  22008. }
  22009. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  22010. var from;
  22011. var to = toObject(target);
  22012. var symbols;
  22013. for (var s = 1; s < arguments.length; s++) {
  22014. from = Object(arguments[s]);
  22015. for (var key in from) {
  22016. if (hasOwnProperty.call(from, key)) {
  22017. to[key] = from[key];
  22018. }
  22019. }
  22020. if (getOwnPropertySymbols) {
  22021. symbols = getOwnPropertySymbols(from);
  22022. for (var i = 0; i < symbols.length; i++) {
  22023. if (propIsEnumerable.call(from, symbols[i])) {
  22024. to[symbols[i]] = from[symbols[i]];
  22025. }
  22026. }
  22027. }
  22028. }
  22029. return to;
  22030. };
  22031. /***/ }),
  22032. /***/ "../../node_modules/process/browser.js":
  22033. /*!***********************************************************!*\
  22034. !*** C:/Repos/Babylon.js/node_modules/process/browser.js ***!
  22035. \***********************************************************/
  22036. /*! no static exports found */
  22037. /***/ (function(module, exports) {
  22038. // shim for using process in browser
  22039. var process = module.exports = {};
  22040. // cached from whatever global is present so that test runners that stub it
  22041. // don't break things. But we need to wrap it in a try catch in case it is
  22042. // wrapped in strict mode code which doesn't define any globals. It's inside a
  22043. // function because try/catches deoptimize in certain engines.
  22044. var cachedSetTimeout;
  22045. var cachedClearTimeout;
  22046. function defaultSetTimout() {
  22047. throw new Error('setTimeout has not been defined');
  22048. }
  22049. function defaultClearTimeout () {
  22050. throw new Error('clearTimeout has not been defined');
  22051. }
  22052. (function () {
  22053. try {
  22054. if (typeof setTimeout === 'function') {
  22055. cachedSetTimeout = setTimeout;
  22056. } else {
  22057. cachedSetTimeout = defaultSetTimout;
  22058. }
  22059. } catch (e) {
  22060. cachedSetTimeout = defaultSetTimout;
  22061. }
  22062. try {
  22063. if (typeof clearTimeout === 'function') {
  22064. cachedClearTimeout = clearTimeout;
  22065. } else {
  22066. cachedClearTimeout = defaultClearTimeout;
  22067. }
  22068. } catch (e) {
  22069. cachedClearTimeout = defaultClearTimeout;
  22070. }
  22071. } ())
  22072. function runTimeout(fun) {
  22073. if (cachedSetTimeout === setTimeout) {
  22074. //normal enviroments in sane situations
  22075. return setTimeout(fun, 0);
  22076. }
  22077. // if setTimeout wasn't available but was latter defined
  22078. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  22079. cachedSetTimeout = setTimeout;
  22080. return setTimeout(fun, 0);
  22081. }
  22082. try {
  22083. // when when somebody has screwed with setTimeout but no I.E. maddness
  22084. return cachedSetTimeout(fun, 0);
  22085. } catch(e){
  22086. try {
  22087. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  22088. return cachedSetTimeout.call(null, fun, 0);
  22089. } catch(e){
  22090. // 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
  22091. return cachedSetTimeout.call(this, fun, 0);
  22092. }
  22093. }
  22094. }
  22095. function runClearTimeout(marker) {
  22096. if (cachedClearTimeout === clearTimeout) {
  22097. //normal enviroments in sane situations
  22098. return clearTimeout(marker);
  22099. }
  22100. // if clearTimeout wasn't available but was latter defined
  22101. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  22102. cachedClearTimeout = clearTimeout;
  22103. return clearTimeout(marker);
  22104. }
  22105. try {
  22106. // when when somebody has screwed with setTimeout but no I.E. maddness
  22107. return cachedClearTimeout(marker);
  22108. } catch (e){
  22109. try {
  22110. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  22111. return cachedClearTimeout.call(null, marker);
  22112. } catch (e){
  22113. // 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.
  22114. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  22115. return cachedClearTimeout.call(this, marker);
  22116. }
  22117. }
  22118. }
  22119. var queue = [];
  22120. var draining = false;
  22121. var currentQueue;
  22122. var queueIndex = -1;
  22123. function cleanUpNextTick() {
  22124. if (!draining || !currentQueue) {
  22125. return;
  22126. }
  22127. draining = false;
  22128. if (currentQueue.length) {
  22129. queue = currentQueue.concat(queue);
  22130. } else {
  22131. queueIndex = -1;
  22132. }
  22133. if (queue.length) {
  22134. drainQueue();
  22135. }
  22136. }
  22137. function drainQueue() {
  22138. if (draining) {
  22139. return;
  22140. }
  22141. var timeout = runTimeout(cleanUpNextTick);
  22142. draining = true;
  22143. var len = queue.length;
  22144. while(len) {
  22145. currentQueue = queue;
  22146. queue = [];
  22147. while (++queueIndex < len) {
  22148. if (currentQueue) {
  22149. currentQueue[queueIndex].run();
  22150. }
  22151. }
  22152. queueIndex = -1;
  22153. len = queue.length;
  22154. }
  22155. currentQueue = null;
  22156. draining = false;
  22157. runClearTimeout(timeout);
  22158. }
  22159. process.nextTick = function (fun) {
  22160. var args = new Array(arguments.length - 1);
  22161. if (arguments.length > 1) {
  22162. for (var i = 1; i < arguments.length; i++) {
  22163. args[i - 1] = arguments[i];
  22164. }
  22165. }
  22166. queue.push(new Item(fun, args));
  22167. if (queue.length === 1 && !draining) {
  22168. runTimeout(drainQueue);
  22169. }
  22170. };
  22171. // v8 likes predictible objects
  22172. function Item(fun, array) {
  22173. this.fun = fun;
  22174. this.array = array;
  22175. }
  22176. Item.prototype.run = function () {
  22177. this.fun.apply(null, this.array);
  22178. };
  22179. process.title = 'browser';
  22180. process.browser = true;
  22181. process.env = {};
  22182. process.argv = [];
  22183. process.version = ''; // empty string to avoid regexp issues
  22184. process.versions = {};
  22185. function noop() {}
  22186. process.on = noop;
  22187. process.addListener = noop;
  22188. process.once = noop;
  22189. process.off = noop;
  22190. process.removeListener = noop;
  22191. process.removeAllListeners = noop;
  22192. process.emit = noop;
  22193. process.prependListener = noop;
  22194. process.prependOnceListener = noop;
  22195. process.listeners = function (name) { return [] }
  22196. process.binding = function (name) {
  22197. throw new Error('process.binding is not supported');
  22198. };
  22199. process.cwd = function () { return '/' };
  22200. process.chdir = function (dir) {
  22201. throw new Error('process.chdir is not supported');
  22202. };
  22203. process.umask = function() { return 0; };
  22204. /***/ }),
  22205. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  22206. /*!*********************************************************************!*\
  22207. !*** C:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  22208. \*********************************************************************/
  22209. /*! no static exports found */
  22210. /***/ (function(module, exports, __webpack_require__) {
  22211. "use strict";
  22212. /**
  22213. * Copyright (c) 2013-present, Facebook, Inc.
  22214. *
  22215. * This source code is licensed under the MIT license found in the
  22216. * LICENSE file in the root directory of this source tree.
  22217. */
  22218. var printWarning = function() {};
  22219. if (true) {
  22220. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  22221. var loggedTypeFailures = {};
  22222. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  22223. printWarning = function(text) {
  22224. var message = 'Warning: ' + text;
  22225. if (typeof console !== 'undefined') {
  22226. console.error(message);
  22227. }
  22228. try {
  22229. // --- Welcome to debugging React ---
  22230. // This error was thrown as a convenience so that you can use this stack
  22231. // to find the callsite that caused this warning to fire.
  22232. throw new Error(message);
  22233. } catch (x) {}
  22234. };
  22235. }
  22236. /**
  22237. * Assert that the values match with the type specs.
  22238. * Error messages are memorized and will only be shown once.
  22239. *
  22240. * @param {object} typeSpecs Map of name to a ReactPropType
  22241. * @param {object} values Runtime values that need to be type-checked
  22242. * @param {string} location e.g. "prop", "context", "child context"
  22243. * @param {string} componentName Name of the component for error messages.
  22244. * @param {?Function} getStack Returns the component stack.
  22245. * @private
  22246. */
  22247. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  22248. if (true) {
  22249. for (var typeSpecName in typeSpecs) {
  22250. if (has(typeSpecs, typeSpecName)) {
  22251. var error;
  22252. // Prop type validation may throw. In case they do, we don't want to
  22253. // fail the render phase where it didn't fail before. So we log it.
  22254. // After these have been cleaned up, we'll let them throw.
  22255. try {
  22256. // This is intentionally an invariant that gets caught. It's the same
  22257. // behavior as without this statement except with a better message.
  22258. if (typeof typeSpecs[typeSpecName] !== 'function') {
  22259. var err = Error(
  22260. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  22261. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  22262. );
  22263. err.name = 'Invariant Violation';
  22264. throw err;
  22265. }
  22266. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  22267. } catch (ex) {
  22268. error = ex;
  22269. }
  22270. if (error && !(error instanceof Error)) {
  22271. printWarning(
  22272. (componentName || 'React class') + ': type specification of ' +
  22273. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  22274. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  22275. 'You may have forgotten to pass an argument to the type checker ' +
  22276. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  22277. 'shape all require an argument).'
  22278. );
  22279. }
  22280. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  22281. // Only monitor this failure once because there tends to be a lot of the
  22282. // same error.
  22283. loggedTypeFailures[error.message] = true;
  22284. var stack = getStack ? getStack() : '';
  22285. printWarning(
  22286. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  22287. );
  22288. }
  22289. }
  22290. }
  22291. }
  22292. }
  22293. /**
  22294. * Resets warning cache when testing.
  22295. *
  22296. * @private
  22297. */
  22298. checkPropTypes.resetWarningCache = function() {
  22299. if (true) {
  22300. loggedTypeFailures = {};
  22301. }
  22302. }
  22303. module.exports = checkPropTypes;
  22304. /***/ }),
  22305. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  22306. /*!******************************************************************************!*\
  22307. !*** C:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  22308. \******************************************************************************/
  22309. /*! no static exports found */
  22310. /***/ (function(module, exports, __webpack_require__) {
  22311. "use strict";
  22312. /**
  22313. * Copyright (c) 2013-present, Facebook, Inc.
  22314. *
  22315. * This source code is licensed under the MIT license found in the
  22316. * LICENSE file in the root directory of this source tree.
  22317. */
  22318. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  22319. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  22320. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  22321. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  22322. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  22323. var printWarning = function() {};
  22324. if (true) {
  22325. printWarning = function(text) {
  22326. var message = 'Warning: ' + text;
  22327. if (typeof console !== 'undefined') {
  22328. console.error(message);
  22329. }
  22330. try {
  22331. // --- Welcome to debugging React ---
  22332. // This error was thrown as a convenience so that you can use this stack
  22333. // to find the callsite that caused this warning to fire.
  22334. throw new Error(message);
  22335. } catch (x) {}
  22336. };
  22337. }
  22338. function emptyFunctionThatReturnsNull() {
  22339. return null;
  22340. }
  22341. module.exports = function(isValidElement, throwOnDirectAccess) {
  22342. /* global Symbol */
  22343. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  22344. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  22345. /**
  22346. * Returns the iterator method function contained on the iterable object.
  22347. *
  22348. * Be sure to invoke the function with the iterable as context:
  22349. *
  22350. * var iteratorFn = getIteratorFn(myIterable);
  22351. * if (iteratorFn) {
  22352. * var iterator = iteratorFn.call(myIterable);
  22353. * ...
  22354. * }
  22355. *
  22356. * @param {?object} maybeIterable
  22357. * @return {?function}
  22358. */
  22359. function getIteratorFn(maybeIterable) {
  22360. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  22361. if (typeof iteratorFn === 'function') {
  22362. return iteratorFn;
  22363. }
  22364. }
  22365. /**
  22366. * Collection of methods that allow declaration and validation of props that are
  22367. * supplied to React components. Example usage:
  22368. *
  22369. * var Props = require('ReactPropTypes');
  22370. * var MyArticle = React.createClass({
  22371. * propTypes: {
  22372. * // An optional string prop named "description".
  22373. * description: Props.string,
  22374. *
  22375. * // A required enum prop named "category".
  22376. * category: Props.oneOf(['News','Photos']).isRequired,
  22377. *
  22378. * // A prop named "dialog" that requires an instance of Dialog.
  22379. * dialog: Props.instanceOf(Dialog).isRequired
  22380. * },
  22381. * render: function() { ... }
  22382. * });
  22383. *
  22384. * A more formal specification of how these methods are used:
  22385. *
  22386. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  22387. * decl := ReactPropTypes.{type}(.isRequired)?
  22388. *
  22389. * Each and every declaration produces a function with the same signature. This
  22390. * allows the creation of custom validation functions. For example:
  22391. *
  22392. * var MyLink = React.createClass({
  22393. * propTypes: {
  22394. * // An optional string or URI prop named "href".
  22395. * href: function(props, propName, componentName) {
  22396. * var propValue = props[propName];
  22397. * if (propValue != null && typeof propValue !== 'string' &&
  22398. * !(propValue instanceof URI)) {
  22399. * return new Error(
  22400. * 'Expected a string or an URI for ' + propName + ' in ' +
  22401. * componentName
  22402. * );
  22403. * }
  22404. * }
  22405. * },
  22406. * render: function() {...}
  22407. * });
  22408. *
  22409. * @internal
  22410. */
  22411. var ANONYMOUS = '<<anonymous>>';
  22412. // Important!
  22413. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  22414. var ReactPropTypes = {
  22415. array: createPrimitiveTypeChecker('array'),
  22416. bool: createPrimitiveTypeChecker('boolean'),
  22417. func: createPrimitiveTypeChecker('function'),
  22418. number: createPrimitiveTypeChecker('number'),
  22419. object: createPrimitiveTypeChecker('object'),
  22420. string: createPrimitiveTypeChecker('string'),
  22421. symbol: createPrimitiveTypeChecker('symbol'),
  22422. any: createAnyTypeChecker(),
  22423. arrayOf: createArrayOfTypeChecker,
  22424. element: createElementTypeChecker(),
  22425. elementType: createElementTypeTypeChecker(),
  22426. instanceOf: createInstanceTypeChecker,
  22427. node: createNodeChecker(),
  22428. objectOf: createObjectOfTypeChecker,
  22429. oneOf: createEnumTypeChecker,
  22430. oneOfType: createUnionTypeChecker,
  22431. shape: createShapeTypeChecker,
  22432. exact: createStrictShapeTypeChecker,
  22433. };
  22434. /**
  22435. * inlined Object.is polyfill to avoid requiring consumers ship their own
  22436. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  22437. */
  22438. /*eslint-disable no-self-compare*/
  22439. function is(x, y) {
  22440. // SameValue algorithm
  22441. if (x === y) {
  22442. // Steps 1-5, 7-10
  22443. // Steps 6.b-6.e: +0 != -0
  22444. return x !== 0 || 1 / x === 1 / y;
  22445. } else {
  22446. // Step 6.a: NaN == NaN
  22447. return x !== x && y !== y;
  22448. }
  22449. }
  22450. /*eslint-enable no-self-compare*/
  22451. /**
  22452. * We use an Error-like object for backward compatibility as people may call
  22453. * PropTypes directly and inspect their output. However, we don't use real
  22454. * Errors anymore. We don't inspect their stack anyway, and creating them
  22455. * is prohibitively expensive if they are created too often, such as what
  22456. * happens in oneOfType() for any type before the one that matched.
  22457. */
  22458. function PropTypeError(message) {
  22459. this.message = message;
  22460. this.stack = '';
  22461. }
  22462. // Make `instanceof Error` still work for returned errors.
  22463. PropTypeError.prototype = Error.prototype;
  22464. function createChainableTypeChecker(validate) {
  22465. if (true) {
  22466. var manualPropTypeCallCache = {};
  22467. var manualPropTypeWarningCount = 0;
  22468. }
  22469. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  22470. componentName = componentName || ANONYMOUS;
  22471. propFullName = propFullName || propName;
  22472. if (secret !== ReactPropTypesSecret) {
  22473. if (throwOnDirectAccess) {
  22474. // New behavior only for users of `prop-types` package
  22475. var err = new Error(
  22476. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  22477. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  22478. 'Read more at http://fb.me/use-check-prop-types'
  22479. );
  22480. err.name = 'Invariant Violation';
  22481. throw err;
  22482. } else if ( true && typeof console !== 'undefined') {
  22483. // Old behavior for people using React.PropTypes
  22484. var cacheKey = componentName + ':' + propName;
  22485. if (
  22486. !manualPropTypeCallCache[cacheKey] &&
  22487. // Avoid spamming the console because they are often not actionable except for lib authors
  22488. manualPropTypeWarningCount < 3
  22489. ) {
  22490. printWarning(
  22491. 'You are manually calling a React.PropTypes validation ' +
  22492. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  22493. 'and will throw in the standalone `prop-types` package. ' +
  22494. 'You may be seeing this warning due to a third-party PropTypes ' +
  22495. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  22496. );
  22497. manualPropTypeCallCache[cacheKey] = true;
  22498. manualPropTypeWarningCount++;
  22499. }
  22500. }
  22501. }
  22502. if (props[propName] == null) {
  22503. if (isRequired) {
  22504. if (props[propName] === null) {
  22505. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  22506. }
  22507. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  22508. }
  22509. return null;
  22510. } else {
  22511. return validate(props, propName, componentName, location, propFullName);
  22512. }
  22513. }
  22514. var chainedCheckType = checkType.bind(null, false);
  22515. chainedCheckType.isRequired = checkType.bind(null, true);
  22516. return chainedCheckType;
  22517. }
  22518. function createPrimitiveTypeChecker(expectedType) {
  22519. function validate(props, propName, componentName, location, propFullName, secret) {
  22520. var propValue = props[propName];
  22521. var propType = getPropType(propValue);
  22522. if (propType !== expectedType) {
  22523. // `propValue` being instance of, say, date/regexp, pass the 'object'
  22524. // check, but we can offer a more precise error message here rather than
  22525. // 'of type `object`'.
  22526. var preciseType = getPreciseType(propValue);
  22527. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  22528. }
  22529. return null;
  22530. }
  22531. return createChainableTypeChecker(validate);
  22532. }
  22533. function createAnyTypeChecker() {
  22534. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  22535. }
  22536. function createArrayOfTypeChecker(typeChecker) {
  22537. function validate(props, propName, componentName, location, propFullName) {
  22538. if (typeof typeChecker !== 'function') {
  22539. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  22540. }
  22541. var propValue = props[propName];
  22542. if (!Array.isArray(propValue)) {
  22543. var propType = getPropType(propValue);
  22544. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  22545. }
  22546. for (var i = 0; i < propValue.length; i++) {
  22547. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  22548. if (error instanceof Error) {
  22549. return error;
  22550. }
  22551. }
  22552. return null;
  22553. }
  22554. return createChainableTypeChecker(validate);
  22555. }
  22556. function createElementTypeChecker() {
  22557. function validate(props, propName, componentName, location, propFullName) {
  22558. var propValue = props[propName];
  22559. if (!isValidElement(propValue)) {
  22560. var propType = getPropType(propValue);
  22561. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  22562. }
  22563. return null;
  22564. }
  22565. return createChainableTypeChecker(validate);
  22566. }
  22567. function createElementTypeTypeChecker() {
  22568. function validate(props, propName, componentName, location, propFullName) {
  22569. var propValue = props[propName];
  22570. if (!ReactIs.isValidElementType(propValue)) {
  22571. var propType = getPropType(propValue);
  22572. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
  22573. }
  22574. return null;
  22575. }
  22576. return createChainableTypeChecker(validate);
  22577. }
  22578. function createInstanceTypeChecker(expectedClass) {
  22579. function validate(props, propName, componentName, location, propFullName) {
  22580. if (!(props[propName] instanceof expectedClass)) {
  22581. var expectedClassName = expectedClass.name || ANONYMOUS;
  22582. var actualClassName = getClassName(props[propName]);
  22583. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  22584. }
  22585. return null;
  22586. }
  22587. return createChainableTypeChecker(validate);
  22588. }
  22589. function createEnumTypeChecker(expectedValues) {
  22590. if (!Array.isArray(expectedValues)) {
  22591. if (true) {
  22592. if (arguments.length > 1) {
  22593. printWarning(
  22594. 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
  22595. 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
  22596. );
  22597. } else {
  22598. printWarning('Invalid argument supplied to oneOf, expected an array.');
  22599. }
  22600. }
  22601. return emptyFunctionThatReturnsNull;
  22602. }
  22603. function validate(props, propName, componentName, location, propFullName) {
  22604. var propValue = props[propName];
  22605. for (var i = 0; i < expectedValues.length; i++) {
  22606. if (is(propValue, expectedValues[i])) {
  22607. return null;
  22608. }
  22609. }
  22610. var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
  22611. var type = getPreciseType(value);
  22612. if (type === 'symbol') {
  22613. return String(value);
  22614. }
  22615. return value;
  22616. });
  22617. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  22618. }
  22619. return createChainableTypeChecker(validate);
  22620. }
  22621. function createObjectOfTypeChecker(typeChecker) {
  22622. function validate(props, propName, componentName, location, propFullName) {
  22623. if (typeof typeChecker !== 'function') {
  22624. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  22625. }
  22626. var propValue = props[propName];
  22627. var propType = getPropType(propValue);
  22628. if (propType !== 'object') {
  22629. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  22630. }
  22631. for (var key in propValue) {
  22632. if (has(propValue, key)) {
  22633. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  22634. if (error instanceof Error) {
  22635. return error;
  22636. }
  22637. }
  22638. }
  22639. return null;
  22640. }
  22641. return createChainableTypeChecker(validate);
  22642. }
  22643. function createUnionTypeChecker(arrayOfTypeCheckers) {
  22644. if (!Array.isArray(arrayOfTypeCheckers)) {
  22645. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  22646. return emptyFunctionThatReturnsNull;
  22647. }
  22648. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  22649. var checker = arrayOfTypeCheckers[i];
  22650. if (typeof checker !== 'function') {
  22651. printWarning(
  22652. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  22653. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  22654. );
  22655. return emptyFunctionThatReturnsNull;
  22656. }
  22657. }
  22658. function validate(props, propName, componentName, location, propFullName) {
  22659. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  22660. var checker = arrayOfTypeCheckers[i];
  22661. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  22662. return null;
  22663. }
  22664. }
  22665. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  22666. }
  22667. return createChainableTypeChecker(validate);
  22668. }
  22669. function createNodeChecker() {
  22670. function validate(props, propName, componentName, location, propFullName) {
  22671. if (!isNode(props[propName])) {
  22672. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  22673. }
  22674. return null;
  22675. }
  22676. return createChainableTypeChecker(validate);
  22677. }
  22678. function createShapeTypeChecker(shapeTypes) {
  22679. function validate(props, propName, componentName, location, propFullName) {
  22680. var propValue = props[propName];
  22681. var propType = getPropType(propValue);
  22682. if (propType !== 'object') {
  22683. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  22684. }
  22685. for (var key in shapeTypes) {
  22686. var checker = shapeTypes[key];
  22687. if (!checker) {
  22688. continue;
  22689. }
  22690. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  22691. if (error) {
  22692. return error;
  22693. }
  22694. }
  22695. return null;
  22696. }
  22697. return createChainableTypeChecker(validate);
  22698. }
  22699. function createStrictShapeTypeChecker(shapeTypes) {
  22700. function validate(props, propName, componentName, location, propFullName) {
  22701. var propValue = props[propName];
  22702. var propType = getPropType(propValue);
  22703. if (propType !== 'object') {
  22704. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  22705. }
  22706. // We need to check all keys in case some are required but missing from
  22707. // props.
  22708. var allKeys = assign({}, props[propName], shapeTypes);
  22709. for (var key in allKeys) {
  22710. var checker = shapeTypes[key];
  22711. if (!checker) {
  22712. return new PropTypeError(
  22713. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  22714. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  22715. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  22716. );
  22717. }
  22718. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  22719. if (error) {
  22720. return error;
  22721. }
  22722. }
  22723. return null;
  22724. }
  22725. return createChainableTypeChecker(validate);
  22726. }
  22727. function isNode(propValue) {
  22728. switch (typeof propValue) {
  22729. case 'number':
  22730. case 'string':
  22731. case 'undefined':
  22732. return true;
  22733. case 'boolean':
  22734. return !propValue;
  22735. case 'object':
  22736. if (Array.isArray(propValue)) {
  22737. return propValue.every(isNode);
  22738. }
  22739. if (propValue === null || isValidElement(propValue)) {
  22740. return true;
  22741. }
  22742. var iteratorFn = getIteratorFn(propValue);
  22743. if (iteratorFn) {
  22744. var iterator = iteratorFn.call(propValue);
  22745. var step;
  22746. if (iteratorFn !== propValue.entries) {
  22747. while (!(step = iterator.next()).done) {
  22748. if (!isNode(step.value)) {
  22749. return false;
  22750. }
  22751. }
  22752. } else {
  22753. // Iterator will provide entry [k,v] tuples rather than values.
  22754. while (!(step = iterator.next()).done) {
  22755. var entry = step.value;
  22756. if (entry) {
  22757. if (!isNode(entry[1])) {
  22758. return false;
  22759. }
  22760. }
  22761. }
  22762. }
  22763. } else {
  22764. return false;
  22765. }
  22766. return true;
  22767. default:
  22768. return false;
  22769. }
  22770. }
  22771. function isSymbol(propType, propValue) {
  22772. // Native Symbol.
  22773. if (propType === 'symbol') {
  22774. return true;
  22775. }
  22776. // falsy value can't be a Symbol
  22777. if (!propValue) {
  22778. return false;
  22779. }
  22780. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  22781. if (propValue['@@toStringTag'] === 'Symbol') {
  22782. return true;
  22783. }
  22784. // Fallback for non-spec compliant Symbols which are polyfilled.
  22785. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  22786. return true;
  22787. }
  22788. return false;
  22789. }
  22790. // Equivalent of `typeof` but with special handling for array and regexp.
  22791. function getPropType(propValue) {
  22792. var propType = typeof propValue;
  22793. if (Array.isArray(propValue)) {
  22794. return 'array';
  22795. }
  22796. if (propValue instanceof RegExp) {
  22797. // Old webkits (at least until Android 4.0) return 'function' rather than
  22798. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  22799. // passes PropTypes.object.
  22800. return 'object';
  22801. }
  22802. if (isSymbol(propType, propValue)) {
  22803. return 'symbol';
  22804. }
  22805. return propType;
  22806. }
  22807. // This handles more types than `getPropType`. Only used for error messages.
  22808. // See `createPrimitiveTypeChecker`.
  22809. function getPreciseType(propValue) {
  22810. if (typeof propValue === 'undefined' || propValue === null) {
  22811. return '' + propValue;
  22812. }
  22813. var propType = getPropType(propValue);
  22814. if (propType === 'object') {
  22815. if (propValue instanceof Date) {
  22816. return 'date';
  22817. } else if (propValue instanceof RegExp) {
  22818. return 'regexp';
  22819. }
  22820. }
  22821. return propType;
  22822. }
  22823. // Returns a string that is postfixed to a warning about an invalid type.
  22824. // For example, "undefined" or "of type array"
  22825. function getPostfixForTypeWarning(value) {
  22826. var type = getPreciseType(value);
  22827. switch (type) {
  22828. case 'array':
  22829. case 'object':
  22830. return 'an ' + type;
  22831. case 'boolean':
  22832. case 'date':
  22833. case 'regexp':
  22834. return 'a ' + type;
  22835. default:
  22836. return type;
  22837. }
  22838. }
  22839. // Returns class name of the object, if any.
  22840. function getClassName(propValue) {
  22841. if (!propValue.constructor || !propValue.constructor.name) {
  22842. return ANONYMOUS;
  22843. }
  22844. return propValue.constructor.name;
  22845. }
  22846. ReactPropTypes.checkPropTypes = checkPropTypes;
  22847. ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
  22848. ReactPropTypes.PropTypes = ReactPropTypes;
  22849. return ReactPropTypes;
  22850. };
  22851. /***/ }),
  22852. /***/ "../../node_modules/prop-types/index.js":
  22853. /*!************************************************************!*\
  22854. !*** C:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  22855. \************************************************************/
  22856. /*! no static exports found */
  22857. /***/ (function(module, exports, __webpack_require__) {
  22858. /**
  22859. * Copyright (c) 2013-present, Facebook, Inc.
  22860. *
  22861. * This source code is licensed under the MIT license found in the
  22862. * LICENSE file in the root directory of this source tree.
  22863. */
  22864. if (true) {
  22865. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  22866. // By explicitly using `prop-types` you are opting into new development behavior.
  22867. // http://fb.me/prop-types-in-prod
  22868. var throwOnDirectAccess = true;
  22869. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
  22870. } else {}
  22871. /***/ }),
  22872. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  22873. /*!*******************************************************************************!*\
  22874. !*** C:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  22875. \*******************************************************************************/
  22876. /*! no static exports found */
  22877. /***/ (function(module, exports, __webpack_require__) {
  22878. "use strict";
  22879. /**
  22880. * Copyright (c) 2013-present, Facebook, Inc.
  22881. *
  22882. * This source code is licensed under the MIT license found in the
  22883. * LICENSE file in the root directory of this source tree.
  22884. */
  22885. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  22886. module.exports = ReactPropTypesSecret;
  22887. /***/ }),
  22888. /***/ "../../node_modules/react-color/lib/components/alpha/Alpha.js":
  22889. /*!**********************************************************************************!*\
  22890. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/alpha/Alpha.js ***!
  22891. \**********************************************************************************/
  22892. /*! no static exports found */
  22893. /***/ (function(module, exports, __webpack_require__) {
  22894. "use strict";
  22895. Object.defineProperty(exports, "__esModule", {
  22896. value: true
  22897. });
  22898. exports.AlphaPicker = undefined;
  22899. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  22900. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22901. var _react2 = _interopRequireDefault(_react);
  22902. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22903. var _reactcss2 = _interopRequireDefault(_reactcss);
  22904. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  22905. var _AlphaPointer = __webpack_require__(/*! ./AlphaPointer */ "../../node_modules/react-color/lib/components/alpha/AlphaPointer.js");
  22906. var _AlphaPointer2 = _interopRequireDefault(_AlphaPointer);
  22907. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22908. var AlphaPicker = exports.AlphaPicker = function AlphaPicker(_ref) {
  22909. var rgb = _ref.rgb,
  22910. hsl = _ref.hsl,
  22911. width = _ref.width,
  22912. height = _ref.height,
  22913. onChange = _ref.onChange,
  22914. direction = _ref.direction,
  22915. style = _ref.style,
  22916. renderers = _ref.renderers,
  22917. pointer = _ref.pointer,
  22918. _ref$className = _ref.className,
  22919. className = _ref$className === undefined ? '' : _ref$className;
  22920. var styles = (0, _reactcss2.default)({
  22921. 'default': {
  22922. picker: {
  22923. position: 'relative',
  22924. width: width,
  22925. height: height
  22926. },
  22927. alpha: {
  22928. radius: '2px',
  22929. style: style
  22930. }
  22931. }
  22932. });
  22933. return _react2.default.createElement(
  22934. 'div',
  22935. { style: styles.picker, className: 'alpha-picker ' + className },
  22936. _react2.default.createElement(_common.Alpha, _extends({}, styles.alpha, {
  22937. rgb: rgb,
  22938. hsl: hsl,
  22939. pointer: pointer,
  22940. renderers: renderers,
  22941. onChange: onChange,
  22942. direction: direction
  22943. }))
  22944. );
  22945. };
  22946. AlphaPicker.defaultProps = {
  22947. width: '316px',
  22948. height: '16px',
  22949. direction: 'horizontal',
  22950. pointer: _AlphaPointer2.default
  22951. };
  22952. exports.default = (0, _common.ColorWrap)(AlphaPicker);
  22953. /***/ }),
  22954. /***/ "../../node_modules/react-color/lib/components/alpha/AlphaPointer.js":
  22955. /*!*****************************************************************************************!*\
  22956. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/alpha/AlphaPointer.js ***!
  22957. \*****************************************************************************************/
  22958. /*! no static exports found */
  22959. /***/ (function(module, exports, __webpack_require__) {
  22960. "use strict";
  22961. Object.defineProperty(exports, "__esModule", {
  22962. value: true
  22963. });
  22964. exports.AlphaPointer = undefined;
  22965. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  22966. var _react2 = _interopRequireDefault(_react);
  22967. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  22968. var _reactcss2 = _interopRequireDefault(_reactcss);
  22969. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22970. var AlphaPointer = exports.AlphaPointer = function AlphaPointer(_ref) {
  22971. var direction = _ref.direction;
  22972. var styles = (0, _reactcss2.default)({
  22973. 'default': {
  22974. picker: {
  22975. width: '18px',
  22976. height: '18px',
  22977. borderRadius: '50%',
  22978. transform: 'translate(-9px, -1px)',
  22979. backgroundColor: 'rgb(248, 248, 248)',
  22980. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  22981. }
  22982. },
  22983. 'vertical': {
  22984. picker: {
  22985. transform: 'translate(-3px, -9px)'
  22986. }
  22987. }
  22988. }, { vertical: direction === 'vertical' });
  22989. return _react2.default.createElement('div', { style: styles.picker });
  22990. };
  22991. exports.default = AlphaPointer;
  22992. /***/ }),
  22993. /***/ "../../node_modules/react-color/lib/components/block/Block.js":
  22994. /*!**********************************************************************************!*\
  22995. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/block/Block.js ***!
  22996. \**********************************************************************************/
  22997. /*! no static exports found */
  22998. /***/ (function(module, exports, __webpack_require__) {
  22999. "use strict";
  23000. Object.defineProperty(exports, "__esModule", {
  23001. value: true
  23002. });
  23003. exports.Block = undefined;
  23004. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23005. var _react2 = _interopRequireDefault(_react);
  23006. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  23007. var _propTypes2 = _interopRequireDefault(_propTypes);
  23008. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  23009. var _reactcss2 = _interopRequireDefault(_reactcss);
  23010. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  23011. var _merge2 = _interopRequireDefault(_merge);
  23012. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  23013. var _color2 = _interopRequireDefault(_color);
  23014. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  23015. var _BlockSwatches = __webpack_require__(/*! ./BlockSwatches */ "../../node_modules/react-color/lib/components/block/BlockSwatches.js");
  23016. var _BlockSwatches2 = _interopRequireDefault(_BlockSwatches);
  23017. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23018. var Block = exports.Block = function Block(_ref) {
  23019. var onChange = _ref.onChange,
  23020. onSwatchHover = _ref.onSwatchHover,
  23021. hex = _ref.hex,
  23022. colors = _ref.colors,
  23023. width = _ref.width,
  23024. triangle = _ref.triangle,
  23025. _ref$styles = _ref.styles,
  23026. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  23027. _ref$className = _ref.className,
  23028. className = _ref$className === undefined ? '' : _ref$className;
  23029. var transparent = hex === 'transparent';
  23030. var handleChange = function handleChange(hexCode, e) {
  23031. _color2.default.isValidHex(hexCode) && onChange({
  23032. hex: hexCode,
  23033. source: 'hex'
  23034. }, e);
  23035. };
  23036. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  23037. 'default': {
  23038. card: {
  23039. width: width,
  23040. background: '#fff',
  23041. boxShadow: '0 1px rgba(0,0,0,.1)',
  23042. borderRadius: '6px',
  23043. position: 'relative'
  23044. },
  23045. head: {
  23046. height: '110px',
  23047. background: hex,
  23048. borderRadius: '6px 6px 0 0',
  23049. display: 'flex',
  23050. alignItems: 'center',
  23051. justifyContent: 'center',
  23052. position: 'relative'
  23053. },
  23054. body: {
  23055. padding: '10px'
  23056. },
  23057. label: {
  23058. fontSize: '18px',
  23059. color: _color2.default.getContrastingColor(hex),
  23060. position: 'relative'
  23061. },
  23062. triangle: {
  23063. width: '0px',
  23064. height: '0px',
  23065. borderStyle: 'solid',
  23066. borderWidth: '0 10px 10px 10px',
  23067. borderColor: 'transparent transparent ' + hex + ' transparent',
  23068. position: 'absolute',
  23069. top: '-10px',
  23070. left: '50%',
  23071. marginLeft: '-10px'
  23072. },
  23073. input: {
  23074. width: '100%',
  23075. fontSize: '12px',
  23076. color: '#666',
  23077. border: '0px',
  23078. outline: 'none',
  23079. height: '22px',
  23080. boxShadow: 'inset 0 0 0 1px #ddd',
  23081. borderRadius: '4px',
  23082. padding: '0 7px',
  23083. boxSizing: 'border-box'
  23084. }
  23085. },
  23086. 'hide-triangle': {
  23087. triangle: {
  23088. display: 'none'
  23089. }
  23090. }
  23091. }, passedStyles), { 'hide-triangle': triangle === 'hide' });
  23092. return _react2.default.createElement(
  23093. 'div',
  23094. { style: styles.card, className: 'block-picker ' + className },
  23095. _react2.default.createElement('div', { style: styles.triangle }),
  23096. _react2.default.createElement(
  23097. 'div',
  23098. { style: styles.head },
  23099. transparent && _react2.default.createElement(_common.Checkboard, { borderRadius: '6px 6px 0 0' }),
  23100. _react2.default.createElement(
  23101. 'div',
  23102. { style: styles.label },
  23103. hex
  23104. )
  23105. ),
  23106. _react2.default.createElement(
  23107. 'div',
  23108. { style: styles.body },
  23109. _react2.default.createElement(_BlockSwatches2.default, { colors: colors, onClick: handleChange, onSwatchHover: onSwatchHover }),
  23110. _react2.default.createElement(_common.EditableInput, {
  23111. style: { input: styles.input },
  23112. value: hex,
  23113. onChange: handleChange
  23114. })
  23115. )
  23116. );
  23117. };
  23118. Block.propTypes = {
  23119. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  23120. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  23121. triangle: _propTypes2.default.oneOf(['top', 'hide']),
  23122. styles: _propTypes2.default.object
  23123. };
  23124. Block.defaultProps = {
  23125. width: 170,
  23126. colors: ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'],
  23127. triangle: 'top',
  23128. styles: {}
  23129. };
  23130. exports.default = (0, _common.ColorWrap)(Block);
  23131. /***/ }),
  23132. /***/ "../../node_modules/react-color/lib/components/block/BlockSwatches.js":
  23133. /*!******************************************************************************************!*\
  23134. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/block/BlockSwatches.js ***!
  23135. \******************************************************************************************/
  23136. /*! no static exports found */
  23137. /***/ (function(module, exports, __webpack_require__) {
  23138. "use strict";
  23139. Object.defineProperty(exports, "__esModule", {
  23140. value: true
  23141. });
  23142. exports.BlockSwatches = undefined;
  23143. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23144. var _react2 = _interopRequireDefault(_react);
  23145. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  23146. var _reactcss2 = _interopRequireDefault(_reactcss);
  23147. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  23148. var _map2 = _interopRequireDefault(_map);
  23149. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  23150. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23151. var BlockSwatches = exports.BlockSwatches = function BlockSwatches(_ref) {
  23152. var colors = _ref.colors,
  23153. onClick = _ref.onClick,
  23154. onSwatchHover = _ref.onSwatchHover;
  23155. var styles = (0, _reactcss2.default)({
  23156. 'default': {
  23157. swatches: {
  23158. marginRight: '-10px'
  23159. },
  23160. swatch: {
  23161. width: '22px',
  23162. height: '22px',
  23163. float: 'left',
  23164. marginRight: '10px',
  23165. marginBottom: '10px',
  23166. borderRadius: '4px'
  23167. },
  23168. clear: {
  23169. clear: 'both'
  23170. }
  23171. }
  23172. });
  23173. return _react2.default.createElement(
  23174. 'div',
  23175. { style: styles.swatches },
  23176. (0, _map2.default)(colors, function (c) {
  23177. return _react2.default.createElement(_common.Swatch, {
  23178. key: c,
  23179. color: c,
  23180. style: styles.swatch,
  23181. onClick: onClick,
  23182. onHover: onSwatchHover,
  23183. focusStyle: {
  23184. boxShadow: '0 0 4px ' + c
  23185. }
  23186. });
  23187. }),
  23188. _react2.default.createElement('div', { style: styles.clear })
  23189. );
  23190. };
  23191. exports.default = BlockSwatches;
  23192. /***/ }),
  23193. /***/ "../../node_modules/react-color/lib/components/chrome/Chrome.js":
  23194. /*!************************************************************************************!*\
  23195. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/Chrome.js ***!
  23196. \************************************************************************************/
  23197. /*! no static exports found */
  23198. /***/ (function(module, exports, __webpack_require__) {
  23199. "use strict";
  23200. Object.defineProperty(exports, "__esModule", {
  23201. value: true
  23202. });
  23203. exports.Chrome = undefined;
  23204. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23205. var _react2 = _interopRequireDefault(_react);
  23206. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  23207. var _propTypes2 = _interopRequireDefault(_propTypes);
  23208. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  23209. var _reactcss2 = _interopRequireDefault(_reactcss);
  23210. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  23211. var _merge2 = _interopRequireDefault(_merge);
  23212. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  23213. var _ChromeFields = __webpack_require__(/*! ./ChromeFields */ "../../node_modules/react-color/lib/components/chrome/ChromeFields.js");
  23214. var _ChromeFields2 = _interopRequireDefault(_ChromeFields);
  23215. var _ChromePointer = __webpack_require__(/*! ./ChromePointer */ "../../node_modules/react-color/lib/components/chrome/ChromePointer.js");
  23216. var _ChromePointer2 = _interopRequireDefault(_ChromePointer);
  23217. var _ChromePointerCircle = __webpack_require__(/*! ./ChromePointerCircle */ "../../node_modules/react-color/lib/components/chrome/ChromePointerCircle.js");
  23218. var _ChromePointerCircle2 = _interopRequireDefault(_ChromePointerCircle);
  23219. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23220. var Chrome = exports.Chrome = function Chrome(_ref) {
  23221. var width = _ref.width,
  23222. onChange = _ref.onChange,
  23223. disableAlpha = _ref.disableAlpha,
  23224. rgb = _ref.rgb,
  23225. hsl = _ref.hsl,
  23226. hsv = _ref.hsv,
  23227. hex = _ref.hex,
  23228. renderers = _ref.renderers,
  23229. _ref$styles = _ref.styles,
  23230. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  23231. _ref$className = _ref.className,
  23232. className = _ref$className === undefined ? '' : _ref$className,
  23233. defaultView = _ref.defaultView;
  23234. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  23235. 'default': {
  23236. picker: {
  23237. width: width,
  23238. background: '#fff',
  23239. borderRadius: '2px',
  23240. boxShadow: '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)',
  23241. boxSizing: 'initial',
  23242. fontFamily: 'Menlo'
  23243. },
  23244. saturation: {
  23245. width: '100%',
  23246. paddingBottom: '55%',
  23247. position: 'relative',
  23248. borderRadius: '2px 2px 0 0',
  23249. overflow: 'hidden'
  23250. },
  23251. Saturation: {
  23252. radius: '2px 2px 0 0'
  23253. },
  23254. body: {
  23255. padding: '16px 16px 12px'
  23256. },
  23257. controls: {
  23258. display: 'flex'
  23259. },
  23260. color: {
  23261. width: '32px'
  23262. },
  23263. swatch: {
  23264. marginTop: '6px',
  23265. width: '16px',
  23266. height: '16px',
  23267. borderRadius: '8px',
  23268. position: 'relative',
  23269. overflow: 'hidden'
  23270. },
  23271. active: {
  23272. absolute: '0px 0px 0px 0px',
  23273. borderRadius: '8px',
  23274. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)',
  23275. background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + rgb.a + ')',
  23276. zIndex: '2'
  23277. },
  23278. toggles: {
  23279. flex: '1'
  23280. },
  23281. hue: {
  23282. height: '10px',
  23283. position: 'relative',
  23284. marginBottom: '8px'
  23285. },
  23286. Hue: {
  23287. radius: '2px'
  23288. },
  23289. alpha: {
  23290. height: '10px',
  23291. position: 'relative'
  23292. },
  23293. Alpha: {
  23294. radius: '2px'
  23295. }
  23296. },
  23297. 'disableAlpha': {
  23298. color: {
  23299. width: '22px'
  23300. },
  23301. alpha: {
  23302. display: 'none'
  23303. },
  23304. hue: {
  23305. marginBottom: '0px'
  23306. },
  23307. swatch: {
  23308. width: '10px',
  23309. height: '10px',
  23310. marginTop: '0px'
  23311. }
  23312. }
  23313. }, passedStyles), { disableAlpha: disableAlpha });
  23314. return _react2.default.createElement(
  23315. 'div',
  23316. { style: styles.picker, className: 'chrome-picker ' + className },
  23317. _react2.default.createElement(
  23318. 'div',
  23319. { style: styles.saturation },
  23320. _react2.default.createElement(_common.Saturation, {
  23321. style: styles.Saturation,
  23322. hsl: hsl,
  23323. hsv: hsv,
  23324. pointer: _ChromePointerCircle2.default,
  23325. onChange: onChange
  23326. })
  23327. ),
  23328. _react2.default.createElement(
  23329. 'div',
  23330. { style: styles.body },
  23331. _react2.default.createElement(
  23332. 'div',
  23333. { style: styles.controls, className: 'flexbox-fix' },
  23334. _react2.default.createElement(
  23335. 'div',
  23336. { style: styles.color },
  23337. _react2.default.createElement(
  23338. 'div',
  23339. { style: styles.swatch },
  23340. _react2.default.createElement('div', { style: styles.active }),
  23341. _react2.default.createElement(_common.Checkboard, { renderers: renderers })
  23342. )
  23343. ),
  23344. _react2.default.createElement(
  23345. 'div',
  23346. { style: styles.toggles },
  23347. _react2.default.createElement(
  23348. 'div',
  23349. { style: styles.hue },
  23350. _react2.default.createElement(_common.Hue, {
  23351. style: styles.Hue,
  23352. hsl: hsl,
  23353. pointer: _ChromePointer2.default,
  23354. onChange: onChange
  23355. })
  23356. ),
  23357. _react2.default.createElement(
  23358. 'div',
  23359. { style: styles.alpha },
  23360. _react2.default.createElement(_common.Alpha, {
  23361. style: styles.Alpha,
  23362. rgb: rgb,
  23363. hsl: hsl,
  23364. pointer: _ChromePointer2.default,
  23365. renderers: renderers,
  23366. onChange: onChange
  23367. })
  23368. )
  23369. )
  23370. ),
  23371. _react2.default.createElement(_ChromeFields2.default, {
  23372. rgb: rgb,
  23373. hsl: hsl,
  23374. hex: hex,
  23375. view: defaultView,
  23376. onChange: onChange,
  23377. disableAlpha: disableAlpha
  23378. })
  23379. )
  23380. );
  23381. };
  23382. Chrome.propTypes = {
  23383. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  23384. disableAlpha: _propTypes2.default.bool,
  23385. styles: _propTypes2.default.object,
  23386. defaultView: _propTypes2.default.oneOf(["hex", "rgb", "hsl"])
  23387. };
  23388. Chrome.defaultProps = {
  23389. width: 225,
  23390. disableAlpha: false,
  23391. styles: {}
  23392. };
  23393. exports.default = (0, _common.ColorWrap)(Chrome);
  23394. /***/ }),
  23395. /***/ "../../node_modules/react-color/lib/components/chrome/ChromeFields.js":
  23396. /*!******************************************************************************************!*\
  23397. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/ChromeFields.js ***!
  23398. \******************************************************************************************/
  23399. /*! no static exports found */
  23400. /***/ (function(module, exports, __webpack_require__) {
  23401. "use strict";
  23402. Object.defineProperty(exports, "__esModule", {
  23403. value: true
  23404. });
  23405. exports.ChromeFields = undefined;
  23406. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  23407. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23408. var _react2 = _interopRequireDefault(_react);
  23409. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  23410. var _reactcss2 = _interopRequireDefault(_reactcss);
  23411. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  23412. var _color2 = _interopRequireDefault(_color);
  23413. var _isUndefined = __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js");
  23414. var _isUndefined2 = _interopRequireDefault(_isUndefined);
  23415. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  23416. var _UnfoldMoreHorizontalIcon = __webpack_require__(/*! @icons/material/UnfoldMoreHorizontalIcon */ "../../node_modules/@icons/material/UnfoldMoreHorizontalIcon.js");
  23417. var _UnfoldMoreHorizontalIcon2 = _interopRequireDefault(_UnfoldMoreHorizontalIcon);
  23418. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23419. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  23420. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  23421. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint-disable react/no-did-mount-set-state, no-param-reassign */
  23422. var ChromeFields = exports.ChromeFields = function (_React$Component) {
  23423. _inherits(ChromeFields, _React$Component);
  23424. function ChromeFields(props) {
  23425. _classCallCheck(this, ChromeFields);
  23426. var _this = _possibleConstructorReturn(this, (ChromeFields.__proto__ || Object.getPrototypeOf(ChromeFields)).call(this));
  23427. _this.toggleViews = function () {
  23428. if (_this.state.view === 'hex') {
  23429. _this.setState({ view: 'rgb' });
  23430. } else if (_this.state.view === 'rgb') {
  23431. _this.setState({ view: 'hsl' });
  23432. } else if (_this.state.view === 'hsl') {
  23433. if (_this.props.hsl.a === 1) {
  23434. _this.setState({ view: 'hex' });
  23435. } else {
  23436. _this.setState({ view: 'rgb' });
  23437. }
  23438. }
  23439. };
  23440. _this.handleChange = function (data, e) {
  23441. if (data.hex) {
  23442. _color2.default.isValidHex(data.hex) && _this.props.onChange({
  23443. hex: data.hex,
  23444. source: 'hex'
  23445. }, e);
  23446. } else if (data.r || data.g || data.b) {
  23447. _this.props.onChange({
  23448. r: data.r || _this.props.rgb.r,
  23449. g: data.g || _this.props.rgb.g,
  23450. b: data.b || _this.props.rgb.b,
  23451. source: 'rgb'
  23452. }, e);
  23453. } else if (data.a) {
  23454. if (data.a < 0) {
  23455. data.a = 0;
  23456. } else if (data.a > 1) {
  23457. data.a = 1;
  23458. }
  23459. _this.props.onChange({
  23460. h: _this.props.hsl.h,
  23461. s: _this.props.hsl.s,
  23462. l: _this.props.hsl.l,
  23463. a: Math.round(data.a * 100) / 100,
  23464. source: 'rgb'
  23465. }, e);
  23466. } else if (data.h || data.s || data.l) {
  23467. // Remove any occurances of '%'.
  23468. if (typeof data.s === 'string' && data.s.includes('%')) {
  23469. data.s = data.s.replace('%', '');
  23470. }
  23471. if (typeof data.l === 'string' && data.l.includes('%')) {
  23472. data.l = data.l.replace('%', '');
  23473. }
  23474. // We store HSL as a unit interval so we need to override the 1 input to 0.01
  23475. if (data.s == 1) {
  23476. data.s = 0.01;
  23477. } else if (data.l == 1) {
  23478. data.l = 0.01;
  23479. }
  23480. _this.props.onChange({
  23481. h: data.h || _this.props.hsl.h,
  23482. s: Number(!(0, _isUndefined2.default)(data.s) ? data.s : _this.props.hsl.s),
  23483. l: Number(!(0, _isUndefined2.default)(data.l) ? data.l : _this.props.hsl.l),
  23484. source: 'hsl'
  23485. }, e);
  23486. }
  23487. };
  23488. _this.showHighlight = function (e) {
  23489. e.currentTarget.style.background = '#eee';
  23490. };
  23491. _this.hideHighlight = function (e) {
  23492. e.currentTarget.style.background = 'transparent';
  23493. };
  23494. if (props.hsl.a !== 1 && props.view === "hex") {
  23495. _this.state = {
  23496. view: "rgb"
  23497. };
  23498. } else {
  23499. _this.state = {
  23500. view: props.view
  23501. };
  23502. }
  23503. return _this;
  23504. }
  23505. _createClass(ChromeFields, [{
  23506. key: 'render',
  23507. value: function render() {
  23508. var _this2 = this;
  23509. var styles = (0, _reactcss2.default)({
  23510. 'default': {
  23511. wrap: {
  23512. paddingTop: '16px',
  23513. display: 'flex'
  23514. },
  23515. fields: {
  23516. flex: '1',
  23517. display: 'flex',
  23518. marginLeft: '-6px'
  23519. },
  23520. field: {
  23521. paddingLeft: '6px',
  23522. width: '100%'
  23523. },
  23524. alpha: {
  23525. paddingLeft: '6px',
  23526. width: '100%'
  23527. },
  23528. toggle: {
  23529. width: '32px',
  23530. textAlign: 'right',
  23531. position: 'relative'
  23532. },
  23533. icon: {
  23534. marginRight: '-4px',
  23535. marginTop: '12px',
  23536. cursor: 'pointer',
  23537. position: 'relative'
  23538. },
  23539. iconHighlight: {
  23540. position: 'absolute',
  23541. width: '24px',
  23542. height: '28px',
  23543. background: '#eee',
  23544. borderRadius: '4px',
  23545. top: '10px',
  23546. left: '12px',
  23547. display: 'none'
  23548. },
  23549. input: {
  23550. fontSize: '11px',
  23551. color: '#333',
  23552. width: '100%',
  23553. borderRadius: '2px',
  23554. border: 'none',
  23555. boxShadow: 'inset 0 0 0 1px #dadada',
  23556. height: '21px',
  23557. textAlign: 'center'
  23558. },
  23559. label: {
  23560. textTransform: 'uppercase',
  23561. fontSize: '11px',
  23562. lineHeight: '11px',
  23563. color: '#969696',
  23564. textAlign: 'center',
  23565. display: 'block',
  23566. marginTop: '12px'
  23567. },
  23568. svg: {
  23569. fill: '#333',
  23570. width: '24px',
  23571. height: '24px',
  23572. border: '1px transparent solid',
  23573. borderRadius: '5px'
  23574. }
  23575. },
  23576. 'disableAlpha': {
  23577. alpha: {
  23578. display: 'none'
  23579. }
  23580. }
  23581. }, this.props, this.state);
  23582. var fields = void 0;
  23583. if (this.state.view === 'hex') {
  23584. fields = _react2.default.createElement(
  23585. 'div',
  23586. { style: styles.fields, className: 'flexbox-fix' },
  23587. _react2.default.createElement(
  23588. 'div',
  23589. { style: styles.field },
  23590. _react2.default.createElement(_common.EditableInput, {
  23591. style: { input: styles.input, label: styles.label },
  23592. label: 'hex', value: this.props.hex,
  23593. onChange: this.handleChange
  23594. })
  23595. )
  23596. );
  23597. } else if (this.state.view === 'rgb') {
  23598. fields = _react2.default.createElement(
  23599. 'div',
  23600. { style: styles.fields, className: 'flexbox-fix' },
  23601. _react2.default.createElement(
  23602. 'div',
  23603. { style: styles.field },
  23604. _react2.default.createElement(_common.EditableInput, {
  23605. style: { input: styles.input, label: styles.label },
  23606. label: 'r',
  23607. value: this.props.rgb.r,
  23608. onChange: this.handleChange
  23609. })
  23610. ),
  23611. _react2.default.createElement(
  23612. 'div',
  23613. { style: styles.field },
  23614. _react2.default.createElement(_common.EditableInput, {
  23615. style: { input: styles.input, label: styles.label },
  23616. label: 'g',
  23617. value: this.props.rgb.g,
  23618. onChange: this.handleChange
  23619. })
  23620. ),
  23621. _react2.default.createElement(
  23622. 'div',
  23623. { style: styles.field },
  23624. _react2.default.createElement(_common.EditableInput, {
  23625. style: { input: styles.input, label: styles.label },
  23626. label: 'b',
  23627. value: this.props.rgb.b,
  23628. onChange: this.handleChange
  23629. })
  23630. ),
  23631. _react2.default.createElement(
  23632. 'div',
  23633. { style: styles.alpha },
  23634. _react2.default.createElement(_common.EditableInput, {
  23635. style: { input: styles.input, label: styles.label },
  23636. label: 'a',
  23637. value: this.props.rgb.a,
  23638. arrowOffset: 0.01,
  23639. onChange: this.handleChange
  23640. })
  23641. )
  23642. );
  23643. } else if (this.state.view === 'hsl') {
  23644. fields = _react2.default.createElement(
  23645. 'div',
  23646. { style: styles.fields, className: 'flexbox-fix' },
  23647. _react2.default.createElement(
  23648. 'div',
  23649. { style: styles.field },
  23650. _react2.default.createElement(_common.EditableInput, {
  23651. style: { input: styles.input, label: styles.label },
  23652. label: 'h',
  23653. value: Math.round(this.props.hsl.h),
  23654. onChange: this.handleChange
  23655. })
  23656. ),
  23657. _react2.default.createElement(
  23658. 'div',
  23659. { style: styles.field },
  23660. _react2.default.createElement(_common.EditableInput, {
  23661. style: { input: styles.input, label: styles.label },
  23662. label: 's',
  23663. value: Math.round(this.props.hsl.s * 100) + '%',
  23664. onChange: this.handleChange
  23665. })
  23666. ),
  23667. _react2.default.createElement(
  23668. 'div',
  23669. { style: styles.field },
  23670. _react2.default.createElement(_common.EditableInput, {
  23671. style: { input: styles.input, label: styles.label },
  23672. label: 'l',
  23673. value: Math.round(this.props.hsl.l * 100) + '%',
  23674. onChange: this.handleChange
  23675. })
  23676. ),
  23677. _react2.default.createElement(
  23678. 'div',
  23679. { style: styles.alpha },
  23680. _react2.default.createElement(_common.EditableInput, {
  23681. style: { input: styles.input, label: styles.label },
  23682. label: 'a',
  23683. value: this.props.hsl.a,
  23684. arrowOffset: 0.01,
  23685. onChange: this.handleChange
  23686. })
  23687. )
  23688. );
  23689. }
  23690. return _react2.default.createElement(
  23691. 'div',
  23692. { style: styles.wrap, className: 'flexbox-fix' },
  23693. fields,
  23694. _react2.default.createElement(
  23695. 'div',
  23696. { style: styles.toggle },
  23697. _react2.default.createElement(
  23698. 'div',
  23699. { style: styles.icon, onClick: this.toggleViews, ref: function ref(icon) {
  23700. return _this2.icon = icon;
  23701. } },
  23702. _react2.default.createElement(_UnfoldMoreHorizontalIcon2.default, {
  23703. style: styles.svg,
  23704. onMouseOver: this.showHighlight,
  23705. onMouseEnter: this.showHighlight,
  23706. onMouseOut: this.hideHighlight
  23707. })
  23708. )
  23709. )
  23710. );
  23711. }
  23712. }], [{
  23713. key: 'getDerivedStateFromProps',
  23714. value: function getDerivedStateFromProps(nextProps, state) {
  23715. if (nextProps.hsl.a !== 1 && state.view === 'hex') {
  23716. return { view: 'rgb' };
  23717. }
  23718. return null;
  23719. }
  23720. }]);
  23721. return ChromeFields;
  23722. }(_react2.default.Component);
  23723. ChromeFields.defaultProps = {
  23724. view: "hex"
  23725. };
  23726. exports.default = ChromeFields;
  23727. /***/ }),
  23728. /***/ "../../node_modules/react-color/lib/components/chrome/ChromePointer.js":
  23729. /*!*******************************************************************************************!*\
  23730. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/ChromePointer.js ***!
  23731. \*******************************************************************************************/
  23732. /*! no static exports found */
  23733. /***/ (function(module, exports, __webpack_require__) {
  23734. "use strict";
  23735. Object.defineProperty(exports, "__esModule", {
  23736. value: true
  23737. });
  23738. exports.ChromePointer = undefined;
  23739. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23740. var _react2 = _interopRequireDefault(_react);
  23741. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  23742. var _reactcss2 = _interopRequireDefault(_reactcss);
  23743. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23744. var ChromePointer = exports.ChromePointer = function ChromePointer() {
  23745. var styles = (0, _reactcss2.default)({
  23746. 'default': {
  23747. picker: {
  23748. width: '12px',
  23749. height: '12px',
  23750. borderRadius: '6px',
  23751. transform: 'translate(-6px, -1px)',
  23752. backgroundColor: 'rgb(248, 248, 248)',
  23753. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  23754. }
  23755. }
  23756. });
  23757. return _react2.default.createElement('div', { style: styles.picker });
  23758. };
  23759. exports.default = ChromePointer;
  23760. /***/ }),
  23761. /***/ "../../node_modules/react-color/lib/components/chrome/ChromePointerCircle.js":
  23762. /*!*************************************************************************************************!*\
  23763. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/chrome/ChromePointerCircle.js ***!
  23764. \*************************************************************************************************/
  23765. /*! no static exports found */
  23766. /***/ (function(module, exports, __webpack_require__) {
  23767. "use strict";
  23768. Object.defineProperty(exports, "__esModule", {
  23769. value: true
  23770. });
  23771. exports.ChromePointerCircle = undefined;
  23772. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23773. var _react2 = _interopRequireDefault(_react);
  23774. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  23775. var _reactcss2 = _interopRequireDefault(_reactcss);
  23776. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23777. var ChromePointerCircle = exports.ChromePointerCircle = function ChromePointerCircle() {
  23778. var styles = (0, _reactcss2.default)({
  23779. 'default': {
  23780. picker: {
  23781. width: '12px',
  23782. height: '12px',
  23783. borderRadius: '6px',
  23784. boxShadow: 'inset 0 0 0 1px #fff',
  23785. transform: 'translate(-6px, -6px)'
  23786. }
  23787. }
  23788. });
  23789. return _react2.default.createElement('div', { style: styles.picker });
  23790. };
  23791. exports.default = ChromePointerCircle;
  23792. /***/ }),
  23793. /***/ "../../node_modules/react-color/lib/components/circle/Circle.js":
  23794. /*!************************************************************************************!*\
  23795. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/circle/Circle.js ***!
  23796. \************************************************************************************/
  23797. /*! no static exports found */
  23798. /***/ (function(module, exports, __webpack_require__) {
  23799. "use strict";
  23800. Object.defineProperty(exports, "__esModule", {
  23801. value: true
  23802. });
  23803. exports.Circle = undefined;
  23804. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23805. var _react2 = _interopRequireDefault(_react);
  23806. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  23807. var _propTypes2 = _interopRequireDefault(_propTypes);
  23808. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  23809. var _reactcss2 = _interopRequireDefault(_reactcss);
  23810. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  23811. var _map2 = _interopRequireDefault(_map);
  23812. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  23813. var _merge2 = _interopRequireDefault(_merge);
  23814. var _materialColors = __webpack_require__(/*! material-colors */ "../../node_modules/material-colors/dist/colors.es2015.js");
  23815. var material = _interopRequireWildcard(_materialColors);
  23816. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  23817. var _CircleSwatch = __webpack_require__(/*! ./CircleSwatch */ "../../node_modules/react-color/lib/components/circle/CircleSwatch.js");
  23818. var _CircleSwatch2 = _interopRequireDefault(_CircleSwatch);
  23819. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  23820. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23821. var Circle = exports.Circle = function Circle(_ref) {
  23822. var width = _ref.width,
  23823. onChange = _ref.onChange,
  23824. onSwatchHover = _ref.onSwatchHover,
  23825. colors = _ref.colors,
  23826. hex = _ref.hex,
  23827. circleSize = _ref.circleSize,
  23828. _ref$styles = _ref.styles,
  23829. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  23830. circleSpacing = _ref.circleSpacing,
  23831. _ref$className = _ref.className,
  23832. className = _ref$className === undefined ? '' : _ref$className;
  23833. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  23834. 'default': {
  23835. card: {
  23836. width: width,
  23837. display: 'flex',
  23838. flexWrap: 'wrap',
  23839. marginRight: -circleSpacing,
  23840. marginBottom: -circleSpacing
  23841. }
  23842. }
  23843. }, passedStyles));
  23844. var handleChange = function handleChange(hexCode, e) {
  23845. return onChange({ hex: hexCode, source: 'hex' }, e);
  23846. };
  23847. return _react2.default.createElement(
  23848. 'div',
  23849. { style: styles.card, className: 'circle-picker ' + className },
  23850. (0, _map2.default)(colors, function (c) {
  23851. return _react2.default.createElement(_CircleSwatch2.default, {
  23852. key: c,
  23853. color: c,
  23854. onClick: handleChange,
  23855. onSwatchHover: onSwatchHover,
  23856. active: hex === c.toLowerCase(),
  23857. circleSize: circleSize,
  23858. circleSpacing: circleSpacing
  23859. });
  23860. })
  23861. );
  23862. };
  23863. Circle.propTypes = {
  23864. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  23865. circleSize: _propTypes2.default.number,
  23866. circleSpacing: _propTypes2.default.number,
  23867. styles: _propTypes2.default.object
  23868. };
  23869. Circle.defaultProps = {
  23870. width: 252,
  23871. circleSize: 28,
  23872. circleSpacing: 14,
  23873. colors: [material.red['500'], material.pink['500'], material.purple['500'], material.deepPurple['500'], material.indigo['500'], material.blue['500'], material.lightBlue['500'], material.cyan['500'], material.teal['500'], material.green['500'], material.lightGreen['500'], material.lime['500'], material.yellow['500'], material.amber['500'], material.orange['500'], material.deepOrange['500'], material.brown['500'], material.blueGrey['500']],
  23874. styles: {}
  23875. };
  23876. exports.default = (0, _common.ColorWrap)(Circle);
  23877. /***/ }),
  23878. /***/ "../../node_modules/react-color/lib/components/circle/CircleSwatch.js":
  23879. /*!******************************************************************************************!*\
  23880. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/circle/CircleSwatch.js ***!
  23881. \******************************************************************************************/
  23882. /*! no static exports found */
  23883. /***/ (function(module, exports, __webpack_require__) {
  23884. "use strict";
  23885. Object.defineProperty(exports, "__esModule", {
  23886. value: true
  23887. });
  23888. exports.CircleSwatch = undefined;
  23889. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23890. var _react2 = _interopRequireDefault(_react);
  23891. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  23892. var _reactcss2 = _interopRequireDefault(_reactcss);
  23893. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  23894. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23895. var CircleSwatch = exports.CircleSwatch = function CircleSwatch(_ref) {
  23896. var color = _ref.color,
  23897. onClick = _ref.onClick,
  23898. onSwatchHover = _ref.onSwatchHover,
  23899. hover = _ref.hover,
  23900. active = _ref.active,
  23901. circleSize = _ref.circleSize,
  23902. circleSpacing = _ref.circleSpacing;
  23903. var styles = (0, _reactcss2.default)({
  23904. 'default': {
  23905. swatch: {
  23906. width: circleSize,
  23907. height: circleSize,
  23908. marginRight: circleSpacing,
  23909. marginBottom: circleSpacing,
  23910. transform: 'scale(1)',
  23911. transition: '100ms transform ease'
  23912. },
  23913. Swatch: {
  23914. borderRadius: '50%',
  23915. background: 'transparent',
  23916. boxShadow: 'inset 0 0 0 ' + (circleSize / 2 + 1) + 'px ' + color,
  23917. transition: '100ms box-shadow ease'
  23918. }
  23919. },
  23920. 'hover': {
  23921. swatch: {
  23922. transform: 'scale(1.2)'
  23923. }
  23924. },
  23925. 'active': {
  23926. Swatch: {
  23927. boxShadow: 'inset 0 0 0 3px ' + color
  23928. }
  23929. }
  23930. }, { hover: hover, active: active });
  23931. return _react2.default.createElement(
  23932. 'div',
  23933. { style: styles.swatch },
  23934. _react2.default.createElement(_common.Swatch, {
  23935. style: styles.Swatch,
  23936. color: color,
  23937. onClick: onClick,
  23938. onHover: onSwatchHover,
  23939. focusStyle: { boxShadow: styles.Swatch.boxShadow + ', 0 0 5px ' + color }
  23940. })
  23941. );
  23942. };
  23943. CircleSwatch.defaultProps = {
  23944. circleSize: 28,
  23945. circleSpacing: 14
  23946. };
  23947. exports.default = (0, _reactcss.handleHover)(CircleSwatch);
  23948. /***/ }),
  23949. /***/ "../../node_modules/react-color/lib/components/common/Alpha.js":
  23950. /*!***********************************************************************************!*\
  23951. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Alpha.js ***!
  23952. \***********************************************************************************/
  23953. /*! no static exports found */
  23954. /***/ (function(module, exports, __webpack_require__) {
  23955. "use strict";
  23956. Object.defineProperty(exports, "__esModule", {
  23957. value: true
  23958. });
  23959. exports.Alpha = undefined;
  23960. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  23961. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  23962. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  23963. var _react2 = _interopRequireDefault(_react);
  23964. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  23965. var _reactcss2 = _interopRequireDefault(_reactcss);
  23966. var _alpha = __webpack_require__(/*! ../../helpers/alpha */ "../../node_modules/react-color/lib/helpers/alpha.js");
  23967. var alpha = _interopRequireWildcard(_alpha);
  23968. var _Checkboard = __webpack_require__(/*! ./Checkboard */ "../../node_modules/react-color/lib/components/common/Checkboard.js");
  23969. var _Checkboard2 = _interopRequireDefault(_Checkboard);
  23970. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  23971. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23972. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  23973. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  23974. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  23975. var Alpha = exports.Alpha = function (_ref) {
  23976. _inherits(Alpha, _ref);
  23977. function Alpha() {
  23978. var _ref2;
  23979. var _temp, _this, _ret;
  23980. _classCallCheck(this, Alpha);
  23981. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  23982. args[_key] = arguments[_key];
  23983. }
  23984. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Alpha.__proto__ || Object.getPrototypeOf(Alpha)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) {
  23985. var change = alpha.calculateChange(e, _this.props.hsl, _this.props.direction, _this.props.a, _this.container);
  23986. change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e);
  23987. }, _this.handleMouseDown = function (e) {
  23988. _this.handleChange(e);
  23989. window.addEventListener('mousemove', _this.handleChange);
  23990. window.addEventListener('mouseup', _this.handleMouseUp);
  23991. }, _this.handleMouseUp = function () {
  23992. _this.unbindEventListeners();
  23993. }, _this.unbindEventListeners = function () {
  23994. window.removeEventListener('mousemove', _this.handleChange);
  23995. window.removeEventListener('mouseup', _this.handleMouseUp);
  23996. }, _temp), _possibleConstructorReturn(_this, _ret);
  23997. }
  23998. _createClass(Alpha, [{
  23999. key: 'componentWillUnmount',
  24000. value: function componentWillUnmount() {
  24001. this.unbindEventListeners();
  24002. }
  24003. }, {
  24004. key: 'render',
  24005. value: function render() {
  24006. var _this2 = this;
  24007. var rgb = this.props.rgb;
  24008. var styles = (0, _reactcss2.default)({
  24009. 'default': {
  24010. alpha: {
  24011. absolute: '0px 0px 0px 0px',
  24012. borderRadius: this.props.radius
  24013. },
  24014. checkboard: {
  24015. absolute: '0px 0px 0px 0px',
  24016. overflow: 'hidden',
  24017. borderRadius: this.props.radius
  24018. },
  24019. gradient: {
  24020. absolute: '0px 0px 0px 0px',
  24021. background: 'linear-gradient(to right, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)',
  24022. boxShadow: this.props.shadow,
  24023. borderRadius: this.props.radius
  24024. },
  24025. container: {
  24026. position: 'relative',
  24027. height: '100%',
  24028. margin: '0 3px'
  24029. },
  24030. pointer: {
  24031. position: 'absolute',
  24032. left: rgb.a * 100 + '%'
  24033. },
  24034. slider: {
  24035. width: '4px',
  24036. borderRadius: '1px',
  24037. height: '8px',
  24038. boxShadow: '0 0 2px rgba(0, 0, 0, .6)',
  24039. background: '#fff',
  24040. marginTop: '1px',
  24041. transform: 'translateX(-2px)'
  24042. }
  24043. },
  24044. 'vertical': {
  24045. gradient: {
  24046. background: 'linear-gradient(to bottom, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)'
  24047. },
  24048. pointer: {
  24049. left: 0,
  24050. top: rgb.a * 100 + '%'
  24051. }
  24052. },
  24053. 'overwrite': _extends({}, this.props.style)
  24054. }, {
  24055. vertical: this.props.direction === 'vertical',
  24056. overwrite: true
  24057. });
  24058. return _react2.default.createElement(
  24059. 'div',
  24060. { style: styles.alpha },
  24061. _react2.default.createElement(
  24062. 'div',
  24063. { style: styles.checkboard },
  24064. _react2.default.createElement(_Checkboard2.default, { renderers: this.props.renderers })
  24065. ),
  24066. _react2.default.createElement('div', { style: styles.gradient }),
  24067. _react2.default.createElement(
  24068. 'div',
  24069. {
  24070. style: styles.container,
  24071. ref: function ref(container) {
  24072. return _this2.container = container;
  24073. },
  24074. onMouseDown: this.handleMouseDown,
  24075. onTouchMove: this.handleChange,
  24076. onTouchStart: this.handleChange
  24077. },
  24078. _react2.default.createElement(
  24079. 'div',
  24080. { style: styles.pointer },
  24081. this.props.pointer ? _react2.default.createElement(this.props.pointer, this.props) : _react2.default.createElement('div', { style: styles.slider })
  24082. )
  24083. )
  24084. );
  24085. }
  24086. }]);
  24087. return Alpha;
  24088. }(_react.PureComponent || _react.Component);
  24089. exports.default = Alpha;
  24090. /***/ }),
  24091. /***/ "../../node_modules/react-color/lib/components/common/Checkboard.js":
  24092. /*!****************************************************************************************!*\
  24093. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Checkboard.js ***!
  24094. \****************************************************************************************/
  24095. /*! no static exports found */
  24096. /***/ (function(module, exports, __webpack_require__) {
  24097. "use strict";
  24098. Object.defineProperty(exports, "__esModule", {
  24099. value: true
  24100. });
  24101. exports.Checkboard = undefined;
  24102. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  24103. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24104. var _react2 = _interopRequireDefault(_react);
  24105. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  24106. var _reactcss2 = _interopRequireDefault(_reactcss);
  24107. var _checkboard = __webpack_require__(/*! ../../helpers/checkboard */ "../../node_modules/react-color/lib/helpers/checkboard.js");
  24108. var checkboard = _interopRequireWildcard(_checkboard);
  24109. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  24110. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24111. var Checkboard = exports.Checkboard = function Checkboard(_ref) {
  24112. var white = _ref.white,
  24113. grey = _ref.grey,
  24114. size = _ref.size,
  24115. renderers = _ref.renderers,
  24116. borderRadius = _ref.borderRadius,
  24117. boxShadow = _ref.boxShadow,
  24118. children = _ref.children;
  24119. var styles = (0, _reactcss2.default)({
  24120. 'default': {
  24121. grid: {
  24122. borderRadius: borderRadius,
  24123. boxShadow: boxShadow,
  24124. absolute: '0px 0px 0px 0px',
  24125. background: 'url(' + checkboard.get(white, grey, size, renderers.canvas) + ') center left'
  24126. }
  24127. }
  24128. });
  24129. return (0, _react.isValidElement)(children) ? _react2.default.cloneElement(children, _extends({}, children.props, { style: _extends({}, children.props.style, styles.grid) })) : _react2.default.createElement('div', { style: styles.grid });
  24130. };
  24131. Checkboard.defaultProps = {
  24132. size: 8,
  24133. white: 'transparent',
  24134. grey: 'rgba(0,0,0,.08)',
  24135. renderers: {}
  24136. };
  24137. exports.default = Checkboard;
  24138. /***/ }),
  24139. /***/ "../../node_modules/react-color/lib/components/common/ColorWrap.js":
  24140. /*!***************************************************************************************!*\
  24141. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/common/ColorWrap.js ***!
  24142. \***************************************************************************************/
  24143. /*! no static exports found */
  24144. /***/ (function(module, exports, __webpack_require__) {
  24145. "use strict";
  24146. Object.defineProperty(exports, "__esModule", {
  24147. value: true
  24148. });
  24149. exports.ColorWrap = undefined;
  24150. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  24151. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  24152. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24153. var _react2 = _interopRequireDefault(_react);
  24154. var _debounce = __webpack_require__(/*! lodash/debounce */ "../../node_modules/lodash/debounce.js");
  24155. var _debounce2 = _interopRequireDefault(_debounce);
  24156. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  24157. var _color2 = _interopRequireDefault(_color);
  24158. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24159. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24160. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  24161. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  24162. var ColorWrap = exports.ColorWrap = function ColorWrap(Picker) {
  24163. var ColorPicker = function (_ref) {
  24164. _inherits(ColorPicker, _ref);
  24165. function ColorPicker(props) {
  24166. _classCallCheck(this, ColorPicker);
  24167. var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this));
  24168. _this.handleChange = function (data, event) {
  24169. var isValidColor = _color2.default.simpleCheckForValidColor(data);
  24170. if (isValidColor) {
  24171. var colors = _color2.default.toState(data, data.h || _this.state.oldHue);
  24172. _this.setState(colors);
  24173. _this.props.onChangeComplete && _this.debounce(_this.props.onChangeComplete, colors, event);
  24174. _this.props.onChange && _this.props.onChange(colors, event);
  24175. }
  24176. };
  24177. _this.handleSwatchHover = function (data, event) {
  24178. var isValidColor = _color2.default.simpleCheckForValidColor(data);
  24179. if (isValidColor) {
  24180. var colors = _color2.default.toState(data, data.h || _this.state.oldHue);
  24181. _this.props.onSwatchHover && _this.props.onSwatchHover(colors, event);
  24182. }
  24183. };
  24184. _this.state = _extends({}, _color2.default.toState(props.color, 0));
  24185. _this.debounce = (0, _debounce2.default)(function (fn, data, event) {
  24186. fn(data, event);
  24187. }, 100);
  24188. return _this;
  24189. }
  24190. _createClass(ColorPicker, [{
  24191. key: 'render',
  24192. value: function render() {
  24193. var optionalEvents = {};
  24194. if (this.props.onSwatchHover) {
  24195. optionalEvents.onSwatchHover = this.handleSwatchHover;
  24196. }
  24197. return _react2.default.createElement(Picker, _extends({}, this.props, this.state, {
  24198. onChange: this.handleChange
  24199. }, optionalEvents));
  24200. }
  24201. }], [{
  24202. key: 'getDerivedStateFromProps',
  24203. value: function getDerivedStateFromProps(nextProps, state) {
  24204. return _extends({}, _color2.default.toState(nextProps.color, state.oldHue));
  24205. }
  24206. }]);
  24207. return ColorPicker;
  24208. }(_react.PureComponent || _react.Component);
  24209. ColorPicker.propTypes = _extends({}, Picker.propTypes);
  24210. ColorPicker.defaultProps = _extends({}, Picker.defaultProps, {
  24211. color: {
  24212. h: 250,
  24213. s: 0.50,
  24214. l: 0.20,
  24215. a: 1
  24216. }
  24217. });
  24218. return ColorPicker;
  24219. };
  24220. exports.default = ColorWrap;
  24221. /***/ }),
  24222. /***/ "../../node_modules/react-color/lib/components/common/EditableInput.js":
  24223. /*!*******************************************************************************************!*\
  24224. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/common/EditableInput.js ***!
  24225. \*******************************************************************************************/
  24226. /*! no static exports found */
  24227. /***/ (function(module, exports, __webpack_require__) {
  24228. "use strict";
  24229. Object.defineProperty(exports, "__esModule", {
  24230. value: true
  24231. });
  24232. exports.EditableInput = undefined;
  24233. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  24234. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24235. var _react2 = _interopRequireDefault(_react);
  24236. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  24237. var _reactcss2 = _interopRequireDefault(_reactcss);
  24238. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24239. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  24240. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24241. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  24242. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  24243. var DEFAULT_ARROW_OFFSET = 1;
  24244. var UP_KEY_CODE = 38;
  24245. var DOWN_KEY_CODE = 40;
  24246. var VALID_KEY_CODES = [UP_KEY_CODE, DOWN_KEY_CODE];
  24247. var isValidKeyCode = function isValidKeyCode(keyCode) {
  24248. return VALID_KEY_CODES.indexOf(keyCode) > -1;
  24249. };
  24250. var getNumberValue = function getNumberValue(value) {
  24251. return Number(String(value).replace(/%/g, ''));
  24252. };
  24253. var EditableInput = exports.EditableInput = function (_ref) {
  24254. _inherits(EditableInput, _ref);
  24255. function EditableInput(props) {
  24256. _classCallCheck(this, EditableInput);
  24257. var _this = _possibleConstructorReturn(this, (EditableInput.__proto__ || Object.getPrototypeOf(EditableInput)).call(this));
  24258. _this.handleBlur = function () {
  24259. if (_this.state.blurValue) {
  24260. _this.setState({ value: _this.state.blurValue, blurValue: null });
  24261. }
  24262. };
  24263. _this.handleChange = function (e) {
  24264. _this.setUpdatedValue(e.target.value, e);
  24265. };
  24266. _this.handleKeyDown = function (e) {
  24267. // In case `e.target.value` is a percentage remove the `%` character
  24268. // and update accordingly with a percentage
  24269. // https://github.com/casesandberg/react-color/issues/383
  24270. var value = getNumberValue(e.target.value);
  24271. if (!isNaN(value) && isValidKeyCode(e.keyCode)) {
  24272. var offset = _this.getArrowOffset();
  24273. var updatedValue = e.keyCode === UP_KEY_CODE ? value + offset : value - offset;
  24274. _this.setUpdatedValue(updatedValue, e);
  24275. }
  24276. };
  24277. _this.handleDrag = function (e) {
  24278. if (_this.props.dragLabel) {
  24279. var newValue = Math.round(_this.props.value + e.movementX);
  24280. if (newValue >= 0 && newValue <= _this.props.dragMax) {
  24281. _this.props.onChange && _this.props.onChange(_this.getValueObjectWithLabel(newValue), e);
  24282. }
  24283. }
  24284. };
  24285. _this.handleMouseDown = function (e) {
  24286. if (_this.props.dragLabel) {
  24287. e.preventDefault();
  24288. _this.handleDrag(e);
  24289. window.addEventListener('mousemove', _this.handleDrag);
  24290. window.addEventListener('mouseup', _this.handleMouseUp);
  24291. }
  24292. };
  24293. _this.handleMouseUp = function () {
  24294. _this.unbindEventListeners();
  24295. };
  24296. _this.unbindEventListeners = function () {
  24297. window.removeEventListener('mousemove', _this.handleDrag);
  24298. window.removeEventListener('mouseup', _this.handleMouseUp);
  24299. };
  24300. _this.state = {
  24301. value: String(props.value).toUpperCase(),
  24302. blurValue: String(props.value).toUpperCase()
  24303. };
  24304. return _this;
  24305. }
  24306. _createClass(EditableInput, [{
  24307. key: 'componentDidUpdate',
  24308. value: function componentDidUpdate(prevProps, prevState) {
  24309. if (this.props.value !== this.state.value && (prevProps.value !== this.props.value || prevState.value !== this.state.value)) {
  24310. if (this.input === document.activeElement) {
  24311. this.setState({ blurValue: String(this.props.value).toUpperCase() });
  24312. } else {
  24313. this.setState({ value: String(this.props.value).toUpperCase(), blurValue: !this.state.blurValue && String(this.props.value).toUpperCase() });
  24314. }
  24315. }
  24316. }
  24317. }, {
  24318. key: 'componentWillUnmount',
  24319. value: function componentWillUnmount() {
  24320. this.unbindEventListeners();
  24321. }
  24322. }, {
  24323. key: 'getValueObjectWithLabel',
  24324. value: function getValueObjectWithLabel(value) {
  24325. return _defineProperty({}, this.props.label, value);
  24326. }
  24327. }, {
  24328. key: 'getArrowOffset',
  24329. value: function getArrowOffset() {
  24330. return this.props.arrowOffset || DEFAULT_ARROW_OFFSET;
  24331. }
  24332. }, {
  24333. key: 'setUpdatedValue',
  24334. value: function setUpdatedValue(value, e) {
  24335. var onChangeValue = this.props.label ? this.getValueObjectWithLabel(value) : value;
  24336. this.props.onChange && this.props.onChange(onChangeValue, e);
  24337. this.setState({ value: value });
  24338. }
  24339. }, {
  24340. key: 'render',
  24341. value: function render() {
  24342. var _this2 = this;
  24343. var styles = (0, _reactcss2.default)({
  24344. 'default': {
  24345. wrap: {
  24346. position: 'relative'
  24347. }
  24348. },
  24349. 'user-override': {
  24350. wrap: this.props.style && this.props.style.wrap ? this.props.style.wrap : {},
  24351. input: this.props.style && this.props.style.input ? this.props.style.input : {},
  24352. label: this.props.style && this.props.style.label ? this.props.style.label : {}
  24353. },
  24354. 'dragLabel-true': {
  24355. label: {
  24356. cursor: 'ew-resize'
  24357. }
  24358. }
  24359. }, {
  24360. 'user-override': true
  24361. }, this.props);
  24362. return _react2.default.createElement(
  24363. 'div',
  24364. { style: styles.wrap },
  24365. _react2.default.createElement('input', {
  24366. style: styles.input,
  24367. ref: function ref(input) {
  24368. return _this2.input = input;
  24369. },
  24370. value: this.state.value,
  24371. onKeyDown: this.handleKeyDown,
  24372. onChange: this.handleChange,
  24373. onBlur: this.handleBlur,
  24374. placeholder: this.props.placeholder,
  24375. spellCheck: 'false'
  24376. }),
  24377. this.props.label && !this.props.hideLabel ? _react2.default.createElement(
  24378. 'span',
  24379. { style: styles.label, onMouseDown: this.handleMouseDown },
  24380. this.props.label
  24381. ) : null
  24382. );
  24383. }
  24384. }]);
  24385. return EditableInput;
  24386. }(_react.PureComponent || _react.Component);
  24387. exports.default = EditableInput;
  24388. /***/ }),
  24389. /***/ "../../node_modules/react-color/lib/components/common/Hue.js":
  24390. /*!*********************************************************************************!*\
  24391. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Hue.js ***!
  24392. \*********************************************************************************/
  24393. /*! no static exports found */
  24394. /***/ (function(module, exports, __webpack_require__) {
  24395. "use strict";
  24396. Object.defineProperty(exports, "__esModule", {
  24397. value: true
  24398. });
  24399. exports.Hue = undefined;
  24400. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  24401. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24402. var _react2 = _interopRequireDefault(_react);
  24403. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  24404. var _reactcss2 = _interopRequireDefault(_reactcss);
  24405. var _hue = __webpack_require__(/*! ../../helpers/hue */ "../../node_modules/react-color/lib/helpers/hue.js");
  24406. var hue = _interopRequireWildcard(_hue);
  24407. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  24408. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24409. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24410. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  24411. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  24412. var Hue = exports.Hue = function (_ref) {
  24413. _inherits(Hue, _ref);
  24414. function Hue() {
  24415. var _ref2;
  24416. var _temp, _this, _ret;
  24417. _classCallCheck(this, Hue);
  24418. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  24419. args[_key] = arguments[_key];
  24420. }
  24421. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Hue.__proto__ || Object.getPrototypeOf(Hue)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) {
  24422. var change = hue.calculateChange(e, _this.props.direction, _this.props.hsl, _this.container);
  24423. change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e);
  24424. }, _this.handleMouseDown = function (e) {
  24425. _this.handleChange(e);
  24426. window.addEventListener('mousemove', _this.handleChange);
  24427. window.addEventListener('mouseup', _this.handleMouseUp);
  24428. }, _this.handleMouseUp = function () {
  24429. _this.unbindEventListeners();
  24430. }, _temp), _possibleConstructorReturn(_this, _ret);
  24431. }
  24432. _createClass(Hue, [{
  24433. key: 'componentWillUnmount',
  24434. value: function componentWillUnmount() {
  24435. this.unbindEventListeners();
  24436. }
  24437. }, {
  24438. key: 'unbindEventListeners',
  24439. value: function unbindEventListeners() {
  24440. window.removeEventListener('mousemove', this.handleChange);
  24441. window.removeEventListener('mouseup', this.handleMouseUp);
  24442. }
  24443. }, {
  24444. key: 'render',
  24445. value: function render() {
  24446. var _this2 = this;
  24447. var _props$direction = this.props.direction,
  24448. direction = _props$direction === undefined ? 'horizontal' : _props$direction;
  24449. var styles = (0, _reactcss2.default)({
  24450. 'default': {
  24451. hue: {
  24452. absolute: '0px 0px 0px 0px',
  24453. borderRadius: this.props.radius,
  24454. boxShadow: this.props.shadow
  24455. },
  24456. container: {
  24457. padding: '0 2px',
  24458. position: 'relative',
  24459. height: '100%',
  24460. borderRadius: this.props.radius
  24461. },
  24462. pointer: {
  24463. position: 'absolute',
  24464. left: this.props.hsl.h * 100 / 360 + '%'
  24465. },
  24466. slider: {
  24467. marginTop: '1px',
  24468. width: '4px',
  24469. borderRadius: '1px',
  24470. height: '8px',
  24471. boxShadow: '0 0 2px rgba(0, 0, 0, .6)',
  24472. background: '#fff',
  24473. transform: 'translateX(-2px)'
  24474. }
  24475. },
  24476. 'vertical': {
  24477. pointer: {
  24478. left: '0px',
  24479. top: -(this.props.hsl.h * 100 / 360) + 100 + '%'
  24480. }
  24481. }
  24482. }, { vertical: direction === 'vertical' });
  24483. return _react2.default.createElement(
  24484. 'div',
  24485. { style: styles.hue },
  24486. _react2.default.createElement(
  24487. 'div',
  24488. {
  24489. className: 'hue-' + direction,
  24490. style: styles.container,
  24491. ref: function ref(container) {
  24492. return _this2.container = container;
  24493. },
  24494. onMouseDown: this.handleMouseDown,
  24495. onTouchMove: this.handleChange,
  24496. onTouchStart: this.handleChange
  24497. },
  24498. _react2.default.createElement(
  24499. 'style',
  24500. null,
  24501. '\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n '
  24502. ),
  24503. _react2.default.createElement(
  24504. 'div',
  24505. { style: styles.pointer },
  24506. this.props.pointer ? _react2.default.createElement(this.props.pointer, this.props) : _react2.default.createElement('div', { style: styles.slider })
  24507. )
  24508. )
  24509. );
  24510. }
  24511. }]);
  24512. return Hue;
  24513. }(_react.PureComponent || _react.Component);
  24514. exports.default = Hue;
  24515. /***/ }),
  24516. /***/ "../../node_modules/react-color/lib/components/common/Raised.js":
  24517. /*!************************************************************************************!*\
  24518. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Raised.js ***!
  24519. \************************************************************************************/
  24520. /*! no static exports found */
  24521. /***/ (function(module, exports, __webpack_require__) {
  24522. "use strict";
  24523. Object.defineProperty(exports, "__esModule", {
  24524. value: true
  24525. });
  24526. exports.Raised = undefined;
  24527. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24528. var _react2 = _interopRequireDefault(_react);
  24529. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  24530. var _propTypes2 = _interopRequireDefault(_propTypes);
  24531. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  24532. var _reactcss2 = _interopRequireDefault(_reactcss);
  24533. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  24534. var _merge2 = _interopRequireDefault(_merge);
  24535. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24536. var Raised = exports.Raised = function Raised(_ref) {
  24537. var zDepth = _ref.zDepth,
  24538. radius = _ref.radius,
  24539. background = _ref.background,
  24540. children = _ref.children,
  24541. _ref$styles = _ref.styles,
  24542. passedStyles = _ref$styles === undefined ? {} : _ref$styles;
  24543. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  24544. 'default': {
  24545. wrap: {
  24546. position: 'relative',
  24547. display: 'inline-block'
  24548. },
  24549. content: {
  24550. position: 'relative'
  24551. },
  24552. bg: {
  24553. absolute: '0px 0px 0px 0px',
  24554. boxShadow: '0 ' + zDepth + 'px ' + zDepth * 4 + 'px rgba(0,0,0,.24)',
  24555. borderRadius: radius,
  24556. background: background
  24557. }
  24558. },
  24559. 'zDepth-0': {
  24560. bg: {
  24561. boxShadow: 'none'
  24562. }
  24563. },
  24564. 'zDepth-1': {
  24565. bg: {
  24566. boxShadow: '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)'
  24567. }
  24568. },
  24569. 'zDepth-2': {
  24570. bg: {
  24571. boxShadow: '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)'
  24572. }
  24573. },
  24574. 'zDepth-3': {
  24575. bg: {
  24576. boxShadow: '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)'
  24577. }
  24578. },
  24579. 'zDepth-4': {
  24580. bg: {
  24581. boxShadow: '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)'
  24582. }
  24583. },
  24584. 'zDepth-5': {
  24585. bg: {
  24586. boxShadow: '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)'
  24587. }
  24588. },
  24589. 'square': {
  24590. bg: {
  24591. borderRadius: '0'
  24592. }
  24593. },
  24594. 'circle': {
  24595. bg: {
  24596. borderRadius: '50%'
  24597. }
  24598. }
  24599. }, passedStyles), { 'zDepth-1': zDepth === 1 });
  24600. return _react2.default.createElement(
  24601. 'div',
  24602. { style: styles.wrap },
  24603. _react2.default.createElement('div', { style: styles.bg }),
  24604. _react2.default.createElement(
  24605. 'div',
  24606. { style: styles.content },
  24607. children
  24608. )
  24609. );
  24610. };
  24611. Raised.propTypes = {
  24612. background: _propTypes2.default.string,
  24613. zDepth: _propTypes2.default.oneOf([0, 1, 2, 3, 4, 5]),
  24614. radius: _propTypes2.default.number,
  24615. styles: _propTypes2.default.object
  24616. };
  24617. Raised.defaultProps = {
  24618. background: '#fff',
  24619. zDepth: 1,
  24620. radius: 2,
  24621. styles: {}
  24622. };
  24623. exports.default = Raised;
  24624. /***/ }),
  24625. /***/ "../../node_modules/react-color/lib/components/common/Saturation.js":
  24626. /*!****************************************************************************************!*\
  24627. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Saturation.js ***!
  24628. \****************************************************************************************/
  24629. /*! no static exports found */
  24630. /***/ (function(module, exports, __webpack_require__) {
  24631. "use strict";
  24632. Object.defineProperty(exports, "__esModule", {
  24633. value: true
  24634. });
  24635. exports.Saturation = undefined;
  24636. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  24637. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24638. var _react2 = _interopRequireDefault(_react);
  24639. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  24640. var _reactcss2 = _interopRequireDefault(_reactcss);
  24641. var _throttle = __webpack_require__(/*! lodash/throttle */ "../../node_modules/lodash/throttle.js");
  24642. var _throttle2 = _interopRequireDefault(_throttle);
  24643. var _saturation = __webpack_require__(/*! ../../helpers/saturation */ "../../node_modules/react-color/lib/helpers/saturation.js");
  24644. var saturation = _interopRequireWildcard(_saturation);
  24645. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  24646. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24647. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24648. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  24649. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  24650. var Saturation = exports.Saturation = function (_ref) {
  24651. _inherits(Saturation, _ref);
  24652. function Saturation(props) {
  24653. _classCallCheck(this, Saturation);
  24654. var _this = _possibleConstructorReturn(this, (Saturation.__proto__ || Object.getPrototypeOf(Saturation)).call(this, props));
  24655. _this.handleChange = function (e) {
  24656. typeof _this.props.onChange === 'function' && _this.throttle(_this.props.onChange, saturation.calculateChange(e, _this.props.hsl, _this.container), e);
  24657. };
  24658. _this.handleMouseDown = function (e) {
  24659. _this.handleChange(e);
  24660. window.addEventListener('mousemove', _this.handleChange);
  24661. window.addEventListener('mouseup', _this.handleMouseUp);
  24662. };
  24663. _this.handleMouseUp = function () {
  24664. _this.unbindEventListeners();
  24665. };
  24666. _this.throttle = (0, _throttle2.default)(function (fn, data, e) {
  24667. fn(data, e);
  24668. }, 50);
  24669. return _this;
  24670. }
  24671. _createClass(Saturation, [{
  24672. key: 'componentWillUnmount',
  24673. value: function componentWillUnmount() {
  24674. this.throttle.cancel();
  24675. this.unbindEventListeners();
  24676. }
  24677. }, {
  24678. key: 'unbindEventListeners',
  24679. value: function unbindEventListeners() {
  24680. window.removeEventListener('mousemove', this.handleChange);
  24681. window.removeEventListener('mouseup', this.handleMouseUp);
  24682. }
  24683. }, {
  24684. key: 'render',
  24685. value: function render() {
  24686. var _this2 = this;
  24687. var _ref2 = this.props.style || {},
  24688. color = _ref2.color,
  24689. white = _ref2.white,
  24690. black = _ref2.black,
  24691. pointer = _ref2.pointer,
  24692. circle = _ref2.circle;
  24693. var styles = (0, _reactcss2.default)({
  24694. 'default': {
  24695. color: {
  24696. absolute: '0px 0px 0px 0px',
  24697. background: 'hsl(' + this.props.hsl.h + ',100%, 50%)',
  24698. borderRadius: this.props.radius
  24699. },
  24700. white: {
  24701. absolute: '0px 0px 0px 0px',
  24702. borderRadius: this.props.radius
  24703. },
  24704. black: {
  24705. absolute: '0px 0px 0px 0px',
  24706. boxShadow: this.props.shadow,
  24707. borderRadius: this.props.radius
  24708. },
  24709. pointer: {
  24710. position: 'absolute',
  24711. top: -(this.props.hsv.v * 100) + 100 + '%',
  24712. left: this.props.hsv.s * 100 + '%',
  24713. cursor: 'default'
  24714. },
  24715. circle: {
  24716. width: '4px',
  24717. height: '4px',
  24718. boxShadow: '0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)',
  24719. borderRadius: '50%',
  24720. cursor: 'hand',
  24721. transform: 'translate(-2px, -2px)'
  24722. }
  24723. },
  24724. 'custom': {
  24725. color: color,
  24726. white: white,
  24727. black: black,
  24728. pointer: pointer,
  24729. circle: circle
  24730. }
  24731. }, { 'custom': !!this.props.style });
  24732. return _react2.default.createElement(
  24733. 'div',
  24734. {
  24735. style: styles.color,
  24736. ref: function ref(container) {
  24737. return _this2.container = container;
  24738. },
  24739. onMouseDown: this.handleMouseDown,
  24740. onTouchMove: this.handleChange,
  24741. onTouchStart: this.handleChange
  24742. },
  24743. _react2.default.createElement(
  24744. 'style',
  24745. null,
  24746. '\n .saturation-white {\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 }\n .saturation-black {\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 }\n '
  24747. ),
  24748. _react2.default.createElement(
  24749. 'div',
  24750. { style: styles.white, className: 'saturation-white' },
  24751. _react2.default.createElement('div', { style: styles.black, className: 'saturation-black' }),
  24752. _react2.default.createElement(
  24753. 'div',
  24754. { style: styles.pointer },
  24755. this.props.pointer ? _react2.default.createElement(this.props.pointer, this.props) : _react2.default.createElement('div', { style: styles.circle })
  24756. )
  24757. )
  24758. );
  24759. }
  24760. }]);
  24761. return Saturation;
  24762. }(_react.PureComponent || _react.Component);
  24763. exports.default = Saturation;
  24764. /***/ }),
  24765. /***/ "../../node_modules/react-color/lib/components/common/Swatch.js":
  24766. /*!************************************************************************************!*\
  24767. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/common/Swatch.js ***!
  24768. \************************************************************************************/
  24769. /*! no static exports found */
  24770. /***/ (function(module, exports, __webpack_require__) {
  24771. "use strict";
  24772. Object.defineProperty(exports, "__esModule", {
  24773. value: true
  24774. });
  24775. exports.Swatch = undefined;
  24776. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  24777. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24778. var _react2 = _interopRequireDefault(_react);
  24779. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  24780. var _reactcss2 = _interopRequireDefault(_reactcss);
  24781. var _interaction = __webpack_require__(/*! ../../helpers/interaction */ "../../node_modules/react-color/lib/helpers/interaction.js");
  24782. var _Checkboard = __webpack_require__(/*! ./Checkboard */ "../../node_modules/react-color/lib/components/common/Checkboard.js");
  24783. var _Checkboard2 = _interopRequireDefault(_Checkboard);
  24784. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24785. var ENTER = 13;
  24786. var Swatch = exports.Swatch = function Swatch(_ref) {
  24787. var color = _ref.color,
  24788. style = _ref.style,
  24789. _ref$onClick = _ref.onClick,
  24790. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  24791. onHover = _ref.onHover,
  24792. _ref$title = _ref.title,
  24793. title = _ref$title === undefined ? color : _ref$title,
  24794. children = _ref.children,
  24795. focus = _ref.focus,
  24796. _ref$focusStyle = _ref.focusStyle,
  24797. focusStyle = _ref$focusStyle === undefined ? {} : _ref$focusStyle;
  24798. var transparent = color === 'transparent';
  24799. var styles = (0, _reactcss2.default)({
  24800. default: {
  24801. swatch: _extends({
  24802. background: color,
  24803. height: '100%',
  24804. width: '100%',
  24805. cursor: 'pointer',
  24806. position: 'relative',
  24807. outline: 'none'
  24808. }, style, focus ? focusStyle : {})
  24809. }
  24810. });
  24811. var handleClick = function handleClick(e) {
  24812. return onClick(color, e);
  24813. };
  24814. var handleKeyDown = function handleKeyDown(e) {
  24815. return e.keyCode === ENTER && onClick(color, e);
  24816. };
  24817. var handleHover = function handleHover(e) {
  24818. return onHover(color, e);
  24819. };
  24820. var optionalEvents = {};
  24821. if (onHover) {
  24822. optionalEvents.onMouseOver = handleHover;
  24823. }
  24824. return _react2.default.createElement(
  24825. 'div',
  24826. _extends({
  24827. style: styles.swatch,
  24828. onClick: handleClick,
  24829. title: title,
  24830. tabIndex: 0,
  24831. onKeyDown: handleKeyDown
  24832. }, optionalEvents),
  24833. children,
  24834. transparent && _react2.default.createElement(_Checkboard2.default, {
  24835. borderRadius: styles.swatch.borderRadius,
  24836. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)'
  24837. })
  24838. );
  24839. };
  24840. exports.default = (0, _interaction.handleFocus)(Swatch);
  24841. /***/ }),
  24842. /***/ "../../node_modules/react-color/lib/components/common/index.js":
  24843. /*!***********************************************************************************!*\
  24844. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/common/index.js ***!
  24845. \***********************************************************************************/
  24846. /*! no static exports found */
  24847. /***/ (function(module, exports, __webpack_require__) {
  24848. "use strict";
  24849. Object.defineProperty(exports, "__esModule", {
  24850. value: true
  24851. });
  24852. var _Alpha = __webpack_require__(/*! ./Alpha */ "../../node_modules/react-color/lib/components/common/Alpha.js");
  24853. Object.defineProperty(exports, 'Alpha', {
  24854. enumerable: true,
  24855. get: function get() {
  24856. return _interopRequireDefault(_Alpha).default;
  24857. }
  24858. });
  24859. var _Checkboard = __webpack_require__(/*! ./Checkboard */ "../../node_modules/react-color/lib/components/common/Checkboard.js");
  24860. Object.defineProperty(exports, 'Checkboard', {
  24861. enumerable: true,
  24862. get: function get() {
  24863. return _interopRequireDefault(_Checkboard).default;
  24864. }
  24865. });
  24866. var _EditableInput = __webpack_require__(/*! ./EditableInput */ "../../node_modules/react-color/lib/components/common/EditableInput.js");
  24867. Object.defineProperty(exports, 'EditableInput', {
  24868. enumerable: true,
  24869. get: function get() {
  24870. return _interopRequireDefault(_EditableInput).default;
  24871. }
  24872. });
  24873. var _Hue = __webpack_require__(/*! ./Hue */ "../../node_modules/react-color/lib/components/common/Hue.js");
  24874. Object.defineProperty(exports, 'Hue', {
  24875. enumerable: true,
  24876. get: function get() {
  24877. return _interopRequireDefault(_Hue).default;
  24878. }
  24879. });
  24880. var _Raised = __webpack_require__(/*! ./Raised */ "../../node_modules/react-color/lib/components/common/Raised.js");
  24881. Object.defineProperty(exports, 'Raised', {
  24882. enumerable: true,
  24883. get: function get() {
  24884. return _interopRequireDefault(_Raised).default;
  24885. }
  24886. });
  24887. var _Saturation = __webpack_require__(/*! ./Saturation */ "../../node_modules/react-color/lib/components/common/Saturation.js");
  24888. Object.defineProperty(exports, 'Saturation', {
  24889. enumerable: true,
  24890. get: function get() {
  24891. return _interopRequireDefault(_Saturation).default;
  24892. }
  24893. });
  24894. var _ColorWrap = __webpack_require__(/*! ./ColorWrap */ "../../node_modules/react-color/lib/components/common/ColorWrap.js");
  24895. Object.defineProperty(exports, 'ColorWrap', {
  24896. enumerable: true,
  24897. get: function get() {
  24898. return _interopRequireDefault(_ColorWrap).default;
  24899. }
  24900. });
  24901. var _Swatch = __webpack_require__(/*! ./Swatch */ "../../node_modules/react-color/lib/components/common/Swatch.js");
  24902. Object.defineProperty(exports, 'Swatch', {
  24903. enumerable: true,
  24904. get: function get() {
  24905. return _interopRequireDefault(_Swatch).default;
  24906. }
  24907. });
  24908. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24909. /***/ }),
  24910. /***/ "../../node_modules/react-color/lib/components/compact/Compact.js":
  24911. /*!**************************************************************************************!*\
  24912. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/compact/Compact.js ***!
  24913. \**************************************************************************************/
  24914. /*! no static exports found */
  24915. /***/ (function(module, exports, __webpack_require__) {
  24916. "use strict";
  24917. Object.defineProperty(exports, "__esModule", {
  24918. value: true
  24919. });
  24920. exports.Compact = undefined;
  24921. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  24922. var _react2 = _interopRequireDefault(_react);
  24923. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  24924. var _propTypes2 = _interopRequireDefault(_propTypes);
  24925. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  24926. var _reactcss2 = _interopRequireDefault(_reactcss);
  24927. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  24928. var _map2 = _interopRequireDefault(_map);
  24929. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  24930. var _merge2 = _interopRequireDefault(_merge);
  24931. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  24932. var _color2 = _interopRequireDefault(_color);
  24933. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  24934. var _CompactColor = __webpack_require__(/*! ./CompactColor */ "../../node_modules/react-color/lib/components/compact/CompactColor.js");
  24935. var _CompactColor2 = _interopRequireDefault(_CompactColor);
  24936. var _CompactFields = __webpack_require__(/*! ./CompactFields */ "../../node_modules/react-color/lib/components/compact/CompactFields.js");
  24937. var _CompactFields2 = _interopRequireDefault(_CompactFields);
  24938. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24939. var Compact = exports.Compact = function Compact(_ref) {
  24940. var onChange = _ref.onChange,
  24941. onSwatchHover = _ref.onSwatchHover,
  24942. colors = _ref.colors,
  24943. hex = _ref.hex,
  24944. rgb = _ref.rgb,
  24945. _ref$styles = _ref.styles,
  24946. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  24947. _ref$className = _ref.className,
  24948. className = _ref$className === undefined ? '' : _ref$className;
  24949. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  24950. 'default': {
  24951. Compact: {
  24952. background: '#f6f6f6',
  24953. radius: '4px'
  24954. },
  24955. compact: {
  24956. paddingTop: '5px',
  24957. paddingLeft: '5px',
  24958. boxSizing: 'initial',
  24959. width: '240px'
  24960. },
  24961. clear: {
  24962. clear: 'both'
  24963. }
  24964. }
  24965. }, passedStyles));
  24966. var handleChange = function handleChange(data, e) {
  24967. if (data.hex) {
  24968. _color2.default.isValidHex(data.hex) && onChange({
  24969. hex: data.hex,
  24970. source: 'hex'
  24971. }, e);
  24972. } else {
  24973. onChange(data, e);
  24974. }
  24975. };
  24976. return _react2.default.createElement(
  24977. _common.Raised,
  24978. { style: styles.Compact, styles: passedStyles },
  24979. _react2.default.createElement(
  24980. 'div',
  24981. { style: styles.compact, className: 'compact-picker ' + className },
  24982. _react2.default.createElement(
  24983. 'div',
  24984. null,
  24985. (0, _map2.default)(colors, function (c) {
  24986. return _react2.default.createElement(_CompactColor2.default, {
  24987. key: c,
  24988. color: c,
  24989. active: c.toLowerCase() === hex,
  24990. onClick: handleChange,
  24991. onSwatchHover: onSwatchHover
  24992. });
  24993. }),
  24994. _react2.default.createElement('div', { style: styles.clear })
  24995. ),
  24996. _react2.default.createElement(_CompactFields2.default, { hex: hex, rgb: rgb, onChange: handleChange })
  24997. )
  24998. );
  24999. };
  25000. Compact.propTypes = {
  25001. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  25002. styles: _propTypes2.default.object
  25003. };
  25004. Compact.defaultProps = {
  25005. colors: ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'],
  25006. styles: {}
  25007. };
  25008. exports.default = (0, _common.ColorWrap)(Compact);
  25009. /***/ }),
  25010. /***/ "../../node_modules/react-color/lib/components/compact/CompactColor.js":
  25011. /*!*******************************************************************************************!*\
  25012. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/compact/CompactColor.js ***!
  25013. \*******************************************************************************************/
  25014. /*! no static exports found */
  25015. /***/ (function(module, exports, __webpack_require__) {
  25016. "use strict";
  25017. Object.defineProperty(exports, "__esModule", {
  25018. value: true
  25019. });
  25020. exports.CompactColor = undefined;
  25021. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25022. var _react2 = _interopRequireDefault(_react);
  25023. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25024. var _reactcss2 = _interopRequireDefault(_reactcss);
  25025. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  25026. var _color2 = _interopRequireDefault(_color);
  25027. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  25028. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25029. var CompactColor = exports.CompactColor = function CompactColor(_ref) {
  25030. var color = _ref.color,
  25031. _ref$onClick = _ref.onClick,
  25032. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  25033. onSwatchHover = _ref.onSwatchHover,
  25034. active = _ref.active;
  25035. var styles = (0, _reactcss2.default)({
  25036. 'default': {
  25037. color: {
  25038. background: color,
  25039. width: '15px',
  25040. height: '15px',
  25041. float: 'left',
  25042. marginRight: '5px',
  25043. marginBottom: '5px',
  25044. position: 'relative',
  25045. cursor: 'pointer'
  25046. },
  25047. dot: {
  25048. absolute: '5px 5px 5px 5px',
  25049. background: _color2.default.getContrastingColor(color),
  25050. borderRadius: '50%',
  25051. opacity: '0'
  25052. }
  25053. },
  25054. 'active': {
  25055. dot: {
  25056. opacity: '1'
  25057. }
  25058. },
  25059. 'color-#FFFFFF': {
  25060. color: {
  25061. boxShadow: 'inset 0 0 0 1px #ddd'
  25062. },
  25063. dot: {
  25064. background: '#000'
  25065. }
  25066. },
  25067. 'transparent': {
  25068. dot: {
  25069. background: '#000'
  25070. }
  25071. }
  25072. }, { active: active, 'color-#FFFFFF': color === '#FFFFFF', 'transparent': color === 'transparent' });
  25073. return _react2.default.createElement(
  25074. _common.Swatch,
  25075. {
  25076. style: styles.color,
  25077. color: color,
  25078. onClick: onClick,
  25079. onHover: onSwatchHover,
  25080. focusStyle: { boxShadow: '0 0 4px ' + color }
  25081. },
  25082. _react2.default.createElement('div', { style: styles.dot })
  25083. );
  25084. };
  25085. exports.default = CompactColor;
  25086. /***/ }),
  25087. /***/ "../../node_modules/react-color/lib/components/compact/CompactFields.js":
  25088. /*!********************************************************************************************!*\
  25089. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/compact/CompactFields.js ***!
  25090. \********************************************************************************************/
  25091. /*! no static exports found */
  25092. /***/ (function(module, exports, __webpack_require__) {
  25093. "use strict";
  25094. Object.defineProperty(exports, "__esModule", {
  25095. value: true
  25096. });
  25097. exports.CompactFields = undefined;
  25098. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25099. var _react2 = _interopRequireDefault(_react);
  25100. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25101. var _reactcss2 = _interopRequireDefault(_reactcss);
  25102. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  25103. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25104. var CompactFields = exports.CompactFields = function CompactFields(_ref) {
  25105. var hex = _ref.hex,
  25106. rgb = _ref.rgb,
  25107. onChange = _ref.onChange;
  25108. var styles = (0, _reactcss2.default)({
  25109. 'default': {
  25110. fields: {
  25111. display: 'flex',
  25112. paddingBottom: '6px',
  25113. paddingRight: '5px',
  25114. position: 'relative'
  25115. },
  25116. active: {
  25117. position: 'absolute',
  25118. top: '6px',
  25119. left: '5px',
  25120. height: '9px',
  25121. width: '9px',
  25122. background: hex
  25123. },
  25124. HEXwrap: {
  25125. flex: '6',
  25126. position: 'relative'
  25127. },
  25128. HEXinput: {
  25129. width: '80%',
  25130. padding: '0px',
  25131. paddingLeft: '20%',
  25132. border: 'none',
  25133. outline: 'none',
  25134. background: 'none',
  25135. fontSize: '12px',
  25136. color: '#333',
  25137. height: '16px'
  25138. },
  25139. HEXlabel: {
  25140. display: 'none'
  25141. },
  25142. RGBwrap: {
  25143. flex: '3',
  25144. position: 'relative'
  25145. },
  25146. RGBinput: {
  25147. width: '70%',
  25148. padding: '0px',
  25149. paddingLeft: '30%',
  25150. border: 'none',
  25151. outline: 'none',
  25152. background: 'none',
  25153. fontSize: '12px',
  25154. color: '#333',
  25155. height: '16px'
  25156. },
  25157. RGBlabel: {
  25158. position: 'absolute',
  25159. top: '3px',
  25160. left: '0px',
  25161. lineHeight: '16px',
  25162. textTransform: 'uppercase',
  25163. fontSize: '12px',
  25164. color: '#999'
  25165. }
  25166. }
  25167. });
  25168. var handleChange = function handleChange(data, e) {
  25169. if (data.r || data.g || data.b) {
  25170. onChange({
  25171. r: data.r || rgb.r,
  25172. g: data.g || rgb.g,
  25173. b: data.b || rgb.b,
  25174. source: 'rgb'
  25175. }, e);
  25176. } else {
  25177. onChange({
  25178. hex: data.hex,
  25179. source: 'hex'
  25180. }, e);
  25181. }
  25182. };
  25183. return _react2.default.createElement(
  25184. 'div',
  25185. { style: styles.fields, className: 'flexbox-fix' },
  25186. _react2.default.createElement('div', { style: styles.active }),
  25187. _react2.default.createElement(_common.EditableInput, {
  25188. style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
  25189. label: 'hex',
  25190. value: hex,
  25191. onChange: handleChange
  25192. }),
  25193. _react2.default.createElement(_common.EditableInput, {
  25194. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  25195. label: 'r',
  25196. value: rgb.r,
  25197. onChange: handleChange
  25198. }),
  25199. _react2.default.createElement(_common.EditableInput, {
  25200. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  25201. label: 'g',
  25202. value: rgb.g,
  25203. onChange: handleChange
  25204. }),
  25205. _react2.default.createElement(_common.EditableInput, {
  25206. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  25207. label: 'b',
  25208. value: rgb.b,
  25209. onChange: handleChange
  25210. })
  25211. );
  25212. };
  25213. exports.default = CompactFields;
  25214. /***/ }),
  25215. /***/ "../../node_modules/react-color/lib/components/github/Github.js":
  25216. /*!************************************************************************************!*\
  25217. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/github/Github.js ***!
  25218. \************************************************************************************/
  25219. /*! no static exports found */
  25220. /***/ (function(module, exports, __webpack_require__) {
  25221. "use strict";
  25222. Object.defineProperty(exports, "__esModule", {
  25223. value: true
  25224. });
  25225. exports.Github = undefined;
  25226. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25227. var _react2 = _interopRequireDefault(_react);
  25228. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  25229. var _propTypes2 = _interopRequireDefault(_propTypes);
  25230. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25231. var _reactcss2 = _interopRequireDefault(_reactcss);
  25232. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  25233. var _map2 = _interopRequireDefault(_map);
  25234. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  25235. var _merge2 = _interopRequireDefault(_merge);
  25236. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  25237. var _GithubSwatch = __webpack_require__(/*! ./GithubSwatch */ "../../node_modules/react-color/lib/components/github/GithubSwatch.js");
  25238. var _GithubSwatch2 = _interopRequireDefault(_GithubSwatch);
  25239. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25240. var Github = exports.Github = function Github(_ref) {
  25241. var width = _ref.width,
  25242. colors = _ref.colors,
  25243. onChange = _ref.onChange,
  25244. onSwatchHover = _ref.onSwatchHover,
  25245. triangle = _ref.triangle,
  25246. _ref$styles = _ref.styles,
  25247. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  25248. _ref$className = _ref.className,
  25249. className = _ref$className === undefined ? '' : _ref$className;
  25250. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  25251. 'default': {
  25252. card: {
  25253. width: width,
  25254. background: '#fff',
  25255. border: '1px solid rgba(0,0,0,0.2)',
  25256. boxShadow: '0 3px 12px rgba(0,0,0,0.15)',
  25257. borderRadius: '4px',
  25258. position: 'relative',
  25259. padding: '5px',
  25260. display: 'flex',
  25261. flexWrap: 'wrap'
  25262. },
  25263. triangle: {
  25264. position: 'absolute',
  25265. border: '7px solid transparent',
  25266. borderBottomColor: '#fff'
  25267. },
  25268. triangleShadow: {
  25269. position: 'absolute',
  25270. border: '8px solid transparent',
  25271. borderBottomColor: 'rgba(0,0,0,0.15)'
  25272. }
  25273. },
  25274. 'hide-triangle': {
  25275. triangle: {
  25276. display: 'none'
  25277. },
  25278. triangleShadow: {
  25279. display: 'none'
  25280. }
  25281. },
  25282. 'top-left-triangle': {
  25283. triangle: {
  25284. top: '-14px',
  25285. left: '10px'
  25286. },
  25287. triangleShadow: {
  25288. top: '-16px',
  25289. left: '9px'
  25290. }
  25291. },
  25292. 'top-right-triangle': {
  25293. triangle: {
  25294. top: '-14px',
  25295. right: '10px'
  25296. },
  25297. triangleShadow: {
  25298. top: '-16px',
  25299. right: '9px'
  25300. }
  25301. },
  25302. 'bottom-left-triangle': {
  25303. triangle: {
  25304. top: '35px',
  25305. left: '10px',
  25306. transform: 'rotate(180deg)'
  25307. },
  25308. triangleShadow: {
  25309. top: '37px',
  25310. left: '9px',
  25311. transform: 'rotate(180deg)'
  25312. }
  25313. },
  25314. 'bottom-right-triangle': {
  25315. triangle: {
  25316. top: '35px',
  25317. right: '10px',
  25318. transform: 'rotate(180deg)'
  25319. },
  25320. triangleShadow: {
  25321. top: '37px',
  25322. right: '9px',
  25323. transform: 'rotate(180deg)'
  25324. }
  25325. }
  25326. }, passedStyles), {
  25327. 'hide-triangle': triangle === 'hide',
  25328. 'top-left-triangle': triangle === 'top-left',
  25329. 'top-right-triangle': triangle === 'top-right',
  25330. 'bottom-left-triangle': triangle === 'bottom-left',
  25331. 'bottom-right-triangle': triangle === 'bottom-right'
  25332. });
  25333. var handleChange = function handleChange(hex, e) {
  25334. return onChange({ hex: hex, source: 'hex' }, e);
  25335. };
  25336. return _react2.default.createElement(
  25337. 'div',
  25338. { style: styles.card, className: 'github-picker ' + className },
  25339. _react2.default.createElement('div', { style: styles.triangleShadow }),
  25340. _react2.default.createElement('div', { style: styles.triangle }),
  25341. (0, _map2.default)(colors, function (c) {
  25342. return _react2.default.createElement(_GithubSwatch2.default, {
  25343. color: c,
  25344. key: c,
  25345. onClick: handleChange,
  25346. onSwatchHover: onSwatchHover
  25347. });
  25348. })
  25349. );
  25350. };
  25351. Github.propTypes = {
  25352. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  25353. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  25354. triangle: _propTypes2.default.oneOf(['hide', 'top-left', 'top-right', 'bottom-left', 'bottom-right']),
  25355. styles: _propTypes2.default.object
  25356. };
  25357. Github.defaultProps = {
  25358. width: 200,
  25359. colors: ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'],
  25360. triangle: 'top-left',
  25361. styles: {}
  25362. };
  25363. exports.default = (0, _common.ColorWrap)(Github);
  25364. /***/ }),
  25365. /***/ "../../node_modules/react-color/lib/components/github/GithubSwatch.js":
  25366. /*!******************************************************************************************!*\
  25367. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/github/GithubSwatch.js ***!
  25368. \******************************************************************************************/
  25369. /*! no static exports found */
  25370. /***/ (function(module, exports, __webpack_require__) {
  25371. "use strict";
  25372. Object.defineProperty(exports, "__esModule", {
  25373. value: true
  25374. });
  25375. exports.GithubSwatch = undefined;
  25376. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25377. var _react2 = _interopRequireDefault(_react);
  25378. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25379. var _reactcss2 = _interopRequireDefault(_reactcss);
  25380. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  25381. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25382. var GithubSwatch = exports.GithubSwatch = function GithubSwatch(_ref) {
  25383. var hover = _ref.hover,
  25384. color = _ref.color,
  25385. onClick = _ref.onClick,
  25386. onSwatchHover = _ref.onSwatchHover;
  25387. var hoverSwatch = {
  25388. position: 'relative',
  25389. zIndex: '2',
  25390. outline: '2px solid #fff',
  25391. boxShadow: '0 0 5px 2px rgba(0,0,0,0.25)'
  25392. };
  25393. var styles = (0, _reactcss2.default)({
  25394. 'default': {
  25395. swatch: {
  25396. width: '25px',
  25397. height: '25px',
  25398. fontSize: '0'
  25399. }
  25400. },
  25401. 'hover': {
  25402. swatch: hoverSwatch
  25403. }
  25404. }, { hover: hover });
  25405. return _react2.default.createElement(
  25406. 'div',
  25407. { style: styles.swatch },
  25408. _react2.default.createElement(_common.Swatch, {
  25409. color: color,
  25410. onClick: onClick,
  25411. onHover: onSwatchHover,
  25412. focusStyle: hoverSwatch
  25413. })
  25414. );
  25415. };
  25416. exports.default = (0, _reactcss.handleHover)(GithubSwatch);
  25417. /***/ }),
  25418. /***/ "../../node_modules/react-color/lib/components/hue/Hue.js":
  25419. /*!******************************************************************************!*\
  25420. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/hue/Hue.js ***!
  25421. \******************************************************************************/
  25422. /*! no static exports found */
  25423. /***/ (function(module, exports, __webpack_require__) {
  25424. "use strict";
  25425. Object.defineProperty(exports, "__esModule", {
  25426. value: true
  25427. });
  25428. exports.HuePicker = undefined;
  25429. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  25430. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25431. var _react2 = _interopRequireDefault(_react);
  25432. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  25433. var _propTypes2 = _interopRequireDefault(_propTypes);
  25434. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25435. var _reactcss2 = _interopRequireDefault(_reactcss);
  25436. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  25437. var _merge2 = _interopRequireDefault(_merge);
  25438. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  25439. var _HuePointer = __webpack_require__(/*! ./HuePointer */ "../../node_modules/react-color/lib/components/hue/HuePointer.js");
  25440. var _HuePointer2 = _interopRequireDefault(_HuePointer);
  25441. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25442. var HuePicker = exports.HuePicker = function HuePicker(_ref) {
  25443. var width = _ref.width,
  25444. height = _ref.height,
  25445. onChange = _ref.onChange,
  25446. hsl = _ref.hsl,
  25447. direction = _ref.direction,
  25448. pointer = _ref.pointer,
  25449. _ref$styles = _ref.styles,
  25450. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  25451. _ref$className = _ref.className,
  25452. className = _ref$className === undefined ? '' : _ref$className;
  25453. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  25454. 'default': {
  25455. picker: {
  25456. position: 'relative',
  25457. width: width,
  25458. height: height
  25459. },
  25460. hue: {
  25461. radius: '2px'
  25462. }
  25463. }
  25464. }, passedStyles));
  25465. // Overwrite to provide pure hue color
  25466. var handleChange = function handleChange(data) {
  25467. return onChange({ a: 1, h: data.h, l: 0.5, s: 1 });
  25468. };
  25469. return _react2.default.createElement(
  25470. 'div',
  25471. { style: styles.picker, className: 'hue-picker ' + className },
  25472. _react2.default.createElement(_common.Hue, _extends({}, styles.hue, {
  25473. hsl: hsl,
  25474. pointer: pointer,
  25475. onChange: handleChange,
  25476. direction: direction
  25477. }))
  25478. );
  25479. };
  25480. HuePicker.propTypes = {
  25481. styles: _propTypes2.default.object
  25482. };
  25483. HuePicker.defaultProps = {
  25484. width: '316px',
  25485. height: '16px',
  25486. direction: 'horizontal',
  25487. pointer: _HuePointer2.default,
  25488. styles: {}
  25489. };
  25490. exports.default = (0, _common.ColorWrap)(HuePicker);
  25491. /***/ }),
  25492. /***/ "../../node_modules/react-color/lib/components/hue/HuePointer.js":
  25493. /*!*************************************************************************************!*\
  25494. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/hue/HuePointer.js ***!
  25495. \*************************************************************************************/
  25496. /*! no static exports found */
  25497. /***/ (function(module, exports, __webpack_require__) {
  25498. "use strict";
  25499. Object.defineProperty(exports, "__esModule", {
  25500. value: true
  25501. });
  25502. exports.SliderPointer = undefined;
  25503. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25504. var _react2 = _interopRequireDefault(_react);
  25505. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25506. var _reactcss2 = _interopRequireDefault(_reactcss);
  25507. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25508. var SliderPointer = exports.SliderPointer = function SliderPointer(_ref) {
  25509. var direction = _ref.direction;
  25510. var styles = (0, _reactcss2.default)({
  25511. 'default': {
  25512. picker: {
  25513. width: '18px',
  25514. height: '18px',
  25515. borderRadius: '50%',
  25516. transform: 'translate(-9px, -1px)',
  25517. backgroundColor: 'rgb(248, 248, 248)',
  25518. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  25519. }
  25520. },
  25521. 'vertical': {
  25522. picker: {
  25523. transform: 'translate(-3px, -9px)'
  25524. }
  25525. }
  25526. }, { vertical: direction === 'vertical' });
  25527. return _react2.default.createElement('div', { style: styles.picker });
  25528. };
  25529. exports.default = SliderPointer;
  25530. /***/ }),
  25531. /***/ "../../node_modules/react-color/lib/components/material/Material.js":
  25532. /*!****************************************************************************************!*\
  25533. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/material/Material.js ***!
  25534. \****************************************************************************************/
  25535. /*! no static exports found */
  25536. /***/ (function(module, exports, __webpack_require__) {
  25537. "use strict";
  25538. Object.defineProperty(exports, "__esModule", {
  25539. value: true
  25540. });
  25541. exports.Material = undefined;
  25542. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25543. var _react2 = _interopRequireDefault(_react);
  25544. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25545. var _reactcss2 = _interopRequireDefault(_reactcss);
  25546. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  25547. var _merge2 = _interopRequireDefault(_merge);
  25548. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  25549. var _color2 = _interopRequireDefault(_color);
  25550. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  25551. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25552. var Material = exports.Material = function Material(_ref) {
  25553. var onChange = _ref.onChange,
  25554. hex = _ref.hex,
  25555. rgb = _ref.rgb,
  25556. _ref$styles = _ref.styles,
  25557. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  25558. _ref$className = _ref.className,
  25559. className = _ref$className === undefined ? '' : _ref$className;
  25560. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  25561. 'default': {
  25562. material: {
  25563. width: '98px',
  25564. height: '98px',
  25565. padding: '16px',
  25566. fontFamily: 'Roboto'
  25567. },
  25568. HEXwrap: {
  25569. position: 'relative'
  25570. },
  25571. HEXinput: {
  25572. width: '100%',
  25573. marginTop: '12px',
  25574. fontSize: '15px',
  25575. color: '#333',
  25576. padding: '0px',
  25577. border: '0px',
  25578. borderBottom: '2px solid ' + hex,
  25579. outline: 'none',
  25580. height: '30px'
  25581. },
  25582. HEXlabel: {
  25583. position: 'absolute',
  25584. top: '0px',
  25585. left: '0px',
  25586. fontSize: '11px',
  25587. color: '#999999',
  25588. textTransform: 'capitalize'
  25589. },
  25590. Hex: {
  25591. style: {}
  25592. },
  25593. RGBwrap: {
  25594. position: 'relative'
  25595. },
  25596. RGBinput: {
  25597. width: '100%',
  25598. marginTop: '12px',
  25599. fontSize: '15px',
  25600. color: '#333',
  25601. padding: '0px',
  25602. border: '0px',
  25603. borderBottom: '1px solid #eee',
  25604. outline: 'none',
  25605. height: '30px'
  25606. },
  25607. RGBlabel: {
  25608. position: 'absolute',
  25609. top: '0px',
  25610. left: '0px',
  25611. fontSize: '11px',
  25612. color: '#999999',
  25613. textTransform: 'capitalize'
  25614. },
  25615. split: {
  25616. display: 'flex',
  25617. marginRight: '-10px',
  25618. paddingTop: '11px'
  25619. },
  25620. third: {
  25621. flex: '1',
  25622. paddingRight: '10px'
  25623. }
  25624. }
  25625. }, passedStyles));
  25626. var handleChange = function handleChange(data, e) {
  25627. if (data.hex) {
  25628. _color2.default.isValidHex(data.hex) && onChange({
  25629. hex: data.hex,
  25630. source: 'hex'
  25631. }, e);
  25632. } else if (data.r || data.g || data.b) {
  25633. onChange({
  25634. r: data.r || rgb.r,
  25635. g: data.g || rgb.g,
  25636. b: data.b || rgb.b,
  25637. source: 'rgb'
  25638. }, e);
  25639. }
  25640. };
  25641. return _react2.default.createElement(
  25642. _common.Raised,
  25643. { styles: passedStyles },
  25644. _react2.default.createElement(
  25645. 'div',
  25646. { style: styles.material, className: 'material-picker ' + className },
  25647. _react2.default.createElement(_common.EditableInput, {
  25648. style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
  25649. label: 'hex',
  25650. value: hex,
  25651. onChange: handleChange
  25652. }),
  25653. _react2.default.createElement(
  25654. 'div',
  25655. { style: styles.split, className: 'flexbox-fix' },
  25656. _react2.default.createElement(
  25657. 'div',
  25658. { style: styles.third },
  25659. _react2.default.createElement(_common.EditableInput, {
  25660. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  25661. label: 'r', value: rgb.r,
  25662. onChange: handleChange
  25663. })
  25664. ),
  25665. _react2.default.createElement(
  25666. 'div',
  25667. { style: styles.third },
  25668. _react2.default.createElement(_common.EditableInput, {
  25669. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  25670. label: 'g',
  25671. value: rgb.g,
  25672. onChange: handleChange
  25673. })
  25674. ),
  25675. _react2.default.createElement(
  25676. 'div',
  25677. { style: styles.third },
  25678. _react2.default.createElement(_common.EditableInput, {
  25679. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  25680. label: 'b',
  25681. value: rgb.b,
  25682. onChange: handleChange
  25683. })
  25684. )
  25685. )
  25686. )
  25687. );
  25688. };
  25689. exports.default = (0, _common.ColorWrap)(Material);
  25690. /***/ }),
  25691. /***/ "../../node_modules/react-color/lib/components/photoshop/Photoshop.js":
  25692. /*!******************************************************************************************!*\
  25693. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/Photoshop.js ***!
  25694. \******************************************************************************************/
  25695. /*! no static exports found */
  25696. /***/ (function(module, exports, __webpack_require__) {
  25697. "use strict";
  25698. Object.defineProperty(exports, "__esModule", {
  25699. value: true
  25700. });
  25701. exports.Photoshop = undefined;
  25702. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  25703. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25704. var _react2 = _interopRequireDefault(_react);
  25705. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  25706. var _propTypes2 = _interopRequireDefault(_propTypes);
  25707. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25708. var _reactcss2 = _interopRequireDefault(_reactcss);
  25709. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  25710. var _merge2 = _interopRequireDefault(_merge);
  25711. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  25712. var _PhotoshopFields = __webpack_require__(/*! ./PhotoshopFields */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopFields.js");
  25713. var _PhotoshopFields2 = _interopRequireDefault(_PhotoshopFields);
  25714. var _PhotoshopPointerCircle = __webpack_require__(/*! ./PhotoshopPointerCircle */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js");
  25715. var _PhotoshopPointerCircle2 = _interopRequireDefault(_PhotoshopPointerCircle);
  25716. var _PhotoshopPointer = __webpack_require__(/*! ./PhotoshopPointer */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js");
  25717. var _PhotoshopPointer2 = _interopRequireDefault(_PhotoshopPointer);
  25718. var _PhotoshopButton = __webpack_require__(/*! ./PhotoshopButton */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopButton.js");
  25719. var _PhotoshopButton2 = _interopRequireDefault(_PhotoshopButton);
  25720. var _PhotoshopPreviews = __webpack_require__(/*! ./PhotoshopPreviews */ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js");
  25721. var _PhotoshopPreviews2 = _interopRequireDefault(_PhotoshopPreviews);
  25722. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25723. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  25724. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  25725. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  25726. var Photoshop = exports.Photoshop = function (_React$Component) {
  25727. _inherits(Photoshop, _React$Component);
  25728. function Photoshop(props) {
  25729. _classCallCheck(this, Photoshop);
  25730. var _this = _possibleConstructorReturn(this, (Photoshop.__proto__ || Object.getPrototypeOf(Photoshop)).call(this));
  25731. _this.state = {
  25732. currentColor: props.hex
  25733. };
  25734. return _this;
  25735. }
  25736. _createClass(Photoshop, [{
  25737. key: 'render',
  25738. value: function render() {
  25739. var _props = this.props,
  25740. _props$styles = _props.styles,
  25741. passedStyles = _props$styles === undefined ? {} : _props$styles,
  25742. _props$className = _props.className,
  25743. className = _props$className === undefined ? '' : _props$className;
  25744. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  25745. 'default': {
  25746. picker: {
  25747. background: '#DCDCDC',
  25748. borderRadius: '4px',
  25749. boxShadow: '0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)',
  25750. boxSizing: 'initial',
  25751. width: '513px'
  25752. },
  25753. head: {
  25754. backgroundImage: 'linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)',
  25755. borderBottom: '1px solid #B1B1B1',
  25756. boxShadow: 'inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)',
  25757. height: '23px',
  25758. lineHeight: '24px',
  25759. borderRadius: '4px 4px 0 0',
  25760. fontSize: '13px',
  25761. color: '#4D4D4D',
  25762. textAlign: 'center'
  25763. },
  25764. body: {
  25765. padding: '15px 15px 0',
  25766. display: 'flex'
  25767. },
  25768. saturation: {
  25769. width: '256px',
  25770. height: '256px',
  25771. position: 'relative',
  25772. border: '2px solid #B3B3B3',
  25773. borderBottom: '2px solid #F0F0F0',
  25774. overflow: 'hidden'
  25775. },
  25776. hue: {
  25777. position: 'relative',
  25778. height: '256px',
  25779. width: '19px',
  25780. marginLeft: '10px',
  25781. border: '2px solid #B3B3B3',
  25782. borderBottom: '2px solid #F0F0F0'
  25783. },
  25784. controls: {
  25785. width: '180px',
  25786. marginLeft: '10px'
  25787. },
  25788. top: {
  25789. display: 'flex'
  25790. },
  25791. previews: {
  25792. width: '60px'
  25793. },
  25794. actions: {
  25795. flex: '1',
  25796. marginLeft: '20px'
  25797. }
  25798. }
  25799. }, passedStyles));
  25800. return _react2.default.createElement(
  25801. 'div',
  25802. { style: styles.picker, className: 'photoshop-picker ' + className },
  25803. _react2.default.createElement(
  25804. 'div',
  25805. { style: styles.head },
  25806. this.props.header
  25807. ),
  25808. _react2.default.createElement(
  25809. 'div',
  25810. { style: styles.body, className: 'flexbox-fix' },
  25811. _react2.default.createElement(
  25812. 'div',
  25813. { style: styles.saturation },
  25814. _react2.default.createElement(_common.Saturation, {
  25815. hsl: this.props.hsl,
  25816. hsv: this.props.hsv,
  25817. pointer: _PhotoshopPointerCircle2.default,
  25818. onChange: this.props.onChange
  25819. })
  25820. ),
  25821. _react2.default.createElement(
  25822. 'div',
  25823. { style: styles.hue },
  25824. _react2.default.createElement(_common.Hue, {
  25825. direction: 'vertical',
  25826. hsl: this.props.hsl,
  25827. pointer: _PhotoshopPointer2.default,
  25828. onChange: this.props.onChange
  25829. })
  25830. ),
  25831. _react2.default.createElement(
  25832. 'div',
  25833. { style: styles.controls },
  25834. _react2.default.createElement(
  25835. 'div',
  25836. { style: styles.top, className: 'flexbox-fix' },
  25837. _react2.default.createElement(
  25838. 'div',
  25839. { style: styles.previews },
  25840. _react2.default.createElement(_PhotoshopPreviews2.default, {
  25841. rgb: this.props.rgb,
  25842. currentColor: this.state.currentColor
  25843. })
  25844. ),
  25845. _react2.default.createElement(
  25846. 'div',
  25847. { style: styles.actions },
  25848. _react2.default.createElement(_PhotoshopButton2.default, { label: 'OK', onClick: this.props.onAccept, active: true }),
  25849. _react2.default.createElement(_PhotoshopButton2.default, { label: 'Cancel', onClick: this.props.onCancel }),
  25850. _react2.default.createElement(_PhotoshopFields2.default, {
  25851. onChange: this.props.onChange,
  25852. rgb: this.props.rgb,
  25853. hsv: this.props.hsv,
  25854. hex: this.props.hex
  25855. })
  25856. )
  25857. )
  25858. )
  25859. )
  25860. );
  25861. }
  25862. }]);
  25863. return Photoshop;
  25864. }(_react2.default.Component);
  25865. Photoshop.propTypes = {
  25866. header: _propTypes2.default.string,
  25867. styles: _propTypes2.default.object
  25868. };
  25869. Photoshop.defaultProps = {
  25870. header: 'Color Picker',
  25871. styles: {}
  25872. };
  25873. exports.default = (0, _common.ColorWrap)(Photoshop);
  25874. /***/ }),
  25875. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopButton.js":
  25876. /*!************************************************************************************************!*\
  25877. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopButton.js ***!
  25878. \************************************************************************************************/
  25879. /*! no static exports found */
  25880. /***/ (function(module, exports, __webpack_require__) {
  25881. "use strict";
  25882. Object.defineProperty(exports, "__esModule", {
  25883. value: true
  25884. });
  25885. exports.PhotoshopButton = undefined;
  25886. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25887. var _react2 = _interopRequireDefault(_react);
  25888. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25889. var _reactcss2 = _interopRequireDefault(_reactcss);
  25890. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25891. var PhotoshopButton = exports.PhotoshopButton = function PhotoshopButton(_ref) {
  25892. var onClick = _ref.onClick,
  25893. label = _ref.label,
  25894. children = _ref.children,
  25895. active = _ref.active;
  25896. var styles = (0, _reactcss2.default)({
  25897. 'default': {
  25898. button: {
  25899. backgroundImage: 'linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)',
  25900. border: '1px solid #878787',
  25901. borderRadius: '2px',
  25902. height: '20px',
  25903. boxShadow: '0 1px 0 0 #EAEAEA',
  25904. fontSize: '14px',
  25905. color: '#000',
  25906. lineHeight: '20px',
  25907. textAlign: 'center',
  25908. marginBottom: '10px',
  25909. cursor: 'pointer'
  25910. }
  25911. },
  25912. 'active': {
  25913. button: {
  25914. boxShadow: '0 0 0 1px #878787'
  25915. }
  25916. }
  25917. }, { active: active });
  25918. return _react2.default.createElement(
  25919. 'div',
  25920. { style: styles.button, onClick: onClick },
  25921. label || children
  25922. );
  25923. };
  25924. exports.default = PhotoshopButton;
  25925. /***/ }),
  25926. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopFields.js":
  25927. /*!************************************************************************************************!*\
  25928. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopFields.js ***!
  25929. \************************************************************************************************/
  25930. /*! no static exports found */
  25931. /***/ (function(module, exports, __webpack_require__) {
  25932. "use strict";
  25933. Object.defineProperty(exports, "__esModule", {
  25934. value: true
  25935. });
  25936. exports.PhotoshopPicker = undefined;
  25937. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  25938. var _react2 = _interopRequireDefault(_react);
  25939. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  25940. var _reactcss2 = _interopRequireDefault(_reactcss);
  25941. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  25942. var _color2 = _interopRequireDefault(_color);
  25943. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  25944. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25945. var PhotoshopPicker = exports.PhotoshopPicker = function PhotoshopPicker(_ref) {
  25946. var onChange = _ref.onChange,
  25947. rgb = _ref.rgb,
  25948. hsv = _ref.hsv,
  25949. hex = _ref.hex;
  25950. var styles = (0, _reactcss2.default)({
  25951. 'default': {
  25952. fields: {
  25953. paddingTop: '5px',
  25954. paddingBottom: '9px',
  25955. width: '80px',
  25956. position: 'relative'
  25957. },
  25958. divider: {
  25959. height: '5px'
  25960. },
  25961. RGBwrap: {
  25962. position: 'relative'
  25963. },
  25964. RGBinput: {
  25965. marginLeft: '40%',
  25966. width: '40%',
  25967. height: '18px',
  25968. border: '1px solid #888888',
  25969. boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC',
  25970. marginBottom: '5px',
  25971. fontSize: '13px',
  25972. paddingLeft: '3px',
  25973. marginRight: '10px'
  25974. },
  25975. RGBlabel: {
  25976. left: '0px',
  25977. width: '34px',
  25978. textTransform: 'uppercase',
  25979. fontSize: '13px',
  25980. height: '18px',
  25981. lineHeight: '22px',
  25982. position: 'absolute'
  25983. },
  25984. HEXwrap: {
  25985. position: 'relative'
  25986. },
  25987. HEXinput: {
  25988. marginLeft: '20%',
  25989. width: '80%',
  25990. height: '18px',
  25991. border: '1px solid #888888',
  25992. boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC',
  25993. marginBottom: '6px',
  25994. fontSize: '13px',
  25995. paddingLeft: '3px'
  25996. },
  25997. HEXlabel: {
  25998. position: 'absolute',
  25999. top: '0px',
  26000. left: '0px',
  26001. width: '14px',
  26002. textTransform: 'uppercase',
  26003. fontSize: '13px',
  26004. height: '18px',
  26005. lineHeight: '22px'
  26006. },
  26007. fieldSymbols: {
  26008. position: 'absolute',
  26009. top: '5px',
  26010. right: '-7px',
  26011. fontSize: '13px'
  26012. },
  26013. symbol: {
  26014. height: '20px',
  26015. lineHeight: '22px',
  26016. paddingBottom: '7px'
  26017. }
  26018. }
  26019. });
  26020. var handleChange = function handleChange(data, e) {
  26021. if (data['#']) {
  26022. _color2.default.isValidHex(data['#']) && onChange({
  26023. hex: data['#'],
  26024. source: 'hex'
  26025. }, e);
  26026. } else if (data.r || data.g || data.b) {
  26027. onChange({
  26028. r: data.r || rgb.r,
  26029. g: data.g || rgb.g,
  26030. b: data.b || rgb.b,
  26031. source: 'rgb'
  26032. }, e);
  26033. } else if (data.h || data.s || data.v) {
  26034. onChange({
  26035. h: data.h || hsv.h,
  26036. s: data.s || hsv.s,
  26037. v: data.v || hsv.v,
  26038. source: 'hsv'
  26039. }, e);
  26040. }
  26041. };
  26042. return _react2.default.createElement(
  26043. 'div',
  26044. { style: styles.fields },
  26045. _react2.default.createElement(_common.EditableInput, {
  26046. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  26047. label: 'h',
  26048. value: Math.round(hsv.h),
  26049. onChange: handleChange
  26050. }),
  26051. _react2.default.createElement(_common.EditableInput, {
  26052. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  26053. label: 's',
  26054. value: Math.round(hsv.s * 100),
  26055. onChange: handleChange
  26056. }),
  26057. _react2.default.createElement(_common.EditableInput, {
  26058. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  26059. label: 'v',
  26060. value: Math.round(hsv.v * 100),
  26061. onChange: handleChange
  26062. }),
  26063. _react2.default.createElement('div', { style: styles.divider }),
  26064. _react2.default.createElement(_common.EditableInput, {
  26065. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  26066. label: 'r',
  26067. value: rgb.r,
  26068. onChange: handleChange
  26069. }),
  26070. _react2.default.createElement(_common.EditableInput, {
  26071. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  26072. label: 'g',
  26073. value: rgb.g,
  26074. onChange: handleChange
  26075. }),
  26076. _react2.default.createElement(_common.EditableInput, {
  26077. style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
  26078. label: 'b',
  26079. value: rgb.b,
  26080. onChange: handleChange
  26081. }),
  26082. _react2.default.createElement('div', { style: styles.divider }),
  26083. _react2.default.createElement(_common.EditableInput, {
  26084. style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
  26085. label: '#',
  26086. value: hex.replace('#', ''),
  26087. onChange: handleChange
  26088. }),
  26089. _react2.default.createElement(
  26090. 'div',
  26091. { style: styles.fieldSymbols },
  26092. _react2.default.createElement(
  26093. 'div',
  26094. { style: styles.symbol },
  26095. '\xB0'
  26096. ),
  26097. _react2.default.createElement(
  26098. 'div',
  26099. { style: styles.symbol },
  26100. '%'
  26101. ),
  26102. _react2.default.createElement(
  26103. 'div',
  26104. { style: styles.symbol },
  26105. '%'
  26106. )
  26107. )
  26108. );
  26109. };
  26110. exports.default = PhotoshopPicker;
  26111. /***/ }),
  26112. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js":
  26113. /*!*************************************************************************************************!*\
  26114. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopPointer.js ***!
  26115. \*************************************************************************************************/
  26116. /*! no static exports found */
  26117. /***/ (function(module, exports, __webpack_require__) {
  26118. "use strict";
  26119. Object.defineProperty(exports, "__esModule", {
  26120. value: true
  26121. });
  26122. exports.PhotoshopPointerCircle = undefined;
  26123. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26124. var _react2 = _interopRequireDefault(_react);
  26125. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26126. var _reactcss2 = _interopRequireDefault(_reactcss);
  26127. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26128. var PhotoshopPointerCircle = exports.PhotoshopPointerCircle = function PhotoshopPointerCircle() {
  26129. var styles = (0, _reactcss2.default)({
  26130. 'default': {
  26131. triangle: {
  26132. width: 0,
  26133. height: 0,
  26134. borderStyle: 'solid',
  26135. borderWidth: '4px 0 4px 6px',
  26136. borderColor: 'transparent transparent transparent #fff',
  26137. position: 'absolute',
  26138. top: '1px',
  26139. left: '1px'
  26140. },
  26141. triangleBorder: {
  26142. width: 0,
  26143. height: 0,
  26144. borderStyle: 'solid',
  26145. borderWidth: '5px 0 5px 8px',
  26146. borderColor: 'transparent transparent transparent #555'
  26147. },
  26148. left: {
  26149. Extend: 'triangleBorder',
  26150. transform: 'translate(-13px, -4px)'
  26151. },
  26152. leftInside: {
  26153. Extend: 'triangle',
  26154. transform: 'translate(-8px, -5px)'
  26155. },
  26156. right: {
  26157. Extend: 'triangleBorder',
  26158. transform: 'translate(20px, -14px) rotate(180deg)'
  26159. },
  26160. rightInside: {
  26161. Extend: 'triangle',
  26162. transform: 'translate(-8px, -5px)'
  26163. }
  26164. }
  26165. });
  26166. return _react2.default.createElement(
  26167. 'div',
  26168. { style: styles.pointer },
  26169. _react2.default.createElement(
  26170. 'div',
  26171. { style: styles.left },
  26172. _react2.default.createElement('div', { style: styles.leftInside })
  26173. ),
  26174. _react2.default.createElement(
  26175. 'div',
  26176. { style: styles.right },
  26177. _react2.default.createElement('div', { style: styles.rightInside })
  26178. )
  26179. );
  26180. };
  26181. exports.default = PhotoshopPointerCircle;
  26182. /***/ }),
  26183. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js":
  26184. /*!*******************************************************************************************************!*\
  26185. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopPointerCircle.js ***!
  26186. \*******************************************************************************************************/
  26187. /*! no static exports found */
  26188. /***/ (function(module, exports, __webpack_require__) {
  26189. "use strict";
  26190. Object.defineProperty(exports, "__esModule", {
  26191. value: true
  26192. });
  26193. exports.PhotoshopPointerCircle = undefined;
  26194. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26195. var _react2 = _interopRequireDefault(_react);
  26196. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26197. var _reactcss2 = _interopRequireDefault(_reactcss);
  26198. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26199. var PhotoshopPointerCircle = exports.PhotoshopPointerCircle = function PhotoshopPointerCircle(_ref) {
  26200. var hsl = _ref.hsl;
  26201. var styles = (0, _reactcss2.default)({
  26202. 'default': {
  26203. picker: {
  26204. width: '12px',
  26205. height: '12px',
  26206. borderRadius: '6px',
  26207. boxShadow: 'inset 0 0 0 1px #fff',
  26208. transform: 'translate(-6px, -6px)'
  26209. }
  26210. },
  26211. 'black-outline': {
  26212. picker: {
  26213. boxShadow: 'inset 0 0 0 1px #000'
  26214. }
  26215. }
  26216. }, { 'black-outline': hsl.l > 0.5 });
  26217. return _react2.default.createElement('div', { style: styles.picker });
  26218. };
  26219. exports.default = PhotoshopPointerCircle;
  26220. /***/ }),
  26221. /***/ "../../node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js":
  26222. /*!**************************************************************************************************!*\
  26223. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/photoshop/PhotoshopPreviews.js ***!
  26224. \**************************************************************************************************/
  26225. /*! no static exports found */
  26226. /***/ (function(module, exports, __webpack_require__) {
  26227. "use strict";
  26228. Object.defineProperty(exports, "__esModule", {
  26229. value: true
  26230. });
  26231. exports.PhotoshopPreviews = undefined;
  26232. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26233. var _react2 = _interopRequireDefault(_react);
  26234. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26235. var _reactcss2 = _interopRequireDefault(_reactcss);
  26236. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26237. var PhotoshopPreviews = exports.PhotoshopPreviews = function PhotoshopPreviews(_ref) {
  26238. var rgb = _ref.rgb,
  26239. currentColor = _ref.currentColor;
  26240. var styles = (0, _reactcss2.default)({
  26241. 'default': {
  26242. swatches: {
  26243. border: '1px solid #B3B3B3',
  26244. borderBottom: '1px solid #F0F0F0',
  26245. marginBottom: '2px',
  26246. marginTop: '1px'
  26247. },
  26248. new: {
  26249. height: '34px',
  26250. background: 'rgb(' + rgb.r + ',' + rgb.g + ', ' + rgb.b + ')',
  26251. boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000'
  26252. },
  26253. current: {
  26254. height: '34px',
  26255. background: currentColor,
  26256. boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000'
  26257. },
  26258. label: {
  26259. fontSize: '14px',
  26260. color: '#000',
  26261. textAlign: 'center'
  26262. }
  26263. }
  26264. });
  26265. return _react2.default.createElement(
  26266. 'div',
  26267. null,
  26268. _react2.default.createElement(
  26269. 'div',
  26270. { style: styles.label },
  26271. 'new'
  26272. ),
  26273. _react2.default.createElement(
  26274. 'div',
  26275. { style: styles.swatches },
  26276. _react2.default.createElement('div', { style: styles.new }),
  26277. _react2.default.createElement('div', { style: styles.current })
  26278. ),
  26279. _react2.default.createElement(
  26280. 'div',
  26281. { style: styles.label },
  26282. 'current'
  26283. )
  26284. );
  26285. };
  26286. exports.default = PhotoshopPreviews;
  26287. /***/ }),
  26288. /***/ "../../node_modules/react-color/lib/components/sketch/Sketch.js":
  26289. /*!************************************************************************************!*\
  26290. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/sketch/Sketch.js ***!
  26291. \************************************************************************************/
  26292. /*! no static exports found */
  26293. /***/ (function(module, exports, __webpack_require__) {
  26294. "use strict";
  26295. Object.defineProperty(exports, "__esModule", {
  26296. value: true
  26297. });
  26298. exports.Sketch = undefined;
  26299. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  26300. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26301. var _react2 = _interopRequireDefault(_react);
  26302. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  26303. var _propTypes2 = _interopRequireDefault(_propTypes);
  26304. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26305. var _reactcss2 = _interopRequireDefault(_reactcss);
  26306. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  26307. var _merge2 = _interopRequireDefault(_merge);
  26308. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  26309. var _SketchFields = __webpack_require__(/*! ./SketchFields */ "../../node_modules/react-color/lib/components/sketch/SketchFields.js");
  26310. var _SketchFields2 = _interopRequireDefault(_SketchFields);
  26311. var _SketchPresetColors = __webpack_require__(/*! ./SketchPresetColors */ "../../node_modules/react-color/lib/components/sketch/SketchPresetColors.js");
  26312. var _SketchPresetColors2 = _interopRequireDefault(_SketchPresetColors);
  26313. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26314. var Sketch = exports.Sketch = function Sketch(_ref) {
  26315. var width = _ref.width,
  26316. rgb = _ref.rgb,
  26317. hex = _ref.hex,
  26318. hsv = _ref.hsv,
  26319. hsl = _ref.hsl,
  26320. onChange = _ref.onChange,
  26321. onSwatchHover = _ref.onSwatchHover,
  26322. disableAlpha = _ref.disableAlpha,
  26323. presetColors = _ref.presetColors,
  26324. renderers = _ref.renderers,
  26325. _ref$styles = _ref.styles,
  26326. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  26327. _ref$className = _ref.className,
  26328. className = _ref$className === undefined ? '' : _ref$className;
  26329. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  26330. 'default': _extends({
  26331. picker: {
  26332. width: width,
  26333. padding: '10px 10px 0',
  26334. boxSizing: 'initial',
  26335. background: '#fff',
  26336. borderRadius: '4px',
  26337. boxShadow: '0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)'
  26338. },
  26339. saturation: {
  26340. width: '100%',
  26341. paddingBottom: '75%',
  26342. position: 'relative',
  26343. overflow: 'hidden'
  26344. },
  26345. Saturation: {
  26346. radius: '3px',
  26347. shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  26348. },
  26349. controls: {
  26350. display: 'flex'
  26351. },
  26352. sliders: {
  26353. padding: '4px 0',
  26354. flex: '1'
  26355. },
  26356. color: {
  26357. width: '24px',
  26358. height: '24px',
  26359. position: 'relative',
  26360. marginTop: '4px',
  26361. marginLeft: '4px',
  26362. borderRadius: '3px'
  26363. },
  26364. activeColor: {
  26365. absolute: '0px 0px 0px 0px',
  26366. borderRadius: '2px',
  26367. background: 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + rgb.a + ')',
  26368. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  26369. },
  26370. hue: {
  26371. position: 'relative',
  26372. height: '10px',
  26373. overflow: 'hidden'
  26374. },
  26375. Hue: {
  26376. radius: '2px',
  26377. shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  26378. },
  26379. alpha: {
  26380. position: 'relative',
  26381. height: '10px',
  26382. marginTop: '4px',
  26383. overflow: 'hidden'
  26384. },
  26385. Alpha: {
  26386. radius: '2px',
  26387. shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
  26388. }
  26389. }, passedStyles),
  26390. 'disableAlpha': {
  26391. color: {
  26392. height: '10px'
  26393. },
  26394. hue: {
  26395. height: '10px'
  26396. },
  26397. alpha: {
  26398. display: 'none'
  26399. }
  26400. }
  26401. }, passedStyles), { disableAlpha: disableAlpha });
  26402. return _react2.default.createElement(
  26403. 'div',
  26404. { style: styles.picker, className: 'sketch-picker ' + className },
  26405. _react2.default.createElement(
  26406. 'div',
  26407. { style: styles.saturation },
  26408. _react2.default.createElement(_common.Saturation, {
  26409. style: styles.Saturation,
  26410. hsl: hsl,
  26411. hsv: hsv,
  26412. onChange: onChange
  26413. })
  26414. ),
  26415. _react2.default.createElement(
  26416. 'div',
  26417. { style: styles.controls, className: 'flexbox-fix' },
  26418. _react2.default.createElement(
  26419. 'div',
  26420. { style: styles.sliders },
  26421. _react2.default.createElement(
  26422. 'div',
  26423. { style: styles.hue },
  26424. _react2.default.createElement(_common.Hue, {
  26425. style: styles.Hue,
  26426. hsl: hsl,
  26427. onChange: onChange
  26428. })
  26429. ),
  26430. _react2.default.createElement(
  26431. 'div',
  26432. { style: styles.alpha },
  26433. _react2.default.createElement(_common.Alpha, {
  26434. style: styles.Alpha,
  26435. rgb: rgb,
  26436. hsl: hsl,
  26437. renderers: renderers,
  26438. onChange: onChange
  26439. })
  26440. )
  26441. ),
  26442. _react2.default.createElement(
  26443. 'div',
  26444. { style: styles.color },
  26445. _react2.default.createElement(_common.Checkboard, null),
  26446. _react2.default.createElement('div', { style: styles.activeColor })
  26447. )
  26448. ),
  26449. _react2.default.createElement(_SketchFields2.default, {
  26450. rgb: rgb,
  26451. hsl: hsl,
  26452. hex: hex,
  26453. onChange: onChange,
  26454. disableAlpha: disableAlpha
  26455. }),
  26456. _react2.default.createElement(_SketchPresetColors2.default, {
  26457. colors: presetColors,
  26458. onClick: onChange,
  26459. onSwatchHover: onSwatchHover
  26460. })
  26461. );
  26462. };
  26463. Sketch.propTypes = {
  26464. disableAlpha: _propTypes2.default.bool,
  26465. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  26466. styles: _propTypes2.default.object
  26467. };
  26468. Sketch.defaultProps = {
  26469. disableAlpha: false,
  26470. width: 200,
  26471. styles: {},
  26472. presetColors: ['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF']
  26473. };
  26474. exports.default = (0, _common.ColorWrap)(Sketch);
  26475. /***/ }),
  26476. /***/ "../../node_modules/react-color/lib/components/sketch/SketchFields.js":
  26477. /*!******************************************************************************************!*\
  26478. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/sketch/SketchFields.js ***!
  26479. \******************************************************************************************/
  26480. /*! no static exports found */
  26481. /***/ (function(module, exports, __webpack_require__) {
  26482. "use strict";
  26483. Object.defineProperty(exports, "__esModule", {
  26484. value: true
  26485. });
  26486. exports.SketchFields = undefined;
  26487. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26488. var _react2 = _interopRequireDefault(_react);
  26489. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26490. var _reactcss2 = _interopRequireDefault(_reactcss);
  26491. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  26492. var _color2 = _interopRequireDefault(_color);
  26493. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  26494. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26495. /* eslint-disable no-param-reassign */
  26496. var SketchFields = exports.SketchFields = function SketchFields(_ref) {
  26497. var onChange = _ref.onChange,
  26498. rgb = _ref.rgb,
  26499. hsl = _ref.hsl,
  26500. hex = _ref.hex,
  26501. disableAlpha = _ref.disableAlpha;
  26502. var styles = (0, _reactcss2.default)({
  26503. 'default': {
  26504. fields: {
  26505. display: 'flex',
  26506. paddingTop: '4px'
  26507. },
  26508. single: {
  26509. flex: '1',
  26510. paddingLeft: '6px'
  26511. },
  26512. alpha: {
  26513. flex: '1',
  26514. paddingLeft: '6px'
  26515. },
  26516. double: {
  26517. flex: '2'
  26518. },
  26519. input: {
  26520. width: '80%',
  26521. padding: '4px 10% 3px',
  26522. border: 'none',
  26523. boxShadow: 'inset 0 0 0 1px #ccc',
  26524. fontSize: '11px'
  26525. },
  26526. label: {
  26527. display: 'block',
  26528. textAlign: 'center',
  26529. fontSize: '11px',
  26530. color: '#222',
  26531. paddingTop: '3px',
  26532. paddingBottom: '4px',
  26533. textTransform: 'capitalize'
  26534. }
  26535. },
  26536. 'disableAlpha': {
  26537. alpha: {
  26538. display: 'none'
  26539. }
  26540. }
  26541. }, { disableAlpha: disableAlpha });
  26542. var handleChange = function handleChange(data, e) {
  26543. if (data.hex) {
  26544. _color2.default.isValidHex(data.hex) && onChange({
  26545. hex: data.hex,
  26546. source: 'hex'
  26547. }, e);
  26548. } else if (data.r || data.g || data.b) {
  26549. onChange({
  26550. r: data.r || rgb.r,
  26551. g: data.g || rgb.g,
  26552. b: data.b || rgb.b,
  26553. a: rgb.a,
  26554. source: 'rgb'
  26555. }, e);
  26556. } else if (data.a) {
  26557. if (data.a < 0) {
  26558. data.a = 0;
  26559. } else if (data.a > 100) {
  26560. data.a = 100;
  26561. }
  26562. data.a /= 100;
  26563. onChange({
  26564. h: hsl.h,
  26565. s: hsl.s,
  26566. l: hsl.l,
  26567. a: data.a,
  26568. source: 'rgb'
  26569. }, e);
  26570. }
  26571. };
  26572. return _react2.default.createElement(
  26573. 'div',
  26574. { style: styles.fields, className: 'flexbox-fix' },
  26575. _react2.default.createElement(
  26576. 'div',
  26577. { style: styles.double },
  26578. _react2.default.createElement(_common.EditableInput, {
  26579. style: { input: styles.input, label: styles.label },
  26580. label: 'hex',
  26581. value: hex.replace('#', ''),
  26582. onChange: handleChange
  26583. })
  26584. ),
  26585. _react2.default.createElement(
  26586. 'div',
  26587. { style: styles.single },
  26588. _react2.default.createElement(_common.EditableInput, {
  26589. style: { input: styles.input, label: styles.label },
  26590. label: 'r',
  26591. value: rgb.r,
  26592. onChange: handleChange,
  26593. dragLabel: 'true',
  26594. dragMax: '255'
  26595. })
  26596. ),
  26597. _react2.default.createElement(
  26598. 'div',
  26599. { style: styles.single },
  26600. _react2.default.createElement(_common.EditableInput, {
  26601. style: { input: styles.input, label: styles.label },
  26602. label: 'g',
  26603. value: rgb.g,
  26604. onChange: handleChange,
  26605. dragLabel: 'true',
  26606. dragMax: '255'
  26607. })
  26608. ),
  26609. _react2.default.createElement(
  26610. 'div',
  26611. { style: styles.single },
  26612. _react2.default.createElement(_common.EditableInput, {
  26613. style: { input: styles.input, label: styles.label },
  26614. label: 'b',
  26615. value: rgb.b,
  26616. onChange: handleChange,
  26617. dragLabel: 'true',
  26618. dragMax: '255'
  26619. })
  26620. ),
  26621. _react2.default.createElement(
  26622. 'div',
  26623. { style: styles.alpha },
  26624. _react2.default.createElement(_common.EditableInput, {
  26625. style: { input: styles.input, label: styles.label },
  26626. label: 'a',
  26627. value: Math.round(rgb.a * 100),
  26628. onChange: handleChange,
  26629. dragLabel: 'true',
  26630. dragMax: '100'
  26631. })
  26632. )
  26633. );
  26634. };
  26635. exports.default = SketchFields;
  26636. /***/ }),
  26637. /***/ "../../node_modules/react-color/lib/components/sketch/SketchPresetColors.js":
  26638. /*!************************************************************************************************!*\
  26639. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/sketch/SketchPresetColors.js ***!
  26640. \************************************************************************************************/
  26641. /*! no static exports found */
  26642. /***/ (function(module, exports, __webpack_require__) {
  26643. "use strict";
  26644. Object.defineProperty(exports, "__esModule", {
  26645. value: true
  26646. });
  26647. exports.SketchPresetColors = undefined;
  26648. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  26649. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26650. var _react2 = _interopRequireDefault(_react);
  26651. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  26652. var _propTypes2 = _interopRequireDefault(_propTypes);
  26653. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26654. var _reactcss2 = _interopRequireDefault(_reactcss);
  26655. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  26656. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26657. var SketchPresetColors = exports.SketchPresetColors = function SketchPresetColors(_ref) {
  26658. var colors = _ref.colors,
  26659. _ref$onClick = _ref.onClick,
  26660. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  26661. onSwatchHover = _ref.onSwatchHover;
  26662. var styles = (0, _reactcss2.default)({
  26663. 'default': {
  26664. colors: {
  26665. margin: '0 -10px',
  26666. padding: '10px 0 0 10px',
  26667. borderTop: '1px solid #eee',
  26668. display: 'flex',
  26669. flexWrap: 'wrap',
  26670. position: 'relative'
  26671. },
  26672. swatchWrap: {
  26673. width: '16px',
  26674. height: '16px',
  26675. margin: '0 10px 10px 0'
  26676. },
  26677. swatch: {
  26678. borderRadius: '3px',
  26679. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15)'
  26680. }
  26681. },
  26682. 'no-presets': {
  26683. colors: {
  26684. display: 'none'
  26685. }
  26686. }
  26687. }, {
  26688. 'no-presets': !colors || !colors.length
  26689. });
  26690. var handleClick = function handleClick(hex, e) {
  26691. onClick({
  26692. hex: hex,
  26693. source: 'hex'
  26694. }, e);
  26695. };
  26696. return _react2.default.createElement(
  26697. 'div',
  26698. { style: styles.colors, className: 'flexbox-fix' },
  26699. colors.map(function (colorObjOrString) {
  26700. var c = typeof colorObjOrString === 'string' ? { color: colorObjOrString } : colorObjOrString;
  26701. var key = '' + c.color + (c.title || '');
  26702. return _react2.default.createElement(
  26703. 'div',
  26704. { key: key, style: styles.swatchWrap },
  26705. _react2.default.createElement(_common.Swatch, _extends({}, c, {
  26706. style: styles.swatch,
  26707. onClick: handleClick,
  26708. onHover: onSwatchHover,
  26709. focusStyle: {
  26710. boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ' + c.color
  26711. }
  26712. }))
  26713. );
  26714. })
  26715. );
  26716. };
  26717. SketchPresetColors.propTypes = {
  26718. colors: _propTypes2.default.arrayOf(_propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({
  26719. color: _propTypes2.default.string,
  26720. title: _propTypes2.default.string
  26721. })])).isRequired
  26722. };
  26723. exports.default = SketchPresetColors;
  26724. /***/ }),
  26725. /***/ "../../node_modules/react-color/lib/components/slider/Slider.js":
  26726. /*!************************************************************************************!*\
  26727. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/Slider.js ***!
  26728. \************************************************************************************/
  26729. /*! no static exports found */
  26730. /***/ (function(module, exports, __webpack_require__) {
  26731. "use strict";
  26732. Object.defineProperty(exports, "__esModule", {
  26733. value: true
  26734. });
  26735. exports.Slider = undefined;
  26736. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26737. var _react2 = _interopRequireDefault(_react);
  26738. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  26739. var _propTypes2 = _interopRequireDefault(_propTypes);
  26740. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26741. var _reactcss2 = _interopRequireDefault(_reactcss);
  26742. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  26743. var _merge2 = _interopRequireDefault(_merge);
  26744. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  26745. var _SliderSwatches = __webpack_require__(/*! ./SliderSwatches */ "../../node_modules/react-color/lib/components/slider/SliderSwatches.js");
  26746. var _SliderSwatches2 = _interopRequireDefault(_SliderSwatches);
  26747. var _SliderPointer = __webpack_require__(/*! ./SliderPointer */ "../../node_modules/react-color/lib/components/slider/SliderPointer.js");
  26748. var _SliderPointer2 = _interopRequireDefault(_SliderPointer);
  26749. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26750. var Slider = exports.Slider = function Slider(_ref) {
  26751. var hsl = _ref.hsl,
  26752. onChange = _ref.onChange,
  26753. pointer = _ref.pointer,
  26754. _ref$styles = _ref.styles,
  26755. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  26756. _ref$className = _ref.className,
  26757. className = _ref$className === undefined ? '' : _ref$className;
  26758. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  26759. 'default': {
  26760. hue: {
  26761. height: '12px',
  26762. position: 'relative'
  26763. },
  26764. Hue: {
  26765. radius: '2px'
  26766. }
  26767. }
  26768. }, passedStyles));
  26769. return _react2.default.createElement(
  26770. 'div',
  26771. { style: styles.wrap || {}, className: 'slider-picker ' + className },
  26772. _react2.default.createElement(
  26773. 'div',
  26774. { style: styles.hue },
  26775. _react2.default.createElement(_common.Hue, {
  26776. style: styles.Hue,
  26777. hsl: hsl,
  26778. pointer: pointer,
  26779. onChange: onChange
  26780. })
  26781. ),
  26782. _react2.default.createElement(
  26783. 'div',
  26784. { style: styles.swatches },
  26785. _react2.default.createElement(_SliderSwatches2.default, { hsl: hsl, onClick: onChange })
  26786. )
  26787. );
  26788. };
  26789. Slider.propTypes = {
  26790. styles: _propTypes2.default.object
  26791. };
  26792. Slider.defaultProps = {
  26793. pointer: _SliderPointer2.default,
  26794. styles: {}
  26795. };
  26796. exports.default = (0, _common.ColorWrap)(Slider);
  26797. /***/ }),
  26798. /***/ "../../node_modules/react-color/lib/components/slider/SliderPointer.js":
  26799. /*!*******************************************************************************************!*\
  26800. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/SliderPointer.js ***!
  26801. \*******************************************************************************************/
  26802. /*! no static exports found */
  26803. /***/ (function(module, exports, __webpack_require__) {
  26804. "use strict";
  26805. Object.defineProperty(exports, "__esModule", {
  26806. value: true
  26807. });
  26808. exports.SliderPointer = undefined;
  26809. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26810. var _react2 = _interopRequireDefault(_react);
  26811. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26812. var _reactcss2 = _interopRequireDefault(_reactcss);
  26813. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26814. var SliderPointer = exports.SliderPointer = function SliderPointer() {
  26815. var styles = (0, _reactcss2.default)({
  26816. 'default': {
  26817. picker: {
  26818. width: '14px',
  26819. height: '14px',
  26820. borderRadius: '6px',
  26821. transform: 'translate(-7px, -1px)',
  26822. backgroundColor: 'rgb(248, 248, 248)',
  26823. boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
  26824. }
  26825. }
  26826. });
  26827. return _react2.default.createElement('div', { style: styles.picker });
  26828. };
  26829. exports.default = SliderPointer;
  26830. /***/ }),
  26831. /***/ "../../node_modules/react-color/lib/components/slider/SliderSwatch.js":
  26832. /*!******************************************************************************************!*\
  26833. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/SliderSwatch.js ***!
  26834. \******************************************************************************************/
  26835. /*! no static exports found */
  26836. /***/ (function(module, exports, __webpack_require__) {
  26837. "use strict";
  26838. Object.defineProperty(exports, "__esModule", {
  26839. value: true
  26840. });
  26841. exports.SliderSwatch = undefined;
  26842. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26843. var _react2 = _interopRequireDefault(_react);
  26844. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26845. var _reactcss2 = _interopRequireDefault(_reactcss);
  26846. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26847. var SliderSwatch = exports.SliderSwatch = function SliderSwatch(_ref) {
  26848. var hsl = _ref.hsl,
  26849. offset = _ref.offset,
  26850. _ref$onClick = _ref.onClick,
  26851. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  26852. active = _ref.active,
  26853. first = _ref.first,
  26854. last = _ref.last;
  26855. var styles = (0, _reactcss2.default)({
  26856. 'default': {
  26857. swatch: {
  26858. height: '12px',
  26859. background: 'hsl(' + hsl.h + ', 50%, ' + offset * 100 + '%)',
  26860. cursor: 'pointer'
  26861. }
  26862. },
  26863. 'first': {
  26864. swatch: {
  26865. borderRadius: '2px 0 0 2px'
  26866. }
  26867. },
  26868. 'last': {
  26869. swatch: {
  26870. borderRadius: '0 2px 2px 0'
  26871. }
  26872. },
  26873. 'active': {
  26874. swatch: {
  26875. transform: 'scaleY(1.8)',
  26876. borderRadius: '3.6px/2px'
  26877. }
  26878. }
  26879. }, { active: active, first: first, last: last });
  26880. var handleClick = function handleClick(e) {
  26881. return onClick({
  26882. h: hsl.h,
  26883. s: 0.5,
  26884. l: offset,
  26885. source: 'hsl'
  26886. }, e);
  26887. };
  26888. return _react2.default.createElement('div', { style: styles.swatch, onClick: handleClick });
  26889. };
  26890. exports.default = SliderSwatch;
  26891. /***/ }),
  26892. /***/ "../../node_modules/react-color/lib/components/slider/SliderSwatches.js":
  26893. /*!********************************************************************************************!*\
  26894. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/slider/SliderSwatches.js ***!
  26895. \********************************************************************************************/
  26896. /*! no static exports found */
  26897. /***/ (function(module, exports, __webpack_require__) {
  26898. "use strict";
  26899. Object.defineProperty(exports, "__esModule", {
  26900. value: true
  26901. });
  26902. exports.SliderSwatches = undefined;
  26903. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  26904. var _react2 = _interopRequireDefault(_react);
  26905. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  26906. var _reactcss2 = _interopRequireDefault(_reactcss);
  26907. var _SliderSwatch = __webpack_require__(/*! ./SliderSwatch */ "../../node_modules/react-color/lib/components/slider/SliderSwatch.js");
  26908. var _SliderSwatch2 = _interopRequireDefault(_SliderSwatch);
  26909. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26910. var SliderSwatches = exports.SliderSwatches = function SliderSwatches(_ref) {
  26911. var onClick = _ref.onClick,
  26912. hsl = _ref.hsl;
  26913. var styles = (0, _reactcss2.default)({
  26914. 'default': {
  26915. swatches: {
  26916. marginTop: '20px'
  26917. },
  26918. swatch: {
  26919. boxSizing: 'border-box',
  26920. width: '20%',
  26921. paddingRight: '1px',
  26922. float: 'left'
  26923. },
  26924. clear: {
  26925. clear: 'both'
  26926. }
  26927. }
  26928. });
  26929. // Acceptible difference in floating point equality
  26930. var epsilon = 0.1;
  26931. return _react2.default.createElement(
  26932. 'div',
  26933. { style: styles.swatches },
  26934. _react2.default.createElement(
  26935. 'div',
  26936. { style: styles.swatch },
  26937. _react2.default.createElement(_SliderSwatch2.default, {
  26938. hsl: hsl,
  26939. offset: '.80',
  26940. active: Math.abs(hsl.l - 0.80) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  26941. onClick: onClick,
  26942. first: true
  26943. })
  26944. ),
  26945. _react2.default.createElement(
  26946. 'div',
  26947. { style: styles.swatch },
  26948. _react2.default.createElement(_SliderSwatch2.default, {
  26949. hsl: hsl,
  26950. offset: '.65',
  26951. active: Math.abs(hsl.l - 0.65) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  26952. onClick: onClick
  26953. })
  26954. ),
  26955. _react2.default.createElement(
  26956. 'div',
  26957. { style: styles.swatch },
  26958. _react2.default.createElement(_SliderSwatch2.default, {
  26959. hsl: hsl,
  26960. offset: '.50',
  26961. active: Math.abs(hsl.l - 0.50) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  26962. onClick: onClick
  26963. })
  26964. ),
  26965. _react2.default.createElement(
  26966. 'div',
  26967. { style: styles.swatch },
  26968. _react2.default.createElement(_SliderSwatch2.default, {
  26969. hsl: hsl,
  26970. offset: '.35',
  26971. active: Math.abs(hsl.l - 0.35) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  26972. onClick: onClick
  26973. })
  26974. ),
  26975. _react2.default.createElement(
  26976. 'div',
  26977. { style: styles.swatch },
  26978. _react2.default.createElement(_SliderSwatch2.default, {
  26979. hsl: hsl,
  26980. offset: '.20',
  26981. active: Math.abs(hsl.l - 0.20) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
  26982. onClick: onClick,
  26983. last: true
  26984. })
  26985. ),
  26986. _react2.default.createElement('div', { style: styles.clear })
  26987. );
  26988. };
  26989. exports.default = SliderSwatches;
  26990. /***/ }),
  26991. /***/ "../../node_modules/react-color/lib/components/swatches/Swatches.js":
  26992. /*!****************************************************************************************!*\
  26993. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/swatches/Swatches.js ***!
  26994. \****************************************************************************************/
  26995. /*! no static exports found */
  26996. /***/ (function(module, exports, __webpack_require__) {
  26997. "use strict";
  26998. Object.defineProperty(exports, "__esModule", {
  26999. value: true
  27000. });
  27001. exports.Swatches = undefined;
  27002. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  27003. var _react2 = _interopRequireDefault(_react);
  27004. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  27005. var _propTypes2 = _interopRequireDefault(_propTypes);
  27006. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  27007. var _reactcss2 = _interopRequireDefault(_reactcss);
  27008. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  27009. var _map2 = _interopRequireDefault(_map);
  27010. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  27011. var _merge2 = _interopRequireDefault(_merge);
  27012. var _materialColors = __webpack_require__(/*! material-colors */ "../../node_modules/material-colors/dist/colors.es2015.js");
  27013. var material = _interopRequireWildcard(_materialColors);
  27014. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  27015. var _SwatchesGroup = __webpack_require__(/*! ./SwatchesGroup */ "../../node_modules/react-color/lib/components/swatches/SwatchesGroup.js");
  27016. var _SwatchesGroup2 = _interopRequireDefault(_SwatchesGroup);
  27017. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  27018. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27019. var Swatches = exports.Swatches = function Swatches(_ref) {
  27020. var width = _ref.width,
  27021. height = _ref.height,
  27022. onChange = _ref.onChange,
  27023. onSwatchHover = _ref.onSwatchHover,
  27024. colors = _ref.colors,
  27025. hex = _ref.hex,
  27026. _ref$styles = _ref.styles,
  27027. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  27028. _ref$className = _ref.className,
  27029. className = _ref$className === undefined ? '' : _ref$className;
  27030. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  27031. 'default': {
  27032. picker: {
  27033. width: width,
  27034. height: height
  27035. },
  27036. overflow: {
  27037. height: height,
  27038. overflowY: 'scroll'
  27039. },
  27040. body: {
  27041. padding: '16px 0 6px 16px'
  27042. },
  27043. clear: {
  27044. clear: 'both'
  27045. }
  27046. }
  27047. }, passedStyles));
  27048. var handleChange = function handleChange(data, e) {
  27049. return onChange({ hex: data, source: 'hex' }, e);
  27050. };
  27051. return _react2.default.createElement(
  27052. 'div',
  27053. { style: styles.picker, className: 'swatches-picker ' + className },
  27054. _react2.default.createElement(
  27055. _common.Raised,
  27056. null,
  27057. _react2.default.createElement(
  27058. 'div',
  27059. { style: styles.overflow },
  27060. _react2.default.createElement(
  27061. 'div',
  27062. { style: styles.body },
  27063. (0, _map2.default)(colors, function (group) {
  27064. return _react2.default.createElement(_SwatchesGroup2.default, {
  27065. key: group.toString(),
  27066. group: group,
  27067. active: hex,
  27068. onClick: handleChange,
  27069. onSwatchHover: onSwatchHover
  27070. });
  27071. }),
  27072. _react2.default.createElement('div', { style: styles.clear })
  27073. )
  27074. )
  27075. )
  27076. );
  27077. };
  27078. Swatches.propTypes = {
  27079. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  27080. height: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  27081. colors: _propTypes2.default.arrayOf(_propTypes2.default.arrayOf(_propTypes2.default.string)),
  27082. styles: _propTypes2.default.object
  27083. /* eslint-disable max-len */
  27084. };Swatches.defaultProps = {
  27085. width: 320,
  27086. height: 240,
  27087. colors: [[material.red['900'], material.red['700'], material.red['500'], material.red['300'], material.red['100']], [material.pink['900'], material.pink['700'], material.pink['500'], material.pink['300'], material.pink['100']], [material.purple['900'], material.purple['700'], material.purple['500'], material.purple['300'], material.purple['100']], [material.deepPurple['900'], material.deepPurple['700'], material.deepPurple['500'], material.deepPurple['300'], material.deepPurple['100']], [material.indigo['900'], material.indigo['700'], material.indigo['500'], material.indigo['300'], material.indigo['100']], [material.blue['900'], material.blue['700'], material.blue['500'], material.blue['300'], material.blue['100']], [material.lightBlue['900'], material.lightBlue['700'], material.lightBlue['500'], material.lightBlue['300'], material.lightBlue['100']], [material.cyan['900'], material.cyan['700'], material.cyan['500'], material.cyan['300'], material.cyan['100']], [material.teal['900'], material.teal['700'], material.teal['500'], material.teal['300'], material.teal['100']], ['#194D33', material.green['700'], material.green['500'], material.green['300'], material.green['100']], [material.lightGreen['900'], material.lightGreen['700'], material.lightGreen['500'], material.lightGreen['300'], material.lightGreen['100']], [material.lime['900'], material.lime['700'], material.lime['500'], material.lime['300'], material.lime['100']], [material.yellow['900'], material.yellow['700'], material.yellow['500'], material.yellow['300'], material.yellow['100']], [material.amber['900'], material.amber['700'], material.amber['500'], material.amber['300'], material.amber['100']], [material.orange['900'], material.orange['700'], material.orange['500'], material.orange['300'], material.orange['100']], [material.deepOrange['900'], material.deepOrange['700'], material.deepOrange['500'], material.deepOrange['300'], material.deepOrange['100']], [material.brown['900'], material.brown['700'], material.brown['500'], material.brown['300'], material.brown['100']], [material.blueGrey['900'], material.blueGrey['700'], material.blueGrey['500'], material.blueGrey['300'], material.blueGrey['100']], ['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF']],
  27088. styles: {}
  27089. };
  27090. exports.default = (0, _common.ColorWrap)(Swatches);
  27091. /***/ }),
  27092. /***/ "../../node_modules/react-color/lib/components/swatches/SwatchesColor.js":
  27093. /*!*********************************************************************************************!*\
  27094. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/swatches/SwatchesColor.js ***!
  27095. \*********************************************************************************************/
  27096. /*! no static exports found */
  27097. /***/ (function(module, exports, __webpack_require__) {
  27098. "use strict";
  27099. Object.defineProperty(exports, "__esModule", {
  27100. value: true
  27101. });
  27102. exports.SwatchesColor = undefined;
  27103. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  27104. var _react2 = _interopRequireDefault(_react);
  27105. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  27106. var _reactcss2 = _interopRequireDefault(_reactcss);
  27107. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  27108. var _color2 = _interopRequireDefault(_color);
  27109. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  27110. var _CheckIcon = __webpack_require__(/*! @icons/material/CheckIcon */ "../../node_modules/@icons/material/CheckIcon.js");
  27111. var _CheckIcon2 = _interopRequireDefault(_CheckIcon);
  27112. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27113. var SwatchesColor = exports.SwatchesColor = function SwatchesColor(_ref) {
  27114. var color = _ref.color,
  27115. _ref$onClick = _ref.onClick,
  27116. onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
  27117. onSwatchHover = _ref.onSwatchHover,
  27118. first = _ref.first,
  27119. last = _ref.last,
  27120. active = _ref.active;
  27121. var styles = (0, _reactcss2.default)({
  27122. 'default': {
  27123. color: {
  27124. width: '40px',
  27125. height: '24px',
  27126. cursor: 'pointer',
  27127. background: color,
  27128. marginBottom: '1px'
  27129. },
  27130. check: {
  27131. color: _color2.default.getContrastingColor(color),
  27132. marginLeft: '8px',
  27133. display: 'none'
  27134. }
  27135. },
  27136. 'first': {
  27137. color: {
  27138. overflow: 'hidden',
  27139. borderRadius: '2px 2px 0 0'
  27140. }
  27141. },
  27142. 'last': {
  27143. color: {
  27144. overflow: 'hidden',
  27145. borderRadius: '0 0 2px 2px'
  27146. }
  27147. },
  27148. 'active': {
  27149. check: {
  27150. display: 'block'
  27151. }
  27152. },
  27153. 'color-#FFFFFF': {
  27154. color: {
  27155. boxShadow: 'inset 0 0 0 1px #ddd'
  27156. },
  27157. check: {
  27158. color: '#333'
  27159. }
  27160. },
  27161. 'transparent': {
  27162. check: {
  27163. color: '#333'
  27164. }
  27165. }
  27166. }, {
  27167. first: first,
  27168. last: last,
  27169. active: active,
  27170. 'color-#FFFFFF': color === '#FFFFFF',
  27171. 'transparent': color === 'transparent'
  27172. });
  27173. return _react2.default.createElement(
  27174. _common.Swatch,
  27175. {
  27176. color: color,
  27177. style: styles.color,
  27178. onClick: onClick,
  27179. onHover: onSwatchHover,
  27180. focusStyle: { boxShadow: '0 0 4px ' + color }
  27181. },
  27182. _react2.default.createElement(
  27183. 'div',
  27184. { style: styles.check },
  27185. _react2.default.createElement(_CheckIcon2.default, null)
  27186. )
  27187. );
  27188. };
  27189. exports.default = SwatchesColor;
  27190. /***/ }),
  27191. /***/ "../../node_modules/react-color/lib/components/swatches/SwatchesGroup.js":
  27192. /*!*********************************************************************************************!*\
  27193. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/swatches/SwatchesGroup.js ***!
  27194. \*********************************************************************************************/
  27195. /*! no static exports found */
  27196. /***/ (function(module, exports, __webpack_require__) {
  27197. "use strict";
  27198. Object.defineProperty(exports, "__esModule", {
  27199. value: true
  27200. });
  27201. exports.SwatchesGroup = undefined;
  27202. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  27203. var _react2 = _interopRequireDefault(_react);
  27204. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  27205. var _reactcss2 = _interopRequireDefault(_reactcss);
  27206. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  27207. var _map2 = _interopRequireDefault(_map);
  27208. var _SwatchesColor = __webpack_require__(/*! ./SwatchesColor */ "../../node_modules/react-color/lib/components/swatches/SwatchesColor.js");
  27209. var _SwatchesColor2 = _interopRequireDefault(_SwatchesColor);
  27210. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27211. var SwatchesGroup = exports.SwatchesGroup = function SwatchesGroup(_ref) {
  27212. var onClick = _ref.onClick,
  27213. onSwatchHover = _ref.onSwatchHover,
  27214. group = _ref.group,
  27215. active = _ref.active;
  27216. var styles = (0, _reactcss2.default)({
  27217. 'default': {
  27218. group: {
  27219. paddingBottom: '10px',
  27220. width: '40px',
  27221. float: 'left',
  27222. marginRight: '10px'
  27223. }
  27224. }
  27225. });
  27226. return _react2.default.createElement(
  27227. 'div',
  27228. { style: styles.group },
  27229. (0, _map2.default)(group, function (color, i) {
  27230. return _react2.default.createElement(_SwatchesColor2.default, {
  27231. key: color,
  27232. color: color,
  27233. active: color.toLowerCase() === active,
  27234. first: i === 0,
  27235. last: i === group.length - 1,
  27236. onClick: onClick,
  27237. onSwatchHover: onSwatchHover
  27238. });
  27239. })
  27240. );
  27241. };
  27242. exports.default = SwatchesGroup;
  27243. /***/ }),
  27244. /***/ "../../node_modules/react-color/lib/components/twitter/Twitter.js":
  27245. /*!**************************************************************************************!*\
  27246. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/components/twitter/Twitter.js ***!
  27247. \**************************************************************************************/
  27248. /*! no static exports found */
  27249. /***/ (function(module, exports, __webpack_require__) {
  27250. "use strict";
  27251. Object.defineProperty(exports, "__esModule", {
  27252. value: true
  27253. });
  27254. exports.Twitter = undefined;
  27255. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  27256. var _react2 = _interopRequireDefault(_react);
  27257. var _propTypes = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  27258. var _propTypes2 = _interopRequireDefault(_propTypes);
  27259. var _reactcss = __webpack_require__(/*! reactcss */ "../../node_modules/reactcss/lib/index.js");
  27260. var _reactcss2 = _interopRequireDefault(_reactcss);
  27261. var _map = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  27262. var _map2 = _interopRequireDefault(_map);
  27263. var _merge = __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js");
  27264. var _merge2 = _interopRequireDefault(_merge);
  27265. var _color = __webpack_require__(/*! ../../helpers/color */ "../../node_modules/react-color/lib/helpers/color.js");
  27266. var _color2 = _interopRequireDefault(_color);
  27267. var _common = __webpack_require__(/*! ../common */ "../../node_modules/react-color/lib/components/common/index.js");
  27268. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27269. var Twitter = exports.Twitter = function Twitter(_ref) {
  27270. var onChange = _ref.onChange,
  27271. onSwatchHover = _ref.onSwatchHover,
  27272. hex = _ref.hex,
  27273. colors = _ref.colors,
  27274. width = _ref.width,
  27275. triangle = _ref.triangle,
  27276. _ref$styles = _ref.styles,
  27277. passedStyles = _ref$styles === undefined ? {} : _ref$styles,
  27278. _ref$className = _ref.className,
  27279. className = _ref$className === undefined ? '' : _ref$className;
  27280. var styles = (0, _reactcss2.default)((0, _merge2.default)({
  27281. 'default': {
  27282. card: {
  27283. width: width,
  27284. background: '#fff',
  27285. border: '0 solid rgba(0,0,0,0.25)',
  27286. boxShadow: '0 1px 4px rgba(0,0,0,0.25)',
  27287. borderRadius: '4px',
  27288. position: 'relative'
  27289. },
  27290. body: {
  27291. padding: '15px 9px 9px 15px'
  27292. },
  27293. label: {
  27294. fontSize: '18px',
  27295. color: '#fff'
  27296. },
  27297. triangle: {
  27298. width: '0px',
  27299. height: '0px',
  27300. borderStyle: 'solid',
  27301. borderWidth: '0 9px 10px 9px',
  27302. borderColor: 'transparent transparent #fff transparent',
  27303. position: 'absolute'
  27304. },
  27305. triangleShadow: {
  27306. width: '0px',
  27307. height: '0px',
  27308. borderStyle: 'solid',
  27309. borderWidth: '0 9px 10px 9px',
  27310. borderColor: 'transparent transparent rgba(0,0,0,.1) transparent',
  27311. position: 'absolute'
  27312. },
  27313. hash: {
  27314. background: '#F0F0F0',
  27315. height: '30px',
  27316. width: '30px',
  27317. borderRadius: '4px 0 0 4px',
  27318. float: 'left',
  27319. color: '#98A1A4',
  27320. display: 'flex',
  27321. alignItems: 'center',
  27322. justifyContent: 'center'
  27323. },
  27324. input: {
  27325. width: '100px',
  27326. fontSize: '14px',
  27327. color: '#666',
  27328. border: '0px',
  27329. outline: 'none',
  27330. height: '28px',
  27331. boxShadow: 'inset 0 0 0 1px #F0F0F0',
  27332. boxSizing: 'content-box',
  27333. borderRadius: '0 4px 4px 0',
  27334. float: 'left',
  27335. paddingLeft: '8px'
  27336. },
  27337. swatch: {
  27338. width: '30px',
  27339. height: '30px',
  27340. float: 'left',
  27341. borderRadius: '4px',
  27342. margin: '0 6px 6px 0'
  27343. },
  27344. clear: {
  27345. clear: 'both'
  27346. }
  27347. },
  27348. 'hide-triangle': {
  27349. triangle: {
  27350. display: 'none'
  27351. },
  27352. triangleShadow: {
  27353. display: 'none'
  27354. }
  27355. },
  27356. 'top-left-triangle': {
  27357. triangle: {
  27358. top: '-10px',
  27359. left: '12px'
  27360. },
  27361. triangleShadow: {
  27362. top: '-11px',
  27363. left: '12px'
  27364. }
  27365. },
  27366. 'top-right-triangle': {
  27367. triangle: {
  27368. top: '-10px',
  27369. right: '12px'
  27370. },
  27371. triangleShadow: {
  27372. top: '-11px',
  27373. right: '12px'
  27374. }
  27375. }
  27376. }, passedStyles), {
  27377. 'hide-triangle': triangle === 'hide',
  27378. 'top-left-triangle': triangle === 'top-left',
  27379. 'top-right-triangle': triangle === 'top-right'
  27380. });
  27381. var handleChange = function handleChange(hexcode, e) {
  27382. _color2.default.isValidHex(hexcode) && onChange({
  27383. hex: hexcode,
  27384. source: 'hex'
  27385. }, e);
  27386. };
  27387. return _react2.default.createElement(
  27388. 'div',
  27389. { style: styles.card, className: 'twitter-picker ' + className },
  27390. _react2.default.createElement('div', { style: styles.triangleShadow }),
  27391. _react2.default.createElement('div', { style: styles.triangle }),
  27392. _react2.default.createElement(
  27393. 'div',
  27394. { style: styles.body },
  27395. (0, _map2.default)(colors, function (c, i) {
  27396. return _react2.default.createElement(_common.Swatch, {
  27397. key: i,
  27398. color: c,
  27399. hex: c,
  27400. style: styles.swatch,
  27401. onClick: handleChange,
  27402. onHover: onSwatchHover,
  27403. focusStyle: {
  27404. boxShadow: '0 0 4px ' + c
  27405. }
  27406. });
  27407. }),
  27408. _react2.default.createElement(
  27409. 'div',
  27410. { style: styles.hash },
  27411. '#'
  27412. ),
  27413. _react2.default.createElement(_common.EditableInput, {
  27414. label: null,
  27415. style: { input: styles.input },
  27416. value: hex.replace('#', ''),
  27417. onChange: handleChange
  27418. }),
  27419. _react2.default.createElement('div', { style: styles.clear })
  27420. )
  27421. );
  27422. };
  27423. Twitter.propTypes = {
  27424. width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  27425. triangle: _propTypes2.default.oneOf(['hide', 'top-left', 'top-right']),
  27426. colors: _propTypes2.default.arrayOf(_propTypes2.default.string),
  27427. styles: _propTypes2.default.object
  27428. };
  27429. Twitter.defaultProps = {
  27430. width: 276,
  27431. colors: ['#FF6900', '#FCB900', '#7BDCB5', '#00D084', '#8ED1FC', '#0693E3', '#ABB8C3', '#EB144C', '#F78DA7', '#9900EF'],
  27432. triangle: 'top-left',
  27433. styles: {}
  27434. };
  27435. exports.default = (0, _common.ColorWrap)(Twitter);
  27436. /***/ }),
  27437. /***/ "../../node_modules/react-color/lib/helpers/alpha.js":
  27438. /*!*************************************************************************!*\
  27439. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/helpers/alpha.js ***!
  27440. \*************************************************************************/
  27441. /*! no static exports found */
  27442. /***/ (function(module, exports, __webpack_require__) {
  27443. "use strict";
  27444. Object.defineProperty(exports, "__esModule", {
  27445. value: true
  27446. });
  27447. var calculateChange = exports.calculateChange = function calculateChange(e, hsl, direction, initialA, container) {
  27448. var containerWidth = container.clientWidth;
  27449. var containerHeight = container.clientHeight;
  27450. var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  27451. var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  27452. var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  27453. var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
  27454. if (direction === 'vertical') {
  27455. var a = void 0;
  27456. if (top < 0) {
  27457. a = 0;
  27458. } else if (top > containerHeight) {
  27459. a = 1;
  27460. } else {
  27461. a = Math.round(top * 100 / containerHeight) / 100;
  27462. }
  27463. if (hsl.a !== a) {
  27464. return {
  27465. h: hsl.h,
  27466. s: hsl.s,
  27467. l: hsl.l,
  27468. a: a,
  27469. source: 'rgb'
  27470. };
  27471. }
  27472. } else {
  27473. var _a = void 0;
  27474. if (left < 0) {
  27475. _a = 0;
  27476. } else if (left > containerWidth) {
  27477. _a = 1;
  27478. } else {
  27479. _a = Math.round(left * 100 / containerWidth) / 100;
  27480. }
  27481. if (initialA !== _a) {
  27482. return {
  27483. h: hsl.h,
  27484. s: hsl.s,
  27485. l: hsl.l,
  27486. a: _a,
  27487. source: 'rgb'
  27488. };
  27489. }
  27490. }
  27491. return null;
  27492. };
  27493. /***/ }),
  27494. /***/ "../../node_modules/react-color/lib/helpers/checkboard.js":
  27495. /*!******************************************************************************!*\
  27496. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/helpers/checkboard.js ***!
  27497. \******************************************************************************/
  27498. /*! no static exports found */
  27499. /***/ (function(module, exports, __webpack_require__) {
  27500. "use strict";
  27501. Object.defineProperty(exports, "__esModule", {
  27502. value: true
  27503. });
  27504. var checkboardCache = {};
  27505. var render = exports.render = function render(c1, c2, size, serverCanvas) {
  27506. if (typeof document === 'undefined' && !serverCanvas) {
  27507. return null;
  27508. }
  27509. var canvas = serverCanvas ? new serverCanvas() : document.createElement('canvas');
  27510. canvas.width = size * 2;
  27511. canvas.height = size * 2;
  27512. var ctx = canvas.getContext('2d');
  27513. if (!ctx) {
  27514. return null;
  27515. } // If no context can be found, return early.
  27516. ctx.fillStyle = c1;
  27517. ctx.fillRect(0, 0, canvas.width, canvas.height);
  27518. ctx.fillStyle = c2;
  27519. ctx.fillRect(0, 0, size, size);
  27520. ctx.translate(size, size);
  27521. ctx.fillRect(0, 0, size, size);
  27522. return canvas.toDataURL();
  27523. };
  27524. var get = exports.get = function get(c1, c2, size, serverCanvas) {
  27525. var key = c1 + '-' + c2 + '-' + size + (serverCanvas ? '-server' : '');
  27526. if (checkboardCache[key]) {
  27527. return checkboardCache[key];
  27528. }
  27529. var checkboard = render(c1, c2, size, serverCanvas);
  27530. checkboardCache[key] = checkboard;
  27531. return checkboard;
  27532. };
  27533. /***/ }),
  27534. /***/ "../../node_modules/react-color/lib/helpers/color.js":
  27535. /*!*************************************************************************!*\
  27536. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/helpers/color.js ***!
  27537. \*************************************************************************/
  27538. /*! no static exports found */
  27539. /***/ (function(module, exports, __webpack_require__) {
  27540. "use strict";
  27541. Object.defineProperty(exports, "__esModule", {
  27542. value: true
  27543. });
  27544. exports.red = exports.getContrastingColor = exports.isValidHex = exports.toState = exports.simpleCheckForValidColor = undefined;
  27545. var _each = __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js");
  27546. var _each2 = _interopRequireDefault(_each);
  27547. var _tinycolor = __webpack_require__(/*! tinycolor2 */ "../../node_modules/tinycolor2/tinycolor.js");
  27548. var _tinycolor2 = _interopRequireDefault(_tinycolor);
  27549. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27550. var simpleCheckForValidColor = exports.simpleCheckForValidColor = function simpleCheckForValidColor(data) {
  27551. var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
  27552. var checked = 0;
  27553. var passed = 0;
  27554. (0, _each2.default)(keysToCheck, function (letter) {
  27555. if (data[letter]) {
  27556. checked += 1;
  27557. if (!isNaN(data[letter])) {
  27558. passed += 1;
  27559. }
  27560. if (letter === 's' || letter === 'l') {
  27561. var percentPatt = /^\d+%$/;
  27562. if (percentPatt.test(data[letter])) {
  27563. passed += 1;
  27564. }
  27565. }
  27566. }
  27567. });
  27568. return checked === passed ? data : false;
  27569. };
  27570. var toState = exports.toState = function toState(data, oldHue) {
  27571. var color = data.hex ? (0, _tinycolor2.default)(data.hex) : (0, _tinycolor2.default)(data);
  27572. var hsl = color.toHsl();
  27573. var hsv = color.toHsv();
  27574. var rgb = color.toRgb();
  27575. var hex = color.toHex();
  27576. if (hsl.s === 0) {
  27577. hsl.h = oldHue || 0;
  27578. hsv.h = oldHue || 0;
  27579. }
  27580. var transparent = hex === '000000' && rgb.a === 0;
  27581. return {
  27582. hsl: hsl,
  27583. hex: transparent ? 'transparent' : '#' + hex,
  27584. rgb: rgb,
  27585. hsv: hsv,
  27586. oldHue: data.h || oldHue || hsl.h,
  27587. source: data.source
  27588. };
  27589. };
  27590. var isValidHex = exports.isValidHex = function isValidHex(hex) {
  27591. // disable hex4 and hex8
  27592. var lh = String(hex).charAt(0) === '#' ? 1 : 0;
  27593. return hex.length !== 4 + lh && hex.length < 7 + lh && (0, _tinycolor2.default)(hex).isValid();
  27594. };
  27595. var getContrastingColor = exports.getContrastingColor = function getContrastingColor(data) {
  27596. if (!data) {
  27597. return '#fff';
  27598. }
  27599. var col = toState(data);
  27600. if (col.hex === 'transparent') {
  27601. return 'rgba(0,0,0,0.4)';
  27602. }
  27603. var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
  27604. return yiq >= 128 ? '#000' : '#fff';
  27605. };
  27606. var red = exports.red = {
  27607. hsl: { a: 1, h: 0, l: 0.5, s: 1 },
  27608. hex: '#ff0000',
  27609. rgb: { r: 255, g: 0, b: 0, a: 1 },
  27610. hsv: { h: 0, s: 1, v: 1, a: 1 }
  27611. };
  27612. exports.default = exports;
  27613. /***/ }),
  27614. /***/ "../../node_modules/react-color/lib/helpers/hue.js":
  27615. /*!***********************************************************************!*\
  27616. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/helpers/hue.js ***!
  27617. \***********************************************************************/
  27618. /*! no static exports found */
  27619. /***/ (function(module, exports, __webpack_require__) {
  27620. "use strict";
  27621. Object.defineProperty(exports, "__esModule", {
  27622. value: true
  27623. });
  27624. var calculateChange = exports.calculateChange = function calculateChange(e, direction, hsl, container) {
  27625. var containerWidth = container.clientWidth;
  27626. var containerHeight = container.clientHeight;
  27627. var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  27628. var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  27629. var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  27630. var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
  27631. if (direction === 'vertical') {
  27632. var h = void 0;
  27633. if (top < 0) {
  27634. h = 359;
  27635. } else if (top > containerHeight) {
  27636. h = 0;
  27637. } else {
  27638. var percent = -(top * 100 / containerHeight) + 100;
  27639. h = 360 * percent / 100;
  27640. }
  27641. if (hsl.h !== h) {
  27642. return {
  27643. h: h,
  27644. s: hsl.s,
  27645. l: hsl.l,
  27646. a: hsl.a,
  27647. source: 'hsl'
  27648. };
  27649. }
  27650. } else {
  27651. var _h = void 0;
  27652. if (left < 0) {
  27653. _h = 0;
  27654. } else if (left > containerWidth) {
  27655. _h = 359;
  27656. } else {
  27657. var _percent = left * 100 / containerWidth;
  27658. _h = 360 * _percent / 100;
  27659. }
  27660. if (hsl.h !== _h) {
  27661. return {
  27662. h: _h,
  27663. s: hsl.s,
  27664. l: hsl.l,
  27665. a: hsl.a,
  27666. source: 'hsl'
  27667. };
  27668. }
  27669. }
  27670. return null;
  27671. };
  27672. /***/ }),
  27673. /***/ "../../node_modules/react-color/lib/helpers/interaction.js":
  27674. /*!*******************************************************************************!*\
  27675. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/helpers/interaction.js ***!
  27676. \*******************************************************************************/
  27677. /*! no static exports found */
  27678. /***/ (function(module, exports, __webpack_require__) {
  27679. "use strict";
  27680. Object.defineProperty(exports, "__esModule", {
  27681. value: true
  27682. });
  27683. exports.handleFocus = undefined;
  27684. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  27685. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  27686. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  27687. var _react2 = _interopRequireDefault(_react);
  27688. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27689. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  27690. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  27691. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint-disable no-invalid-this */
  27692. var handleFocus = exports.handleFocus = function handleFocus(Component) {
  27693. var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  27694. return function (_React$Component) {
  27695. _inherits(Focus, _React$Component);
  27696. function Focus() {
  27697. var _ref;
  27698. var _temp, _this, _ret;
  27699. _classCallCheck(this, Focus);
  27700. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  27701. args[_key] = arguments[_key];
  27702. }
  27703. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Focus.__proto__ || Object.getPrototypeOf(Focus)).call.apply(_ref, [this].concat(args))), _this), _this.state = { focus: false }, _this.handleFocus = function () {
  27704. return _this.setState({ focus: true });
  27705. }, _this.handleBlur = function () {
  27706. return _this.setState({ focus: false });
  27707. }, _temp), _possibleConstructorReturn(_this, _ret);
  27708. }
  27709. _createClass(Focus, [{
  27710. key: 'render',
  27711. value: function render() {
  27712. return _react2.default.createElement(
  27713. Span,
  27714. { onFocus: this.handleFocus, onBlur: this.handleBlur },
  27715. _react2.default.createElement(Component, _extends({}, this.props, this.state))
  27716. );
  27717. }
  27718. }]);
  27719. return Focus;
  27720. }(_react2.default.Component);
  27721. };
  27722. /***/ }),
  27723. /***/ "../../node_modules/react-color/lib/helpers/saturation.js":
  27724. /*!******************************************************************************!*\
  27725. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/helpers/saturation.js ***!
  27726. \******************************************************************************/
  27727. /*! no static exports found */
  27728. /***/ (function(module, exports, __webpack_require__) {
  27729. "use strict";
  27730. Object.defineProperty(exports, "__esModule", {
  27731. value: true
  27732. });
  27733. var calculateChange = exports.calculateChange = function calculateChange(e, hsl, container) {
  27734. var _container$getBoundin = container.getBoundingClientRect(),
  27735. containerWidth = _container$getBoundin.width,
  27736. containerHeight = _container$getBoundin.height;
  27737. var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  27738. var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  27739. var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  27740. var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
  27741. if (left < 0) {
  27742. left = 0;
  27743. } else if (left > containerWidth) {
  27744. left = containerWidth;
  27745. }
  27746. if (top < 0) {
  27747. top = 0;
  27748. } else if (top > containerHeight) {
  27749. top = containerHeight;
  27750. }
  27751. var saturation = left / containerWidth;
  27752. var bright = 1 - top / containerHeight;
  27753. return {
  27754. h: hsl.h,
  27755. s: saturation,
  27756. v: bright,
  27757. a: hsl.a,
  27758. source: 'hsv'
  27759. };
  27760. };
  27761. /***/ }),
  27762. /***/ "../../node_modules/react-color/lib/index.js":
  27763. /*!*****************************************************************!*\
  27764. !*** C:/Repos/Babylon.js/node_modules/react-color/lib/index.js ***!
  27765. \*****************************************************************/
  27766. /*! no static exports found */
  27767. /***/ (function(module, exports, __webpack_require__) {
  27768. "use strict";
  27769. Object.defineProperty(exports, "__esModule", {
  27770. value: true
  27771. });
  27772. exports.CustomPicker = exports.TwitterPicker = exports.SwatchesPicker = exports.SliderPicker = exports.SketchPicker = exports.PhotoshopPicker = exports.MaterialPicker = exports.HuePicker = exports.GithubPicker = exports.CompactPicker = exports.ChromePicker = exports.default = exports.CirclePicker = exports.BlockPicker = exports.AlphaPicker = undefined;
  27773. var _Alpha = __webpack_require__(/*! ./components/alpha/Alpha */ "../../node_modules/react-color/lib/components/alpha/Alpha.js");
  27774. Object.defineProperty(exports, 'AlphaPicker', {
  27775. enumerable: true,
  27776. get: function get() {
  27777. return _interopRequireDefault(_Alpha).default;
  27778. }
  27779. });
  27780. var _Block = __webpack_require__(/*! ./components/block/Block */ "../../node_modules/react-color/lib/components/block/Block.js");
  27781. Object.defineProperty(exports, 'BlockPicker', {
  27782. enumerable: true,
  27783. get: function get() {
  27784. return _interopRequireDefault(_Block).default;
  27785. }
  27786. });
  27787. var _Circle = __webpack_require__(/*! ./components/circle/Circle */ "../../node_modules/react-color/lib/components/circle/Circle.js");
  27788. Object.defineProperty(exports, 'CirclePicker', {
  27789. enumerable: true,
  27790. get: function get() {
  27791. return _interopRequireDefault(_Circle).default;
  27792. }
  27793. });
  27794. var _Chrome = __webpack_require__(/*! ./components/chrome/Chrome */ "../../node_modules/react-color/lib/components/chrome/Chrome.js");
  27795. Object.defineProperty(exports, 'ChromePicker', {
  27796. enumerable: true,
  27797. get: function get() {
  27798. return _interopRequireDefault(_Chrome).default;
  27799. }
  27800. });
  27801. var _Compact = __webpack_require__(/*! ./components/compact/Compact */ "../../node_modules/react-color/lib/components/compact/Compact.js");
  27802. Object.defineProperty(exports, 'CompactPicker', {
  27803. enumerable: true,
  27804. get: function get() {
  27805. return _interopRequireDefault(_Compact).default;
  27806. }
  27807. });
  27808. var _Github = __webpack_require__(/*! ./components/github/Github */ "../../node_modules/react-color/lib/components/github/Github.js");
  27809. Object.defineProperty(exports, 'GithubPicker', {
  27810. enumerable: true,
  27811. get: function get() {
  27812. return _interopRequireDefault(_Github).default;
  27813. }
  27814. });
  27815. var _Hue = __webpack_require__(/*! ./components/hue/Hue */ "../../node_modules/react-color/lib/components/hue/Hue.js");
  27816. Object.defineProperty(exports, 'HuePicker', {
  27817. enumerable: true,
  27818. get: function get() {
  27819. return _interopRequireDefault(_Hue).default;
  27820. }
  27821. });
  27822. var _Material = __webpack_require__(/*! ./components/material/Material */ "../../node_modules/react-color/lib/components/material/Material.js");
  27823. Object.defineProperty(exports, 'MaterialPicker', {
  27824. enumerable: true,
  27825. get: function get() {
  27826. return _interopRequireDefault(_Material).default;
  27827. }
  27828. });
  27829. var _Photoshop = __webpack_require__(/*! ./components/photoshop/Photoshop */ "../../node_modules/react-color/lib/components/photoshop/Photoshop.js");
  27830. Object.defineProperty(exports, 'PhotoshopPicker', {
  27831. enumerable: true,
  27832. get: function get() {
  27833. return _interopRequireDefault(_Photoshop).default;
  27834. }
  27835. });
  27836. var _Sketch = __webpack_require__(/*! ./components/sketch/Sketch */ "../../node_modules/react-color/lib/components/sketch/Sketch.js");
  27837. Object.defineProperty(exports, 'SketchPicker', {
  27838. enumerable: true,
  27839. get: function get() {
  27840. return _interopRequireDefault(_Sketch).default;
  27841. }
  27842. });
  27843. var _Slider = __webpack_require__(/*! ./components/slider/Slider */ "../../node_modules/react-color/lib/components/slider/Slider.js");
  27844. Object.defineProperty(exports, 'SliderPicker', {
  27845. enumerable: true,
  27846. get: function get() {
  27847. return _interopRequireDefault(_Slider).default;
  27848. }
  27849. });
  27850. var _Swatches = __webpack_require__(/*! ./components/swatches/Swatches */ "../../node_modules/react-color/lib/components/swatches/Swatches.js");
  27851. Object.defineProperty(exports, 'SwatchesPicker', {
  27852. enumerable: true,
  27853. get: function get() {
  27854. return _interopRequireDefault(_Swatches).default;
  27855. }
  27856. });
  27857. var _Twitter = __webpack_require__(/*! ./components/twitter/Twitter */ "../../node_modules/react-color/lib/components/twitter/Twitter.js");
  27858. Object.defineProperty(exports, 'TwitterPicker', {
  27859. enumerable: true,
  27860. get: function get() {
  27861. return _interopRequireDefault(_Twitter).default;
  27862. }
  27863. });
  27864. var _ColorWrap = __webpack_require__(/*! ./components/common/ColorWrap */ "../../node_modules/react-color/lib/components/common/ColorWrap.js");
  27865. Object.defineProperty(exports, 'CustomPicker', {
  27866. enumerable: true,
  27867. get: function get() {
  27868. return _interopRequireDefault(_ColorWrap).default;
  27869. }
  27870. });
  27871. var _Chrome2 = _interopRequireDefault(_Chrome);
  27872. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27873. exports.default = _Chrome2.default;
  27874. /***/ }),
  27875. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  27876. /*!*******************************************************************************!*\
  27877. !*** C:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  27878. \*******************************************************************************/
  27879. /*! no static exports found */
  27880. /***/ (function(module, exports, __webpack_require__) {
  27881. "use strict";
  27882. /** @license React v16.13.1
  27883. * react-dom.development.js
  27884. *
  27885. * Copyright (c) Facebook, Inc. and its affiliates.
  27886. *
  27887. * This source code is licensed under the MIT license found in the
  27888. * LICENSE file in the root directory of this source tree.
  27889. */
  27890. if (true) {
  27891. (function() {
  27892. 'use strict';
  27893. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  27894. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  27895. var Scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  27896. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  27897. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  27898. 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.
  27899. // Current owner and dispatcher used to share the same ref,
  27900. // but PR #14548 split them out to better support the react-debug-tools package.
  27901. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
  27902. ReactSharedInternals.ReactCurrentDispatcher = {
  27903. current: null
  27904. };
  27905. }
  27906. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
  27907. ReactSharedInternals.ReactCurrentBatchConfig = {
  27908. suspense: null
  27909. };
  27910. }
  27911. // by calls to these methods by a Babel plugin.
  27912. //
  27913. // In PROD (or in packages without access to React internals),
  27914. // they are left as they are instead.
  27915. function warn(format) {
  27916. {
  27917. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  27918. args[_key - 1] = arguments[_key];
  27919. }
  27920. printWarning('warn', format, args);
  27921. }
  27922. }
  27923. function error(format) {
  27924. {
  27925. for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  27926. args[_key2 - 1] = arguments[_key2];
  27927. }
  27928. printWarning('error', format, args);
  27929. }
  27930. }
  27931. function printWarning(level, format, args) {
  27932. // When changing this logic, you might want to also
  27933. // update consoleWithStackDev.www.js as well.
  27934. {
  27935. var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
  27936. if (!hasExistingStack) {
  27937. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  27938. var stack = ReactDebugCurrentFrame.getStackAddendum();
  27939. if (stack !== '') {
  27940. format += '%s';
  27941. args = args.concat([stack]);
  27942. }
  27943. }
  27944. var argsWithFormat = args.map(function (item) {
  27945. return '' + item;
  27946. }); // Careful: RN currently depends on this prefix
  27947. argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
  27948. // breaks IE9: https://github.com/facebook/react/issues/13610
  27949. // eslint-disable-next-line react-internal/no-production-logging
  27950. Function.prototype.apply.call(console[level], console, argsWithFormat);
  27951. try {
  27952. // --- Welcome to debugging React ---
  27953. // This error was thrown as a convenience so that you can use this stack
  27954. // to find the callsite that caused this warning to fire.
  27955. var argIndex = 0;
  27956. var message = 'Warning: ' + format.replace(/%s/g, function () {
  27957. return args[argIndex++];
  27958. });
  27959. throw new Error(message);
  27960. } catch (x) {}
  27961. }
  27962. }
  27963. if (!React) {
  27964. {
  27965. throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
  27966. }
  27967. }
  27968. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  27969. var funcArgs = Array.prototype.slice.call(arguments, 3);
  27970. try {
  27971. func.apply(context, funcArgs);
  27972. } catch (error) {
  27973. this.onError(error);
  27974. }
  27975. };
  27976. {
  27977. // In DEV mode, we swap out invokeGuardedCallback for a special version
  27978. // that plays more nicely with the browser's DevTools. The idea is to preserve
  27979. // "Pause on exceptions" behavior. Because React wraps all user-provided
  27980. // functions in invokeGuardedCallback, and the production version of
  27981. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  27982. // like caught exceptions, and the DevTools won't pause unless the developer
  27983. // takes the extra step of enabling pause on caught exceptions. This is
  27984. // unintuitive, though, because even though React has caught the error, from
  27985. // the developer's perspective, the error is uncaught.
  27986. //
  27987. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  27988. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  27989. // DOM node, and call the user-provided callback from inside an event handler
  27990. // for that fake event. If the callback throws, the error is "captured" using
  27991. // a global event handler. But because the error happens in a different
  27992. // event loop context, it does not interrupt the normal program flow.
  27993. // Effectively, this gives us try-catch behavior without actually using
  27994. // try-catch. Neat!
  27995. // Check that the browser supports the APIs we need to implement our special
  27996. // DEV version of invokeGuardedCallback
  27997. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  27998. var fakeNode = document.createElement('react');
  27999. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  28000. // If document doesn't exist we know for sure we will crash in this method
  28001. // when we call document.createEvent(). However this can cause confusing
  28002. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  28003. // So we preemptively throw with a better message instead.
  28004. if (!(typeof document !== 'undefined')) {
  28005. {
  28006. 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." );
  28007. }
  28008. }
  28009. var evt = document.createEvent('Event'); // Keeps track of whether the user-provided callback threw an error. We
  28010. // set this to true at the beginning, then set it to false right after
  28011. // calling the function. If the function errors, `didError` will never be
  28012. // set to false. This strategy works even if the browser is flaky and
  28013. // fails to call our global error handler, because it doesn't rely on
  28014. // the error event at all.
  28015. var didError = true; // Keeps track of the value of window.event so that we can reset it
  28016. // during the callback to let user code access window.event in the
  28017. // browsers that support it.
  28018. var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
  28019. // dispatching: https://github.com/facebook/react/issues/13688
  28020. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); // Create an event handler for our fake event. We will synchronously
  28021. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  28022. // call the user-provided callback.
  28023. var funcArgs = Array.prototype.slice.call(arguments, 3);
  28024. function callCallback() {
  28025. // We immediately remove the callback from event listeners so that
  28026. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  28027. // nested call would trigger the fake event handlers of any call higher
  28028. // in the stack.
  28029. fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
  28030. // window.event assignment in both IE <= 10 as they throw an error
  28031. // "Member not found" in strict mode, and in Firefox which does not
  28032. // support window.event.
  28033. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  28034. window.event = windowEvent;
  28035. }
  28036. func.apply(context, funcArgs);
  28037. didError = false;
  28038. } // Create a global error event handler. We use this to capture the value
  28039. // that was thrown. It's possible that this error handler will fire more
  28040. // than once; for example, if non-React code also calls `dispatchEvent`
  28041. // and a handler for that event throws. We should be resilient to most of
  28042. // those cases. Even if our error event handler fires more than once, the
  28043. // last error event is always used. If the callback actually does error,
  28044. // we know that the last error event is the correct one, because it's not
  28045. // possible for anything else to have happened in between our callback
  28046. // erroring and the code that follows the `dispatchEvent` call below. If
  28047. // the callback doesn't error, but the error event was fired, we know to
  28048. // ignore it because `didError` will be false, as described above.
  28049. var error; // Use this to track whether the error event is ever called.
  28050. var didSetError = false;
  28051. var isCrossOriginError = false;
  28052. function handleWindowError(event) {
  28053. error = event.error;
  28054. didSetError = true;
  28055. if (error === null && event.colno === 0 && event.lineno === 0) {
  28056. isCrossOriginError = true;
  28057. }
  28058. if (event.defaultPrevented) {
  28059. // Some other error handler has prevented default.
  28060. // Browsers silence the error report if this happens.
  28061. // We'll remember this to later decide whether to log it or not.
  28062. if (error != null && typeof error === 'object') {
  28063. try {
  28064. error._suppressLogging = true;
  28065. } catch (inner) {// Ignore.
  28066. }
  28067. }
  28068. }
  28069. } // Create a fake event type.
  28070. var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers
  28071. window.addEventListener('error', handleWindowError);
  28072. fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
  28073. // errors, it will trigger our global error handler.
  28074. evt.initEvent(evtType, false, false);
  28075. fakeNode.dispatchEvent(evt);
  28076. if (windowEventDescriptor) {
  28077. Object.defineProperty(window, 'event', windowEventDescriptor);
  28078. }
  28079. if (didError) {
  28080. if (!didSetError) {
  28081. // The callback errored, but the error event never fired.
  28082. 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.');
  28083. } else if (isCrossOriginError) {
  28084. 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.');
  28085. }
  28086. this.onError(error);
  28087. } // Remove our event listeners
  28088. window.removeEventListener('error', handleWindowError);
  28089. };
  28090. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  28091. }
  28092. }
  28093. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  28094. var hasError = false;
  28095. var caughtError = null; // Used by event system to capture/rethrow the first error.
  28096. var hasRethrowError = false;
  28097. var rethrowError = null;
  28098. var reporter = {
  28099. onError: function (error) {
  28100. hasError = true;
  28101. caughtError = error;
  28102. }
  28103. };
  28104. /**
  28105. * Call a function while guarding against errors that happens within it.
  28106. * Returns an error if it throws, otherwise null.
  28107. *
  28108. * In production, this is implemented using a try-catch. The reason we don't
  28109. * use a try-catch directly is so that we can swap out a different
  28110. * implementation in DEV mode.
  28111. *
  28112. * @param {String} name of the guard to use for logging or debugging
  28113. * @param {Function} func The function to invoke
  28114. * @param {*} context The context to use when calling the function
  28115. * @param {...*} args Arguments for function
  28116. */
  28117. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  28118. hasError = false;
  28119. caughtError = null;
  28120. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  28121. }
  28122. /**
  28123. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  28124. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  28125. * TODO: See if caughtError and rethrowError can be unified.
  28126. *
  28127. * @param {String} name of the guard to use for logging or debugging
  28128. * @param {Function} func The function to invoke
  28129. * @param {*} context The context to use when calling the function
  28130. * @param {...*} args Arguments for function
  28131. */
  28132. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  28133. invokeGuardedCallback.apply(this, arguments);
  28134. if (hasError) {
  28135. var error = clearCaughtError();
  28136. if (!hasRethrowError) {
  28137. hasRethrowError = true;
  28138. rethrowError = error;
  28139. }
  28140. }
  28141. }
  28142. /**
  28143. * During execution of guarded functions we will capture the first error which
  28144. * we will rethrow to be handled by the top level error handler.
  28145. */
  28146. function rethrowCaughtError() {
  28147. if (hasRethrowError) {
  28148. var error = rethrowError;
  28149. hasRethrowError = false;
  28150. rethrowError = null;
  28151. throw error;
  28152. }
  28153. }
  28154. function hasCaughtError() {
  28155. return hasError;
  28156. }
  28157. function clearCaughtError() {
  28158. if (hasError) {
  28159. var error = caughtError;
  28160. hasError = false;
  28161. caughtError = null;
  28162. return error;
  28163. } else {
  28164. {
  28165. {
  28166. throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
  28167. }
  28168. }
  28169. }
  28170. }
  28171. var getFiberCurrentPropsFromNode = null;
  28172. var getInstanceFromNode = null;
  28173. var getNodeFromInstance = null;
  28174. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  28175. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  28176. getInstanceFromNode = getInstanceFromNodeImpl;
  28177. getNodeFromInstance = getNodeFromInstanceImpl;
  28178. {
  28179. if (!getNodeFromInstance || !getInstanceFromNode) {
  28180. error('EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.');
  28181. }
  28182. }
  28183. }
  28184. var validateEventDispatches;
  28185. {
  28186. validateEventDispatches = function (event) {
  28187. var dispatchListeners = event._dispatchListeners;
  28188. var dispatchInstances = event._dispatchInstances;
  28189. var listenersIsArr = Array.isArray(dispatchListeners);
  28190. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  28191. var instancesIsArr = Array.isArray(dispatchInstances);
  28192. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  28193. if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) {
  28194. error('EventPluginUtils: Invalid `event`.');
  28195. }
  28196. };
  28197. }
  28198. /**
  28199. * Dispatch the event to the listener.
  28200. * @param {SyntheticEvent} event SyntheticEvent to handle
  28201. * @param {function} listener Application-level callback
  28202. * @param {*} inst Internal component instance
  28203. */
  28204. function executeDispatch(event, listener, inst) {
  28205. var type = event.type || 'unknown-event';
  28206. event.currentTarget = getNodeFromInstance(inst);
  28207. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  28208. event.currentTarget = null;
  28209. }
  28210. /**
  28211. * Standard/simple iteration through an event's collected dispatches.
  28212. */
  28213. function executeDispatchesInOrder(event) {
  28214. var dispatchListeners = event._dispatchListeners;
  28215. var dispatchInstances = event._dispatchInstances;
  28216. {
  28217. validateEventDispatches(event);
  28218. }
  28219. if (Array.isArray(dispatchListeners)) {
  28220. for (var i = 0; i < dispatchListeners.length; i++) {
  28221. if (event.isPropagationStopped()) {
  28222. break;
  28223. } // Listeners and Instances are two parallel arrays that are always in sync.
  28224. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  28225. }
  28226. } else if (dispatchListeners) {
  28227. executeDispatch(event, dispatchListeners, dispatchInstances);
  28228. }
  28229. event._dispatchListeners = null;
  28230. event._dispatchInstances = null;
  28231. }
  28232. var FunctionComponent = 0;
  28233. var ClassComponent = 1;
  28234. var IndeterminateComponent = 2; // Before we know whether it is function or class
  28235. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  28236. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  28237. var HostComponent = 5;
  28238. var HostText = 6;
  28239. var Fragment = 7;
  28240. var Mode = 8;
  28241. var ContextConsumer = 9;
  28242. var ContextProvider = 10;
  28243. var ForwardRef = 11;
  28244. var Profiler = 12;
  28245. var SuspenseComponent = 13;
  28246. var MemoComponent = 14;
  28247. var SimpleMemoComponent = 15;
  28248. var LazyComponent = 16;
  28249. var IncompleteClassComponent = 17;
  28250. var DehydratedFragment = 18;
  28251. var SuspenseListComponent = 19;
  28252. var FundamentalComponent = 20;
  28253. var ScopeComponent = 21;
  28254. var Block = 22;
  28255. /**
  28256. * Injectable ordering of event plugins.
  28257. */
  28258. var eventPluginOrder = null;
  28259. /**
  28260. * Injectable mapping from names to event plugin modules.
  28261. */
  28262. var namesToPlugins = {};
  28263. /**
  28264. * Recomputes the plugin list using the injected plugins and plugin ordering.
  28265. *
  28266. * @private
  28267. */
  28268. function recomputePluginOrdering() {
  28269. if (!eventPluginOrder) {
  28270. // Wait until an `eventPluginOrder` is injected.
  28271. return;
  28272. }
  28273. for (var pluginName in namesToPlugins) {
  28274. var pluginModule = namesToPlugins[pluginName];
  28275. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  28276. if (!(pluginIndex > -1)) {
  28277. {
  28278. throw Error( "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`." );
  28279. }
  28280. }
  28281. if (plugins[pluginIndex]) {
  28282. continue;
  28283. }
  28284. if (!pluginModule.extractEvents) {
  28285. {
  28286. throw Error( "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not." );
  28287. }
  28288. }
  28289. plugins[pluginIndex] = pluginModule;
  28290. var publishedEvents = pluginModule.eventTypes;
  28291. for (var eventName in publishedEvents) {
  28292. if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
  28293. {
  28294. throw Error( "EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`." );
  28295. }
  28296. }
  28297. }
  28298. }
  28299. }
  28300. /**
  28301. * Publishes an event so that it can be dispatched by the supplied plugin.
  28302. *
  28303. * @param {object} dispatchConfig Dispatch configuration for the event.
  28304. * @param {object} PluginModule Plugin publishing the event.
  28305. * @return {boolean} True if the event was successfully published.
  28306. * @private
  28307. */
  28308. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  28309. if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  28310. {
  28311. throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + eventName + "`." );
  28312. }
  28313. }
  28314. eventNameDispatchConfigs[eventName] = dispatchConfig;
  28315. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  28316. if (phasedRegistrationNames) {
  28317. for (var phaseName in phasedRegistrationNames) {
  28318. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  28319. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  28320. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  28321. }
  28322. }
  28323. return true;
  28324. } else if (dispatchConfig.registrationName) {
  28325. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  28326. return true;
  28327. }
  28328. return false;
  28329. }
  28330. /**
  28331. * Publishes a registration name that is used to identify dispatched events.
  28332. *
  28333. * @param {string} registrationName Registration name to add.
  28334. * @param {object} PluginModule Plugin publishing the event.
  28335. * @private
  28336. */
  28337. function publishRegistrationName(registrationName, pluginModule, eventName) {
  28338. if (!!registrationNameModules[registrationName]) {
  28339. {
  28340. throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + registrationName + "`." );
  28341. }
  28342. }
  28343. registrationNameModules[registrationName] = pluginModule;
  28344. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  28345. {
  28346. var lowerCasedName = registrationName.toLowerCase();
  28347. possibleRegistrationNames[lowerCasedName] = registrationName;
  28348. if (registrationName === 'onDoubleClick') {
  28349. possibleRegistrationNames.ondblclick = registrationName;
  28350. }
  28351. }
  28352. }
  28353. /**
  28354. * Registers plugins so that they can extract and dispatch events.
  28355. */
  28356. /**
  28357. * Ordered list of injected plugins.
  28358. */
  28359. var plugins = [];
  28360. /**
  28361. * Mapping from event name to dispatch config
  28362. */
  28363. var eventNameDispatchConfigs = {};
  28364. /**
  28365. * Mapping from registration name to plugin module
  28366. */
  28367. var registrationNameModules = {};
  28368. /**
  28369. * Mapping from registration name to event name
  28370. */
  28371. var registrationNameDependencies = {};
  28372. /**
  28373. * Mapping from lowercase registration names to the properly cased version,
  28374. * used to warn in the case of missing event handlers. Available
  28375. * only in true.
  28376. * @type {Object}
  28377. */
  28378. var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true
  28379. /**
  28380. * Injects an ordering of plugins (by plugin name). This allows the ordering
  28381. * to be decoupled from injection of the actual plugins so that ordering is
  28382. * always deterministic regardless of packaging, on-the-fly injection, etc.
  28383. *
  28384. * @param {array} InjectedEventPluginOrder
  28385. * @internal
  28386. */
  28387. function injectEventPluginOrder(injectedEventPluginOrder) {
  28388. if (!!eventPluginOrder) {
  28389. {
  28390. throw Error( "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React." );
  28391. }
  28392. } // Clone the ordering so it cannot be dynamically mutated.
  28393. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  28394. recomputePluginOrdering();
  28395. }
  28396. /**
  28397. * Injects plugins to be used by plugin event system. The plugin names must be
  28398. * in the ordering injected by `injectEventPluginOrder`.
  28399. *
  28400. * Plugins can be injected as part of page initialization or on-the-fly.
  28401. *
  28402. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  28403. * @internal
  28404. */
  28405. function injectEventPluginsByName(injectedNamesToPlugins) {
  28406. var isOrderingDirty = false;
  28407. for (var pluginName in injectedNamesToPlugins) {
  28408. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  28409. continue;
  28410. }
  28411. var pluginModule = injectedNamesToPlugins[pluginName];
  28412. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  28413. if (!!namesToPlugins[pluginName]) {
  28414. {
  28415. throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`." );
  28416. }
  28417. }
  28418. namesToPlugins[pluginName] = pluginModule;
  28419. isOrderingDirty = true;
  28420. }
  28421. }
  28422. if (isOrderingDirty) {
  28423. recomputePluginOrdering();
  28424. }
  28425. }
  28426. var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
  28427. var PLUGIN_EVENT_SYSTEM = 1;
  28428. var IS_REPLAYED = 1 << 5;
  28429. var IS_FIRST_ANCESTOR = 1 << 6;
  28430. var restoreImpl = null;
  28431. var restoreTarget = null;
  28432. var restoreQueue = null;
  28433. function restoreStateOfTarget(target) {
  28434. // We perform this translation at the end of the event loop so that we
  28435. // always receive the correct fiber here
  28436. var internalInstance = getInstanceFromNode(target);
  28437. if (!internalInstance) {
  28438. // Unmounted
  28439. return;
  28440. }
  28441. if (!(typeof restoreImpl === 'function')) {
  28442. {
  28443. 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." );
  28444. }
  28445. }
  28446. var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.
  28447. if (stateNode) {
  28448. var _props = getFiberCurrentPropsFromNode(stateNode);
  28449. restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
  28450. }
  28451. }
  28452. function setRestoreImplementation(impl) {
  28453. restoreImpl = impl;
  28454. }
  28455. function enqueueStateRestore(target) {
  28456. if (restoreTarget) {
  28457. if (restoreQueue) {
  28458. restoreQueue.push(target);
  28459. } else {
  28460. restoreQueue = [target];
  28461. }
  28462. } else {
  28463. restoreTarget = target;
  28464. }
  28465. }
  28466. function needsStateRestore() {
  28467. return restoreTarget !== null || restoreQueue !== null;
  28468. }
  28469. function restoreStateIfNeeded() {
  28470. if (!restoreTarget) {
  28471. return;
  28472. }
  28473. var target = restoreTarget;
  28474. var queuedTargets = restoreQueue;
  28475. restoreTarget = null;
  28476. restoreQueue = null;
  28477. restoreStateOfTarget(target);
  28478. if (queuedTargets) {
  28479. for (var i = 0; i < queuedTargets.length; i++) {
  28480. restoreStateOfTarget(queuedTargets[i]);
  28481. }
  28482. }
  28483. }
  28484. var enableProfilerTimer = true; // Trace which interactions trigger each commit.
  28485. var enableDeprecatedFlareAPI = false; // Experimental Host Component support.
  28486. var enableFundamentalAPI = false; // Experimental Scope support.
  28487. var warnAboutStringRefs = false;
  28488. // the renderer. Such as when we're dispatching events or if third party
  28489. // libraries need to call batchedUpdates. Eventually, this API will go away when
  28490. // everything is batched by default. We'll then have a similar API to opt-out of
  28491. // scheduled work and instead do synchronous work.
  28492. // Defaults
  28493. var batchedUpdatesImpl = function (fn, bookkeeping) {
  28494. return fn(bookkeeping);
  28495. };
  28496. var discreteUpdatesImpl = function (fn, a, b, c, d) {
  28497. return fn(a, b, c, d);
  28498. };
  28499. var flushDiscreteUpdatesImpl = function () {};
  28500. var batchedEventUpdatesImpl = batchedUpdatesImpl;
  28501. var isInsideEventHandler = false;
  28502. var isBatchingEventUpdates = false;
  28503. function finishEventHandler() {
  28504. // Here we wait until all updates have propagated, which is important
  28505. // when using controlled components within layers:
  28506. // https://github.com/facebook/react/issues/1698
  28507. // Then we restore state of any controlled component.
  28508. var controlledComponentsHavePendingUpdates = needsStateRestore();
  28509. if (controlledComponentsHavePendingUpdates) {
  28510. // If a controlled event was fired, we may need to restore the state of
  28511. // the DOM node back to the controlled value. This is necessary when React
  28512. // bails out of the update without touching the DOM.
  28513. flushDiscreteUpdatesImpl();
  28514. restoreStateIfNeeded();
  28515. }
  28516. }
  28517. function batchedUpdates(fn, bookkeeping) {
  28518. if (isInsideEventHandler) {
  28519. // If we are currently inside another batch, we need to wait until it
  28520. // fully completes before restoring state.
  28521. return fn(bookkeeping);
  28522. }
  28523. isInsideEventHandler = true;
  28524. try {
  28525. return batchedUpdatesImpl(fn, bookkeeping);
  28526. } finally {
  28527. isInsideEventHandler = false;
  28528. finishEventHandler();
  28529. }
  28530. }
  28531. function batchedEventUpdates(fn, a, b) {
  28532. if (isBatchingEventUpdates) {
  28533. // If we are currently inside another batch, we need to wait until it
  28534. // fully completes before restoring state.
  28535. return fn(a, b);
  28536. }
  28537. isBatchingEventUpdates = true;
  28538. try {
  28539. return batchedEventUpdatesImpl(fn, a, b);
  28540. } finally {
  28541. isBatchingEventUpdates = false;
  28542. finishEventHandler();
  28543. }
  28544. } // This is for the React Flare event system
  28545. function discreteUpdates(fn, a, b, c, d) {
  28546. var prevIsInsideEventHandler = isInsideEventHandler;
  28547. isInsideEventHandler = true;
  28548. try {
  28549. return discreteUpdatesImpl(fn, a, b, c, d);
  28550. } finally {
  28551. isInsideEventHandler = prevIsInsideEventHandler;
  28552. if (!isInsideEventHandler) {
  28553. finishEventHandler();
  28554. }
  28555. }
  28556. }
  28557. function flushDiscreteUpdatesIfNeeded(timeStamp) {
  28558. // event.timeStamp isn't overly reliable due to inconsistencies in
  28559. // how different browsers have historically provided the time stamp.
  28560. // Some browsers provide high-resolution time stamps for all events,
  28561. // some provide low-resolution time stamps for all events. FF < 52
  28562. // even mixes both time stamps together. Some browsers even report
  28563. // negative time stamps or time stamps that are 0 (iOS9) in some cases.
  28564. // Given we are only comparing two time stamps with equality (!==),
  28565. // we are safe from the resolution differences. If the time stamp is 0
  28566. // we bail-out of preventing the flush, which can affect semantics,
  28567. // such as if an earlier flush removes or adds event listeners that
  28568. // are fired in the subsequent flush. However, this is the same
  28569. // behaviour as we had before this change, so the risks are low.
  28570. if (!isInsideEventHandler && (!enableDeprecatedFlareAPI )) {
  28571. flushDiscreteUpdatesImpl();
  28572. }
  28573. }
  28574. function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  28575. batchedUpdatesImpl = _batchedUpdatesImpl;
  28576. discreteUpdatesImpl = _discreteUpdatesImpl;
  28577. flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  28578. batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
  28579. }
  28580. var DiscreteEvent = 0;
  28581. var UserBlockingEvent = 1;
  28582. var ContinuousEvent = 2;
  28583. // A reserved attribute.
  28584. // It is handled by React separately and shouldn't be written to the DOM.
  28585. var RESERVED = 0; // A simple string attribute.
  28586. // Attributes that aren't in the whitelist are presumed to have this type.
  28587. var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
  28588. // "enumerated" attributes with "true" and "false" as possible values.
  28589. // When true, it should be set to a "true" string.
  28590. // When false, it should be set to a "false" string.
  28591. var BOOLEANISH_STRING = 2; // A real boolean attribute.
  28592. // When true, it should be present (set either to an empty string or its name).
  28593. // When false, it should be omitted.
  28594. var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.
  28595. // When true, it should be present (set either to an empty string or its name).
  28596. // When false, it should be omitted.
  28597. // For any other value, should be present with that value.
  28598. var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.
  28599. // When falsy, it should be removed.
  28600. var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
  28601. // When falsy, it should be removed.
  28602. var POSITIVE_NUMERIC = 6;
  28603. /* eslint-disable max-len */
  28604. 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";
  28605. /* eslint-enable max-len */
  28606. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
  28607. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  28608. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  28609. var hasOwnProperty = Object.prototype.hasOwnProperty;
  28610. var illegalAttributeNameCache = {};
  28611. var validatedAttributeNameCache = {};
  28612. function isAttributeNameSafe(attributeName) {
  28613. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  28614. return true;
  28615. }
  28616. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  28617. return false;
  28618. }
  28619. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  28620. validatedAttributeNameCache[attributeName] = true;
  28621. return true;
  28622. }
  28623. illegalAttributeNameCache[attributeName] = true;
  28624. {
  28625. error('Invalid attribute name: `%s`', attributeName);
  28626. }
  28627. return false;
  28628. }
  28629. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  28630. if (propertyInfo !== null) {
  28631. return propertyInfo.type === RESERVED;
  28632. }
  28633. if (isCustomComponentTag) {
  28634. return false;
  28635. }
  28636. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  28637. return true;
  28638. }
  28639. return false;
  28640. }
  28641. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  28642. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  28643. return false;
  28644. }
  28645. switch (typeof value) {
  28646. case 'function': // $FlowIssue symbol is perfectly valid here
  28647. case 'symbol':
  28648. // eslint-disable-line
  28649. return true;
  28650. case 'boolean':
  28651. {
  28652. if (isCustomComponentTag) {
  28653. return false;
  28654. }
  28655. if (propertyInfo !== null) {
  28656. return !propertyInfo.acceptsBooleans;
  28657. } else {
  28658. var prefix = name.toLowerCase().slice(0, 5);
  28659. return prefix !== 'data-' && prefix !== 'aria-';
  28660. }
  28661. }
  28662. default:
  28663. return false;
  28664. }
  28665. }
  28666. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  28667. if (value === null || typeof value === 'undefined') {
  28668. return true;
  28669. }
  28670. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  28671. return true;
  28672. }
  28673. if (isCustomComponentTag) {
  28674. return false;
  28675. }
  28676. if (propertyInfo !== null) {
  28677. switch (propertyInfo.type) {
  28678. case BOOLEAN:
  28679. return !value;
  28680. case OVERLOADED_BOOLEAN:
  28681. return value === false;
  28682. case NUMERIC:
  28683. return isNaN(value);
  28684. case POSITIVE_NUMERIC:
  28685. return isNaN(value) || value < 1;
  28686. }
  28687. }
  28688. return false;
  28689. }
  28690. function getPropertyInfo(name) {
  28691. return properties.hasOwnProperty(name) ? properties[name] : null;
  28692. }
  28693. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) {
  28694. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  28695. this.attributeName = attributeName;
  28696. this.attributeNamespace = attributeNamespace;
  28697. this.mustUseProperty = mustUseProperty;
  28698. this.propertyName = name;
  28699. this.type = type;
  28700. this.sanitizeURL = sanitizeURL;
  28701. } // When adding attributes to this list, be sure to also add them to
  28702. // the `possibleStandardNames` module to ensure casing and incorrect
  28703. // name warnings.
  28704. var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.
  28705. var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
  28706. // elements (not just inputs). Now that ReactDOMInput assigns to the
  28707. // defaultValue property -- do we need this?
  28708. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
  28709. reservedProps.forEach(function (name) {
  28710. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  28711. name, // attributeName
  28712. null, // attributeNamespace
  28713. false);
  28714. }); // A few React string attributes have a different name.
  28715. // This is a mapping from React prop names to the attribute names.
  28716. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  28717. var name = _ref[0],
  28718. attributeName = _ref[1];
  28719. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  28720. attributeName, // attributeName
  28721. null, // attributeNamespace
  28722. false);
  28723. }); // These are "enumerated" HTML attributes that accept "true" and "false".
  28724. // In React, we let users pass `true` and `false` even though technically
  28725. // these aren't boolean attributes (they are coerced to strings).
  28726. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  28727. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  28728. name.toLowerCase(), // attributeName
  28729. null, // attributeNamespace
  28730. false);
  28731. }); // These are "enumerated" SVG attributes that accept "true" and "false".
  28732. // In React, we let users pass `true` and `false` even though technically
  28733. // these aren't boolean attributes (they are coerced to strings).
  28734. // Since these are SVG attributes, their attribute names are case-sensitive.
  28735. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  28736. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  28737. name, // attributeName
  28738. null, // attributeNamespace
  28739. false);
  28740. }); // These are HTML boolean attributes.
  28741. ['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM
  28742. // on the client side because the browsers are inconsistent. Instead we call focus().
  28743. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
  28744. 'itemScope'].forEach(function (name) {
  28745. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  28746. name.toLowerCase(), // attributeName
  28747. null, // attributeNamespace
  28748. false);
  28749. }); // These are the few React props that we set as DOM properties
  28750. // rather than attributes. These are all booleans.
  28751. ['checked', // Note: `option.selected` is not updated if `select.multiple` is
  28752. // disabled with `removeAttribute`. We have special logic for handling this.
  28753. 'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,
  28754. // you'll need to set attributeName to name.toLowerCase()
  28755. // instead in the assignment below.
  28756. ].forEach(function (name) {
  28757. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  28758. name, // attributeName
  28759. null, // attributeNamespace
  28760. false);
  28761. }); // These are HTML attributes that are "overloaded booleans": they behave like
  28762. // booleans, but can also accept a string value.
  28763. ['capture', 'download' // NOTE: if you add a camelCased prop to this list,
  28764. // you'll need to set attributeName to name.toLowerCase()
  28765. // instead in the assignment below.
  28766. ].forEach(function (name) {
  28767. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  28768. name, // attributeName
  28769. null, // attributeNamespace
  28770. false);
  28771. }); // These are HTML attributes that must be positive numbers.
  28772. ['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
  28773. // you'll need to set attributeName to name.toLowerCase()
  28774. // instead in the assignment below.
  28775. ].forEach(function (name) {
  28776. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  28777. name, // attributeName
  28778. null, // attributeNamespace
  28779. false);
  28780. }); // These are HTML attributes that must be numbers.
  28781. ['rowSpan', 'start'].forEach(function (name) {
  28782. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  28783. name.toLowerCase(), // attributeName
  28784. null, // attributeNamespace
  28785. false);
  28786. });
  28787. var CAMELIZE = /[\-\:]([a-z])/g;
  28788. var capitalize = function (token) {
  28789. return token[1].toUpperCase();
  28790. }; // This is a list of all SVG attributes that need special casing, namespacing,
  28791. // or boolean value assignment. Regular attributes that just accept strings
  28792. // and have the same names are omitted, just like in the HTML whitelist.
  28793. // Some of these attributes can be hard to find. This list was created by
  28794. // scraping the MDN documentation.
  28795. ['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,
  28796. // you'll need to set attributeName to name.toLowerCase()
  28797. // instead in the assignment below.
  28798. ].forEach(function (attributeName) {
  28799. var name = attributeName.replace(CAMELIZE, capitalize);
  28800. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  28801. attributeName, null, // attributeNamespace
  28802. false);
  28803. }); // String SVG attributes with the xlink namespace.
  28804. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
  28805. // you'll need to set attributeName to name.toLowerCase()
  28806. // instead in the assignment below.
  28807. ].forEach(function (attributeName) {
  28808. var name = attributeName.replace(CAMELIZE, capitalize);
  28809. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  28810. attributeName, 'http://www.w3.org/1999/xlink', false);
  28811. }); // String SVG attributes with the xml namespace.
  28812. ['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
  28813. // you'll need to set attributeName to name.toLowerCase()
  28814. // instead in the assignment below.
  28815. ].forEach(function (attributeName) {
  28816. var name = attributeName.replace(CAMELIZE, capitalize);
  28817. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  28818. attributeName, 'http://www.w3.org/XML/1998/namespace', false);
  28819. }); // These attribute exists both in HTML and SVG.
  28820. // The attribute name is case-sensitive in SVG so we can't just use
  28821. // the React name like we do for attributes that exist only in HTML.
  28822. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  28823. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  28824. attributeName.toLowerCase(), // attributeName
  28825. null, // attributeNamespace
  28826. false);
  28827. }); // These attributes accept URLs. These must not allow javascript: URLS.
  28828. // These will also need to accept Trusted Types object in the future.
  28829. var xlinkHref = 'xlinkHref';
  28830. properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
  28831. 'xlink:href', 'http://www.w3.org/1999/xlink', true);
  28832. ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  28833. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  28834. attributeName.toLowerCase(), // attributeName
  28835. null, // attributeNamespace
  28836. true);
  28837. });
  28838. var ReactDebugCurrentFrame = null;
  28839. {
  28840. ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  28841. } // A javascript: URL can contain leading C0 control or \u0020 SPACE,
  28842. // and any newline or tab are filtered out as if they're not part of the URL.
  28843. // https://url.spec.whatwg.org/#url-parsing
  28844. // Tab or newline are defined as \r\n\t:
  28845. // https://infra.spec.whatwg.org/#ascii-tab-or-newline
  28846. // A C0 control is a code point in the range \u0000 NULL to \u001F
  28847. // INFORMATION SEPARATOR ONE, inclusive:
  28848. // https://infra.spec.whatwg.org/#c0-control-or-space
  28849. /* eslint-disable max-len */
  28850. 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;
  28851. var didWarn = false;
  28852. function sanitizeURL(url) {
  28853. {
  28854. if (!didWarn && isJavaScriptProtocol.test(url)) {
  28855. didWarn = true;
  28856. 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));
  28857. }
  28858. }
  28859. }
  28860. /**
  28861. * Get the value for a property on a node. Only used in DEV for SSR validation.
  28862. * The "expected" argument is used as a hint of what the expected value is.
  28863. * Some properties have multiple equivalent values.
  28864. */
  28865. function getValueForProperty(node, name, expected, propertyInfo) {
  28866. {
  28867. if (propertyInfo.mustUseProperty) {
  28868. var propertyName = propertyInfo.propertyName;
  28869. return node[propertyName];
  28870. } else {
  28871. if ( propertyInfo.sanitizeURL) {
  28872. // If we haven't fully disabled javascript: URLs, and if
  28873. // the hydration is successful of a javascript: URL, we
  28874. // still want to warn on the client.
  28875. sanitizeURL('' + expected);
  28876. }
  28877. var attributeName = propertyInfo.attributeName;
  28878. var stringValue = null;
  28879. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  28880. if (node.hasAttribute(attributeName)) {
  28881. var value = node.getAttribute(attributeName);
  28882. if (value === '') {
  28883. return true;
  28884. }
  28885. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  28886. return value;
  28887. }
  28888. if (value === '' + expected) {
  28889. return expected;
  28890. }
  28891. return value;
  28892. }
  28893. } else if (node.hasAttribute(attributeName)) {
  28894. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  28895. // We had an attribute but shouldn't have had one, so read it
  28896. // for the error message.
  28897. return node.getAttribute(attributeName);
  28898. }
  28899. if (propertyInfo.type === BOOLEAN) {
  28900. // If this was a boolean, it doesn't matter what the value is
  28901. // the fact that we have it is the same as the expected.
  28902. return expected;
  28903. } // Even if this property uses a namespace we use getAttribute
  28904. // because we assume its namespaced name is the same as our config.
  28905. // To use getAttributeNS we need the local name which we don't have
  28906. // in our config atm.
  28907. stringValue = node.getAttribute(attributeName);
  28908. }
  28909. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  28910. return stringValue === null ? expected : stringValue;
  28911. } else if (stringValue === '' + expected) {
  28912. return expected;
  28913. } else {
  28914. return stringValue;
  28915. }
  28916. }
  28917. }
  28918. }
  28919. /**
  28920. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  28921. * The third argument is used as a hint of what the expected value is. Some
  28922. * attributes have multiple equivalent values.
  28923. */
  28924. function getValueForAttribute(node, name, expected) {
  28925. {
  28926. if (!isAttributeNameSafe(name)) {
  28927. return;
  28928. }
  28929. if (!node.hasAttribute(name)) {
  28930. return expected === undefined ? undefined : null;
  28931. }
  28932. var value = node.getAttribute(name);
  28933. if (value === '' + expected) {
  28934. return expected;
  28935. }
  28936. return value;
  28937. }
  28938. }
  28939. /**
  28940. * Sets the value for a property on a node.
  28941. *
  28942. * @param {DOMElement} node
  28943. * @param {string} name
  28944. * @param {*} value
  28945. */
  28946. function setValueForProperty(node, name, value, isCustomComponentTag) {
  28947. var propertyInfo = getPropertyInfo(name);
  28948. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  28949. return;
  28950. }
  28951. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  28952. value = null;
  28953. } // If the prop isn't in the special list, treat it as a simple attribute.
  28954. if (isCustomComponentTag || propertyInfo === null) {
  28955. if (isAttributeNameSafe(name)) {
  28956. var _attributeName = name;
  28957. if (value === null) {
  28958. node.removeAttribute(_attributeName);
  28959. } else {
  28960. node.setAttribute(_attributeName, '' + value);
  28961. }
  28962. }
  28963. return;
  28964. }
  28965. var mustUseProperty = propertyInfo.mustUseProperty;
  28966. if (mustUseProperty) {
  28967. var propertyName = propertyInfo.propertyName;
  28968. if (value === null) {
  28969. var type = propertyInfo.type;
  28970. node[propertyName] = type === BOOLEAN ? false : '';
  28971. } else {
  28972. // Contrary to `setAttribute`, object properties are properly
  28973. // `toString`ed by IE8/9.
  28974. node[propertyName] = value;
  28975. }
  28976. return;
  28977. } // The rest are treated as attributes with special cases.
  28978. var attributeName = propertyInfo.attributeName,
  28979. attributeNamespace = propertyInfo.attributeNamespace;
  28980. if (value === null) {
  28981. node.removeAttribute(attributeName);
  28982. } else {
  28983. var _type = propertyInfo.type;
  28984. var attributeValue;
  28985. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  28986. // If attribute type is boolean, we know for sure it won't be an execution sink
  28987. // and we won't require Trusted Type here.
  28988. attributeValue = '';
  28989. } else {
  28990. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  28991. // ('' + value) makes it output the correct toString()-value.
  28992. {
  28993. attributeValue = '' + value;
  28994. }
  28995. if (propertyInfo.sanitizeURL) {
  28996. sanitizeURL(attributeValue.toString());
  28997. }
  28998. }
  28999. if (attributeNamespace) {
  29000. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  29001. } else {
  29002. node.setAttribute(attributeName, attributeValue);
  29003. }
  29004. }
  29005. }
  29006. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  29007. function describeComponentFrame (name, source, ownerName) {
  29008. var sourceInfo = '';
  29009. if (source) {
  29010. var path = source.fileName;
  29011. var fileName = path.replace(BEFORE_SLASH_RE, '');
  29012. {
  29013. // In DEV, include code for a common special case:
  29014. // prefer "folder/index.js" instead of just "index.js".
  29015. if (/^index\./.test(fileName)) {
  29016. var match = path.match(BEFORE_SLASH_RE);
  29017. if (match) {
  29018. var pathBeforeSlash = match[1];
  29019. if (pathBeforeSlash) {
  29020. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  29021. fileName = folderName + '/' + fileName;
  29022. }
  29023. }
  29024. }
  29025. }
  29026. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  29027. } else if (ownerName) {
  29028. sourceInfo = ' (created by ' + ownerName + ')';
  29029. }
  29030. return '\n in ' + (name || 'Unknown') + sourceInfo;
  29031. }
  29032. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  29033. // nor polyfill, then a plain number is used for performance.
  29034. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  29035. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  29036. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  29037. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  29038. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  29039. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  29040. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  29041. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  29042. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  29043. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  29044. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  29045. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  29046. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  29047. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  29048. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
  29049. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  29050. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  29051. function getIteratorFn(maybeIterable) {
  29052. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  29053. return null;
  29054. }
  29055. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  29056. if (typeof maybeIterator === 'function') {
  29057. return maybeIterator;
  29058. }
  29059. return null;
  29060. }
  29061. var Uninitialized = -1;
  29062. var Pending = 0;
  29063. var Resolved = 1;
  29064. var Rejected = 2;
  29065. function refineResolvedLazyComponent(lazyComponent) {
  29066. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  29067. }
  29068. function initializeLazyComponentType(lazyComponent) {
  29069. if (lazyComponent._status === Uninitialized) {
  29070. lazyComponent._status = Pending;
  29071. var ctor = lazyComponent._ctor;
  29072. var thenable = ctor();
  29073. lazyComponent._result = thenable;
  29074. thenable.then(function (moduleObject) {
  29075. if (lazyComponent._status === Pending) {
  29076. var defaultExport = moduleObject.default;
  29077. {
  29078. if (defaultExport === undefined) {
  29079. 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);
  29080. }
  29081. }
  29082. lazyComponent._status = Resolved;
  29083. lazyComponent._result = defaultExport;
  29084. }
  29085. }, function (error) {
  29086. if (lazyComponent._status === Pending) {
  29087. lazyComponent._status = Rejected;
  29088. lazyComponent._result = error;
  29089. }
  29090. });
  29091. }
  29092. }
  29093. function getWrappedName(outerType, innerType, wrapperName) {
  29094. var functionName = innerType.displayName || innerType.name || '';
  29095. return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
  29096. }
  29097. function getComponentName(type) {
  29098. if (type == null) {
  29099. // Host root, text node or just invalid type.
  29100. return null;
  29101. }
  29102. {
  29103. if (typeof type.tag === 'number') {
  29104. error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  29105. }
  29106. }
  29107. if (typeof type === 'function') {
  29108. return type.displayName || type.name || null;
  29109. }
  29110. if (typeof type === 'string') {
  29111. return type;
  29112. }
  29113. switch (type) {
  29114. case REACT_FRAGMENT_TYPE:
  29115. return 'Fragment';
  29116. case REACT_PORTAL_TYPE:
  29117. return 'Portal';
  29118. case REACT_PROFILER_TYPE:
  29119. return "Profiler";
  29120. case REACT_STRICT_MODE_TYPE:
  29121. return 'StrictMode';
  29122. case REACT_SUSPENSE_TYPE:
  29123. return 'Suspense';
  29124. case REACT_SUSPENSE_LIST_TYPE:
  29125. return 'SuspenseList';
  29126. }
  29127. if (typeof type === 'object') {
  29128. switch (type.$$typeof) {
  29129. case REACT_CONTEXT_TYPE:
  29130. return 'Context.Consumer';
  29131. case REACT_PROVIDER_TYPE:
  29132. return 'Context.Provider';
  29133. case REACT_FORWARD_REF_TYPE:
  29134. return getWrappedName(type, type.render, 'ForwardRef');
  29135. case REACT_MEMO_TYPE:
  29136. return getComponentName(type.type);
  29137. case REACT_BLOCK_TYPE:
  29138. return getComponentName(type.render);
  29139. case REACT_LAZY_TYPE:
  29140. {
  29141. var thenable = type;
  29142. var resolvedThenable = refineResolvedLazyComponent(thenable);
  29143. if (resolvedThenable) {
  29144. return getComponentName(resolvedThenable);
  29145. }
  29146. break;
  29147. }
  29148. }
  29149. }
  29150. return null;
  29151. }
  29152. var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  29153. function describeFiber(fiber) {
  29154. switch (fiber.tag) {
  29155. case HostRoot:
  29156. case HostPortal:
  29157. case HostText:
  29158. case Fragment:
  29159. case ContextProvider:
  29160. case ContextConsumer:
  29161. return '';
  29162. default:
  29163. var owner = fiber._debugOwner;
  29164. var source = fiber._debugSource;
  29165. var name = getComponentName(fiber.type);
  29166. var ownerName = null;
  29167. if (owner) {
  29168. ownerName = getComponentName(owner.type);
  29169. }
  29170. return describeComponentFrame(name, source, ownerName);
  29171. }
  29172. }
  29173. function getStackByFiberInDevAndProd(workInProgress) {
  29174. var info = '';
  29175. var node = workInProgress;
  29176. do {
  29177. info += describeFiber(node);
  29178. node = node.return;
  29179. } while (node);
  29180. return info;
  29181. }
  29182. var current = null;
  29183. var isRendering = false;
  29184. function getCurrentFiberOwnerNameInDevOrNull() {
  29185. {
  29186. if (current === null) {
  29187. return null;
  29188. }
  29189. var owner = current._debugOwner;
  29190. if (owner !== null && typeof owner !== 'undefined') {
  29191. return getComponentName(owner.type);
  29192. }
  29193. }
  29194. return null;
  29195. }
  29196. function getCurrentFiberStackInDev() {
  29197. {
  29198. if (current === null) {
  29199. return '';
  29200. } // Safe because if current fiber exists, we are reconciling,
  29201. // and it is guaranteed to be the work-in-progress version.
  29202. return getStackByFiberInDevAndProd(current);
  29203. }
  29204. }
  29205. function resetCurrentFiber() {
  29206. {
  29207. ReactDebugCurrentFrame$1.getCurrentStack = null;
  29208. current = null;
  29209. isRendering = false;
  29210. }
  29211. }
  29212. function setCurrentFiber(fiber) {
  29213. {
  29214. ReactDebugCurrentFrame$1.getCurrentStack = getCurrentFiberStackInDev;
  29215. current = fiber;
  29216. isRendering = false;
  29217. }
  29218. }
  29219. function setIsRendering(rendering) {
  29220. {
  29221. isRendering = rendering;
  29222. }
  29223. }
  29224. // Flow does not allow string concatenation of most non-string types. To work
  29225. // around this limitation, we use an opaque type that can only be obtained by
  29226. // passing the value through getToStringValue first.
  29227. function toString(value) {
  29228. return '' + value;
  29229. }
  29230. function getToStringValue(value) {
  29231. switch (typeof value) {
  29232. case 'boolean':
  29233. case 'number':
  29234. case 'object':
  29235. case 'string':
  29236. case 'undefined':
  29237. return value;
  29238. default:
  29239. // function, symbol are assigned as empty strings
  29240. return '';
  29241. }
  29242. }
  29243. var ReactDebugCurrentFrame$2 = null;
  29244. var ReactControlledValuePropTypes = {
  29245. checkPropTypes: null
  29246. };
  29247. {
  29248. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  29249. var hasReadOnlyValue = {
  29250. button: true,
  29251. checkbox: true,
  29252. image: true,
  29253. hidden: true,
  29254. radio: true,
  29255. reset: true,
  29256. submit: true
  29257. };
  29258. var propTypes = {
  29259. value: function (props, propName, componentName) {
  29260. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableDeprecatedFlareAPI ) {
  29261. return null;
  29262. }
  29263. 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`.');
  29264. },
  29265. checked: function (props, propName, componentName) {
  29266. if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableDeprecatedFlareAPI ) {
  29267. return null;
  29268. }
  29269. 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`.');
  29270. }
  29271. };
  29272. /**
  29273. * Provide a linked `value` attribute for controlled forms. You should not use
  29274. * this outside of the ReactDOM controlled form components.
  29275. */
  29276. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  29277. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);
  29278. };
  29279. }
  29280. function isCheckable(elem) {
  29281. var type = elem.type;
  29282. var nodeName = elem.nodeName;
  29283. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  29284. }
  29285. function getTracker(node) {
  29286. return node._valueTracker;
  29287. }
  29288. function detachTracker(node) {
  29289. node._valueTracker = null;
  29290. }
  29291. function getValueFromNode(node) {
  29292. var value = '';
  29293. if (!node) {
  29294. return value;
  29295. }
  29296. if (isCheckable(node)) {
  29297. value = node.checked ? 'true' : 'false';
  29298. } else {
  29299. value = node.value;
  29300. }
  29301. return value;
  29302. }
  29303. function trackValueOnNode(node) {
  29304. var valueField = isCheckable(node) ? 'checked' : 'value';
  29305. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  29306. var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail
  29307. // and don't track value will cause over reporting of changes,
  29308. // but it's better then a hard failure
  29309. // (needed for certain tests that spyOn input values and Safari)
  29310. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  29311. return;
  29312. }
  29313. var get = descriptor.get,
  29314. set = descriptor.set;
  29315. Object.defineProperty(node, valueField, {
  29316. configurable: true,
  29317. get: function () {
  29318. return get.call(this);
  29319. },
  29320. set: function (value) {
  29321. currentValue = '' + value;
  29322. set.call(this, value);
  29323. }
  29324. }); // We could've passed this the first time
  29325. // but it triggers a bug in IE11 and Edge 14/15.
  29326. // Calling defineProperty() again should be equivalent.
  29327. // https://github.com/facebook/react/issues/11768
  29328. Object.defineProperty(node, valueField, {
  29329. enumerable: descriptor.enumerable
  29330. });
  29331. var tracker = {
  29332. getValue: function () {
  29333. return currentValue;
  29334. },
  29335. setValue: function (value) {
  29336. currentValue = '' + value;
  29337. },
  29338. stopTracking: function () {
  29339. detachTracker(node);
  29340. delete node[valueField];
  29341. }
  29342. };
  29343. return tracker;
  29344. }
  29345. function track(node) {
  29346. if (getTracker(node)) {
  29347. return;
  29348. } // TODO: Once it's just Fiber we can move this to node._wrapperState
  29349. node._valueTracker = trackValueOnNode(node);
  29350. }
  29351. function updateValueIfChanged(node) {
  29352. if (!node) {
  29353. return false;
  29354. }
  29355. var tracker = getTracker(node); // if there is no tracker at this point it's unlikely
  29356. // that trying again will succeed
  29357. if (!tracker) {
  29358. return true;
  29359. }
  29360. var lastValue = tracker.getValue();
  29361. var nextValue = getValueFromNode(node);
  29362. if (nextValue !== lastValue) {
  29363. tracker.setValue(nextValue);
  29364. return true;
  29365. }
  29366. return false;
  29367. }
  29368. var didWarnValueDefaultValue = false;
  29369. var didWarnCheckedDefaultChecked = false;
  29370. var didWarnControlledToUncontrolled = false;
  29371. var didWarnUncontrolledToControlled = false;
  29372. function isControlled(props) {
  29373. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  29374. return usesChecked ? props.checked != null : props.value != null;
  29375. }
  29376. /**
  29377. * Implements an <input> host component that allows setting these optional
  29378. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  29379. *
  29380. * If `checked` or `value` are not supplied (or null/undefined), user actions
  29381. * that affect the checked state or value will trigger updates to the element.
  29382. *
  29383. * If they are supplied (and not null/undefined), the rendered element will not
  29384. * trigger updates to the element. Instead, the props must change in order for
  29385. * the rendered element to be updated.
  29386. *
  29387. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  29388. * with an empty value (or `defaultValue`).
  29389. *
  29390. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  29391. */
  29392. function getHostProps(element, props) {
  29393. var node = element;
  29394. var checked = props.checked;
  29395. var hostProps = _assign({}, props, {
  29396. defaultChecked: undefined,
  29397. defaultValue: undefined,
  29398. value: undefined,
  29399. checked: checked != null ? checked : node._wrapperState.initialChecked
  29400. });
  29401. return hostProps;
  29402. }
  29403. function initWrapperState(element, props) {
  29404. {
  29405. ReactControlledValuePropTypes.checkPropTypes('input', props);
  29406. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  29407. 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);
  29408. didWarnCheckedDefaultChecked = true;
  29409. }
  29410. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  29411. 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);
  29412. didWarnValueDefaultValue = true;
  29413. }
  29414. }
  29415. var node = element;
  29416. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  29417. node._wrapperState = {
  29418. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  29419. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  29420. controlled: isControlled(props)
  29421. };
  29422. }
  29423. function updateChecked(element, props) {
  29424. var node = element;
  29425. var checked = props.checked;
  29426. if (checked != null) {
  29427. setValueForProperty(node, 'checked', checked, false);
  29428. }
  29429. }
  29430. function updateWrapper(element, props) {
  29431. var node = element;
  29432. {
  29433. var controlled = isControlled(props);
  29434. if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
  29435. 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);
  29436. didWarnUncontrolledToControlled = true;
  29437. }
  29438. if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
  29439. 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);
  29440. didWarnControlledToUncontrolled = true;
  29441. }
  29442. }
  29443. updateChecked(element, props);
  29444. var value = getToStringValue(props.value);
  29445. var type = props.type;
  29446. if (value != null) {
  29447. if (type === 'number') {
  29448. if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.
  29449. // eslint-disable-next-line
  29450. node.value != value) {
  29451. node.value = toString(value);
  29452. }
  29453. } else if (node.value !== toString(value)) {
  29454. node.value = toString(value);
  29455. }
  29456. } else if (type === 'submit' || type === 'reset') {
  29457. // Submit/reset inputs need the attribute removed completely to avoid
  29458. // blank-text buttons.
  29459. node.removeAttribute('value');
  29460. return;
  29461. }
  29462. {
  29463. // When syncing the value attribute, the value comes from a cascade of
  29464. // properties:
  29465. // 1. The value React property
  29466. // 2. The defaultValue React property
  29467. // 3. Otherwise there should be no change
  29468. if (props.hasOwnProperty('value')) {
  29469. setDefaultValue(node, props.type, value);
  29470. } else if (props.hasOwnProperty('defaultValue')) {
  29471. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  29472. }
  29473. }
  29474. {
  29475. // When syncing the checked attribute, it only changes when it needs
  29476. // to be removed, such as transitioning from a checkbox into a text input
  29477. if (props.checked == null && props.defaultChecked != null) {
  29478. node.defaultChecked = !!props.defaultChecked;
  29479. }
  29480. }
  29481. }
  29482. function postMountWrapper(element, props, isHydrating) {
  29483. var node = element; // Do not assign value if it is already set. This prevents user text input
  29484. // from being lost during SSR hydration.
  29485. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  29486. var type = props.type;
  29487. var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the
  29488. // default value provided by the browser. See: #12872
  29489. if (isButton && (props.value === undefined || props.value === null)) {
  29490. return;
  29491. }
  29492. var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input
  29493. // from being lost during SSR hydration.
  29494. if (!isHydrating) {
  29495. {
  29496. // When syncing the value attribute, the value property should use
  29497. // the wrapperState._initialValue property. This uses:
  29498. //
  29499. // 1. The value React property when present
  29500. // 2. The defaultValue React property when present
  29501. // 3. An empty string
  29502. if (initialValue !== node.value) {
  29503. node.value = initialValue;
  29504. }
  29505. }
  29506. }
  29507. {
  29508. // Otherwise, the value attribute is synchronized to the property,
  29509. // so we assign defaultValue to the same thing as the value property
  29510. // assignment step above.
  29511. node.defaultValue = initialValue;
  29512. }
  29513. } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  29514. // this is needed to work around a chrome bug where setting defaultChecked
  29515. // will sometimes influence the value of checked (even after detachment).
  29516. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  29517. // We need to temporarily unset name to avoid disrupting radio button groups.
  29518. var name = node.name;
  29519. if (name !== '') {
  29520. node.name = '';
  29521. }
  29522. {
  29523. // When syncing the checked attribute, both the checked property and
  29524. // attribute are assigned at the same time using defaultChecked. This uses:
  29525. //
  29526. // 1. The checked React property when present
  29527. // 2. The defaultChecked React property when present
  29528. // 3. Otherwise, false
  29529. node.defaultChecked = !node.defaultChecked;
  29530. node.defaultChecked = !!node._wrapperState.initialChecked;
  29531. }
  29532. if (name !== '') {
  29533. node.name = name;
  29534. }
  29535. }
  29536. function restoreControlledState(element, props) {
  29537. var node = element;
  29538. updateWrapper(node, props);
  29539. updateNamedCousins(node, props);
  29540. }
  29541. function updateNamedCousins(rootNode, props) {
  29542. var name = props.name;
  29543. if (props.type === 'radio' && name != null) {
  29544. var queryRoot = rootNode;
  29545. while (queryRoot.parentNode) {
  29546. queryRoot = queryRoot.parentNode;
  29547. } // If `rootNode.form` was non-null, then we could try `form.elements`,
  29548. // but that sometimes behaves strangely in IE8. We could also try using
  29549. // `form.getElementsByName`, but that will only return direct children
  29550. // and won't include inputs that use the HTML5 `form=` attribute. Since
  29551. // the input might not even be in a form. It might not even be in the
  29552. // document. Let's just use the local `querySelectorAll` to ensure we don't
  29553. // miss anything.
  29554. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  29555. for (var i = 0; i < group.length; i++) {
  29556. var otherNode = group[i];
  29557. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  29558. continue;
  29559. } // This will throw if radio buttons rendered by different copies of React
  29560. // and the same name are rendered into the same form (same as #1939).
  29561. // That's probably okay; we don't support it just as we don't support
  29562. // mixing React radio buttons with non-React ones.
  29563. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  29564. if (!otherProps) {
  29565. {
  29566. throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." );
  29567. }
  29568. } // We need update the tracked value on the named cousin since the value
  29569. // was changed but the input saw no event or value set
  29570. updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that
  29571. // was previously checked to update will cause it to be come re-checked
  29572. // as appropriate.
  29573. updateWrapper(otherNode, otherProps);
  29574. }
  29575. }
  29576. } // In Chrome, assigning defaultValue to certain input types triggers input validation.
  29577. // For number inputs, the display value loses trailing decimal points. For email inputs,
  29578. // Chrome raises "The specified value <x> is not a valid email address".
  29579. //
  29580. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  29581. // when the user is inputting text
  29582. //
  29583. // https://github.com/facebook/react/issues/7253
  29584. function setDefaultValue(node, type, value) {
  29585. if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  29586. type !== 'number' || node.ownerDocument.activeElement !== node) {
  29587. if (value == null) {
  29588. node.defaultValue = toString(node._wrapperState.initialValue);
  29589. } else if (node.defaultValue !== toString(value)) {
  29590. node.defaultValue = toString(value);
  29591. }
  29592. }
  29593. }
  29594. var didWarnSelectedSetOnOption = false;
  29595. var didWarnInvalidChild = false;
  29596. function flattenChildren(children) {
  29597. var content = ''; // Flatten children. We'll warn if they are invalid
  29598. // during validateProps() which runs for hydration too.
  29599. // Note that this would throw on non-element objects.
  29600. // Elements are stringified (which is normally irrelevant
  29601. // but matters for <fbt>).
  29602. React.Children.forEach(children, function (child) {
  29603. if (child == null) {
  29604. return;
  29605. }
  29606. content += child; // Note: we don't warn about invalid children here.
  29607. // Instead, this is done separately below so that
  29608. // it happens during the hydration codepath too.
  29609. });
  29610. return content;
  29611. }
  29612. /**
  29613. * Implements an <option> host component that warns when `selected` is set.
  29614. */
  29615. function validateProps(element, props) {
  29616. {
  29617. // This mirrors the codepath above, but runs for hydration too.
  29618. // Warn about invalid children here so that client and hydration are consistent.
  29619. // TODO: this seems like it could cause a DEV-only throw for hydration
  29620. // if children contains a non-element object. We should try to avoid that.
  29621. if (typeof props.children === 'object' && props.children !== null) {
  29622. React.Children.forEach(props.children, function (child) {
  29623. if (child == null) {
  29624. return;
  29625. }
  29626. if (typeof child === 'string' || typeof child === 'number') {
  29627. return;
  29628. }
  29629. if (typeof child.type !== 'string') {
  29630. return;
  29631. }
  29632. if (!didWarnInvalidChild) {
  29633. didWarnInvalidChild = true;
  29634. error('Only strings and numbers are supported as <option> children.');
  29635. }
  29636. });
  29637. } // TODO: Remove support for `selected` in <option>.
  29638. if (props.selected != null && !didWarnSelectedSetOnOption) {
  29639. error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  29640. didWarnSelectedSetOnOption = true;
  29641. }
  29642. }
  29643. }
  29644. function postMountWrapper$1(element, props) {
  29645. // value="" should make a value attribute (#6219)
  29646. if (props.value != null) {
  29647. element.setAttribute('value', toString(getToStringValue(props.value)));
  29648. }
  29649. }
  29650. function getHostProps$1(element, props) {
  29651. var hostProps = _assign({
  29652. children: undefined
  29653. }, props);
  29654. var content = flattenChildren(props.children);
  29655. if (content) {
  29656. hostProps.children = content;
  29657. }
  29658. return hostProps;
  29659. }
  29660. var didWarnValueDefaultValue$1;
  29661. {
  29662. didWarnValueDefaultValue$1 = false;
  29663. }
  29664. function getDeclarationErrorAddendum() {
  29665. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  29666. if (ownerName) {
  29667. return '\n\nCheck the render method of `' + ownerName + '`.';
  29668. }
  29669. return '';
  29670. }
  29671. var valuePropNames = ['value', 'defaultValue'];
  29672. /**
  29673. * Validation function for `value` and `defaultValue`.
  29674. */
  29675. function checkSelectPropTypes(props) {
  29676. {
  29677. ReactControlledValuePropTypes.checkPropTypes('select', props);
  29678. for (var i = 0; i < valuePropNames.length; i++) {
  29679. var propName = valuePropNames[i];
  29680. if (props[propName] == null) {
  29681. continue;
  29682. }
  29683. var isArray = Array.isArray(props[propName]);
  29684. if (props.multiple && !isArray) {
  29685. error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  29686. } else if (!props.multiple && isArray) {
  29687. error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  29688. }
  29689. }
  29690. }
  29691. }
  29692. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  29693. var options = node.options;
  29694. if (multiple) {
  29695. var selectedValues = propValue;
  29696. var selectedValue = {};
  29697. for (var i = 0; i < selectedValues.length; i++) {
  29698. // Prefix to avoid chaos with special keys.
  29699. selectedValue['$' + selectedValues[i]] = true;
  29700. }
  29701. for (var _i = 0; _i < options.length; _i++) {
  29702. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  29703. if (options[_i].selected !== selected) {
  29704. options[_i].selected = selected;
  29705. }
  29706. if (selected && setDefaultSelected) {
  29707. options[_i].defaultSelected = true;
  29708. }
  29709. }
  29710. } else {
  29711. // Do not set `select.value` as exact behavior isn't consistent across all
  29712. // browsers for all cases.
  29713. var _selectedValue = toString(getToStringValue(propValue));
  29714. var defaultSelected = null;
  29715. for (var _i2 = 0; _i2 < options.length; _i2++) {
  29716. if (options[_i2].value === _selectedValue) {
  29717. options[_i2].selected = true;
  29718. if (setDefaultSelected) {
  29719. options[_i2].defaultSelected = true;
  29720. }
  29721. return;
  29722. }
  29723. if (defaultSelected === null && !options[_i2].disabled) {
  29724. defaultSelected = options[_i2];
  29725. }
  29726. }
  29727. if (defaultSelected !== null) {
  29728. defaultSelected.selected = true;
  29729. }
  29730. }
  29731. }
  29732. /**
  29733. * Implements a <select> host component that allows optionally setting the
  29734. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  29735. * stringable. If `multiple` is true, the prop must be an array of stringables.
  29736. *
  29737. * If `value` is not supplied (or null/undefined), user actions that change the
  29738. * selected option will trigger updates to the rendered options.
  29739. *
  29740. * If it is supplied (and not null/undefined), the rendered options will not
  29741. * update in response to user actions. Instead, the `value` prop must change in
  29742. * order for the rendered options to update.
  29743. *
  29744. * If `defaultValue` is provided, any options with the supplied values will be
  29745. * selected.
  29746. */
  29747. function getHostProps$2(element, props) {
  29748. return _assign({}, props, {
  29749. value: undefined
  29750. });
  29751. }
  29752. function initWrapperState$1(element, props) {
  29753. var node = element;
  29754. {
  29755. checkSelectPropTypes(props);
  29756. }
  29757. node._wrapperState = {
  29758. wasMultiple: !!props.multiple
  29759. };
  29760. {
  29761. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  29762. 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');
  29763. didWarnValueDefaultValue$1 = true;
  29764. }
  29765. }
  29766. }
  29767. function postMountWrapper$2(element, props) {
  29768. var node = element;
  29769. node.multiple = !!props.multiple;
  29770. var value = props.value;
  29771. if (value != null) {
  29772. updateOptions(node, !!props.multiple, value, false);
  29773. } else if (props.defaultValue != null) {
  29774. updateOptions(node, !!props.multiple, props.defaultValue, true);
  29775. }
  29776. }
  29777. function postUpdateWrapper(element, props) {
  29778. var node = element;
  29779. var wasMultiple = node._wrapperState.wasMultiple;
  29780. node._wrapperState.wasMultiple = !!props.multiple;
  29781. var value = props.value;
  29782. if (value != null) {
  29783. updateOptions(node, !!props.multiple, value, false);
  29784. } else if (wasMultiple !== !!props.multiple) {
  29785. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  29786. if (props.defaultValue != null) {
  29787. updateOptions(node, !!props.multiple, props.defaultValue, true);
  29788. } else {
  29789. // Revert the select back to its default unselected state.
  29790. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  29791. }
  29792. }
  29793. }
  29794. function restoreControlledState$1(element, props) {
  29795. var node = element;
  29796. var value = props.value;
  29797. if (value != null) {
  29798. updateOptions(node, !!props.multiple, value, false);
  29799. }
  29800. }
  29801. var didWarnValDefaultVal = false;
  29802. /**
  29803. * Implements a <textarea> host component that allows setting `value`, and
  29804. * `defaultValue`. This differs from the traditional DOM API because value is
  29805. * usually set as PCDATA children.
  29806. *
  29807. * If `value` is not supplied (or null/undefined), user actions that affect the
  29808. * value will trigger updates to the element.
  29809. *
  29810. * If `value` is supplied (and not null/undefined), the rendered element will
  29811. * not trigger updates to the element. Instead, the `value` prop must change in
  29812. * order for the rendered element to be updated.
  29813. *
  29814. * The rendered element will be initialized with an empty value, the prop
  29815. * `defaultValue` if specified, or the children content (deprecated).
  29816. */
  29817. function getHostProps$3(element, props) {
  29818. var node = element;
  29819. if (!(props.dangerouslySetInnerHTML == null)) {
  29820. {
  29821. throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." );
  29822. }
  29823. } // Always set children to the same thing. In IE9, the selection range will
  29824. // get reset if `textContent` is mutated. We could add a check in setTextContent
  29825. // to only set the value if/when the value differs from the node value (which would
  29826. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  29827. // solution. The value can be a boolean or object so that's why it's forced
  29828. // to be a string.
  29829. var hostProps = _assign({}, props, {
  29830. value: undefined,
  29831. defaultValue: undefined,
  29832. children: toString(node._wrapperState.initialValue)
  29833. });
  29834. return hostProps;
  29835. }
  29836. function initWrapperState$2(element, props) {
  29837. var node = element;
  29838. {
  29839. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  29840. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  29841. 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');
  29842. didWarnValDefaultVal = true;
  29843. }
  29844. }
  29845. var initialValue = props.value; // Only bother fetching default value if we're going to use it
  29846. if (initialValue == null) {
  29847. var children = props.children,
  29848. defaultValue = props.defaultValue;
  29849. if (children != null) {
  29850. {
  29851. error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  29852. }
  29853. {
  29854. if (!(defaultValue == null)) {
  29855. {
  29856. throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." );
  29857. }
  29858. }
  29859. if (Array.isArray(children)) {
  29860. if (!(children.length <= 1)) {
  29861. {
  29862. throw Error( "<textarea> can only have at most one child." );
  29863. }
  29864. }
  29865. children = children[0];
  29866. }
  29867. defaultValue = children;
  29868. }
  29869. }
  29870. if (defaultValue == null) {
  29871. defaultValue = '';
  29872. }
  29873. initialValue = defaultValue;
  29874. }
  29875. node._wrapperState = {
  29876. initialValue: getToStringValue(initialValue)
  29877. };
  29878. }
  29879. function updateWrapper$1(element, props) {
  29880. var node = element;
  29881. var value = getToStringValue(props.value);
  29882. var defaultValue = getToStringValue(props.defaultValue);
  29883. if (value != null) {
  29884. // Cast `value` to a string to ensure the value is set correctly. While
  29885. // browsers typically do this as necessary, jsdom doesn't.
  29886. var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed
  29887. if (newValue !== node.value) {
  29888. node.value = newValue;
  29889. }
  29890. if (props.defaultValue == null && node.defaultValue !== newValue) {
  29891. node.defaultValue = newValue;
  29892. }
  29893. }
  29894. if (defaultValue != null) {
  29895. node.defaultValue = toString(defaultValue);
  29896. }
  29897. }
  29898. function postMountWrapper$3(element, props) {
  29899. var node = element; // This is in postMount because we need access to the DOM node, which is not
  29900. // available until after the component has mounted.
  29901. var textContent = node.textContent; // Only set node.value if textContent is equal to the expected
  29902. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  29903. // will populate textContent as well.
  29904. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  29905. if (textContent === node._wrapperState.initialValue) {
  29906. if (textContent !== '' && textContent !== null) {
  29907. node.value = textContent;
  29908. }
  29909. }
  29910. }
  29911. function restoreControlledState$2(element, props) {
  29912. // DOM component is still mounted; update
  29913. updateWrapper$1(element, props);
  29914. }
  29915. var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
  29916. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  29917. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  29918. var Namespaces = {
  29919. html: HTML_NAMESPACE,
  29920. mathml: MATH_NAMESPACE,
  29921. svg: SVG_NAMESPACE
  29922. }; // Assumes there is no parent namespace.
  29923. function getIntrinsicNamespace(type) {
  29924. switch (type) {
  29925. case 'svg':
  29926. return SVG_NAMESPACE;
  29927. case 'math':
  29928. return MATH_NAMESPACE;
  29929. default:
  29930. return HTML_NAMESPACE;
  29931. }
  29932. }
  29933. function getChildNamespace(parentNamespace, type) {
  29934. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
  29935. // No (or default) parent namespace: potential entry point.
  29936. return getIntrinsicNamespace(type);
  29937. }
  29938. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  29939. // We're leaving SVG.
  29940. return HTML_NAMESPACE;
  29941. } // By default, pass namespace below.
  29942. return parentNamespace;
  29943. }
  29944. /* globals MSApp */
  29945. /**
  29946. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  29947. */
  29948. var createMicrosoftUnsafeLocalFunction = function (func) {
  29949. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  29950. return function (arg0, arg1, arg2, arg3) {
  29951. MSApp.execUnsafeLocalFunction(function () {
  29952. return func(arg0, arg1, arg2, arg3);
  29953. });
  29954. };
  29955. } else {
  29956. return func;
  29957. }
  29958. };
  29959. var reusableSVGContainer;
  29960. /**
  29961. * Set the innerHTML property of a node
  29962. *
  29963. * @param {DOMElement} node
  29964. * @param {string} html
  29965. * @internal
  29966. */
  29967. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  29968. if (node.namespaceURI === Namespaces.svg) {
  29969. if (!('innerHTML' in node)) {
  29970. // IE does not have innerHTML for SVG nodes, so instead we inject the
  29971. // new markup in a temp node and then move the child nodes across into
  29972. // the target node
  29973. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  29974. reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
  29975. var svgNode = reusableSVGContainer.firstChild;
  29976. while (node.firstChild) {
  29977. node.removeChild(node.firstChild);
  29978. }
  29979. while (svgNode.firstChild) {
  29980. node.appendChild(svgNode.firstChild);
  29981. }
  29982. return;
  29983. }
  29984. }
  29985. node.innerHTML = html;
  29986. });
  29987. /**
  29988. * HTML nodeType values that represent the type of the node
  29989. */
  29990. var ELEMENT_NODE = 1;
  29991. var TEXT_NODE = 3;
  29992. var COMMENT_NODE = 8;
  29993. var DOCUMENT_NODE = 9;
  29994. var DOCUMENT_FRAGMENT_NODE = 11;
  29995. /**
  29996. * Set the textContent property of a node. For text updates, it's faster
  29997. * to set the `nodeValue` of the Text node directly instead of using
  29998. * `.textContent` which will remove the existing node and create a new one.
  29999. *
  30000. * @param {DOMElement} node
  30001. * @param {string} text
  30002. * @internal
  30003. */
  30004. var setTextContent = function (node, text) {
  30005. if (text) {
  30006. var firstChild = node.firstChild;
  30007. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  30008. firstChild.nodeValue = text;
  30009. return;
  30010. }
  30011. }
  30012. node.textContent = text;
  30013. };
  30014. // Do not use the below two methods directly!
  30015. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  30016. // (It is the only module that is allowed to access these methods.)
  30017. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  30018. return topLevelType;
  30019. }
  30020. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  30021. return topLevelType;
  30022. }
  30023. /**
  30024. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  30025. *
  30026. * @param {string} styleProp
  30027. * @param {string} eventName
  30028. * @returns {object}
  30029. */
  30030. function makePrefixMap(styleProp, eventName) {
  30031. var prefixes = {};
  30032. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  30033. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  30034. prefixes['Moz' + styleProp] = 'moz' + eventName;
  30035. return prefixes;
  30036. }
  30037. /**
  30038. * A list of event names to a configurable list of vendor prefixes.
  30039. */
  30040. var vendorPrefixes = {
  30041. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  30042. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  30043. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  30044. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  30045. };
  30046. /**
  30047. * Event names that have already been detected and prefixed (if applicable).
  30048. */
  30049. var prefixedEventNames = {};
  30050. /**
  30051. * Element to check for prefixes on.
  30052. */
  30053. var style = {};
  30054. /**
  30055. * Bootstrap if a DOM exists.
  30056. */
  30057. if (canUseDOM) {
  30058. style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,
  30059. // the un-prefixed "animation" and "transition" properties are defined on the
  30060. // style object but the events that fire will still be prefixed, so we need
  30061. // to check if the un-prefixed events are usable, and if not remove them from the map.
  30062. if (!('AnimationEvent' in window)) {
  30063. delete vendorPrefixes.animationend.animation;
  30064. delete vendorPrefixes.animationiteration.animation;
  30065. delete vendorPrefixes.animationstart.animation;
  30066. } // Same as above
  30067. if (!('TransitionEvent' in window)) {
  30068. delete vendorPrefixes.transitionend.transition;
  30069. }
  30070. }
  30071. /**
  30072. * Attempts to determine the correct vendor prefixed event name.
  30073. *
  30074. * @param {string} eventName
  30075. * @returns {string}
  30076. */
  30077. function getVendorPrefixedEventName(eventName) {
  30078. if (prefixedEventNames[eventName]) {
  30079. return prefixedEventNames[eventName];
  30080. } else if (!vendorPrefixes[eventName]) {
  30081. return eventName;
  30082. }
  30083. var prefixMap = vendorPrefixes[eventName];
  30084. for (var styleProp in prefixMap) {
  30085. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  30086. return prefixedEventNames[eventName] = prefixMap[styleProp];
  30087. }
  30088. }
  30089. return eventName;
  30090. }
  30091. /**
  30092. * To identify top level events in ReactDOM, we use constants defined by this
  30093. * module. This is the only module that uses the unsafe* methods to express
  30094. * that the constants actually correspond to the browser event names. This lets
  30095. * us save some bundle size by avoiding a top level type -> event name map.
  30096. * The rest of ReactDOM code should import top level types from this file.
  30097. */
  30098. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  30099. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  30100. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  30101. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  30102. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  30103. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  30104. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  30105. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  30106. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  30107. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  30108. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  30109. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  30110. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  30111. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  30112. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  30113. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  30114. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  30115. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  30116. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  30117. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  30118. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  30119. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  30120. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  30121. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  30122. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  30123. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  30124. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  30125. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  30126. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  30127. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  30128. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  30129. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  30130. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  30131. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  30132. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  30133. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  30134. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  30135. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  30136. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  30137. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  30138. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  30139. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  30140. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  30141. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  30142. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  30143. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  30144. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  30145. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  30146. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  30147. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  30148. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  30149. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  30150. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  30151. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  30152. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  30153. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  30154. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  30155. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  30156. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  30157. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  30158. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  30159. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  30160. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  30161. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  30162. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  30163. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  30164. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  30165. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  30166. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  30167. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  30168. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  30169. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  30170. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  30171. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  30172. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  30173. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  30174. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  30175. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  30176. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  30177. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); // List of events that need to be individually attached to media elements.
  30178. // Note that events in this list will *not* be listened to at the top level
  30179. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  30180. 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];
  30181. function getRawEventName(topLevelType) {
  30182. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  30183. }
  30184. var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // prettier-ignore
  30185. var elementListenerMap = new PossiblyWeakMap();
  30186. function getListenerMapForElement(element) {
  30187. var listenerMap = elementListenerMap.get(element);
  30188. if (listenerMap === undefined) {
  30189. listenerMap = new Map();
  30190. elementListenerMap.set(element, listenerMap);
  30191. }
  30192. return listenerMap;
  30193. }
  30194. /**
  30195. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  30196. * instance (key) and the internal representation (value). This allows public
  30197. * methods to accept the user facing instance as an argument and map them back
  30198. * to internal methods.
  30199. *
  30200. * Note that this module is currently shared and assumed to be stateless.
  30201. * If this becomes an actual Map, that will break.
  30202. */
  30203. function get(key) {
  30204. return key._reactInternalFiber;
  30205. }
  30206. function has(key) {
  30207. return key._reactInternalFiber !== undefined;
  30208. }
  30209. function set(key, value) {
  30210. key._reactInternalFiber = value;
  30211. }
  30212. // Don't change these two values. They're used by React Dev Tools.
  30213. var NoEffect =
  30214. /* */
  30215. 0;
  30216. var PerformedWork =
  30217. /* */
  30218. 1; // You can change the rest (and add more).
  30219. var Placement =
  30220. /* */
  30221. 2;
  30222. var Update =
  30223. /* */
  30224. 4;
  30225. var PlacementAndUpdate =
  30226. /* */
  30227. 6;
  30228. var Deletion =
  30229. /* */
  30230. 8;
  30231. var ContentReset =
  30232. /* */
  30233. 16;
  30234. var Callback =
  30235. /* */
  30236. 32;
  30237. var DidCapture =
  30238. /* */
  30239. 64;
  30240. var Ref =
  30241. /* */
  30242. 128;
  30243. var Snapshot =
  30244. /* */
  30245. 256;
  30246. var Passive =
  30247. /* */
  30248. 512;
  30249. var Hydrating =
  30250. /* */
  30251. 1024;
  30252. var HydratingAndUpdate =
  30253. /* */
  30254. 1028; // Passive & Update & Callback & Ref & Snapshot
  30255. var LifecycleEffectMask =
  30256. /* */
  30257. 932; // Union of all host effects
  30258. var HostEffectMask =
  30259. /* */
  30260. 2047;
  30261. var Incomplete =
  30262. /* */
  30263. 2048;
  30264. var ShouldCapture =
  30265. /* */
  30266. 4096;
  30267. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  30268. function getNearestMountedFiber(fiber) {
  30269. var node = fiber;
  30270. var nearestMounted = fiber;
  30271. if (!fiber.alternate) {
  30272. // If there is no alternate, this might be a new tree that isn't inserted
  30273. // yet. If it is, then it will have a pending insertion effect on it.
  30274. var nextNode = node;
  30275. do {
  30276. node = nextNode;
  30277. if ((node.effectTag & (Placement | Hydrating)) !== NoEffect) {
  30278. // This is an insertion or in-progress hydration. The nearest possible
  30279. // mounted fiber is the parent but we need to continue to figure out
  30280. // if that one is still mounted.
  30281. nearestMounted = node.return;
  30282. }
  30283. nextNode = node.return;
  30284. } while (nextNode);
  30285. } else {
  30286. while (node.return) {
  30287. node = node.return;
  30288. }
  30289. }
  30290. if (node.tag === HostRoot) {
  30291. // TODO: Check if this was a nested HostRoot when used with
  30292. // renderContainerIntoSubtree.
  30293. return nearestMounted;
  30294. } // If we didn't hit the root, that means that we're in an disconnected tree
  30295. // that has been unmounted.
  30296. return null;
  30297. }
  30298. function getSuspenseInstanceFromFiber(fiber) {
  30299. if (fiber.tag === SuspenseComponent) {
  30300. var suspenseState = fiber.memoizedState;
  30301. if (suspenseState === null) {
  30302. var current = fiber.alternate;
  30303. if (current !== null) {
  30304. suspenseState = current.memoizedState;
  30305. }
  30306. }
  30307. if (suspenseState !== null) {
  30308. return suspenseState.dehydrated;
  30309. }
  30310. }
  30311. return null;
  30312. }
  30313. function getContainerFromFiber(fiber) {
  30314. return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
  30315. }
  30316. function isFiberMounted(fiber) {
  30317. return getNearestMountedFiber(fiber) === fiber;
  30318. }
  30319. function isMounted(component) {
  30320. {
  30321. var owner = ReactCurrentOwner.current;
  30322. if (owner !== null && owner.tag === ClassComponent) {
  30323. var ownerFiber = owner;
  30324. var instance = ownerFiber.stateNode;
  30325. if (!instance._warnedAboutRefsInRender) {
  30326. 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');
  30327. }
  30328. instance._warnedAboutRefsInRender = true;
  30329. }
  30330. }
  30331. var fiber = get(component);
  30332. if (!fiber) {
  30333. return false;
  30334. }
  30335. return getNearestMountedFiber(fiber) === fiber;
  30336. }
  30337. function assertIsMounted(fiber) {
  30338. if (!(getNearestMountedFiber(fiber) === fiber)) {
  30339. {
  30340. throw Error( "Unable to find node on an unmounted component." );
  30341. }
  30342. }
  30343. }
  30344. function findCurrentFiberUsingSlowPath(fiber) {
  30345. var alternate = fiber.alternate;
  30346. if (!alternate) {
  30347. // If there is no alternate, then we only need to check if it is mounted.
  30348. var nearestMounted = getNearestMountedFiber(fiber);
  30349. if (!(nearestMounted !== null)) {
  30350. {
  30351. throw Error( "Unable to find node on an unmounted component." );
  30352. }
  30353. }
  30354. if (nearestMounted !== fiber) {
  30355. return null;
  30356. }
  30357. return fiber;
  30358. } // If we have two possible branches, we'll walk backwards up to the root
  30359. // to see what path the root points to. On the way we may hit one of the
  30360. // special cases and we'll deal with them.
  30361. var a = fiber;
  30362. var b = alternate;
  30363. while (true) {
  30364. var parentA = a.return;
  30365. if (parentA === null) {
  30366. // We're at the root.
  30367. break;
  30368. }
  30369. var parentB = parentA.alternate;
  30370. if (parentB === null) {
  30371. // There is no alternate. This is an unusual case. Currently, it only
  30372. // happens when a Suspense component is hidden. An extra fragment fiber
  30373. // is inserted in between the Suspense fiber and its children. Skip
  30374. // over this extra fragment fiber and proceed to the next parent.
  30375. var nextParent = parentA.return;
  30376. if (nextParent !== null) {
  30377. a = b = nextParent;
  30378. continue;
  30379. } // If there's no parent, we're at the root.
  30380. break;
  30381. } // If both copies of the parent fiber point to the same child, we can
  30382. // assume that the child is current. This happens when we bailout on low
  30383. // priority: the bailed out fiber's child reuses the current child.
  30384. if (parentA.child === parentB.child) {
  30385. var child = parentA.child;
  30386. while (child) {
  30387. if (child === a) {
  30388. // We've determined that A is the current branch.
  30389. assertIsMounted(parentA);
  30390. return fiber;
  30391. }
  30392. if (child === b) {
  30393. // We've determined that B is the current branch.
  30394. assertIsMounted(parentA);
  30395. return alternate;
  30396. }
  30397. child = child.sibling;
  30398. } // We should never have an alternate for any mounting node. So the only
  30399. // way this could possibly happen is if this was unmounted, if at all.
  30400. {
  30401. {
  30402. throw Error( "Unable to find node on an unmounted component." );
  30403. }
  30404. }
  30405. }
  30406. if (a.return !== b.return) {
  30407. // The return pointer of A and the return pointer of B point to different
  30408. // fibers. We assume that return pointers never criss-cross, so A must
  30409. // belong to the child set of A.return, and B must belong to the child
  30410. // set of B.return.
  30411. a = parentA;
  30412. b = parentB;
  30413. } else {
  30414. // The return pointers point to the same fiber. We'll have to use the
  30415. // default, slow path: scan the child sets of each parent alternate to see
  30416. // which child belongs to which set.
  30417. //
  30418. // Search parent A's child set
  30419. var didFindChild = false;
  30420. var _child = parentA.child;
  30421. while (_child) {
  30422. if (_child === a) {
  30423. didFindChild = true;
  30424. a = parentA;
  30425. b = parentB;
  30426. break;
  30427. }
  30428. if (_child === b) {
  30429. didFindChild = true;
  30430. b = parentA;
  30431. a = parentB;
  30432. break;
  30433. }
  30434. _child = _child.sibling;
  30435. }
  30436. if (!didFindChild) {
  30437. // Search parent B's child set
  30438. _child = parentB.child;
  30439. while (_child) {
  30440. if (_child === a) {
  30441. didFindChild = true;
  30442. a = parentB;
  30443. b = parentA;
  30444. break;
  30445. }
  30446. if (_child === b) {
  30447. didFindChild = true;
  30448. b = parentB;
  30449. a = parentA;
  30450. break;
  30451. }
  30452. _child = _child.sibling;
  30453. }
  30454. if (!didFindChild) {
  30455. {
  30456. 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." );
  30457. }
  30458. }
  30459. }
  30460. }
  30461. if (!(a.alternate === b)) {
  30462. {
  30463. throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." );
  30464. }
  30465. }
  30466. } // If the root is not a host container, we're in a disconnected tree. I.e.
  30467. // unmounted.
  30468. if (!(a.tag === HostRoot)) {
  30469. {
  30470. throw Error( "Unable to find node on an unmounted component." );
  30471. }
  30472. }
  30473. if (a.stateNode.current === a) {
  30474. // We've determined that A is the current branch.
  30475. return fiber;
  30476. } // Otherwise B has to be current branch.
  30477. return alternate;
  30478. }
  30479. function findCurrentHostFiber(parent) {
  30480. var currentParent = findCurrentFiberUsingSlowPath(parent);
  30481. if (!currentParent) {
  30482. return null;
  30483. } // Next we'll drill down this component to find the first HostComponent/Text.
  30484. var node = currentParent;
  30485. while (true) {
  30486. if (node.tag === HostComponent || node.tag === HostText) {
  30487. return node;
  30488. } else if (node.child) {
  30489. node.child.return = node;
  30490. node = node.child;
  30491. continue;
  30492. }
  30493. if (node === currentParent) {
  30494. return null;
  30495. }
  30496. while (!node.sibling) {
  30497. if (!node.return || node.return === currentParent) {
  30498. return null;
  30499. }
  30500. node = node.return;
  30501. }
  30502. node.sibling.return = node.return;
  30503. node = node.sibling;
  30504. } // Flow needs the return null here, but ESLint complains about it.
  30505. // eslint-disable-next-line no-unreachable
  30506. return null;
  30507. }
  30508. function findCurrentHostFiberWithNoPortals(parent) {
  30509. var currentParent = findCurrentFiberUsingSlowPath(parent);
  30510. if (!currentParent) {
  30511. return null;
  30512. } // Next we'll drill down this component to find the first HostComponent/Text.
  30513. var node = currentParent;
  30514. while (true) {
  30515. if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) {
  30516. return node;
  30517. } else if (node.child && node.tag !== HostPortal) {
  30518. node.child.return = node;
  30519. node = node.child;
  30520. continue;
  30521. }
  30522. if (node === currentParent) {
  30523. return null;
  30524. }
  30525. while (!node.sibling) {
  30526. if (!node.return || node.return === currentParent) {
  30527. return null;
  30528. }
  30529. node = node.return;
  30530. }
  30531. node.sibling.return = node.return;
  30532. node = node.sibling;
  30533. } // Flow needs the return null here, but ESLint complains about it.
  30534. // eslint-disable-next-line no-unreachable
  30535. return null;
  30536. }
  30537. /**
  30538. * Accumulates items that must not be null or undefined into the first one. This
  30539. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  30540. * API cleanness. Since `current` can be null before being passed in and not
  30541. * null after this function, make sure to assign it back to `current`:
  30542. *
  30543. * `a = accumulateInto(a, b);`
  30544. *
  30545. * This API should be sparingly used. Try `accumulate` for something cleaner.
  30546. *
  30547. * @return {*|array<*>} An accumulation of items.
  30548. */
  30549. function accumulateInto(current, next) {
  30550. if (!(next != null)) {
  30551. {
  30552. throw Error( "accumulateInto(...): Accumulated items must not be null or undefined." );
  30553. }
  30554. }
  30555. if (current == null) {
  30556. return next;
  30557. } // Both are not empty. Warning: Never call x.concat(y) when you are not
  30558. // certain that x is an Array (x could be a string with concat method).
  30559. if (Array.isArray(current)) {
  30560. if (Array.isArray(next)) {
  30561. current.push.apply(current, next);
  30562. return current;
  30563. }
  30564. current.push(next);
  30565. return current;
  30566. }
  30567. if (Array.isArray(next)) {
  30568. // A bit too dangerous to mutate `next`.
  30569. return [current].concat(next);
  30570. }
  30571. return [current, next];
  30572. }
  30573. /**
  30574. * @param {array} arr an "accumulation" of items which is either an Array or
  30575. * a single item. Useful when paired with the `accumulate` module. This is a
  30576. * simple utility that allows us to reason about a collection of items, but
  30577. * handling the case when there is exactly one item (and we do not need to
  30578. * allocate an array).
  30579. * @param {function} cb Callback invoked with each element or a collection.
  30580. * @param {?} [scope] Scope used as `this` in a callback.
  30581. */
  30582. function forEachAccumulated(arr, cb, scope) {
  30583. if (Array.isArray(arr)) {
  30584. arr.forEach(cb, scope);
  30585. } else if (arr) {
  30586. cb.call(scope, arr);
  30587. }
  30588. }
  30589. /**
  30590. * Internal queue of events that have accumulated their dispatches and are
  30591. * waiting to have their dispatches executed.
  30592. */
  30593. var eventQueue = null;
  30594. /**
  30595. * Dispatches an event and releases it back into the pool, unless persistent.
  30596. *
  30597. * @param {?object} event Synthetic event to be dispatched.
  30598. * @private
  30599. */
  30600. var executeDispatchesAndRelease = function (event) {
  30601. if (event) {
  30602. executeDispatchesInOrder(event);
  30603. if (!event.isPersistent()) {
  30604. event.constructor.release(event);
  30605. }
  30606. }
  30607. };
  30608. var executeDispatchesAndReleaseTopLevel = function (e) {
  30609. return executeDispatchesAndRelease(e);
  30610. };
  30611. function runEventsInBatch(events) {
  30612. if (events !== null) {
  30613. eventQueue = accumulateInto(eventQueue, events);
  30614. } // Set `eventQueue` to null before processing it so that we can tell if more
  30615. // events get enqueued while processing.
  30616. var processingEventQueue = eventQueue;
  30617. eventQueue = null;
  30618. if (!processingEventQueue) {
  30619. return;
  30620. }
  30621. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  30622. if (!!eventQueue) {
  30623. {
  30624. throw Error( "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented." );
  30625. }
  30626. } // This would be a good time to rethrow if any of the event handlers threw.
  30627. rethrowCaughtError();
  30628. }
  30629. /**
  30630. * Gets the target node from a native browser event by accounting for
  30631. * inconsistencies in browser DOM APIs.
  30632. *
  30633. * @param {object} nativeEvent Native browser event.
  30634. * @return {DOMEventTarget} Target node.
  30635. */
  30636. function getEventTarget(nativeEvent) {
  30637. // Fallback to nativeEvent.srcElement for IE9
  30638. // https://github.com/facebook/react/issues/12506
  30639. var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963
  30640. if (target.correspondingUseElement) {
  30641. target = target.correspondingUseElement;
  30642. } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  30643. // @see http://www.quirksmode.org/js/events_properties.html
  30644. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  30645. }
  30646. /**
  30647. * Checks if an event is supported in the current execution environment.
  30648. *
  30649. * NOTE: This will not work correctly for non-generic events such as `change`,
  30650. * `reset`, `load`, `error`, and `select`.
  30651. *
  30652. * Borrows from Modernizr.
  30653. *
  30654. * @param {string} eventNameSuffix Event name, e.g. "click".
  30655. * @return {boolean} True if the event is supported.
  30656. * @internal
  30657. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  30658. */
  30659. function isEventSupported(eventNameSuffix) {
  30660. if (!canUseDOM) {
  30661. return false;
  30662. }
  30663. var eventName = 'on' + eventNameSuffix;
  30664. var isSupported = eventName in document;
  30665. if (!isSupported) {
  30666. var element = document.createElement('div');
  30667. element.setAttribute(eventName, 'return;');
  30668. isSupported = typeof element[eventName] === 'function';
  30669. }
  30670. return isSupported;
  30671. }
  30672. /**
  30673. * Summary of `DOMEventPluginSystem` event handling:
  30674. *
  30675. * - Top-level delegation is used to trap most native browser events. This
  30676. * may only occur in the main thread and is the responsibility of
  30677. * ReactDOMEventListener, which is injected and can therefore support
  30678. * pluggable event sources. This is the only work that occurs in the main
  30679. * thread.
  30680. *
  30681. * - We normalize and de-duplicate events to account for browser quirks. This
  30682. * may be done in the worker thread.
  30683. *
  30684. * - Forward these native events (with the associated top-level type used to
  30685. * trap it) to `EventPluginRegistry`, which in turn will ask plugins if they want
  30686. * to extract any synthetic events.
  30687. *
  30688. * - The `EventPluginRegistry` will then process each event by annotating them with
  30689. * "dispatches", a sequence of listeners and IDs that care about that event.
  30690. *
  30691. * - The `EventPluginRegistry` then dispatches the events.
  30692. *
  30693. * Overview of React and the event system:
  30694. *
  30695. * +------------+ .
  30696. * | DOM | .
  30697. * +------------+ .
  30698. * | .
  30699. * v .
  30700. * +------------+ .
  30701. * | ReactEvent | .
  30702. * | Listener | .
  30703. * +------------+ . +-----------+
  30704. * | . +--------+|SimpleEvent|
  30705. * | . | |Plugin |
  30706. * +-----|------+ . v +-----------+
  30707. * | | | . +--------------+ +------------+
  30708. * | +-----------.--->|PluginRegistry| | Event |
  30709. * | | . | | +-----------+ | Propagators|
  30710. * | ReactEvent | . | | |TapEvent | |------------|
  30711. * | Emitter | . | |<---+|Plugin | |other plugin|
  30712. * | | . | | +-----------+ | utilities |
  30713. * | +-----------.--->| | +------------+
  30714. * | | | . +--------------+
  30715. * +-----|------+ . ^ +-----------+
  30716. * | . | |Enter/Leave|
  30717. * + . +-------+|Plugin |
  30718. * +-------------+ . +-----------+
  30719. * | application | .
  30720. * |-------------| .
  30721. * | | .
  30722. * | | .
  30723. * +-------------+ .
  30724. * .
  30725. * React Core . General Purpose Event Plugin System
  30726. */
  30727. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  30728. var callbackBookkeepingPool = [];
  30729. function releaseTopLevelCallbackBookKeeping(instance) {
  30730. instance.topLevelType = null;
  30731. instance.nativeEvent = null;
  30732. instance.targetInst = null;
  30733. instance.ancestors.length = 0;
  30734. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  30735. callbackBookkeepingPool.push(instance);
  30736. }
  30737. } // Used to store ancestor hierarchy in top level callback
  30738. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags) {
  30739. if (callbackBookkeepingPool.length) {
  30740. var instance = callbackBookkeepingPool.pop();
  30741. instance.topLevelType = topLevelType;
  30742. instance.eventSystemFlags = eventSystemFlags;
  30743. instance.nativeEvent = nativeEvent;
  30744. instance.targetInst = targetInst;
  30745. return instance;
  30746. }
  30747. return {
  30748. topLevelType: topLevelType,
  30749. eventSystemFlags: eventSystemFlags,
  30750. nativeEvent: nativeEvent,
  30751. targetInst: targetInst,
  30752. ancestors: []
  30753. };
  30754. }
  30755. /**
  30756. * Find the deepest React component completely containing the root of the
  30757. * passed-in instance (for use when entire React trees are nested within each
  30758. * other). If React trees are not nested, returns null.
  30759. */
  30760. function findRootContainerNode(inst) {
  30761. if (inst.tag === HostRoot) {
  30762. return inst.stateNode.containerInfo;
  30763. } // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  30764. // traversal, but caching is difficult to do correctly without using a
  30765. // mutation observer to listen for all DOM changes.
  30766. while (inst.return) {
  30767. inst = inst.return;
  30768. }
  30769. if (inst.tag !== HostRoot) {
  30770. // This can happen if we're in a detached tree.
  30771. return null;
  30772. }
  30773. return inst.stateNode.containerInfo;
  30774. }
  30775. /**
  30776. * Allows registered plugins an opportunity to extract events from top-level
  30777. * native browser events.
  30778. *
  30779. * @return {*} An accumulation of synthetic events.
  30780. * @internal
  30781. */
  30782. function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  30783. var events = null;
  30784. for (var i = 0; i < plugins.length; i++) {
  30785. // Not every plugin in the ordering may be loaded at runtime.
  30786. var possiblePlugin = plugins[i];
  30787. if (possiblePlugin) {
  30788. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  30789. if (extractedEvents) {
  30790. events = accumulateInto(events, extractedEvents);
  30791. }
  30792. }
  30793. }
  30794. return events;
  30795. }
  30796. function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  30797. var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  30798. runEventsInBatch(events);
  30799. }
  30800. function handleTopLevel(bookKeeping) {
  30801. var targetInst = bookKeeping.targetInst; // Loop through the hierarchy, in case there's any nested components.
  30802. // It's important that we build the array of ancestors before calling any
  30803. // event handlers, because event handlers can modify the DOM, leading to
  30804. // inconsistencies with ReactMount's node cache. See #1105.
  30805. var ancestor = targetInst;
  30806. do {
  30807. if (!ancestor) {
  30808. var ancestors = bookKeeping.ancestors;
  30809. ancestors.push(ancestor);
  30810. break;
  30811. }
  30812. var root = findRootContainerNode(ancestor);
  30813. if (!root) {
  30814. break;
  30815. }
  30816. var tag = ancestor.tag;
  30817. if (tag === HostComponent || tag === HostText) {
  30818. bookKeeping.ancestors.push(ancestor);
  30819. }
  30820. ancestor = getClosestInstanceFromNode(root);
  30821. } while (ancestor);
  30822. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  30823. targetInst = bookKeeping.ancestors[i];
  30824. var eventTarget = getEventTarget(bookKeeping.nativeEvent);
  30825. var topLevelType = bookKeeping.topLevelType;
  30826. var nativeEvent = bookKeeping.nativeEvent;
  30827. var eventSystemFlags = bookKeeping.eventSystemFlags; // If this is the first ancestor, we mark it on the system flags
  30828. if (i === 0) {
  30829. eventSystemFlags |= IS_FIRST_ANCESTOR;
  30830. }
  30831. runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, eventTarget, eventSystemFlags);
  30832. }
  30833. }
  30834. function dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
  30835. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags);
  30836. try {
  30837. // Event queue being processed in the same cycle allows
  30838. // `preventDefault`.
  30839. batchedEventUpdates(handleTopLevel, bookKeeping);
  30840. } finally {
  30841. releaseTopLevelCallbackBookKeeping(bookKeeping);
  30842. }
  30843. }
  30844. /**
  30845. * We listen for bubbled touch events on the document object.
  30846. *
  30847. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  30848. * mounting `onmousemove` events at some node that was not the document
  30849. * element. The symptoms were that if your mouse is not moving over something
  30850. * contained within that mount point (for example on the background) the
  30851. * top-level listeners for `onmousemove` won't be called. However, if you
  30852. * register the `mousemove` on the document object, then it will of course
  30853. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  30854. * top-level listeners to the document object only, at least for these
  30855. * movement types of events and possibly all events.
  30856. *
  30857. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  30858. *
  30859. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  30860. * they bubble to document.
  30861. *
  30862. * @param {string} registrationName Name of listener (e.g. `onClick`).
  30863. * @param {object} mountAt Container where to mount the listener
  30864. */
  30865. function legacyListenToEvent(registrationName, mountAt) {
  30866. var listenerMap = getListenerMapForElement(mountAt);
  30867. var dependencies = registrationNameDependencies[registrationName];
  30868. for (var i = 0; i < dependencies.length; i++) {
  30869. var dependency = dependencies[i];
  30870. legacyListenToTopLevelEvent(dependency, mountAt, listenerMap);
  30871. }
  30872. }
  30873. function legacyListenToTopLevelEvent(topLevelType, mountAt, listenerMap) {
  30874. if (!listenerMap.has(topLevelType)) {
  30875. switch (topLevelType) {
  30876. case TOP_SCROLL:
  30877. trapCapturedEvent(TOP_SCROLL, mountAt);
  30878. break;
  30879. case TOP_FOCUS:
  30880. case TOP_BLUR:
  30881. trapCapturedEvent(TOP_FOCUS, mountAt);
  30882. trapCapturedEvent(TOP_BLUR, mountAt); // We set the flag for a single dependency later in this function,
  30883. // but this ensures we mark both as attached rather than just one.
  30884. listenerMap.set(TOP_BLUR, null);
  30885. listenerMap.set(TOP_FOCUS, null);
  30886. break;
  30887. case TOP_CANCEL:
  30888. case TOP_CLOSE:
  30889. if (isEventSupported(getRawEventName(topLevelType))) {
  30890. trapCapturedEvent(topLevelType, mountAt);
  30891. }
  30892. break;
  30893. case TOP_INVALID:
  30894. case TOP_SUBMIT:
  30895. case TOP_RESET:
  30896. // We listen to them on the target DOM elements.
  30897. // Some of them bubble so we don't want them to fire twice.
  30898. break;
  30899. default:
  30900. // By default, listen on the top level to all non-media events.
  30901. // Media events don't bubble so adding the listener wouldn't do anything.
  30902. var isMediaEvent = mediaEventTypes.indexOf(topLevelType) !== -1;
  30903. if (!isMediaEvent) {
  30904. trapBubbledEvent(topLevelType, mountAt);
  30905. }
  30906. break;
  30907. }
  30908. listenerMap.set(topLevelType, null);
  30909. }
  30910. }
  30911. function isListeningToAllDependencies(registrationName, mountAt) {
  30912. var listenerMap = getListenerMapForElement(mountAt);
  30913. var dependencies = registrationNameDependencies[registrationName];
  30914. for (var i = 0; i < dependencies.length; i++) {
  30915. var dependency = dependencies[i];
  30916. if (!listenerMap.has(dependency)) {
  30917. return false;
  30918. }
  30919. }
  30920. return true;
  30921. }
  30922. var attemptUserBlockingHydration;
  30923. function setAttemptUserBlockingHydration(fn) {
  30924. attemptUserBlockingHydration = fn;
  30925. }
  30926. var attemptContinuousHydration;
  30927. function setAttemptContinuousHydration(fn) {
  30928. attemptContinuousHydration = fn;
  30929. }
  30930. var attemptHydrationAtCurrentPriority;
  30931. function setAttemptHydrationAtCurrentPriority(fn) {
  30932. attemptHydrationAtCurrentPriority = fn;
  30933. } // TODO: Upgrade this definition once we're on a newer version of Flow that
  30934. var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.
  30935. var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
  30936. // if the last target was dehydrated.
  30937. var queuedFocus = null;
  30938. var queuedDrag = null;
  30939. var queuedMouse = null; // For pointer events there can be one latest event per pointerId.
  30940. var queuedPointers = new Map();
  30941. var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.
  30942. var queuedExplicitHydrationTargets = [];
  30943. function hasQueuedDiscreteEvents() {
  30944. return queuedDiscreteEvents.length > 0;
  30945. }
  30946. 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];
  30947. 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];
  30948. function isReplayableDiscreteEvent(eventType) {
  30949. return discreteReplayableEvents.indexOf(eventType) > -1;
  30950. }
  30951. function trapReplayableEventForDocument(topLevelType, document, listenerMap) {
  30952. legacyListenToTopLevelEvent(topLevelType, document, listenerMap);
  30953. }
  30954. function eagerlyTrapReplayableEvents(container, document) {
  30955. var listenerMapForDoc = getListenerMapForElement(document); // Discrete
  30956. discreteReplayableEvents.forEach(function (topLevelType) {
  30957. trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
  30958. }); // Continuous
  30959. continuousReplayableEvents.forEach(function (topLevelType) {
  30960. trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
  30961. });
  30962. }
  30963. function createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  30964. return {
  30965. blockedOn: blockedOn,
  30966. topLevelType: topLevelType,
  30967. eventSystemFlags: eventSystemFlags | IS_REPLAYED,
  30968. nativeEvent: nativeEvent,
  30969. container: container
  30970. };
  30971. }
  30972. function queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  30973. var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  30974. queuedDiscreteEvents.push(queuedEvent);
  30975. } // Resets the replaying for this type of continuous event to no event.
  30976. function clearIfContinuousEvent(topLevelType, nativeEvent) {
  30977. switch (topLevelType) {
  30978. case TOP_FOCUS:
  30979. case TOP_BLUR:
  30980. queuedFocus = null;
  30981. break;
  30982. case TOP_DRAG_ENTER:
  30983. case TOP_DRAG_LEAVE:
  30984. queuedDrag = null;
  30985. break;
  30986. case TOP_MOUSE_OVER:
  30987. case TOP_MOUSE_OUT:
  30988. queuedMouse = null;
  30989. break;
  30990. case TOP_POINTER_OVER:
  30991. case TOP_POINTER_OUT:
  30992. {
  30993. var pointerId = nativeEvent.pointerId;
  30994. queuedPointers.delete(pointerId);
  30995. break;
  30996. }
  30997. case TOP_GOT_POINTER_CAPTURE:
  30998. case TOP_LOST_POINTER_CAPTURE:
  30999. {
  31000. var _pointerId = nativeEvent.pointerId;
  31001. queuedPointerCaptures.delete(_pointerId);
  31002. break;
  31003. }
  31004. }
  31005. }
  31006. function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  31007. if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
  31008. var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  31009. if (blockedOn !== null) {
  31010. var _fiber2 = getInstanceFromNode$1(blockedOn);
  31011. if (_fiber2 !== null) {
  31012. // Attempt to increase the priority of this target.
  31013. attemptContinuousHydration(_fiber2);
  31014. }
  31015. }
  31016. return queuedEvent;
  31017. } // If we have already queued this exact event, then it's because
  31018. // the different event systems have different DOM event listeners.
  31019. // We can accumulate the flags and store a single event to be
  31020. // replayed.
  31021. existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
  31022. return existingQueuedEvent;
  31023. }
  31024. function queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  31025. // These set relatedTarget to null because the replayed event will be treated as if we
  31026. // moved from outside the window (no target) onto the target once it hydrates.
  31027. // Instead of mutating we could clone the event.
  31028. switch (topLevelType) {
  31029. case TOP_FOCUS:
  31030. {
  31031. var focusEvent = nativeEvent;
  31032. queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, topLevelType, eventSystemFlags, container, focusEvent);
  31033. return true;
  31034. }
  31035. case TOP_DRAG_ENTER:
  31036. {
  31037. var dragEvent = nativeEvent;
  31038. queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, topLevelType, eventSystemFlags, container, dragEvent);
  31039. return true;
  31040. }
  31041. case TOP_MOUSE_OVER:
  31042. {
  31043. var mouseEvent = nativeEvent;
  31044. queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, topLevelType, eventSystemFlags, container, mouseEvent);
  31045. return true;
  31046. }
  31047. case TOP_POINTER_OVER:
  31048. {
  31049. var pointerEvent = nativeEvent;
  31050. var pointerId = pointerEvent.pointerId;
  31051. queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, topLevelType, eventSystemFlags, container, pointerEvent));
  31052. return true;
  31053. }
  31054. case TOP_GOT_POINTER_CAPTURE:
  31055. {
  31056. var _pointerEvent = nativeEvent;
  31057. var _pointerId2 = _pointerEvent.pointerId;
  31058. queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, topLevelType, eventSystemFlags, container, _pointerEvent));
  31059. return true;
  31060. }
  31061. }
  31062. return false;
  31063. } // Check if this target is unblocked. Returns true if it's unblocked.
  31064. function attemptExplicitHydrationTarget(queuedTarget) {
  31065. // TODO: This function shares a lot of logic with attemptToDispatchEvent.
  31066. // Try to unify them. It's a bit tricky since it would require two return
  31067. // values.
  31068. var targetInst = getClosestInstanceFromNode(queuedTarget.target);
  31069. if (targetInst !== null) {
  31070. var nearestMounted = getNearestMountedFiber(targetInst);
  31071. if (nearestMounted !== null) {
  31072. var tag = nearestMounted.tag;
  31073. if (tag === SuspenseComponent) {
  31074. var instance = getSuspenseInstanceFromFiber(nearestMounted);
  31075. if (instance !== null) {
  31076. // We're blocked on hydrating this boundary.
  31077. // Increase its priority.
  31078. queuedTarget.blockedOn = instance;
  31079. Scheduler.unstable_runWithPriority(queuedTarget.priority, function () {
  31080. attemptHydrationAtCurrentPriority(nearestMounted);
  31081. });
  31082. return;
  31083. }
  31084. } else if (tag === HostRoot) {
  31085. var root = nearestMounted.stateNode;
  31086. if (root.hydrate) {
  31087. queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
  31088. // a root other than sync.
  31089. return;
  31090. }
  31091. }
  31092. }
  31093. }
  31094. queuedTarget.blockedOn = null;
  31095. }
  31096. function attemptReplayContinuousQueuedEvent(queuedEvent) {
  31097. if (queuedEvent.blockedOn !== null) {
  31098. return false;
  31099. }
  31100. var nextBlockedOn = attemptToDispatchEvent(queuedEvent.topLevelType, queuedEvent.eventSystemFlags, queuedEvent.container, queuedEvent.nativeEvent);
  31101. if (nextBlockedOn !== null) {
  31102. // We're still blocked. Try again later.
  31103. var _fiber3 = getInstanceFromNode$1(nextBlockedOn);
  31104. if (_fiber3 !== null) {
  31105. attemptContinuousHydration(_fiber3);
  31106. }
  31107. queuedEvent.blockedOn = nextBlockedOn;
  31108. return false;
  31109. }
  31110. return true;
  31111. }
  31112. function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
  31113. if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
  31114. map.delete(key);
  31115. }
  31116. }
  31117. function replayUnblockedEvents() {
  31118. hasScheduledReplayAttempt = false; // First replay discrete events.
  31119. while (queuedDiscreteEvents.length > 0) {
  31120. var nextDiscreteEvent = queuedDiscreteEvents[0];
  31121. if (nextDiscreteEvent.blockedOn !== null) {
  31122. // We're still blocked.
  31123. // Increase the priority of this boundary to unblock
  31124. // the next discrete event.
  31125. var _fiber4 = getInstanceFromNode$1(nextDiscreteEvent.blockedOn);
  31126. if (_fiber4 !== null) {
  31127. attemptUserBlockingHydration(_fiber4);
  31128. }
  31129. break;
  31130. }
  31131. var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.topLevelType, nextDiscreteEvent.eventSystemFlags, nextDiscreteEvent.container, nextDiscreteEvent.nativeEvent);
  31132. if (nextBlockedOn !== null) {
  31133. // We're still blocked. Try again later.
  31134. nextDiscreteEvent.blockedOn = nextBlockedOn;
  31135. } else {
  31136. // We've successfully replayed the first event. Let's try the next one.
  31137. queuedDiscreteEvents.shift();
  31138. }
  31139. } // Next replay any continuous events.
  31140. if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
  31141. queuedFocus = null;
  31142. }
  31143. if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
  31144. queuedDrag = null;
  31145. }
  31146. if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
  31147. queuedMouse = null;
  31148. }
  31149. queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
  31150. queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
  31151. }
  31152. function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
  31153. if (queuedEvent.blockedOn === unblocked) {
  31154. queuedEvent.blockedOn = null;
  31155. if (!hasScheduledReplayAttempt) {
  31156. hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
  31157. // now unblocked. This first might not actually be unblocked yet.
  31158. // We could check it early to avoid scheduling an unnecessary callback.
  31159. Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);
  31160. }
  31161. }
  31162. }
  31163. function retryIfBlockedOn(unblocked) {
  31164. // Mark anything that was blocked on this as no longer blocked
  31165. // and eligible for a replay.
  31166. if (queuedDiscreteEvents.length > 0) {
  31167. scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
  31168. // worth it because we expect very few discrete events to queue up and once
  31169. // we are actually fully unblocked it will be fast to replay them.
  31170. for (var i = 1; i < queuedDiscreteEvents.length; i++) {
  31171. var queuedEvent = queuedDiscreteEvents[i];
  31172. if (queuedEvent.blockedOn === unblocked) {
  31173. queuedEvent.blockedOn = null;
  31174. }
  31175. }
  31176. }
  31177. if (queuedFocus !== null) {
  31178. scheduleCallbackIfUnblocked(queuedFocus, unblocked);
  31179. }
  31180. if (queuedDrag !== null) {
  31181. scheduleCallbackIfUnblocked(queuedDrag, unblocked);
  31182. }
  31183. if (queuedMouse !== null) {
  31184. scheduleCallbackIfUnblocked(queuedMouse, unblocked);
  31185. }
  31186. var unblock = function (queuedEvent) {
  31187. return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
  31188. };
  31189. queuedPointers.forEach(unblock);
  31190. queuedPointerCaptures.forEach(unblock);
  31191. for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
  31192. var queuedTarget = queuedExplicitHydrationTargets[_i];
  31193. if (queuedTarget.blockedOn === unblocked) {
  31194. queuedTarget.blockedOn = null;
  31195. }
  31196. }
  31197. while (queuedExplicitHydrationTargets.length > 0) {
  31198. var nextExplicitTarget = queuedExplicitHydrationTargets[0];
  31199. if (nextExplicitTarget.blockedOn !== null) {
  31200. // We're still blocked.
  31201. break;
  31202. } else {
  31203. attemptExplicitHydrationTarget(nextExplicitTarget);
  31204. if (nextExplicitTarget.blockedOn === null) {
  31205. // We're unblocked.
  31206. queuedExplicitHydrationTargets.shift();
  31207. }
  31208. }
  31209. }
  31210. }
  31211. function addEventBubbleListener(element, eventType, listener) {
  31212. element.addEventListener(eventType, listener, false);
  31213. }
  31214. function addEventCaptureListener(element, eventType, listener) {
  31215. element.addEventListener(eventType, listener, true);
  31216. }
  31217. // do it in two places, which duplicates logic
  31218. // and increases the bundle size, we do it all
  31219. // here once. If we remove or refactor the
  31220. // SimpleEventPlugin, we should also remove or
  31221. // update the below line.
  31222. var simpleEventPluginEventTypes = {};
  31223. var topLevelEventsToDispatchConfig = new Map();
  31224. var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use
  31225. // the code required to apply the same logic for event prioritization and that of the
  31226. // SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code
  31227. // duplication (for which there would be quite a bit). For the events that are not needed
  31228. // for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an
  31229. // array of top level events.
  31230. // Lastly, we ignore prettier so we can keep the formatting sane.
  31231. // prettier-ignore
  31232. 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'];
  31233. var otherDiscreteEvents = [TOP_CHANGE, TOP_SELECTION_CHANGE, TOP_TEXT_INPUT, TOP_COMPOSITION_START, TOP_COMPOSITION_END, TOP_COMPOSITION_UPDATE]; // prettier-ignore
  31234. 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
  31235. 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'];
  31236. /**
  31237. * Turns
  31238. * ['abort', ...]
  31239. * into
  31240. * eventTypes = {
  31241. * 'abort': {
  31242. * phasedRegistrationNames: {
  31243. * bubbled: 'onAbort',
  31244. * captured: 'onAbortCapture',
  31245. * },
  31246. * dependencies: [TOP_ABORT],
  31247. * },
  31248. * ...
  31249. * };
  31250. * topLevelEventsToDispatchConfig = new Map([
  31251. * [TOP_ABORT, { sameConfig }],
  31252. * ]);
  31253. */
  31254. function processSimpleEventPluginPairsByPriority(eventTypes, priority) {
  31255. // As the event types are in pairs of two, we need to iterate
  31256. // through in twos. The events are in pairs of two to save code
  31257. // and improve init perf of processing this array, as it will
  31258. // result in far fewer object allocations and property accesses
  31259. // if we only use three arrays to process all the categories of
  31260. // instead of tuples.
  31261. for (var i = 0; i < eventTypes.length; i += 2) {
  31262. var topEvent = eventTypes[i];
  31263. var event = eventTypes[i + 1];
  31264. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  31265. var onEvent = 'on' + capitalizedEvent;
  31266. var config = {
  31267. phasedRegistrationNames: {
  31268. bubbled: onEvent,
  31269. captured: onEvent + 'Capture'
  31270. },
  31271. dependencies: [topEvent],
  31272. eventPriority: priority
  31273. };
  31274. eventPriorities.set(topEvent, priority);
  31275. topLevelEventsToDispatchConfig.set(topEvent, config);
  31276. simpleEventPluginEventTypes[event] = config;
  31277. }
  31278. }
  31279. function processTopEventPairsByPriority(eventTypes, priority) {
  31280. for (var i = 0; i < eventTypes.length; i++) {
  31281. eventPriorities.set(eventTypes[i], priority);
  31282. }
  31283. } // SimpleEventPlugin
  31284. processSimpleEventPluginPairsByPriority(discreteEventPairsForSimpleEventPlugin, DiscreteEvent);
  31285. processSimpleEventPluginPairsByPriority(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent);
  31286. processSimpleEventPluginPairsByPriority(continuousPairsForSimpleEventPlugin, ContinuousEvent); // Not used by SimpleEventPlugin
  31287. processTopEventPairsByPriority(otherDiscreteEvents, DiscreteEvent);
  31288. function getEventPriorityForPluginSystem(topLevelType) {
  31289. var priority = eventPriorities.get(topLevelType); // Default to a ContinuousEvent. Note: we might
  31290. // want to warn if we can't detect the priority
  31291. // for the event.
  31292. return priority === undefined ? ContinuousEvent : priority;
  31293. }
  31294. // Intentionally not named imports because Rollup would use dynamic dispatch for
  31295. var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
  31296. runWithPriority = Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these?
  31297. var _enabled = true;
  31298. function setEnabled(enabled) {
  31299. _enabled = !!enabled;
  31300. }
  31301. function isEnabled() {
  31302. return _enabled;
  31303. }
  31304. function trapBubbledEvent(topLevelType, element) {
  31305. trapEventForPluginEventSystem(element, topLevelType, false);
  31306. }
  31307. function trapCapturedEvent(topLevelType, element) {
  31308. trapEventForPluginEventSystem(element, topLevelType, true);
  31309. }
  31310. function trapEventForPluginEventSystem(container, topLevelType, capture) {
  31311. var listener;
  31312. switch (getEventPriorityForPluginSystem(topLevelType)) {
  31313. case DiscreteEvent:
  31314. listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
  31315. break;
  31316. case UserBlockingEvent:
  31317. listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
  31318. break;
  31319. case ContinuousEvent:
  31320. default:
  31321. listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
  31322. break;
  31323. }
  31324. var rawEventName = getRawEventName(topLevelType);
  31325. if (capture) {
  31326. addEventCaptureListener(container, rawEventName, listener);
  31327. } else {
  31328. addEventBubbleListener(container, rawEventName, listener);
  31329. }
  31330. }
  31331. function dispatchDiscreteEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  31332. flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  31333. discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, container, nativeEvent);
  31334. }
  31335. function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, container, nativeEvent) {
  31336. runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, container, nativeEvent));
  31337. }
  31338. function dispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  31339. if (!_enabled) {
  31340. return;
  31341. }
  31342. if (hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(topLevelType)) {
  31343. // If we already have a queue of discrete events, and this is another discrete
  31344. // event, then we can't dispatch it regardless of its target, since they
  31345. // need to dispatch in order.
  31346. queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know.
  31347. topLevelType, eventSystemFlags, container, nativeEvent);
  31348. return;
  31349. }
  31350. var blockedOn = attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent);
  31351. if (blockedOn === null) {
  31352. // We successfully dispatched this event.
  31353. clearIfContinuousEvent(topLevelType, nativeEvent);
  31354. return;
  31355. }
  31356. if (isReplayableDiscreteEvent(topLevelType)) {
  31357. // This this to be replayed later once the target is available.
  31358. queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  31359. return;
  31360. }
  31361. if (queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent)) {
  31362. return;
  31363. } // We need to clear only if we didn't queue because
  31364. // queueing is accummulative.
  31365. clearIfContinuousEvent(topLevelType, nativeEvent); // This is not replayable so we'll invoke it but without a target,
  31366. // in case the event system needs to trace it.
  31367. {
  31368. dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, null);
  31369. }
  31370. } // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.
  31371. function attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  31372. // TODO: Warn if _enabled is false.
  31373. var nativeEventTarget = getEventTarget(nativeEvent);
  31374. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  31375. if (targetInst !== null) {
  31376. var nearestMounted = getNearestMountedFiber(targetInst);
  31377. if (nearestMounted === null) {
  31378. // This tree has been unmounted already. Dispatch without a target.
  31379. targetInst = null;
  31380. } else {
  31381. var tag = nearestMounted.tag;
  31382. if (tag === SuspenseComponent) {
  31383. var instance = getSuspenseInstanceFromFiber(nearestMounted);
  31384. if (instance !== null) {
  31385. // Queue the event to be replayed later. Abort dispatching since we
  31386. // don't want this event dispatched twice through the event system.
  31387. // TODO: If this is the first discrete event in the queue. Schedule an increased
  31388. // priority for this boundary.
  31389. return instance;
  31390. } // This shouldn't happen, something went wrong but to avoid blocking
  31391. // the whole system, dispatch the event without a target.
  31392. // TODO: Warn.
  31393. targetInst = null;
  31394. } else if (tag === HostRoot) {
  31395. var root = nearestMounted.stateNode;
  31396. if (root.hydrate) {
  31397. // If this happens during a replay something went wrong and it might block
  31398. // the whole system.
  31399. return getContainerFromFiber(nearestMounted);
  31400. }
  31401. targetInst = null;
  31402. } else if (nearestMounted !== targetInst) {
  31403. // If we get an event (ex: img onload) before committing that
  31404. // component's mount, ignore it for now (that is, treat it as if it was an
  31405. // event on a non-React tree). We might also consider queueing events and
  31406. // dispatching them after the mount.
  31407. targetInst = null;
  31408. }
  31409. }
  31410. }
  31411. {
  31412. dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  31413. } // We're not blocked on anything.
  31414. return null;
  31415. }
  31416. // List derived from Gecko source code:
  31417. // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
  31418. var shorthandToLonghand = {
  31419. animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  31420. background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  31421. backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  31422. border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  31423. borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  31424. borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  31425. borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  31426. borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  31427. borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  31428. borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  31429. borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  31430. borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  31431. borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  31432. borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  31433. borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  31434. borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  31435. borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  31436. columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  31437. columns: ['columnCount', 'columnWidth'],
  31438. flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  31439. flexFlow: ['flexDirection', 'flexWrap'],
  31440. font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  31441. fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  31442. gap: ['columnGap', 'rowGap'],
  31443. grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  31444. gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  31445. gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  31446. gridColumnGap: ['columnGap'],
  31447. gridGap: ['columnGap', 'rowGap'],
  31448. gridRow: ['gridRowEnd', 'gridRowStart'],
  31449. gridRowGap: ['rowGap'],
  31450. gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  31451. listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  31452. margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  31453. marker: ['markerEnd', 'markerMid', 'markerStart'],
  31454. mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  31455. maskPosition: ['maskPositionX', 'maskPositionY'],
  31456. outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  31457. overflow: ['overflowX', 'overflowY'],
  31458. padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  31459. placeContent: ['alignContent', 'justifyContent'],
  31460. placeItems: ['alignItems', 'justifyItems'],
  31461. placeSelf: ['alignSelf', 'justifySelf'],
  31462. textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  31463. textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  31464. transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  31465. wordWrap: ['overflowWrap']
  31466. };
  31467. /**
  31468. * CSS properties which accept numbers but are not in units of "px".
  31469. */
  31470. var isUnitlessNumber = {
  31471. animationIterationCount: true,
  31472. borderImageOutset: true,
  31473. borderImageSlice: true,
  31474. borderImageWidth: true,
  31475. boxFlex: true,
  31476. boxFlexGroup: true,
  31477. boxOrdinalGroup: true,
  31478. columnCount: true,
  31479. columns: true,
  31480. flex: true,
  31481. flexGrow: true,
  31482. flexPositive: true,
  31483. flexShrink: true,
  31484. flexNegative: true,
  31485. flexOrder: true,
  31486. gridArea: true,
  31487. gridRow: true,
  31488. gridRowEnd: true,
  31489. gridRowSpan: true,
  31490. gridRowStart: true,
  31491. gridColumn: true,
  31492. gridColumnEnd: true,
  31493. gridColumnSpan: true,
  31494. gridColumnStart: true,
  31495. fontWeight: true,
  31496. lineClamp: true,
  31497. lineHeight: true,
  31498. opacity: true,
  31499. order: true,
  31500. orphans: true,
  31501. tabSize: true,
  31502. widows: true,
  31503. zIndex: true,
  31504. zoom: true,
  31505. // SVG-related properties
  31506. fillOpacity: true,
  31507. floodOpacity: true,
  31508. stopOpacity: true,
  31509. strokeDasharray: true,
  31510. strokeDashoffset: true,
  31511. strokeMiterlimit: true,
  31512. strokeOpacity: true,
  31513. strokeWidth: true
  31514. };
  31515. /**
  31516. * @param {string} prefix vendor-specific prefix, eg: Webkit
  31517. * @param {string} key style name, eg: transitionDuration
  31518. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  31519. * WebkitTransitionDuration
  31520. */
  31521. function prefixKey(prefix, key) {
  31522. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  31523. }
  31524. /**
  31525. * Support style names that may come passed in prefixed by adding permutations
  31526. * of vendor prefixes.
  31527. */
  31528. var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  31529. // infinite loop, because it iterates over the newly added props too.
  31530. Object.keys(isUnitlessNumber).forEach(function (prop) {
  31531. prefixes.forEach(function (prefix) {
  31532. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  31533. });
  31534. });
  31535. /**
  31536. * Convert a value into the proper css writable value. The style name `name`
  31537. * should be logical (no hyphens), as specified
  31538. * in `CSSProperty.isUnitlessNumber`.
  31539. *
  31540. * @param {string} name CSS property name such as `topMargin`.
  31541. * @param {*} value CSS property value such as `10px`.
  31542. * @return {string} Normalized style value with dimensions applied.
  31543. */
  31544. function dangerousStyleValue(name, value, isCustomProperty) {
  31545. // Note that we've removed escapeTextForBrowser() calls here since the
  31546. // whole string will be escaped when the attribute is injected into
  31547. // the markup. If you provide unsafe user data here they can inject
  31548. // arbitrary CSS which may be problematic (I couldn't repro this):
  31549. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  31550. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  31551. // This is not an XSS hole but instead a potential CSS injection issue
  31552. // which has lead to a greater discussion about how we're going to
  31553. // trust URLs moving forward. See #2115901
  31554. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  31555. if (isEmpty) {
  31556. return '';
  31557. }
  31558. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  31559. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  31560. }
  31561. return ('' + value).trim();
  31562. }
  31563. var uppercasePattern = /([A-Z])/g;
  31564. var msPattern = /^ms-/;
  31565. /**
  31566. * Hyphenates a camelcased CSS property name, for example:
  31567. *
  31568. * > hyphenateStyleName('backgroundColor')
  31569. * < "background-color"
  31570. * > hyphenateStyleName('MozTransition')
  31571. * < "-moz-transition"
  31572. * > hyphenateStyleName('msTransition')
  31573. * < "-ms-transition"
  31574. *
  31575. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  31576. * is converted to `-ms-`.
  31577. */
  31578. function hyphenateStyleName(name) {
  31579. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  31580. }
  31581. var warnValidStyle = function () {};
  31582. {
  31583. // 'msTransform' is correct, but the other prefixes should be capitalized
  31584. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  31585. var msPattern$1 = /^-ms-/;
  31586. var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon
  31587. var badStyleValueWithSemicolonPattern = /;\s*$/;
  31588. var warnedStyleNames = {};
  31589. var warnedStyleValues = {};
  31590. var warnedForNaNValue = false;
  31591. var warnedForInfinityValue = false;
  31592. var camelize = function (string) {
  31593. return string.replace(hyphenPattern, function (_, character) {
  31594. return character.toUpperCase();
  31595. });
  31596. };
  31597. var warnHyphenatedStyleName = function (name) {
  31598. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  31599. return;
  31600. }
  31601. warnedStyleNames[name] = true;
  31602. error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests
  31603. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  31604. // is converted to lowercase `ms`.
  31605. camelize(name.replace(msPattern$1, 'ms-')));
  31606. };
  31607. var warnBadVendoredStyleName = function (name) {
  31608. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  31609. return;
  31610. }
  31611. warnedStyleNames[name] = true;
  31612. error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  31613. };
  31614. var warnStyleValueWithSemicolon = function (name, value) {
  31615. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  31616. return;
  31617. }
  31618. warnedStyleValues[value] = true;
  31619. error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  31620. };
  31621. var warnStyleValueIsNaN = function (name, value) {
  31622. if (warnedForNaNValue) {
  31623. return;
  31624. }
  31625. warnedForNaNValue = true;
  31626. error('`NaN` is an invalid value for the `%s` css style property.', name);
  31627. };
  31628. var warnStyleValueIsInfinity = function (name, value) {
  31629. if (warnedForInfinityValue) {
  31630. return;
  31631. }
  31632. warnedForInfinityValue = true;
  31633. error('`Infinity` is an invalid value for the `%s` css style property.', name);
  31634. };
  31635. warnValidStyle = function (name, value) {
  31636. if (name.indexOf('-') > -1) {
  31637. warnHyphenatedStyleName(name);
  31638. } else if (badVendoredStyleNamePattern.test(name)) {
  31639. warnBadVendoredStyleName(name);
  31640. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  31641. warnStyleValueWithSemicolon(name, value);
  31642. }
  31643. if (typeof value === 'number') {
  31644. if (isNaN(value)) {
  31645. warnStyleValueIsNaN(name, value);
  31646. } else if (!isFinite(value)) {
  31647. warnStyleValueIsInfinity(name, value);
  31648. }
  31649. }
  31650. };
  31651. }
  31652. var warnValidStyle$1 = warnValidStyle;
  31653. /**
  31654. * Operations for dealing with CSS properties.
  31655. */
  31656. /**
  31657. * This creates a string that is expected to be equivalent to the style
  31658. * attribute generated by server-side rendering. It by-passes warnings and
  31659. * security checks so it's not safe to use this value for anything other than
  31660. * comparison. It is only used in DEV for SSR validation.
  31661. */
  31662. function createDangerousStringForStyles(styles) {
  31663. {
  31664. var serialized = '';
  31665. var delimiter = '';
  31666. for (var styleName in styles) {
  31667. if (!styles.hasOwnProperty(styleName)) {
  31668. continue;
  31669. }
  31670. var styleValue = styles[styleName];
  31671. if (styleValue != null) {
  31672. var isCustomProperty = styleName.indexOf('--') === 0;
  31673. serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
  31674. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  31675. delimiter = ';';
  31676. }
  31677. }
  31678. return serialized || null;
  31679. }
  31680. }
  31681. /**
  31682. * Sets the value for multiple styles on a node. If a value is specified as
  31683. * '' (empty string), the corresponding style property will be unset.
  31684. *
  31685. * @param {DOMElement} node
  31686. * @param {object} styles
  31687. */
  31688. function setValueForStyles(node, styles) {
  31689. var style = node.style;
  31690. for (var styleName in styles) {
  31691. if (!styles.hasOwnProperty(styleName)) {
  31692. continue;
  31693. }
  31694. var isCustomProperty = styleName.indexOf('--') === 0;
  31695. {
  31696. if (!isCustomProperty) {
  31697. warnValidStyle$1(styleName, styles[styleName]);
  31698. }
  31699. }
  31700. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  31701. if (styleName === 'float') {
  31702. styleName = 'cssFloat';
  31703. }
  31704. if (isCustomProperty) {
  31705. style.setProperty(styleName, styleValue);
  31706. } else {
  31707. style[styleName] = styleValue;
  31708. }
  31709. }
  31710. }
  31711. function isValueEmpty(value) {
  31712. return value == null || typeof value === 'boolean' || value === '';
  31713. }
  31714. /**
  31715. * Given {color: 'red', overflow: 'hidden'} returns {
  31716. * color: 'color',
  31717. * overflowX: 'overflow',
  31718. * overflowY: 'overflow',
  31719. * }. This can be read as "the overflowY property was set by the overflow
  31720. * shorthand". That is, the values are the property that each was derived from.
  31721. */
  31722. function expandShorthandMap(styles) {
  31723. var expanded = {};
  31724. for (var key in styles) {
  31725. var longhands = shorthandToLonghand[key] || [key];
  31726. for (var i = 0; i < longhands.length; i++) {
  31727. expanded[longhands[i]] = key;
  31728. }
  31729. }
  31730. return expanded;
  31731. }
  31732. /**
  31733. * When mixing shorthand and longhand property names, we warn during updates if
  31734. * we expect an incorrect result to occur. In particular, we warn for:
  31735. *
  31736. * Updating a shorthand property (longhand gets overwritten):
  31737. * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
  31738. * becomes .style.font = 'baz'
  31739. * Removing a shorthand property (longhand gets lost too):
  31740. * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
  31741. * becomes .style.font = ''
  31742. * Removing a longhand property (should revert to shorthand; doesn't):
  31743. * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
  31744. * becomes .style.fontVariant = ''
  31745. */
  31746. function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  31747. {
  31748. if (!nextStyles) {
  31749. return;
  31750. }
  31751. var expandedUpdates = expandShorthandMap(styleUpdates);
  31752. var expandedStyles = expandShorthandMap(nextStyles);
  31753. var warnedAbout = {};
  31754. for (var key in expandedUpdates) {
  31755. var originalKey = expandedUpdates[key];
  31756. var correctOriginalKey = expandedStyles[key];
  31757. if (correctOriginalKey && originalKey !== correctOriginalKey) {
  31758. var warningKey = originalKey + ',' + correctOriginalKey;
  31759. if (warnedAbout[warningKey]) {
  31760. continue;
  31761. }
  31762. warnedAbout[warningKey] = true;
  31763. 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);
  31764. }
  31765. }
  31766. }
  31767. }
  31768. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  31769. // those special-case tags.
  31770. var omittedCloseTags = {
  31771. area: true,
  31772. base: true,
  31773. br: true,
  31774. col: true,
  31775. embed: true,
  31776. hr: true,
  31777. img: true,
  31778. input: true,
  31779. keygen: true,
  31780. link: true,
  31781. meta: true,
  31782. param: true,
  31783. source: true,
  31784. track: true,
  31785. wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.
  31786. };
  31787. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  31788. var voidElementTags = _assign({
  31789. menuitem: true
  31790. }, omittedCloseTags);
  31791. var HTML = '__html';
  31792. var ReactDebugCurrentFrame$3 = null;
  31793. {
  31794. ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
  31795. }
  31796. function assertValidProps(tag, props) {
  31797. if (!props) {
  31798. return;
  31799. } // Note the use of `==` which checks for null or undefined.
  31800. if (voidElementTags[tag]) {
  31801. if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
  31802. {
  31803. throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) );
  31804. }
  31805. }
  31806. }
  31807. if (props.dangerouslySetInnerHTML != null) {
  31808. if (!(props.children == null)) {
  31809. {
  31810. throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." );
  31811. }
  31812. }
  31813. if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) {
  31814. {
  31815. throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information." );
  31816. }
  31817. }
  31818. }
  31819. {
  31820. if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
  31821. 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.');
  31822. }
  31823. }
  31824. if (!(props.style == null || typeof props.style === 'object')) {
  31825. {
  31826. 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() ) );
  31827. }
  31828. }
  31829. }
  31830. function isCustomComponent(tagName, props) {
  31831. if (tagName.indexOf('-') === -1) {
  31832. return typeof props.is === 'string';
  31833. }
  31834. switch (tagName) {
  31835. // These are reserved SVG and MathML elements.
  31836. // We don't mind this whitelist too much because we expect it to never grow.
  31837. // The alternative is to track the namespace in a few places which is convoluted.
  31838. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  31839. case 'annotation-xml':
  31840. case 'color-profile':
  31841. case 'font-face':
  31842. case 'font-face-src':
  31843. case 'font-face-uri':
  31844. case 'font-face-format':
  31845. case 'font-face-name':
  31846. case 'missing-glyph':
  31847. return false;
  31848. default:
  31849. return true;
  31850. }
  31851. }
  31852. // When adding attributes to the HTML or SVG whitelist, be sure to
  31853. // also add them to this module to ensure casing and incorrect name
  31854. // warnings.
  31855. var possibleStandardNames = {
  31856. // HTML
  31857. accept: 'accept',
  31858. acceptcharset: 'acceptCharset',
  31859. 'accept-charset': 'acceptCharset',
  31860. accesskey: 'accessKey',
  31861. action: 'action',
  31862. allowfullscreen: 'allowFullScreen',
  31863. alt: 'alt',
  31864. as: 'as',
  31865. async: 'async',
  31866. autocapitalize: 'autoCapitalize',
  31867. autocomplete: 'autoComplete',
  31868. autocorrect: 'autoCorrect',
  31869. autofocus: 'autoFocus',
  31870. autoplay: 'autoPlay',
  31871. autosave: 'autoSave',
  31872. capture: 'capture',
  31873. cellpadding: 'cellPadding',
  31874. cellspacing: 'cellSpacing',
  31875. challenge: 'challenge',
  31876. charset: 'charSet',
  31877. checked: 'checked',
  31878. children: 'children',
  31879. cite: 'cite',
  31880. class: 'className',
  31881. classid: 'classID',
  31882. classname: 'className',
  31883. cols: 'cols',
  31884. colspan: 'colSpan',
  31885. content: 'content',
  31886. contenteditable: 'contentEditable',
  31887. contextmenu: 'contextMenu',
  31888. controls: 'controls',
  31889. controlslist: 'controlsList',
  31890. coords: 'coords',
  31891. crossorigin: 'crossOrigin',
  31892. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  31893. data: 'data',
  31894. datetime: 'dateTime',
  31895. default: 'default',
  31896. defaultchecked: 'defaultChecked',
  31897. defaultvalue: 'defaultValue',
  31898. defer: 'defer',
  31899. dir: 'dir',
  31900. disabled: 'disabled',
  31901. disablepictureinpicture: 'disablePictureInPicture',
  31902. download: 'download',
  31903. draggable: 'draggable',
  31904. enctype: 'encType',
  31905. for: 'htmlFor',
  31906. form: 'form',
  31907. formmethod: 'formMethod',
  31908. formaction: 'formAction',
  31909. formenctype: 'formEncType',
  31910. formnovalidate: 'formNoValidate',
  31911. formtarget: 'formTarget',
  31912. frameborder: 'frameBorder',
  31913. headers: 'headers',
  31914. height: 'height',
  31915. hidden: 'hidden',
  31916. high: 'high',
  31917. href: 'href',
  31918. hreflang: 'hrefLang',
  31919. htmlfor: 'htmlFor',
  31920. httpequiv: 'httpEquiv',
  31921. 'http-equiv': 'httpEquiv',
  31922. icon: 'icon',
  31923. id: 'id',
  31924. innerhtml: 'innerHTML',
  31925. inputmode: 'inputMode',
  31926. integrity: 'integrity',
  31927. is: 'is',
  31928. itemid: 'itemID',
  31929. itemprop: 'itemProp',
  31930. itemref: 'itemRef',
  31931. itemscope: 'itemScope',
  31932. itemtype: 'itemType',
  31933. keyparams: 'keyParams',
  31934. keytype: 'keyType',
  31935. kind: 'kind',
  31936. label: 'label',
  31937. lang: 'lang',
  31938. list: 'list',
  31939. loop: 'loop',
  31940. low: 'low',
  31941. manifest: 'manifest',
  31942. marginwidth: 'marginWidth',
  31943. marginheight: 'marginHeight',
  31944. max: 'max',
  31945. maxlength: 'maxLength',
  31946. media: 'media',
  31947. mediagroup: 'mediaGroup',
  31948. method: 'method',
  31949. min: 'min',
  31950. minlength: 'minLength',
  31951. multiple: 'multiple',
  31952. muted: 'muted',
  31953. name: 'name',
  31954. nomodule: 'noModule',
  31955. nonce: 'nonce',
  31956. novalidate: 'noValidate',
  31957. open: 'open',
  31958. optimum: 'optimum',
  31959. pattern: 'pattern',
  31960. placeholder: 'placeholder',
  31961. playsinline: 'playsInline',
  31962. poster: 'poster',
  31963. preload: 'preload',
  31964. profile: 'profile',
  31965. radiogroup: 'radioGroup',
  31966. readonly: 'readOnly',
  31967. referrerpolicy: 'referrerPolicy',
  31968. rel: 'rel',
  31969. required: 'required',
  31970. reversed: 'reversed',
  31971. role: 'role',
  31972. rows: 'rows',
  31973. rowspan: 'rowSpan',
  31974. sandbox: 'sandbox',
  31975. scope: 'scope',
  31976. scoped: 'scoped',
  31977. scrolling: 'scrolling',
  31978. seamless: 'seamless',
  31979. selected: 'selected',
  31980. shape: 'shape',
  31981. size: 'size',
  31982. sizes: 'sizes',
  31983. span: 'span',
  31984. spellcheck: 'spellCheck',
  31985. src: 'src',
  31986. srcdoc: 'srcDoc',
  31987. srclang: 'srcLang',
  31988. srcset: 'srcSet',
  31989. start: 'start',
  31990. step: 'step',
  31991. style: 'style',
  31992. summary: 'summary',
  31993. tabindex: 'tabIndex',
  31994. target: 'target',
  31995. title: 'title',
  31996. type: 'type',
  31997. usemap: 'useMap',
  31998. value: 'value',
  31999. width: 'width',
  32000. wmode: 'wmode',
  32001. wrap: 'wrap',
  32002. // SVG
  32003. about: 'about',
  32004. accentheight: 'accentHeight',
  32005. 'accent-height': 'accentHeight',
  32006. accumulate: 'accumulate',
  32007. additive: 'additive',
  32008. alignmentbaseline: 'alignmentBaseline',
  32009. 'alignment-baseline': 'alignmentBaseline',
  32010. allowreorder: 'allowReorder',
  32011. alphabetic: 'alphabetic',
  32012. amplitude: 'amplitude',
  32013. arabicform: 'arabicForm',
  32014. 'arabic-form': 'arabicForm',
  32015. ascent: 'ascent',
  32016. attributename: 'attributeName',
  32017. attributetype: 'attributeType',
  32018. autoreverse: 'autoReverse',
  32019. azimuth: 'azimuth',
  32020. basefrequency: 'baseFrequency',
  32021. baselineshift: 'baselineShift',
  32022. 'baseline-shift': 'baselineShift',
  32023. baseprofile: 'baseProfile',
  32024. bbox: 'bbox',
  32025. begin: 'begin',
  32026. bias: 'bias',
  32027. by: 'by',
  32028. calcmode: 'calcMode',
  32029. capheight: 'capHeight',
  32030. 'cap-height': 'capHeight',
  32031. clip: 'clip',
  32032. clippath: 'clipPath',
  32033. 'clip-path': 'clipPath',
  32034. clippathunits: 'clipPathUnits',
  32035. cliprule: 'clipRule',
  32036. 'clip-rule': 'clipRule',
  32037. color: 'color',
  32038. colorinterpolation: 'colorInterpolation',
  32039. 'color-interpolation': 'colorInterpolation',
  32040. colorinterpolationfilters: 'colorInterpolationFilters',
  32041. 'color-interpolation-filters': 'colorInterpolationFilters',
  32042. colorprofile: 'colorProfile',
  32043. 'color-profile': 'colorProfile',
  32044. colorrendering: 'colorRendering',
  32045. 'color-rendering': 'colorRendering',
  32046. contentscripttype: 'contentScriptType',
  32047. contentstyletype: 'contentStyleType',
  32048. cursor: 'cursor',
  32049. cx: 'cx',
  32050. cy: 'cy',
  32051. d: 'd',
  32052. datatype: 'datatype',
  32053. decelerate: 'decelerate',
  32054. descent: 'descent',
  32055. diffuseconstant: 'diffuseConstant',
  32056. direction: 'direction',
  32057. display: 'display',
  32058. divisor: 'divisor',
  32059. dominantbaseline: 'dominantBaseline',
  32060. 'dominant-baseline': 'dominantBaseline',
  32061. dur: 'dur',
  32062. dx: 'dx',
  32063. dy: 'dy',
  32064. edgemode: 'edgeMode',
  32065. elevation: 'elevation',
  32066. enablebackground: 'enableBackground',
  32067. 'enable-background': 'enableBackground',
  32068. end: 'end',
  32069. exponent: 'exponent',
  32070. externalresourcesrequired: 'externalResourcesRequired',
  32071. fill: 'fill',
  32072. fillopacity: 'fillOpacity',
  32073. 'fill-opacity': 'fillOpacity',
  32074. fillrule: 'fillRule',
  32075. 'fill-rule': 'fillRule',
  32076. filter: 'filter',
  32077. filterres: 'filterRes',
  32078. filterunits: 'filterUnits',
  32079. floodopacity: 'floodOpacity',
  32080. 'flood-opacity': 'floodOpacity',
  32081. floodcolor: 'floodColor',
  32082. 'flood-color': 'floodColor',
  32083. focusable: 'focusable',
  32084. fontfamily: 'fontFamily',
  32085. 'font-family': 'fontFamily',
  32086. fontsize: 'fontSize',
  32087. 'font-size': 'fontSize',
  32088. fontsizeadjust: 'fontSizeAdjust',
  32089. 'font-size-adjust': 'fontSizeAdjust',
  32090. fontstretch: 'fontStretch',
  32091. 'font-stretch': 'fontStretch',
  32092. fontstyle: 'fontStyle',
  32093. 'font-style': 'fontStyle',
  32094. fontvariant: 'fontVariant',
  32095. 'font-variant': 'fontVariant',
  32096. fontweight: 'fontWeight',
  32097. 'font-weight': 'fontWeight',
  32098. format: 'format',
  32099. from: 'from',
  32100. fx: 'fx',
  32101. fy: 'fy',
  32102. g1: 'g1',
  32103. g2: 'g2',
  32104. glyphname: 'glyphName',
  32105. 'glyph-name': 'glyphName',
  32106. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  32107. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  32108. glyphorientationvertical: 'glyphOrientationVertical',
  32109. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  32110. glyphref: 'glyphRef',
  32111. gradienttransform: 'gradientTransform',
  32112. gradientunits: 'gradientUnits',
  32113. hanging: 'hanging',
  32114. horizadvx: 'horizAdvX',
  32115. 'horiz-adv-x': 'horizAdvX',
  32116. horizoriginx: 'horizOriginX',
  32117. 'horiz-origin-x': 'horizOriginX',
  32118. ideographic: 'ideographic',
  32119. imagerendering: 'imageRendering',
  32120. 'image-rendering': 'imageRendering',
  32121. in2: 'in2',
  32122. in: 'in',
  32123. inlist: 'inlist',
  32124. intercept: 'intercept',
  32125. k1: 'k1',
  32126. k2: 'k2',
  32127. k3: 'k3',
  32128. k4: 'k4',
  32129. k: 'k',
  32130. kernelmatrix: 'kernelMatrix',
  32131. kernelunitlength: 'kernelUnitLength',
  32132. kerning: 'kerning',
  32133. keypoints: 'keyPoints',
  32134. keysplines: 'keySplines',
  32135. keytimes: 'keyTimes',
  32136. lengthadjust: 'lengthAdjust',
  32137. letterspacing: 'letterSpacing',
  32138. 'letter-spacing': 'letterSpacing',
  32139. lightingcolor: 'lightingColor',
  32140. 'lighting-color': 'lightingColor',
  32141. limitingconeangle: 'limitingConeAngle',
  32142. local: 'local',
  32143. markerend: 'markerEnd',
  32144. 'marker-end': 'markerEnd',
  32145. markerheight: 'markerHeight',
  32146. markermid: 'markerMid',
  32147. 'marker-mid': 'markerMid',
  32148. markerstart: 'markerStart',
  32149. 'marker-start': 'markerStart',
  32150. markerunits: 'markerUnits',
  32151. markerwidth: 'markerWidth',
  32152. mask: 'mask',
  32153. maskcontentunits: 'maskContentUnits',
  32154. maskunits: 'maskUnits',
  32155. mathematical: 'mathematical',
  32156. mode: 'mode',
  32157. numoctaves: 'numOctaves',
  32158. offset: 'offset',
  32159. opacity: 'opacity',
  32160. operator: 'operator',
  32161. order: 'order',
  32162. orient: 'orient',
  32163. orientation: 'orientation',
  32164. origin: 'origin',
  32165. overflow: 'overflow',
  32166. overlineposition: 'overlinePosition',
  32167. 'overline-position': 'overlinePosition',
  32168. overlinethickness: 'overlineThickness',
  32169. 'overline-thickness': 'overlineThickness',
  32170. paintorder: 'paintOrder',
  32171. 'paint-order': 'paintOrder',
  32172. panose1: 'panose1',
  32173. 'panose-1': 'panose1',
  32174. pathlength: 'pathLength',
  32175. patterncontentunits: 'patternContentUnits',
  32176. patterntransform: 'patternTransform',
  32177. patternunits: 'patternUnits',
  32178. pointerevents: 'pointerEvents',
  32179. 'pointer-events': 'pointerEvents',
  32180. points: 'points',
  32181. pointsatx: 'pointsAtX',
  32182. pointsaty: 'pointsAtY',
  32183. pointsatz: 'pointsAtZ',
  32184. prefix: 'prefix',
  32185. preservealpha: 'preserveAlpha',
  32186. preserveaspectratio: 'preserveAspectRatio',
  32187. primitiveunits: 'primitiveUnits',
  32188. property: 'property',
  32189. r: 'r',
  32190. radius: 'radius',
  32191. refx: 'refX',
  32192. refy: 'refY',
  32193. renderingintent: 'renderingIntent',
  32194. 'rendering-intent': 'renderingIntent',
  32195. repeatcount: 'repeatCount',
  32196. repeatdur: 'repeatDur',
  32197. requiredextensions: 'requiredExtensions',
  32198. requiredfeatures: 'requiredFeatures',
  32199. resource: 'resource',
  32200. restart: 'restart',
  32201. result: 'result',
  32202. results: 'results',
  32203. rotate: 'rotate',
  32204. rx: 'rx',
  32205. ry: 'ry',
  32206. scale: 'scale',
  32207. security: 'security',
  32208. seed: 'seed',
  32209. shaperendering: 'shapeRendering',
  32210. 'shape-rendering': 'shapeRendering',
  32211. slope: 'slope',
  32212. spacing: 'spacing',
  32213. specularconstant: 'specularConstant',
  32214. specularexponent: 'specularExponent',
  32215. speed: 'speed',
  32216. spreadmethod: 'spreadMethod',
  32217. startoffset: 'startOffset',
  32218. stddeviation: 'stdDeviation',
  32219. stemh: 'stemh',
  32220. stemv: 'stemv',
  32221. stitchtiles: 'stitchTiles',
  32222. stopcolor: 'stopColor',
  32223. 'stop-color': 'stopColor',
  32224. stopopacity: 'stopOpacity',
  32225. 'stop-opacity': 'stopOpacity',
  32226. strikethroughposition: 'strikethroughPosition',
  32227. 'strikethrough-position': 'strikethroughPosition',
  32228. strikethroughthickness: 'strikethroughThickness',
  32229. 'strikethrough-thickness': 'strikethroughThickness',
  32230. string: 'string',
  32231. stroke: 'stroke',
  32232. strokedasharray: 'strokeDasharray',
  32233. 'stroke-dasharray': 'strokeDasharray',
  32234. strokedashoffset: 'strokeDashoffset',
  32235. 'stroke-dashoffset': 'strokeDashoffset',
  32236. strokelinecap: 'strokeLinecap',
  32237. 'stroke-linecap': 'strokeLinecap',
  32238. strokelinejoin: 'strokeLinejoin',
  32239. 'stroke-linejoin': 'strokeLinejoin',
  32240. strokemiterlimit: 'strokeMiterlimit',
  32241. 'stroke-miterlimit': 'strokeMiterlimit',
  32242. strokewidth: 'strokeWidth',
  32243. 'stroke-width': 'strokeWidth',
  32244. strokeopacity: 'strokeOpacity',
  32245. 'stroke-opacity': 'strokeOpacity',
  32246. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  32247. suppresshydrationwarning: 'suppressHydrationWarning',
  32248. surfacescale: 'surfaceScale',
  32249. systemlanguage: 'systemLanguage',
  32250. tablevalues: 'tableValues',
  32251. targetx: 'targetX',
  32252. targety: 'targetY',
  32253. textanchor: 'textAnchor',
  32254. 'text-anchor': 'textAnchor',
  32255. textdecoration: 'textDecoration',
  32256. 'text-decoration': 'textDecoration',
  32257. textlength: 'textLength',
  32258. textrendering: 'textRendering',
  32259. 'text-rendering': 'textRendering',
  32260. to: 'to',
  32261. transform: 'transform',
  32262. typeof: 'typeof',
  32263. u1: 'u1',
  32264. u2: 'u2',
  32265. underlineposition: 'underlinePosition',
  32266. 'underline-position': 'underlinePosition',
  32267. underlinethickness: 'underlineThickness',
  32268. 'underline-thickness': 'underlineThickness',
  32269. unicode: 'unicode',
  32270. unicodebidi: 'unicodeBidi',
  32271. 'unicode-bidi': 'unicodeBidi',
  32272. unicoderange: 'unicodeRange',
  32273. 'unicode-range': 'unicodeRange',
  32274. unitsperem: 'unitsPerEm',
  32275. 'units-per-em': 'unitsPerEm',
  32276. unselectable: 'unselectable',
  32277. valphabetic: 'vAlphabetic',
  32278. 'v-alphabetic': 'vAlphabetic',
  32279. values: 'values',
  32280. vectoreffect: 'vectorEffect',
  32281. 'vector-effect': 'vectorEffect',
  32282. version: 'version',
  32283. vertadvy: 'vertAdvY',
  32284. 'vert-adv-y': 'vertAdvY',
  32285. vertoriginx: 'vertOriginX',
  32286. 'vert-origin-x': 'vertOriginX',
  32287. vertoriginy: 'vertOriginY',
  32288. 'vert-origin-y': 'vertOriginY',
  32289. vhanging: 'vHanging',
  32290. 'v-hanging': 'vHanging',
  32291. videographic: 'vIdeographic',
  32292. 'v-ideographic': 'vIdeographic',
  32293. viewbox: 'viewBox',
  32294. viewtarget: 'viewTarget',
  32295. visibility: 'visibility',
  32296. vmathematical: 'vMathematical',
  32297. 'v-mathematical': 'vMathematical',
  32298. vocab: 'vocab',
  32299. widths: 'widths',
  32300. wordspacing: 'wordSpacing',
  32301. 'word-spacing': 'wordSpacing',
  32302. writingmode: 'writingMode',
  32303. 'writing-mode': 'writingMode',
  32304. x1: 'x1',
  32305. x2: 'x2',
  32306. x: 'x',
  32307. xchannelselector: 'xChannelSelector',
  32308. xheight: 'xHeight',
  32309. 'x-height': 'xHeight',
  32310. xlinkactuate: 'xlinkActuate',
  32311. 'xlink:actuate': 'xlinkActuate',
  32312. xlinkarcrole: 'xlinkArcrole',
  32313. 'xlink:arcrole': 'xlinkArcrole',
  32314. xlinkhref: 'xlinkHref',
  32315. 'xlink:href': 'xlinkHref',
  32316. xlinkrole: 'xlinkRole',
  32317. 'xlink:role': 'xlinkRole',
  32318. xlinkshow: 'xlinkShow',
  32319. 'xlink:show': 'xlinkShow',
  32320. xlinktitle: 'xlinkTitle',
  32321. 'xlink:title': 'xlinkTitle',
  32322. xlinktype: 'xlinkType',
  32323. 'xlink:type': 'xlinkType',
  32324. xmlbase: 'xmlBase',
  32325. 'xml:base': 'xmlBase',
  32326. xmllang: 'xmlLang',
  32327. 'xml:lang': 'xmlLang',
  32328. xmlns: 'xmlns',
  32329. 'xml:space': 'xmlSpace',
  32330. xmlnsxlink: 'xmlnsXlink',
  32331. 'xmlns:xlink': 'xmlnsXlink',
  32332. xmlspace: 'xmlSpace',
  32333. y1: 'y1',
  32334. y2: 'y2',
  32335. y: 'y',
  32336. ychannelselector: 'yChannelSelector',
  32337. z: 'z',
  32338. zoomandpan: 'zoomAndPan'
  32339. };
  32340. var ariaProperties = {
  32341. 'aria-current': 0,
  32342. // state
  32343. 'aria-details': 0,
  32344. 'aria-disabled': 0,
  32345. // state
  32346. 'aria-hidden': 0,
  32347. // state
  32348. 'aria-invalid': 0,
  32349. // state
  32350. 'aria-keyshortcuts': 0,
  32351. 'aria-label': 0,
  32352. 'aria-roledescription': 0,
  32353. // Widget Attributes
  32354. 'aria-autocomplete': 0,
  32355. 'aria-checked': 0,
  32356. 'aria-expanded': 0,
  32357. 'aria-haspopup': 0,
  32358. 'aria-level': 0,
  32359. 'aria-modal': 0,
  32360. 'aria-multiline': 0,
  32361. 'aria-multiselectable': 0,
  32362. 'aria-orientation': 0,
  32363. 'aria-placeholder': 0,
  32364. 'aria-pressed': 0,
  32365. 'aria-readonly': 0,
  32366. 'aria-required': 0,
  32367. 'aria-selected': 0,
  32368. 'aria-sort': 0,
  32369. 'aria-valuemax': 0,
  32370. 'aria-valuemin': 0,
  32371. 'aria-valuenow': 0,
  32372. 'aria-valuetext': 0,
  32373. // Live Region Attributes
  32374. 'aria-atomic': 0,
  32375. 'aria-busy': 0,
  32376. 'aria-live': 0,
  32377. 'aria-relevant': 0,
  32378. // Drag-and-Drop Attributes
  32379. 'aria-dropeffect': 0,
  32380. 'aria-grabbed': 0,
  32381. // Relationship Attributes
  32382. 'aria-activedescendant': 0,
  32383. 'aria-colcount': 0,
  32384. 'aria-colindex': 0,
  32385. 'aria-colspan': 0,
  32386. 'aria-controls': 0,
  32387. 'aria-describedby': 0,
  32388. 'aria-errormessage': 0,
  32389. 'aria-flowto': 0,
  32390. 'aria-labelledby': 0,
  32391. 'aria-owns': 0,
  32392. 'aria-posinset': 0,
  32393. 'aria-rowcount': 0,
  32394. 'aria-rowindex': 0,
  32395. 'aria-rowspan': 0,
  32396. 'aria-setsize': 0
  32397. };
  32398. var warnedProperties = {};
  32399. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  32400. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  32401. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  32402. function validateProperty(tagName, name) {
  32403. {
  32404. if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) {
  32405. return true;
  32406. }
  32407. if (rARIACamel.test(name)) {
  32408. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  32409. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM
  32410. // DOM properties, then it is an invalid aria-* attribute.
  32411. if (correctName == null) {
  32412. error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  32413. warnedProperties[name] = true;
  32414. return true;
  32415. } // aria-* attributes should be lowercase; suggest the lowercase version.
  32416. if (name !== correctName) {
  32417. error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  32418. warnedProperties[name] = true;
  32419. return true;
  32420. }
  32421. }
  32422. if (rARIA.test(name)) {
  32423. var lowerCasedName = name.toLowerCase();
  32424. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM
  32425. // DOM properties, then it is an invalid aria-* attribute.
  32426. if (standardName == null) {
  32427. warnedProperties[name] = true;
  32428. return false;
  32429. } // aria-* attributes should be lowercase; suggest the lowercase version.
  32430. if (name !== standardName) {
  32431. error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  32432. warnedProperties[name] = true;
  32433. return true;
  32434. }
  32435. }
  32436. }
  32437. return true;
  32438. }
  32439. function warnInvalidARIAProps(type, props) {
  32440. {
  32441. var invalidProps = [];
  32442. for (var key in props) {
  32443. var isValid = validateProperty(type, key);
  32444. if (!isValid) {
  32445. invalidProps.push(key);
  32446. }
  32447. }
  32448. var unknownPropString = invalidProps.map(function (prop) {
  32449. return '`' + prop + '`';
  32450. }).join(', ');
  32451. if (invalidProps.length === 1) {
  32452. error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  32453. } else if (invalidProps.length > 1) {
  32454. error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  32455. }
  32456. }
  32457. }
  32458. function validateProperties(type, props) {
  32459. if (isCustomComponent(type, props)) {
  32460. return;
  32461. }
  32462. warnInvalidARIAProps(type, props);
  32463. }
  32464. var didWarnValueNull = false;
  32465. function validateProperties$1(type, props) {
  32466. {
  32467. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  32468. return;
  32469. }
  32470. if (props != null && props.value === null && !didWarnValueNull) {
  32471. didWarnValueNull = true;
  32472. if (type === 'select' && props.multiple) {
  32473. 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);
  32474. } else {
  32475. error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
  32476. }
  32477. }
  32478. }
  32479. }
  32480. var validateProperty$1 = function () {};
  32481. {
  32482. var warnedProperties$1 = {};
  32483. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  32484. var EVENT_NAME_REGEX = /^on./;
  32485. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  32486. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  32487. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  32488. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  32489. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  32490. return true;
  32491. }
  32492. var lowerCasedName = name.toLowerCase();
  32493. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  32494. 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.');
  32495. warnedProperties$1[name] = true;
  32496. return true;
  32497. } // We can't rely on the event system being injected on the server.
  32498. if (canUseEventSystem) {
  32499. if (registrationNameModules.hasOwnProperty(name)) {
  32500. return true;
  32501. }
  32502. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  32503. if (registrationName != null) {
  32504. error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  32505. warnedProperties$1[name] = true;
  32506. return true;
  32507. }
  32508. if (EVENT_NAME_REGEX.test(name)) {
  32509. error('Unknown event handler property `%s`. It will be ignored.', name);
  32510. warnedProperties$1[name] = true;
  32511. return true;
  32512. }
  32513. } else if (EVENT_NAME_REGEX.test(name)) {
  32514. // If no event plugins have been injected, we are in a server environment.
  32515. // So we can't tell if the event name is correct for sure, but we can filter
  32516. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  32517. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  32518. error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  32519. }
  32520. warnedProperties$1[name] = true;
  32521. return true;
  32522. } // Let the ARIA attribute hook validate ARIA attributes
  32523. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  32524. return true;
  32525. }
  32526. if (lowerCasedName === 'innerhtml') {
  32527. error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  32528. warnedProperties$1[name] = true;
  32529. return true;
  32530. }
  32531. if (lowerCasedName === 'aria') {
  32532. error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  32533. warnedProperties$1[name] = true;
  32534. return true;
  32535. }
  32536. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  32537. error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  32538. warnedProperties$1[name] = true;
  32539. return true;
  32540. }
  32541. if (typeof value === 'number' && isNaN(value)) {
  32542. error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  32543. warnedProperties$1[name] = true;
  32544. return true;
  32545. }
  32546. var propertyInfo = getPropertyInfo(name);
  32547. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.
  32548. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  32549. var standardName = possibleStandardNames[lowerCasedName];
  32550. if (standardName !== name) {
  32551. error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  32552. warnedProperties$1[name] = true;
  32553. return true;
  32554. }
  32555. } else if (!isReserved && name !== lowerCasedName) {
  32556. // Unknown attributes should have lowercase casing since that's how they
  32557. // will be cased anyway with server rendering.
  32558. 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);
  32559. warnedProperties$1[name] = true;
  32560. return true;
  32561. }
  32562. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  32563. if (value) {
  32564. 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);
  32565. } else {
  32566. 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);
  32567. }
  32568. warnedProperties$1[name] = true;
  32569. return true;
  32570. } // Now that we've validated casing, do not validate
  32571. // data types for reserved props
  32572. if (isReserved) {
  32573. return true;
  32574. } // Warn when a known attribute is a bad type
  32575. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  32576. warnedProperties$1[name] = true;
  32577. return false;
  32578. } // Warn when passing the strings 'false' or 'true' into a boolean prop
  32579. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  32580. 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);
  32581. warnedProperties$1[name] = true;
  32582. return true;
  32583. }
  32584. return true;
  32585. };
  32586. }
  32587. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  32588. {
  32589. var unknownProps = [];
  32590. for (var key in props) {
  32591. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  32592. if (!isValid) {
  32593. unknownProps.push(key);
  32594. }
  32595. }
  32596. var unknownPropString = unknownProps.map(function (prop) {
  32597. return '`' + prop + '`';
  32598. }).join(', ');
  32599. if (unknownProps.length === 1) {
  32600. 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);
  32601. } else if (unknownProps.length > 1) {
  32602. 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);
  32603. }
  32604. }
  32605. };
  32606. function validateProperties$2(type, props, canUseEventSystem) {
  32607. if (isCustomComponent(type, props)) {
  32608. return;
  32609. }
  32610. warnUnknownProperties(type, props, canUseEventSystem);
  32611. }
  32612. var didWarnInvalidHydration = false;
  32613. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  32614. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  32615. var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  32616. var AUTOFOCUS = 'autoFocus';
  32617. var CHILDREN = 'children';
  32618. var STYLE = 'style';
  32619. var HTML$1 = '__html';
  32620. var HTML_NAMESPACE$1 = Namespaces.html;
  32621. var warnedUnknownTags;
  32622. var suppressHydrationWarning;
  32623. var validatePropertiesInDevelopment;
  32624. var warnForTextDifference;
  32625. var warnForPropDifference;
  32626. var warnForExtraAttributes;
  32627. var warnForInvalidEventListener;
  32628. var canDiffStyleForHydrationWarning;
  32629. var normalizeMarkupForTextOrAttribute;
  32630. var normalizeHTML;
  32631. {
  32632. warnedUnknownTags = {
  32633. // Chrome is the only major browser not shipping <time>. But as of July
  32634. // 2017 it intends to ship it due to widespread usage. We intentionally
  32635. // *don't* warn for <time> even if it's unrecognized by Chrome because
  32636. // it soon will be, and many apps have been using it anyway.
  32637. time: true,
  32638. // There are working polyfills for <dialog>. Let people use it.
  32639. dialog: true,
  32640. // Electron ships a custom <webview> tag to display external web content in
  32641. // an isolated frame and process.
  32642. // This tag is not present in non Electron environments such as JSDom which
  32643. // is often used for testing purposes.
  32644. // @see https://electronjs.org/docs/api/webview-tag
  32645. webview: true
  32646. };
  32647. validatePropertiesInDevelopment = function (type, props) {
  32648. validateProperties(type, props);
  32649. validateProperties$1(type, props);
  32650. validateProperties$2(type, props,
  32651. /* canUseEventSystem */
  32652. true);
  32653. }; // IE 11 parses & normalizes the style attribute as opposed to other
  32654. // browsers. It adds spaces and sorts the properties in some
  32655. // non-alphabetical order. Handling that would require sorting CSS
  32656. // properties in the client & server versions or applying
  32657. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  32658. // normalized. Since it only affects IE, we're skipping style warnings
  32659. // in that browser completely in favor of doing all that work.
  32660. // See https://github.com/facebook/react/issues/11807
  32661. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF.
  32662. // It also can turn \u0000 into \uFFFD inside attributes.
  32663. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  32664. // If we have a mismatch, it might be caused by that.
  32665. // We will still patch up in this case but not fire the warning.
  32666. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  32667. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  32668. normalizeMarkupForTextOrAttribute = function (markup) {
  32669. var markupString = typeof markup === 'string' ? markup : '' + markup;
  32670. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  32671. };
  32672. warnForTextDifference = function (serverText, clientText) {
  32673. if (didWarnInvalidHydration) {
  32674. return;
  32675. }
  32676. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  32677. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  32678. if (normalizedServerText === normalizedClientText) {
  32679. return;
  32680. }
  32681. didWarnInvalidHydration = true;
  32682. error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  32683. };
  32684. warnForPropDifference = function (propName, serverValue, clientValue) {
  32685. if (didWarnInvalidHydration) {
  32686. return;
  32687. }
  32688. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  32689. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  32690. if (normalizedServerValue === normalizedClientValue) {
  32691. return;
  32692. }
  32693. didWarnInvalidHydration = true;
  32694. error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  32695. };
  32696. warnForExtraAttributes = function (attributeNames) {
  32697. if (didWarnInvalidHydration) {
  32698. return;
  32699. }
  32700. didWarnInvalidHydration = true;
  32701. var names = [];
  32702. attributeNames.forEach(function (name) {
  32703. names.push(name);
  32704. });
  32705. error('Extra attributes from the server: %s', names);
  32706. };
  32707. warnForInvalidEventListener = function (registrationName, listener) {
  32708. if (listener === false) {
  32709. 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);
  32710. } else {
  32711. error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  32712. }
  32713. }; // Parse the HTML and read it back to normalize the HTML string so that it
  32714. // can be used for comparison.
  32715. normalizeHTML = function (parent, html) {
  32716. // We could have created a separate document here to avoid
  32717. // re-initializing custom elements if they exist. But this breaks
  32718. // how <noscript> is being handled. So we use the same document.
  32719. // See the discussion in https://github.com/facebook/react/pull/11157.
  32720. var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  32721. testElement.innerHTML = html;
  32722. return testElement.innerHTML;
  32723. };
  32724. }
  32725. function ensureListeningTo(rootContainerElement, registrationName) {
  32726. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  32727. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  32728. legacyListenToEvent(registrationName, doc);
  32729. }
  32730. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  32731. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  32732. }
  32733. function noop() {}
  32734. function trapClickOnNonInteractiveElement(node) {
  32735. // Mobile Safari does not fire properly bubble click events on
  32736. // non-interactive elements, which means delegated click listeners do not
  32737. // fire. The workaround for this bug involves attaching an empty click
  32738. // listener on the target node.
  32739. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  32740. // Just set it using the onclick property so that we don't have to manage any
  32741. // bookkeeping for it. Not sure if we need to clear it when the listener is
  32742. // removed.
  32743. // TODO: Only do this for the relevant Safaris maybe?
  32744. node.onclick = noop;
  32745. }
  32746. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  32747. for (var propKey in nextProps) {
  32748. if (!nextProps.hasOwnProperty(propKey)) {
  32749. continue;
  32750. }
  32751. var nextProp = nextProps[propKey];
  32752. if (propKey === STYLE) {
  32753. {
  32754. if (nextProp) {
  32755. // Freeze the next style object so that we can assume it won't be
  32756. // mutated. We have already warned for this in the past.
  32757. Object.freeze(nextProp);
  32758. }
  32759. } // Relies on `updateStylesByID` not mutating `styleUpdates`.
  32760. setValueForStyles(domElement, nextProp);
  32761. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  32762. var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
  32763. if (nextHtml != null) {
  32764. setInnerHTML(domElement, nextHtml);
  32765. }
  32766. } else if (propKey === CHILDREN) {
  32767. if (typeof nextProp === 'string') {
  32768. // Avoid setting initial textContent when the text is empty. In IE11 setting
  32769. // textContent on a <textarea> will cause the placeholder to not
  32770. // show within the <textarea> until it has been focused and blurred again.
  32771. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  32772. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  32773. if (canSetTextContent) {
  32774. setTextContent(domElement, nextProp);
  32775. }
  32776. } else if (typeof nextProp === 'number') {
  32777. setTextContent(domElement, '' + nextProp);
  32778. }
  32779. } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
  32780. if (nextProp != null) {
  32781. if ( typeof nextProp !== 'function') {
  32782. warnForInvalidEventListener(propKey, nextProp);
  32783. }
  32784. ensureListeningTo(rootContainerElement, propKey);
  32785. }
  32786. } else if (nextProp != null) {
  32787. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  32788. }
  32789. }
  32790. }
  32791. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  32792. // TODO: Handle wasCustomComponentTag
  32793. for (var i = 0; i < updatePayload.length; i += 2) {
  32794. var propKey = updatePayload[i];
  32795. var propValue = updatePayload[i + 1];
  32796. if (propKey === STYLE) {
  32797. setValueForStyles(domElement, propValue);
  32798. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  32799. setInnerHTML(domElement, propValue);
  32800. } else if (propKey === CHILDREN) {
  32801. setTextContent(domElement, propValue);
  32802. } else {
  32803. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  32804. }
  32805. }
  32806. }
  32807. function createElement(type, props, rootContainerElement, parentNamespace) {
  32808. var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML
  32809. // tags get no namespace.
  32810. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  32811. var domElement;
  32812. var namespaceURI = parentNamespace;
  32813. if (namespaceURI === HTML_NAMESPACE$1) {
  32814. namespaceURI = getIntrinsicNamespace(type);
  32815. }
  32816. if (namespaceURI === HTML_NAMESPACE$1) {
  32817. {
  32818. isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
  32819. // allow <SVG> or <mATH>.
  32820. if (!isCustomComponentTag && type !== type.toLowerCase()) {
  32821. error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
  32822. }
  32823. }
  32824. if (type === 'script') {
  32825. // Create the script via .innerHTML so its "parser-inserted" flag is
  32826. // set to true and it does not execute
  32827. var div = ownerDocument.createElement('div');
  32828. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  32829. // This is guaranteed to yield a script element.
  32830. var firstChild = div.firstChild;
  32831. domElement = div.removeChild(firstChild);
  32832. } else if (typeof props.is === 'string') {
  32833. // $FlowIssue `createElement` should be updated for Web Components
  32834. domElement = ownerDocument.createElement(type, {
  32835. is: props.is
  32836. });
  32837. } else {
  32838. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  32839. // See discussion in https://github.com/facebook/react/pull/6896
  32840. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  32841. domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
  32842. // attributes on `select`s needs to be added before `option`s are inserted.
  32843. // This prevents:
  32844. // - a bug where the `select` does not scroll to the correct option because singular
  32845. // `select` elements automatically pick the first item #13222
  32846. // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
  32847. // See https://github.com/facebook/react/issues/13222
  32848. // and https://github.com/facebook/react/issues/14239
  32849. if (type === 'select') {
  32850. var node = domElement;
  32851. if (props.multiple) {
  32852. node.multiple = true;
  32853. } else if (props.size) {
  32854. // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
  32855. // it is possible that no option is selected.
  32856. //
  32857. // This is only necessary when a select in "single selection mode".
  32858. node.size = props.size;
  32859. }
  32860. }
  32861. }
  32862. } else {
  32863. domElement = ownerDocument.createElementNS(namespaceURI, type);
  32864. }
  32865. {
  32866. if (namespaceURI === HTML_NAMESPACE$1) {
  32867. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  32868. warnedUnknownTags[type] = true;
  32869. 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);
  32870. }
  32871. }
  32872. }
  32873. return domElement;
  32874. }
  32875. function createTextNode(text, rootContainerElement) {
  32876. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  32877. }
  32878. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  32879. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  32880. {
  32881. validatePropertiesInDevelopment(tag, rawProps);
  32882. } // TODO: Make sure that we check isMounted before firing any of these events.
  32883. var props;
  32884. switch (tag) {
  32885. case 'iframe':
  32886. case 'object':
  32887. case 'embed':
  32888. trapBubbledEvent(TOP_LOAD, domElement);
  32889. props = rawProps;
  32890. break;
  32891. case 'video':
  32892. case 'audio':
  32893. // Create listener for each media event
  32894. for (var i = 0; i < mediaEventTypes.length; i++) {
  32895. trapBubbledEvent(mediaEventTypes[i], domElement);
  32896. }
  32897. props = rawProps;
  32898. break;
  32899. case 'source':
  32900. trapBubbledEvent(TOP_ERROR, domElement);
  32901. props = rawProps;
  32902. break;
  32903. case 'img':
  32904. case 'image':
  32905. case 'link':
  32906. trapBubbledEvent(TOP_ERROR, domElement);
  32907. trapBubbledEvent(TOP_LOAD, domElement);
  32908. props = rawProps;
  32909. break;
  32910. case 'form':
  32911. trapBubbledEvent(TOP_RESET, domElement);
  32912. trapBubbledEvent(TOP_SUBMIT, domElement);
  32913. props = rawProps;
  32914. break;
  32915. case 'details':
  32916. trapBubbledEvent(TOP_TOGGLE, domElement);
  32917. props = rawProps;
  32918. break;
  32919. case 'input':
  32920. initWrapperState(domElement, rawProps);
  32921. props = getHostProps(domElement, rawProps);
  32922. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  32923. // to onChange. Even if there is no listener.
  32924. ensureListeningTo(rootContainerElement, 'onChange');
  32925. break;
  32926. case 'option':
  32927. validateProps(domElement, rawProps);
  32928. props = getHostProps$1(domElement, rawProps);
  32929. break;
  32930. case 'select':
  32931. initWrapperState$1(domElement, rawProps);
  32932. props = getHostProps$2(domElement, rawProps);
  32933. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  32934. // to onChange. Even if there is no listener.
  32935. ensureListeningTo(rootContainerElement, 'onChange');
  32936. break;
  32937. case 'textarea':
  32938. initWrapperState$2(domElement, rawProps);
  32939. props = getHostProps$3(domElement, rawProps);
  32940. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  32941. // to onChange. Even if there is no listener.
  32942. ensureListeningTo(rootContainerElement, 'onChange');
  32943. break;
  32944. default:
  32945. props = rawProps;
  32946. }
  32947. assertValidProps(tag, props);
  32948. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  32949. switch (tag) {
  32950. case 'input':
  32951. // TODO: Make sure we check if this is still unmounted or do any clean
  32952. // up necessary since we never stop tracking anymore.
  32953. track(domElement);
  32954. postMountWrapper(domElement, rawProps, false);
  32955. break;
  32956. case 'textarea':
  32957. // TODO: Make sure we check if this is still unmounted or do any clean
  32958. // up necessary since we never stop tracking anymore.
  32959. track(domElement);
  32960. postMountWrapper$3(domElement);
  32961. break;
  32962. case 'option':
  32963. postMountWrapper$1(domElement, rawProps);
  32964. break;
  32965. case 'select':
  32966. postMountWrapper$2(domElement, rawProps);
  32967. break;
  32968. default:
  32969. if (typeof props.onClick === 'function') {
  32970. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  32971. trapClickOnNonInteractiveElement(domElement);
  32972. }
  32973. break;
  32974. }
  32975. } // Calculate the diff between the two objects.
  32976. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  32977. {
  32978. validatePropertiesInDevelopment(tag, nextRawProps);
  32979. }
  32980. var updatePayload = null;
  32981. var lastProps;
  32982. var nextProps;
  32983. switch (tag) {
  32984. case 'input':
  32985. lastProps = getHostProps(domElement, lastRawProps);
  32986. nextProps = getHostProps(domElement, nextRawProps);
  32987. updatePayload = [];
  32988. break;
  32989. case 'option':
  32990. lastProps = getHostProps$1(domElement, lastRawProps);
  32991. nextProps = getHostProps$1(domElement, nextRawProps);
  32992. updatePayload = [];
  32993. break;
  32994. case 'select':
  32995. lastProps = getHostProps$2(domElement, lastRawProps);
  32996. nextProps = getHostProps$2(domElement, nextRawProps);
  32997. updatePayload = [];
  32998. break;
  32999. case 'textarea':
  33000. lastProps = getHostProps$3(domElement, lastRawProps);
  33001. nextProps = getHostProps$3(domElement, nextRawProps);
  33002. updatePayload = [];
  33003. break;
  33004. default:
  33005. lastProps = lastRawProps;
  33006. nextProps = nextRawProps;
  33007. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  33008. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  33009. trapClickOnNonInteractiveElement(domElement);
  33010. }
  33011. break;
  33012. }
  33013. assertValidProps(tag, nextProps);
  33014. var propKey;
  33015. var styleName;
  33016. var styleUpdates = null;
  33017. for (propKey in lastProps) {
  33018. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  33019. continue;
  33020. }
  33021. if (propKey === STYLE) {
  33022. var lastStyle = lastProps[propKey];
  33023. for (styleName in lastStyle) {
  33024. if (lastStyle.hasOwnProperty(styleName)) {
  33025. if (!styleUpdates) {
  33026. styleUpdates = {};
  33027. }
  33028. styleUpdates[styleName] = '';
  33029. }
  33030. }
  33031. } 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)) {
  33032. // This is a special case. If any listener updates we need to ensure
  33033. // that the "current" fiber pointer gets updated so we need a commit
  33034. // to update this element.
  33035. if (!updatePayload) {
  33036. updatePayload = [];
  33037. }
  33038. } else {
  33039. // For all other deleted properties we add it to the queue. We use
  33040. // the whitelist in the commit phase instead.
  33041. (updatePayload = updatePayload || []).push(propKey, null);
  33042. }
  33043. }
  33044. for (propKey in nextProps) {
  33045. var nextProp = nextProps[propKey];
  33046. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  33047. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  33048. continue;
  33049. }
  33050. if (propKey === STYLE) {
  33051. {
  33052. if (nextProp) {
  33053. // Freeze the next style object so that we can assume it won't be
  33054. // mutated. We have already warned for this in the past.
  33055. Object.freeze(nextProp);
  33056. }
  33057. }
  33058. if (lastProp) {
  33059. // Unset styles on `lastProp` but not on `nextProp`.
  33060. for (styleName in lastProp) {
  33061. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  33062. if (!styleUpdates) {
  33063. styleUpdates = {};
  33064. }
  33065. styleUpdates[styleName] = '';
  33066. }
  33067. } // Update styles that changed since `lastProp`.
  33068. for (styleName in nextProp) {
  33069. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  33070. if (!styleUpdates) {
  33071. styleUpdates = {};
  33072. }
  33073. styleUpdates[styleName] = nextProp[styleName];
  33074. }
  33075. }
  33076. } else {
  33077. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  33078. if (!styleUpdates) {
  33079. if (!updatePayload) {
  33080. updatePayload = [];
  33081. }
  33082. updatePayload.push(propKey, styleUpdates);
  33083. }
  33084. styleUpdates = nextProp;
  33085. }
  33086. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  33087. var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
  33088. var lastHtml = lastProp ? lastProp[HTML$1] : undefined;
  33089. if (nextHtml != null) {
  33090. if (lastHtml !== nextHtml) {
  33091. (updatePayload = updatePayload || []).push(propKey, nextHtml);
  33092. }
  33093. }
  33094. } else if (propKey === CHILDREN) {
  33095. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  33096. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  33097. }
  33098. } else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
  33099. if (nextProp != null) {
  33100. // We eagerly listen to this even though we haven't committed yet.
  33101. if ( typeof nextProp !== 'function') {
  33102. warnForInvalidEventListener(propKey, nextProp);
  33103. }
  33104. ensureListeningTo(rootContainerElement, propKey);
  33105. }
  33106. if (!updatePayload && lastProp !== nextProp) {
  33107. // This is a special case. If any listener updates we need to ensure
  33108. // that the "current" props pointer gets updated so we need a commit
  33109. // to update this element.
  33110. updatePayload = [];
  33111. }
  33112. } else {
  33113. // For any other property we always add it to the queue and then we
  33114. // filter it out using the whitelist during the commit.
  33115. (updatePayload = updatePayload || []).push(propKey, nextProp);
  33116. }
  33117. }
  33118. if (styleUpdates) {
  33119. {
  33120. validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
  33121. }
  33122. (updatePayload = updatePayload || []).push(STYLE, styleUpdates);
  33123. }
  33124. return updatePayload;
  33125. } // Apply the diff.
  33126. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  33127. // Update checked *before* name.
  33128. // In the middle of an update, it is possible to have multiple checked.
  33129. // When a checked radio tries to change name, browser makes another radio's checked false.
  33130. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  33131. updateChecked(domElement, nextRawProps);
  33132. }
  33133. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  33134. var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.
  33135. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
  33136. // changed.
  33137. switch (tag) {
  33138. case 'input':
  33139. // Update the wrapper around inputs *after* updating props. This has to
  33140. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  33141. // raise warnings and prevent the new value from being assigned.
  33142. updateWrapper(domElement, nextRawProps);
  33143. break;
  33144. case 'textarea':
  33145. updateWrapper$1(domElement, nextRawProps);
  33146. break;
  33147. case 'select':
  33148. // <select> value update needs to occur after <option> children
  33149. // reconciliation
  33150. postUpdateWrapper(domElement, nextRawProps);
  33151. break;
  33152. }
  33153. }
  33154. function getPossibleStandardName(propName) {
  33155. {
  33156. var lowerCasedName = propName.toLowerCase();
  33157. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  33158. return null;
  33159. }
  33160. return possibleStandardNames[lowerCasedName] || null;
  33161. }
  33162. }
  33163. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  33164. var isCustomComponentTag;
  33165. var extraAttributeNames;
  33166. {
  33167. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING] === true;
  33168. isCustomComponentTag = isCustomComponent(tag, rawProps);
  33169. validatePropertiesInDevelopment(tag, rawProps);
  33170. } // TODO: Make sure that we check isMounted before firing any of these events.
  33171. switch (tag) {
  33172. case 'iframe':
  33173. case 'object':
  33174. case 'embed':
  33175. trapBubbledEvent(TOP_LOAD, domElement);
  33176. break;
  33177. case 'video':
  33178. case 'audio':
  33179. // Create listener for each media event
  33180. for (var i = 0; i < mediaEventTypes.length; i++) {
  33181. trapBubbledEvent(mediaEventTypes[i], domElement);
  33182. }
  33183. break;
  33184. case 'source':
  33185. trapBubbledEvent(TOP_ERROR, domElement);
  33186. break;
  33187. case 'img':
  33188. case 'image':
  33189. case 'link':
  33190. trapBubbledEvent(TOP_ERROR, domElement);
  33191. trapBubbledEvent(TOP_LOAD, domElement);
  33192. break;
  33193. case 'form':
  33194. trapBubbledEvent(TOP_RESET, domElement);
  33195. trapBubbledEvent(TOP_SUBMIT, domElement);
  33196. break;
  33197. case 'details':
  33198. trapBubbledEvent(TOP_TOGGLE, domElement);
  33199. break;
  33200. case 'input':
  33201. initWrapperState(domElement, rawProps);
  33202. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  33203. // to onChange. Even if there is no listener.
  33204. ensureListeningTo(rootContainerElement, 'onChange');
  33205. break;
  33206. case 'option':
  33207. validateProps(domElement, rawProps);
  33208. break;
  33209. case 'select':
  33210. initWrapperState$1(domElement, rawProps);
  33211. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  33212. // to onChange. Even if there is no listener.
  33213. ensureListeningTo(rootContainerElement, 'onChange');
  33214. break;
  33215. case 'textarea':
  33216. initWrapperState$2(domElement, rawProps);
  33217. trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
  33218. // to onChange. Even if there is no listener.
  33219. ensureListeningTo(rootContainerElement, 'onChange');
  33220. break;
  33221. }
  33222. assertValidProps(tag, rawProps);
  33223. {
  33224. extraAttributeNames = new Set();
  33225. var attributes = domElement.attributes;
  33226. for (var _i = 0; _i < attributes.length; _i++) {
  33227. var name = attributes[_i].name.toLowerCase();
  33228. switch (name) {
  33229. // Built-in SSR attribute is whitelisted
  33230. case 'data-reactroot':
  33231. break;
  33232. // Controlled attributes are not validated
  33233. // TODO: Only ignore them on controlled tags.
  33234. case 'value':
  33235. break;
  33236. case 'checked':
  33237. break;
  33238. case 'selected':
  33239. break;
  33240. default:
  33241. // Intentionally use the original name.
  33242. // See discussion in https://github.com/facebook/react/pull/10676.
  33243. extraAttributeNames.add(attributes[_i].name);
  33244. }
  33245. }
  33246. }
  33247. var updatePayload = null;
  33248. for (var propKey in rawProps) {
  33249. if (!rawProps.hasOwnProperty(propKey)) {
  33250. continue;
  33251. }
  33252. var nextProp = rawProps[propKey];
  33253. if (propKey === CHILDREN) {
  33254. // For text content children we compare against textContent. This
  33255. // might match additional HTML that is hidden when we read it using
  33256. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  33257. // satisfies our requirement. Our requirement is not to produce perfect
  33258. // HTML and attributes. Ideally we should preserve structure but it's
  33259. // ok not to if the visible content is still enough to indicate what
  33260. // even listeners these nodes might be wired up to.
  33261. // TODO: Warn if there is more than a single textNode as a child.
  33262. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  33263. if (typeof nextProp === 'string') {
  33264. if (domElement.textContent !== nextProp) {
  33265. if ( !suppressHydrationWarning) {
  33266. warnForTextDifference(domElement.textContent, nextProp);
  33267. }
  33268. updatePayload = [CHILDREN, nextProp];
  33269. }
  33270. } else if (typeof nextProp === 'number') {
  33271. if (domElement.textContent !== '' + nextProp) {
  33272. if ( !suppressHydrationWarning) {
  33273. warnForTextDifference(domElement.textContent, nextProp);
  33274. }
  33275. updatePayload = [CHILDREN, '' + nextProp];
  33276. }
  33277. }
  33278. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  33279. if (nextProp != null) {
  33280. if ( typeof nextProp !== 'function') {
  33281. warnForInvalidEventListener(propKey, nextProp);
  33282. }
  33283. ensureListeningTo(rootContainerElement, propKey);
  33284. }
  33285. } else if ( // Convince Flow we've calculated it (it's DEV-only in this method.)
  33286. typeof isCustomComponentTag === 'boolean') {
  33287. // Validate that the properties correspond to their expected values.
  33288. var serverValue = void 0;
  33289. var propertyInfo = getPropertyInfo(propKey);
  33290. if (suppressHydrationWarning) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
  33291. // TODO: Only ignore them on controlled tags.
  33292. propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  33293. var serverHTML = domElement.innerHTML;
  33294. var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
  33295. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  33296. if (expectedHTML !== serverHTML) {
  33297. warnForPropDifference(propKey, serverHTML, expectedHTML);
  33298. }
  33299. } else if (propKey === STYLE) {
  33300. // $FlowFixMe - Should be inferred as not undefined.
  33301. extraAttributeNames.delete(propKey);
  33302. if (canDiffStyleForHydrationWarning) {
  33303. var expectedStyle = createDangerousStringForStyles(nextProp);
  33304. serverValue = domElement.getAttribute('style');
  33305. if (expectedStyle !== serverValue) {
  33306. warnForPropDifference(propKey, serverValue, expectedStyle);
  33307. }
  33308. }
  33309. } else if (isCustomComponentTag) {
  33310. // $FlowFixMe - Should be inferred as not undefined.
  33311. extraAttributeNames.delete(propKey.toLowerCase());
  33312. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  33313. if (nextProp !== serverValue) {
  33314. warnForPropDifference(propKey, serverValue, nextProp);
  33315. }
  33316. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  33317. var isMismatchDueToBadCasing = false;
  33318. if (propertyInfo !== null) {
  33319. // $FlowFixMe - Should be inferred as not undefined.
  33320. extraAttributeNames.delete(propertyInfo.attributeName);
  33321. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  33322. } else {
  33323. var ownNamespace = parentNamespace;
  33324. if (ownNamespace === HTML_NAMESPACE$1) {
  33325. ownNamespace = getIntrinsicNamespace(tag);
  33326. }
  33327. if (ownNamespace === HTML_NAMESPACE$1) {
  33328. // $FlowFixMe - Should be inferred as not undefined.
  33329. extraAttributeNames.delete(propKey.toLowerCase());
  33330. } else {
  33331. var standardName = getPossibleStandardName(propKey);
  33332. if (standardName !== null && standardName !== propKey) {
  33333. // If an SVG prop is supplied with bad casing, it will
  33334. // be successfully parsed from HTML, but will produce a mismatch
  33335. // (and would be incorrectly rendered on the client).
  33336. // However, we already warn about bad casing elsewhere.
  33337. // So we'll skip the misleading extra mismatch warning in this case.
  33338. isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.
  33339. extraAttributeNames.delete(standardName);
  33340. } // $FlowFixMe - Should be inferred as not undefined.
  33341. extraAttributeNames.delete(propKey);
  33342. }
  33343. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  33344. }
  33345. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  33346. warnForPropDifference(propKey, serverValue, nextProp);
  33347. }
  33348. }
  33349. }
  33350. }
  33351. {
  33352. // $FlowFixMe - Should be inferred as not undefined.
  33353. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  33354. // $FlowFixMe - Should be inferred as not undefined.
  33355. warnForExtraAttributes(extraAttributeNames);
  33356. }
  33357. }
  33358. switch (tag) {
  33359. case 'input':
  33360. // TODO: Make sure we check if this is still unmounted or do any clean
  33361. // up necessary since we never stop tracking anymore.
  33362. track(domElement);
  33363. postMountWrapper(domElement, rawProps, true);
  33364. break;
  33365. case 'textarea':
  33366. // TODO: Make sure we check if this is still unmounted or do any clean
  33367. // up necessary since we never stop tracking anymore.
  33368. track(domElement);
  33369. postMountWrapper$3(domElement);
  33370. break;
  33371. case 'select':
  33372. case 'option':
  33373. // For input and textarea we current always set the value property at
  33374. // post mount to force it to diverge from attributes. However, for
  33375. // option and select we don't quite do the same thing and select
  33376. // is not resilient to the DOM state changing so we don't do that here.
  33377. // TODO: Consider not doing this for input and textarea.
  33378. break;
  33379. default:
  33380. if (typeof rawProps.onClick === 'function') {
  33381. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  33382. trapClickOnNonInteractiveElement(domElement);
  33383. }
  33384. break;
  33385. }
  33386. return updatePayload;
  33387. }
  33388. function diffHydratedText(textNode, text) {
  33389. var isDifferent = textNode.nodeValue !== text;
  33390. return isDifferent;
  33391. }
  33392. function warnForUnmatchedText(textNode, text) {
  33393. {
  33394. warnForTextDifference(textNode.nodeValue, text);
  33395. }
  33396. }
  33397. function warnForDeletedHydratableElement(parentNode, child) {
  33398. {
  33399. if (didWarnInvalidHydration) {
  33400. return;
  33401. }
  33402. didWarnInvalidHydration = true;
  33403. error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  33404. }
  33405. }
  33406. function warnForDeletedHydratableText(parentNode, child) {
  33407. {
  33408. if (didWarnInvalidHydration) {
  33409. return;
  33410. }
  33411. didWarnInvalidHydration = true;
  33412. error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  33413. }
  33414. }
  33415. function warnForInsertedHydratedElement(parentNode, tag, props) {
  33416. {
  33417. if (didWarnInvalidHydration) {
  33418. return;
  33419. }
  33420. didWarnInvalidHydration = true;
  33421. error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  33422. }
  33423. }
  33424. function warnForInsertedHydratedText(parentNode, text) {
  33425. {
  33426. if (text === '') {
  33427. // We expect to insert empty text nodes since they're not represented in
  33428. // the HTML.
  33429. // TODO: Remove this special case if we can just avoid inserting empty
  33430. // text nodes.
  33431. return;
  33432. }
  33433. if (didWarnInvalidHydration) {
  33434. return;
  33435. }
  33436. didWarnInvalidHydration = true;
  33437. error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  33438. }
  33439. }
  33440. function restoreControlledState$3(domElement, tag, props) {
  33441. switch (tag) {
  33442. case 'input':
  33443. restoreControlledState(domElement, props);
  33444. return;
  33445. case 'textarea':
  33446. restoreControlledState$2(domElement, props);
  33447. return;
  33448. case 'select':
  33449. restoreControlledState$1(domElement, props);
  33450. return;
  33451. }
  33452. }
  33453. function getActiveElement(doc) {
  33454. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  33455. if (typeof doc === 'undefined') {
  33456. return null;
  33457. }
  33458. try {
  33459. return doc.activeElement || doc.body;
  33460. } catch (e) {
  33461. return doc.body;
  33462. }
  33463. }
  33464. /**
  33465. * Given any node return the first leaf node without children.
  33466. *
  33467. * @param {DOMElement|DOMTextNode} node
  33468. * @return {DOMElement|DOMTextNode}
  33469. */
  33470. function getLeafNode(node) {
  33471. while (node && node.firstChild) {
  33472. node = node.firstChild;
  33473. }
  33474. return node;
  33475. }
  33476. /**
  33477. * Get the next sibling within a container. This will walk up the
  33478. * DOM if a node's siblings have been exhausted.
  33479. *
  33480. * @param {DOMElement|DOMTextNode} node
  33481. * @return {?DOMElement|DOMTextNode}
  33482. */
  33483. function getSiblingNode(node) {
  33484. while (node) {
  33485. if (node.nextSibling) {
  33486. return node.nextSibling;
  33487. }
  33488. node = node.parentNode;
  33489. }
  33490. }
  33491. /**
  33492. * Get object describing the nodes which contain characters at offset.
  33493. *
  33494. * @param {DOMElement|DOMTextNode} root
  33495. * @param {number} offset
  33496. * @return {?object}
  33497. */
  33498. function getNodeForCharacterOffset(root, offset) {
  33499. var node = getLeafNode(root);
  33500. var nodeStart = 0;
  33501. var nodeEnd = 0;
  33502. while (node) {
  33503. if (node.nodeType === TEXT_NODE) {
  33504. nodeEnd = nodeStart + node.textContent.length;
  33505. if (nodeStart <= offset && nodeEnd >= offset) {
  33506. return {
  33507. node: node,
  33508. offset: offset - nodeStart
  33509. };
  33510. }
  33511. nodeStart = nodeEnd;
  33512. }
  33513. node = getLeafNode(getSiblingNode(node));
  33514. }
  33515. }
  33516. /**
  33517. * @param {DOMElement} outerNode
  33518. * @return {?object}
  33519. */
  33520. function getOffsets(outerNode) {
  33521. var ownerDocument = outerNode.ownerDocument;
  33522. var win = ownerDocument && ownerDocument.defaultView || window;
  33523. var selection = win.getSelection && win.getSelection();
  33524. if (!selection || selection.rangeCount === 0) {
  33525. return null;
  33526. }
  33527. var anchorNode = selection.anchorNode,
  33528. anchorOffset = selection.anchorOffset,
  33529. focusNode = selection.focusNode,
  33530. focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  33531. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  33532. // expose properties, triggering a "Permission denied error" if any of its
  33533. // properties are accessed. The only seemingly possible way to avoid erroring
  33534. // is to access a property that typically works for non-anonymous divs and
  33535. // catch any error that may otherwise arise. See
  33536. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  33537. try {
  33538. /* eslint-disable no-unused-expressions */
  33539. anchorNode.nodeType;
  33540. focusNode.nodeType;
  33541. /* eslint-enable no-unused-expressions */
  33542. } catch (e) {
  33543. return null;
  33544. }
  33545. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  33546. }
  33547. /**
  33548. * Returns {start, end} where `start` is the character/codepoint index of
  33549. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  33550. * `end` is the index of (focusNode, focusOffset).
  33551. *
  33552. * Returns null if you pass in garbage input but we should probably just crash.
  33553. *
  33554. * Exported only for testing.
  33555. */
  33556. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  33557. var length = 0;
  33558. var start = -1;
  33559. var end = -1;
  33560. var indexWithinAnchor = 0;
  33561. var indexWithinFocus = 0;
  33562. var node = outerNode;
  33563. var parentNode = null;
  33564. outer: while (true) {
  33565. var next = null;
  33566. while (true) {
  33567. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  33568. start = length + anchorOffset;
  33569. }
  33570. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  33571. end = length + focusOffset;
  33572. }
  33573. if (node.nodeType === TEXT_NODE) {
  33574. length += node.nodeValue.length;
  33575. }
  33576. if ((next = node.firstChild) === null) {
  33577. break;
  33578. } // Moving from `node` to its first child `next`.
  33579. parentNode = node;
  33580. node = next;
  33581. }
  33582. while (true) {
  33583. if (node === outerNode) {
  33584. // If `outerNode` has children, this is always the second time visiting
  33585. // it. If it has no children, this is still the first loop, and the only
  33586. // valid selection is anchorNode and focusNode both equal to this node
  33587. // and both offsets 0, in which case we will have handled above.
  33588. break outer;
  33589. }
  33590. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  33591. start = length;
  33592. }
  33593. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  33594. end = length;
  33595. }
  33596. if ((next = node.nextSibling) !== null) {
  33597. break;
  33598. }
  33599. node = parentNode;
  33600. parentNode = node.parentNode;
  33601. } // Moving from `node` to its next sibling `next`.
  33602. node = next;
  33603. }
  33604. if (start === -1 || end === -1) {
  33605. // This should never happen. (Would happen if the anchor/focus nodes aren't
  33606. // actually inside the passed-in node.)
  33607. return null;
  33608. }
  33609. return {
  33610. start: start,
  33611. end: end
  33612. };
  33613. }
  33614. /**
  33615. * In modern non-IE browsers, we can support both forward and backward
  33616. * selections.
  33617. *
  33618. * Note: IE10+ supports the Selection object, but it does not support
  33619. * the `extend` method, which means that even in modern IE, it's not possible
  33620. * to programmatically create a backward selection. Thus, for all IE
  33621. * versions, we use the old IE API to create our selections.
  33622. *
  33623. * @param {DOMElement|DOMTextNode} node
  33624. * @param {object} offsets
  33625. */
  33626. function setOffsets(node, offsets) {
  33627. var doc = node.ownerDocument || document;
  33628. var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios.
  33629. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  33630. // fails when pasting 100+ items)
  33631. if (!win.getSelection) {
  33632. return;
  33633. }
  33634. var selection = win.getSelection();
  33635. var length = node.textContent.length;
  33636. var start = Math.min(offsets.start, length);
  33637. var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.
  33638. // Flip backward selections, so we can set with a single range.
  33639. if (!selection.extend && start > end) {
  33640. var temp = end;
  33641. end = start;
  33642. start = temp;
  33643. }
  33644. var startMarker = getNodeForCharacterOffset(node, start);
  33645. var endMarker = getNodeForCharacterOffset(node, end);
  33646. if (startMarker && endMarker) {
  33647. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  33648. return;
  33649. }
  33650. var range = doc.createRange();
  33651. range.setStart(startMarker.node, startMarker.offset);
  33652. selection.removeAllRanges();
  33653. if (start > end) {
  33654. selection.addRange(range);
  33655. selection.extend(endMarker.node, endMarker.offset);
  33656. } else {
  33657. range.setEnd(endMarker.node, endMarker.offset);
  33658. selection.addRange(range);
  33659. }
  33660. }
  33661. }
  33662. function isTextNode(node) {
  33663. return node && node.nodeType === TEXT_NODE;
  33664. }
  33665. function containsNode(outerNode, innerNode) {
  33666. if (!outerNode || !innerNode) {
  33667. return false;
  33668. } else if (outerNode === innerNode) {
  33669. return true;
  33670. } else if (isTextNode(outerNode)) {
  33671. return false;
  33672. } else if (isTextNode(innerNode)) {
  33673. return containsNode(outerNode, innerNode.parentNode);
  33674. } else if ('contains' in outerNode) {
  33675. return outerNode.contains(innerNode);
  33676. } else if (outerNode.compareDocumentPosition) {
  33677. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  33678. } else {
  33679. return false;
  33680. }
  33681. }
  33682. function isInDocument(node) {
  33683. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  33684. }
  33685. function isSameOriginFrame(iframe) {
  33686. try {
  33687. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  33688. // to throw, e.g. if it has a cross-origin src attribute.
  33689. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
  33690. // iframe.contentDocument.defaultView;
  33691. // A safety way is to access one of the cross origin properties: Window or Location
  33692. // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
  33693. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
  33694. return typeof iframe.contentWindow.location.href === 'string';
  33695. } catch (err) {
  33696. return false;
  33697. }
  33698. }
  33699. function getActiveElementDeep() {
  33700. var win = window;
  33701. var element = getActiveElement();
  33702. while (element instanceof win.HTMLIFrameElement) {
  33703. if (isSameOriginFrame(element)) {
  33704. win = element.contentWindow;
  33705. } else {
  33706. return element;
  33707. }
  33708. element = getActiveElement(win.document);
  33709. }
  33710. return element;
  33711. }
  33712. /**
  33713. * @ReactInputSelection: React input selection module. Based on Selection.js,
  33714. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  33715. * assume buttons have range selections allowed).
  33716. * Input selection module for React.
  33717. */
  33718. /**
  33719. * @hasSelectionCapabilities: we get the element types that support selection
  33720. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  33721. * and `selectionEnd` rows.
  33722. */
  33723. function hasSelectionCapabilities(elem) {
  33724. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  33725. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  33726. }
  33727. function getSelectionInformation() {
  33728. var focusedElem = getActiveElementDeep();
  33729. return {
  33730. // Used by Flare
  33731. activeElementDetached: null,
  33732. focusedElem: focusedElem,
  33733. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
  33734. };
  33735. }
  33736. /**
  33737. * @restoreSelection: If any selection information was potentially lost,
  33738. * restore it. This is useful when performing operations that could remove dom
  33739. * nodes and place them back in, resulting in focus being lost.
  33740. */
  33741. function restoreSelection(priorSelectionInformation) {
  33742. var curFocusedElem = getActiveElementDeep();
  33743. var priorFocusedElem = priorSelectionInformation.focusedElem;
  33744. var priorSelectionRange = priorSelectionInformation.selectionRange;
  33745. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  33746. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  33747. setSelection(priorFocusedElem, priorSelectionRange);
  33748. } // Focusing a node can change the scroll position, which is undesirable
  33749. var ancestors = [];
  33750. var ancestor = priorFocusedElem;
  33751. while (ancestor = ancestor.parentNode) {
  33752. if (ancestor.nodeType === ELEMENT_NODE) {
  33753. ancestors.push({
  33754. element: ancestor,
  33755. left: ancestor.scrollLeft,
  33756. top: ancestor.scrollTop
  33757. });
  33758. }
  33759. }
  33760. if (typeof priorFocusedElem.focus === 'function') {
  33761. priorFocusedElem.focus();
  33762. }
  33763. for (var i = 0; i < ancestors.length; i++) {
  33764. var info = ancestors[i];
  33765. info.element.scrollLeft = info.left;
  33766. info.element.scrollTop = info.top;
  33767. }
  33768. }
  33769. }
  33770. /**
  33771. * @getSelection: Gets the selection bounds of a focused textarea, input or
  33772. * contentEditable node.
  33773. * -@input: Look up selection bounds of this input
  33774. * -@return {start: selectionStart, end: selectionEnd}
  33775. */
  33776. function getSelection(input) {
  33777. var selection;
  33778. if ('selectionStart' in input) {
  33779. // Modern browser with input or textarea.
  33780. selection = {
  33781. start: input.selectionStart,
  33782. end: input.selectionEnd
  33783. };
  33784. } else {
  33785. // Content editable or old IE textarea.
  33786. selection = getOffsets(input);
  33787. }
  33788. return selection || {
  33789. start: 0,
  33790. end: 0
  33791. };
  33792. }
  33793. /**
  33794. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  33795. * the input.
  33796. * -@input Set selection bounds of this input or textarea
  33797. * -@offsets Object of same form that is returned from get*
  33798. */
  33799. function setSelection(input, offsets) {
  33800. var start = offsets.start,
  33801. end = offsets.end;
  33802. if (end === undefined) {
  33803. end = start;
  33804. }
  33805. if ('selectionStart' in input) {
  33806. input.selectionStart = start;
  33807. input.selectionEnd = Math.min(end, input.value.length);
  33808. } else {
  33809. setOffsets(input, offsets);
  33810. }
  33811. }
  33812. var validateDOMNesting = function () {};
  33813. var updatedAncestorInfo = function () {};
  33814. {
  33815. // This validation code was written based on the HTML5 parsing spec:
  33816. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  33817. //
  33818. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  33819. // not clear what practical benefit doing so provides); instead, we warn only
  33820. // for cases where the parser will give a parse tree differing from what React
  33821. // intended. For example, <b><div></div></b> is invalid but we don't warn
  33822. // because it still parses correctly; we do warn for other cases like nested
  33823. // <p> tags where the beginning of the second element implicitly closes the
  33824. // first, causing a confusing mess.
  33825. // https://html.spec.whatwg.org/multipage/syntax.html#special
  33826. 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
  33827. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  33828. // TODO: Distinguish by namespace here -- for <title>, including it here
  33829. // errs on the side of fewer warnings
  33830. 'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  33831. var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  33832. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  33833. var emptyAncestorInfo = {
  33834. current: null,
  33835. formTag: null,
  33836. aTagInScope: null,
  33837. buttonTagInScope: null,
  33838. nobrTagInScope: null,
  33839. pTagInButtonScope: null,
  33840. listItemTagAutoclosing: null,
  33841. dlItemTagAutoclosing: null
  33842. };
  33843. updatedAncestorInfo = function (oldInfo, tag) {
  33844. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  33845. var info = {
  33846. tag: tag
  33847. };
  33848. if (inScopeTags.indexOf(tag) !== -1) {
  33849. ancestorInfo.aTagInScope = null;
  33850. ancestorInfo.buttonTagInScope = null;
  33851. ancestorInfo.nobrTagInScope = null;
  33852. }
  33853. if (buttonScopeTags.indexOf(tag) !== -1) {
  33854. ancestorInfo.pTagInButtonScope = null;
  33855. } // See rules for 'li', 'dd', 'dt' start tags in
  33856. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  33857. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  33858. ancestorInfo.listItemTagAutoclosing = null;
  33859. ancestorInfo.dlItemTagAutoclosing = null;
  33860. }
  33861. ancestorInfo.current = info;
  33862. if (tag === 'form') {
  33863. ancestorInfo.formTag = info;
  33864. }
  33865. if (tag === 'a') {
  33866. ancestorInfo.aTagInScope = info;
  33867. }
  33868. if (tag === 'button') {
  33869. ancestorInfo.buttonTagInScope = info;
  33870. }
  33871. if (tag === 'nobr') {
  33872. ancestorInfo.nobrTagInScope = info;
  33873. }
  33874. if (tag === 'p') {
  33875. ancestorInfo.pTagInButtonScope = info;
  33876. }
  33877. if (tag === 'li') {
  33878. ancestorInfo.listItemTagAutoclosing = info;
  33879. }
  33880. if (tag === 'dd' || tag === 'dt') {
  33881. ancestorInfo.dlItemTagAutoclosing = info;
  33882. }
  33883. return ancestorInfo;
  33884. };
  33885. /**
  33886. * Returns whether
  33887. */
  33888. var isTagValidWithParent = function (tag, parentTag) {
  33889. // First, let's check if we're in an unusual parsing mode...
  33890. switch (parentTag) {
  33891. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  33892. case 'select':
  33893. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  33894. case 'optgroup':
  33895. return tag === 'option' || tag === '#text';
  33896. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  33897. // but
  33898. case 'option':
  33899. return tag === '#text';
  33900. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  33901. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  33902. // No special behavior since these rules fall back to "in body" mode for
  33903. // all except special table nodes which cause bad parsing behavior anyway.
  33904. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  33905. case 'tr':
  33906. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  33907. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  33908. case 'tbody':
  33909. case 'thead':
  33910. case 'tfoot':
  33911. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  33912. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  33913. case 'colgroup':
  33914. return tag === 'col' || tag === 'template';
  33915. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  33916. case 'table':
  33917. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  33918. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  33919. case 'head':
  33920. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  33921. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  33922. case 'html':
  33923. return tag === 'head' || tag === 'body' || tag === 'frameset';
  33924. case 'frameset':
  33925. return tag === 'frame';
  33926. case '#document':
  33927. return tag === 'html';
  33928. } // Probably in the "in body" parsing mode, so we outlaw only tag combos
  33929. // where the parsing rules cause implicit opens or closes to be added.
  33930. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  33931. switch (tag) {
  33932. case 'h1':
  33933. case 'h2':
  33934. case 'h3':
  33935. case 'h4':
  33936. case 'h5':
  33937. case 'h6':
  33938. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  33939. case 'rp':
  33940. case 'rt':
  33941. return impliedEndTags.indexOf(parentTag) === -1;
  33942. case 'body':
  33943. case 'caption':
  33944. case 'col':
  33945. case 'colgroup':
  33946. case 'frameset':
  33947. case 'frame':
  33948. case 'head':
  33949. case 'html':
  33950. case 'tbody':
  33951. case 'td':
  33952. case 'tfoot':
  33953. case 'th':
  33954. case 'thead':
  33955. case 'tr':
  33956. // These tags are only valid with a few parents that have special child
  33957. // parsing rules -- if we're down here, then none of those matched and
  33958. // so we allow it only if we don't know what the parent is, as all other
  33959. // cases are invalid.
  33960. return parentTag == null;
  33961. }
  33962. return true;
  33963. };
  33964. /**
  33965. * Returns whether
  33966. */
  33967. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  33968. switch (tag) {
  33969. case 'address':
  33970. case 'article':
  33971. case 'aside':
  33972. case 'blockquote':
  33973. case 'center':
  33974. case 'details':
  33975. case 'dialog':
  33976. case 'dir':
  33977. case 'div':
  33978. case 'dl':
  33979. case 'fieldset':
  33980. case 'figcaption':
  33981. case 'figure':
  33982. case 'footer':
  33983. case 'header':
  33984. case 'hgroup':
  33985. case 'main':
  33986. case 'menu':
  33987. case 'nav':
  33988. case 'ol':
  33989. case 'p':
  33990. case 'section':
  33991. case 'summary':
  33992. case 'ul':
  33993. case 'pre':
  33994. case 'listing':
  33995. case 'table':
  33996. case 'hr':
  33997. case 'xmp':
  33998. case 'h1':
  33999. case 'h2':
  34000. case 'h3':
  34001. case 'h4':
  34002. case 'h5':
  34003. case 'h6':
  34004. return ancestorInfo.pTagInButtonScope;
  34005. case 'form':
  34006. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  34007. case 'li':
  34008. return ancestorInfo.listItemTagAutoclosing;
  34009. case 'dd':
  34010. case 'dt':
  34011. return ancestorInfo.dlItemTagAutoclosing;
  34012. case 'button':
  34013. return ancestorInfo.buttonTagInScope;
  34014. case 'a':
  34015. // Spec says something about storing a list of markers, but it sounds
  34016. // equivalent to this check.
  34017. return ancestorInfo.aTagInScope;
  34018. case 'nobr':
  34019. return ancestorInfo.nobrTagInScope;
  34020. }
  34021. return null;
  34022. };
  34023. var didWarn$1 = {};
  34024. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  34025. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  34026. var parentInfo = ancestorInfo.current;
  34027. var parentTag = parentInfo && parentInfo.tag;
  34028. if (childText != null) {
  34029. if (childTag != null) {
  34030. error('validateDOMNesting: when childText is passed, childTag should be null');
  34031. }
  34032. childTag = '#text';
  34033. }
  34034. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  34035. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  34036. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  34037. if (!invalidParentOrAncestor) {
  34038. return;
  34039. }
  34040. var ancestorTag = invalidParentOrAncestor.tag;
  34041. var addendum = getCurrentFiberStackInDev();
  34042. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  34043. if (didWarn$1[warnKey]) {
  34044. return;
  34045. }
  34046. didWarn$1[warnKey] = true;
  34047. var tagDisplayName = childTag;
  34048. var whitespaceInfo = '';
  34049. if (childTag === '#text') {
  34050. if (/\S/.test(childText)) {
  34051. tagDisplayName = 'Text nodes';
  34052. } else {
  34053. tagDisplayName = 'Whitespace text nodes';
  34054. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  34055. }
  34056. } else {
  34057. tagDisplayName = '<' + childTag + '>';
  34058. }
  34059. if (invalidParent) {
  34060. var info = '';
  34061. if (ancestorTag === 'table' && childTag === 'tr') {
  34062. info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
  34063. }
  34064. error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
  34065. } else {
  34066. error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
  34067. }
  34068. };
  34069. }
  34070. var SUPPRESS_HYDRATION_WARNING$1;
  34071. {
  34072. SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  34073. }
  34074. var SUSPENSE_START_DATA = '$';
  34075. var SUSPENSE_END_DATA = '/$';
  34076. var SUSPENSE_PENDING_START_DATA = '$?';
  34077. var SUSPENSE_FALLBACK_START_DATA = '$!';
  34078. var STYLE$1 = 'style';
  34079. var eventsEnabled = null;
  34080. var selectionInformation = null;
  34081. function shouldAutoFocusHostComponent(type, props) {
  34082. switch (type) {
  34083. case 'button':
  34084. case 'input':
  34085. case 'select':
  34086. case 'textarea':
  34087. return !!props.autoFocus;
  34088. }
  34089. return false;
  34090. }
  34091. function getRootHostContext(rootContainerInstance) {
  34092. var type;
  34093. var namespace;
  34094. var nodeType = rootContainerInstance.nodeType;
  34095. switch (nodeType) {
  34096. case DOCUMENT_NODE:
  34097. case DOCUMENT_FRAGMENT_NODE:
  34098. {
  34099. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  34100. var root = rootContainerInstance.documentElement;
  34101. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  34102. break;
  34103. }
  34104. default:
  34105. {
  34106. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  34107. var ownNamespace = container.namespaceURI || null;
  34108. type = container.tagName;
  34109. namespace = getChildNamespace(ownNamespace, type);
  34110. break;
  34111. }
  34112. }
  34113. {
  34114. var validatedTag = type.toLowerCase();
  34115. var ancestorInfo = updatedAncestorInfo(null, validatedTag);
  34116. return {
  34117. namespace: namespace,
  34118. ancestorInfo: ancestorInfo
  34119. };
  34120. }
  34121. }
  34122. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  34123. {
  34124. var parentHostContextDev = parentHostContext;
  34125. var namespace = getChildNamespace(parentHostContextDev.namespace, type);
  34126. var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  34127. return {
  34128. namespace: namespace,
  34129. ancestorInfo: ancestorInfo
  34130. };
  34131. }
  34132. }
  34133. function getPublicInstance(instance) {
  34134. return instance;
  34135. }
  34136. function prepareForCommit(containerInfo) {
  34137. eventsEnabled = isEnabled();
  34138. selectionInformation = getSelectionInformation();
  34139. setEnabled(false);
  34140. }
  34141. function resetAfterCommit(containerInfo) {
  34142. restoreSelection(selectionInformation);
  34143. setEnabled(eventsEnabled);
  34144. eventsEnabled = null;
  34145. selectionInformation = null;
  34146. }
  34147. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  34148. var parentNamespace;
  34149. {
  34150. // TODO: take namespace into account when validating.
  34151. var hostContextDev = hostContext;
  34152. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  34153. if (typeof props.children === 'string' || typeof props.children === 'number') {
  34154. var string = '' + props.children;
  34155. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  34156. validateDOMNesting(null, string, ownAncestorInfo);
  34157. }
  34158. parentNamespace = hostContextDev.namespace;
  34159. }
  34160. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  34161. precacheFiberNode(internalInstanceHandle, domElement);
  34162. updateFiberProps(domElement, props);
  34163. return domElement;
  34164. }
  34165. function appendInitialChild(parentInstance, child) {
  34166. parentInstance.appendChild(child);
  34167. }
  34168. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  34169. setInitialProperties(domElement, type, props, rootContainerInstance);
  34170. return shouldAutoFocusHostComponent(type, props);
  34171. }
  34172. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  34173. {
  34174. var hostContextDev = hostContext;
  34175. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  34176. var string = '' + newProps.children;
  34177. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  34178. validateDOMNesting(null, string, ownAncestorInfo);
  34179. }
  34180. }
  34181. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  34182. }
  34183. function shouldSetTextContent(type, props) {
  34184. 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;
  34185. }
  34186. function shouldDeprioritizeSubtree(type, props) {
  34187. return !!props.hidden;
  34188. }
  34189. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  34190. {
  34191. var hostContextDev = hostContext;
  34192. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  34193. }
  34194. var textNode = createTextNode(text, rootContainerInstance);
  34195. precacheFiberNode(internalInstanceHandle, textNode);
  34196. return textNode;
  34197. }
  34198. // if a component just imports ReactDOM (e.g. for findDOMNode).
  34199. // Some environments might not have setTimeout or clearTimeout.
  34200. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  34201. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  34202. var noTimeout = -1; // -------------------
  34203. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  34204. // Despite the naming that might imply otherwise, this method only
  34205. // fires if there is an `Update` effect scheduled during mounting.
  34206. // This happens if `finalizeInitialChildren` returns `true` (which it
  34207. // does to implement the `autoFocus` attribute on the client). But
  34208. // there are also other cases when this might happen (such as patching
  34209. // up text content during hydration mismatch). So we'll check this again.
  34210. if (shouldAutoFocusHostComponent(type, newProps)) {
  34211. domElement.focus();
  34212. }
  34213. }
  34214. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  34215. // Update the props handle so that we know which props are the ones with
  34216. // with current event handlers.
  34217. updateFiberProps(domElement, newProps); // Apply the diff to the DOM node.
  34218. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  34219. }
  34220. function resetTextContent(domElement) {
  34221. setTextContent(domElement, '');
  34222. }
  34223. function commitTextUpdate(textInstance, oldText, newText) {
  34224. textInstance.nodeValue = newText;
  34225. }
  34226. function appendChild(parentInstance, child) {
  34227. parentInstance.appendChild(child);
  34228. }
  34229. function appendChildToContainer(container, child) {
  34230. var parentNode;
  34231. if (container.nodeType === COMMENT_NODE) {
  34232. parentNode = container.parentNode;
  34233. parentNode.insertBefore(child, container);
  34234. } else {
  34235. parentNode = container;
  34236. parentNode.appendChild(child);
  34237. } // This container might be used for a portal.
  34238. // If something inside a portal is clicked, that click should bubble
  34239. // through the React tree. However, on Mobile Safari the click would
  34240. // never bubble through the *DOM* tree unless an ancestor with onclick
  34241. // event exists. So we wouldn't see it and dispatch it.
  34242. // This is why we ensure that non React root containers have inline onclick
  34243. // defined.
  34244. // https://github.com/facebook/react/issues/11918
  34245. var reactRootContainer = container._reactRootContainer;
  34246. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  34247. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  34248. trapClickOnNonInteractiveElement(parentNode);
  34249. }
  34250. }
  34251. function insertBefore(parentInstance, child, beforeChild) {
  34252. parentInstance.insertBefore(child, beforeChild);
  34253. }
  34254. function insertInContainerBefore(container, child, beforeChild) {
  34255. if (container.nodeType === COMMENT_NODE) {
  34256. container.parentNode.insertBefore(child, beforeChild);
  34257. } else {
  34258. container.insertBefore(child, beforeChild);
  34259. }
  34260. }
  34261. function removeChild(parentInstance, child) {
  34262. parentInstance.removeChild(child);
  34263. }
  34264. function removeChildFromContainer(container, child) {
  34265. if (container.nodeType === COMMENT_NODE) {
  34266. container.parentNode.removeChild(child);
  34267. } else {
  34268. container.removeChild(child);
  34269. }
  34270. }
  34271. function hideInstance(instance) {
  34272. // pass host context to this method?
  34273. instance = instance;
  34274. var style = instance.style;
  34275. if (typeof style.setProperty === 'function') {
  34276. style.setProperty('display', 'none', 'important');
  34277. } else {
  34278. style.display = 'none';
  34279. }
  34280. }
  34281. function hideTextInstance(textInstance) {
  34282. textInstance.nodeValue = '';
  34283. }
  34284. function unhideInstance(instance, props) {
  34285. instance = instance;
  34286. var styleProp = props[STYLE$1];
  34287. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  34288. instance.style.display = dangerousStyleValue('display', display);
  34289. }
  34290. function unhideTextInstance(textInstance, text) {
  34291. textInstance.nodeValue = text;
  34292. } // -------------------
  34293. function canHydrateInstance(instance, type, props) {
  34294. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  34295. return null;
  34296. } // This has now been refined to an element node.
  34297. return instance;
  34298. }
  34299. function canHydrateTextInstance(instance, text) {
  34300. if (text === '' || instance.nodeType !== TEXT_NODE) {
  34301. // Empty strings are not parsed by HTML so there won't be a correct match here.
  34302. return null;
  34303. } // This has now been refined to a text node.
  34304. return instance;
  34305. }
  34306. function isSuspenseInstancePending(instance) {
  34307. return instance.data === SUSPENSE_PENDING_START_DATA;
  34308. }
  34309. function isSuspenseInstanceFallback(instance) {
  34310. return instance.data === SUSPENSE_FALLBACK_START_DATA;
  34311. }
  34312. function getNextHydratable(node) {
  34313. // Skip non-hydratable nodes.
  34314. for (; node != null; node = node.nextSibling) {
  34315. var nodeType = node.nodeType;
  34316. if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
  34317. break;
  34318. }
  34319. }
  34320. return node;
  34321. }
  34322. function getNextHydratableSibling(instance) {
  34323. return getNextHydratable(instance.nextSibling);
  34324. }
  34325. function getFirstHydratableChild(parentInstance) {
  34326. return getNextHydratable(parentInstance.firstChild);
  34327. }
  34328. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  34329. precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
  34330. // get attached.
  34331. updateFiberProps(instance, props);
  34332. var parentNamespace;
  34333. {
  34334. var hostContextDev = hostContext;
  34335. parentNamespace = hostContextDev.namespace;
  34336. }
  34337. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  34338. }
  34339. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  34340. precacheFiberNode(internalInstanceHandle, textInstance);
  34341. return diffHydratedText(textInstance, text);
  34342. }
  34343. function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  34344. var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
  34345. // There might be nested nodes so we need to keep track of how
  34346. // deep we are and only break out when we're back on top.
  34347. var depth = 0;
  34348. while (node) {
  34349. if (node.nodeType === COMMENT_NODE) {
  34350. var data = node.data;
  34351. if (data === SUSPENSE_END_DATA) {
  34352. if (depth === 0) {
  34353. return getNextHydratableSibling(node);
  34354. } else {
  34355. depth--;
  34356. }
  34357. } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
  34358. depth++;
  34359. }
  34360. }
  34361. node = node.nextSibling;
  34362. } // TODO: Warn, we didn't find the end comment boundary.
  34363. return null;
  34364. } // Returns the SuspenseInstance if this node is a direct child of a
  34365. // SuspenseInstance. I.e. if its previous sibling is a Comment with
  34366. // SUSPENSE_x_START_DATA. Otherwise, null.
  34367. function getParentSuspenseInstance(targetInstance) {
  34368. var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
  34369. // There might be nested nodes so we need to keep track of how
  34370. // deep we are and only break out when we're back on top.
  34371. var depth = 0;
  34372. while (node) {
  34373. if (node.nodeType === COMMENT_NODE) {
  34374. var data = node.data;
  34375. if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
  34376. if (depth === 0) {
  34377. return node;
  34378. } else {
  34379. depth--;
  34380. }
  34381. } else if (data === SUSPENSE_END_DATA) {
  34382. depth++;
  34383. }
  34384. }
  34385. node = node.previousSibling;
  34386. }
  34387. return null;
  34388. }
  34389. function commitHydratedContainer(container) {
  34390. // Retry if any event replaying was blocked on this.
  34391. retryIfBlockedOn(container);
  34392. }
  34393. function commitHydratedSuspenseInstance(suspenseInstance) {
  34394. // Retry if any event replaying was blocked on this.
  34395. retryIfBlockedOn(suspenseInstance);
  34396. }
  34397. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  34398. {
  34399. warnForUnmatchedText(textInstance, text);
  34400. }
  34401. }
  34402. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  34403. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  34404. warnForUnmatchedText(textInstance, text);
  34405. }
  34406. }
  34407. function didNotHydrateContainerInstance(parentContainer, instance) {
  34408. {
  34409. if (instance.nodeType === ELEMENT_NODE) {
  34410. warnForDeletedHydratableElement(parentContainer, instance);
  34411. } else if (instance.nodeType === COMMENT_NODE) ; else {
  34412. warnForDeletedHydratableText(parentContainer, instance);
  34413. }
  34414. }
  34415. }
  34416. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  34417. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  34418. if (instance.nodeType === ELEMENT_NODE) {
  34419. warnForDeletedHydratableElement(parentInstance, instance);
  34420. } else if (instance.nodeType === COMMENT_NODE) ; else {
  34421. warnForDeletedHydratableText(parentInstance, instance);
  34422. }
  34423. }
  34424. }
  34425. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  34426. {
  34427. warnForInsertedHydratedElement(parentContainer, type);
  34428. }
  34429. }
  34430. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  34431. {
  34432. warnForInsertedHydratedText(parentContainer, text);
  34433. }
  34434. }
  34435. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  34436. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  34437. warnForInsertedHydratedElement(parentInstance, type);
  34438. }
  34439. }
  34440. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  34441. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
  34442. warnForInsertedHydratedText(parentInstance, text);
  34443. }
  34444. }
  34445. function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  34446. if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) ;
  34447. }
  34448. var randomKey = Math.random().toString(36).slice(2);
  34449. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  34450. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  34451. var internalContainerInstanceKey = '__reactContainere$' + randomKey;
  34452. function precacheFiberNode(hostInst, node) {
  34453. node[internalInstanceKey] = hostInst;
  34454. }
  34455. function markContainerAsRoot(hostRoot, node) {
  34456. node[internalContainerInstanceKey] = hostRoot;
  34457. }
  34458. function unmarkContainerAsRoot(node) {
  34459. node[internalContainerInstanceKey] = null;
  34460. }
  34461. function isContainerMarkedAsRoot(node) {
  34462. return !!node[internalContainerInstanceKey];
  34463. } // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
  34464. // If the target node is part of a hydrated or not yet rendered subtree, then
  34465. // this may also return a SuspenseComponent or HostRoot to indicate that.
  34466. // Conceptually the HostRoot fiber is a child of the Container node. So if you
  34467. // pass the Container node as the targetNode, you will not actually get the
  34468. // HostRoot back. To get to the HostRoot, you need to pass a child of it.
  34469. // The same thing applies to Suspense boundaries.
  34470. function getClosestInstanceFromNode(targetNode) {
  34471. var targetInst = targetNode[internalInstanceKey];
  34472. if (targetInst) {
  34473. // Don't return HostRoot or SuspenseComponent here.
  34474. return targetInst;
  34475. } // If the direct event target isn't a React owned DOM node, we need to look
  34476. // to see if one of its parents is a React owned DOM node.
  34477. var parentNode = targetNode.parentNode;
  34478. while (parentNode) {
  34479. // We'll check if this is a container root that could include
  34480. // React nodes in the future. We need to check this first because
  34481. // if we're a child of a dehydrated container, we need to first
  34482. // find that inner container before moving on to finding the parent
  34483. // instance. Note that we don't check this field on the targetNode
  34484. // itself because the fibers are conceptually between the container
  34485. // node and the first child. It isn't surrounding the container node.
  34486. // If it's not a container, we check if it's an instance.
  34487. targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];
  34488. if (targetInst) {
  34489. // Since this wasn't the direct target of the event, we might have
  34490. // stepped past dehydrated DOM nodes to get here. However they could
  34491. // also have been non-React nodes. We need to answer which one.
  34492. // If we the instance doesn't have any children, then there can't be
  34493. // a nested suspense boundary within it. So we can use this as a fast
  34494. // bailout. Most of the time, when people add non-React children to
  34495. // the tree, it is using a ref to a child-less DOM node.
  34496. // Normally we'd only need to check one of the fibers because if it
  34497. // has ever gone from having children to deleting them or vice versa
  34498. // it would have deleted the dehydrated boundary nested inside already.
  34499. // However, since the HostRoot starts out with an alternate it might
  34500. // have one on the alternate so we need to check in case this was a
  34501. // root.
  34502. var alternate = targetInst.alternate;
  34503. if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
  34504. // Next we need to figure out if the node that skipped past is
  34505. // nested within a dehydrated boundary and if so, which one.
  34506. var suspenseInstance = getParentSuspenseInstance(targetNode);
  34507. while (suspenseInstance !== null) {
  34508. // We found a suspense instance. That means that we haven't
  34509. // hydrated it yet. Even though we leave the comments in the
  34510. // DOM after hydrating, and there are boundaries in the DOM
  34511. // that could already be hydrated, we wouldn't have found them
  34512. // through this pass since if the target is hydrated it would
  34513. // have had an internalInstanceKey on it.
  34514. // Let's get the fiber associated with the SuspenseComponent
  34515. // as the deepest instance.
  34516. var targetSuspenseInst = suspenseInstance[internalInstanceKey];
  34517. if (targetSuspenseInst) {
  34518. return targetSuspenseInst;
  34519. } // If we don't find a Fiber on the comment, it might be because
  34520. // we haven't gotten to hydrate it yet. There might still be a
  34521. // parent boundary that hasn't above this one so we need to find
  34522. // the outer most that is known.
  34523. suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
  34524. // host component also hasn't hydrated yet. We can return it
  34525. // below since it will bail out on the isMounted check later.
  34526. }
  34527. }
  34528. return targetInst;
  34529. }
  34530. targetNode = parentNode;
  34531. parentNode = targetNode.parentNode;
  34532. }
  34533. return null;
  34534. }
  34535. /**
  34536. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  34537. * instance, or null if the node was not rendered by this React.
  34538. */
  34539. function getInstanceFromNode$1(node) {
  34540. var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];
  34541. if (inst) {
  34542. if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
  34543. return inst;
  34544. } else {
  34545. return null;
  34546. }
  34547. }
  34548. return null;
  34549. }
  34550. /**
  34551. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  34552. * DOM node.
  34553. */
  34554. function getNodeFromInstance$1(inst) {
  34555. if (inst.tag === HostComponent || inst.tag === HostText) {
  34556. // In Fiber this, is just the state node right now. We assume it will be
  34557. // a host component or host text.
  34558. return inst.stateNode;
  34559. } // Without this first invariant, passing a non-DOM-component triggers the next
  34560. // invariant for a missing parent, which is super confusing.
  34561. {
  34562. {
  34563. throw Error( "getNodeFromInstance: Invalid argument." );
  34564. }
  34565. }
  34566. }
  34567. function getFiberCurrentPropsFromNode$1(node) {
  34568. return node[internalEventHandlersKey] || null;
  34569. }
  34570. function updateFiberProps(node, props) {
  34571. node[internalEventHandlersKey] = props;
  34572. }
  34573. function getParent(inst) {
  34574. do {
  34575. inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.
  34576. // That is depending on if we want nested subtrees (layers) to bubble
  34577. // events to their parent. We could also go through parentNode on the
  34578. // host node but that wouldn't work for React Native and doesn't let us
  34579. // do the portal feature.
  34580. } while (inst && inst.tag !== HostComponent);
  34581. if (inst) {
  34582. return inst;
  34583. }
  34584. return null;
  34585. }
  34586. /**
  34587. * Return the lowest common ancestor of A and B, or null if they are in
  34588. * different trees.
  34589. */
  34590. function getLowestCommonAncestor(instA, instB) {
  34591. var depthA = 0;
  34592. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  34593. depthA++;
  34594. }
  34595. var depthB = 0;
  34596. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  34597. depthB++;
  34598. } // If A is deeper, crawl up.
  34599. while (depthA - depthB > 0) {
  34600. instA = getParent(instA);
  34601. depthA--;
  34602. } // If B is deeper, crawl up.
  34603. while (depthB - depthA > 0) {
  34604. instB = getParent(instB);
  34605. depthB--;
  34606. } // Walk in lockstep until we find a match.
  34607. var depth = depthA;
  34608. while (depth--) {
  34609. if (instA === instB || instA === instB.alternate) {
  34610. return instA;
  34611. }
  34612. instA = getParent(instA);
  34613. instB = getParent(instB);
  34614. }
  34615. return null;
  34616. }
  34617. /**
  34618. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  34619. */
  34620. function traverseTwoPhase(inst, fn, arg) {
  34621. var path = [];
  34622. while (inst) {
  34623. path.push(inst);
  34624. inst = getParent(inst);
  34625. }
  34626. var i;
  34627. for (i = path.length; i-- > 0;) {
  34628. fn(path[i], 'captured', arg);
  34629. }
  34630. for (i = 0; i < path.length; i++) {
  34631. fn(path[i], 'bubbled', arg);
  34632. }
  34633. }
  34634. /**
  34635. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  34636. * should would receive a `mouseEnter` or `mouseLeave` event.
  34637. *
  34638. * Does not invoke the callback on the nearest common ancestor because nothing
  34639. * "entered" or "left" that element.
  34640. */
  34641. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  34642. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  34643. var pathFrom = [];
  34644. while (true) {
  34645. if (!from) {
  34646. break;
  34647. }
  34648. if (from === common) {
  34649. break;
  34650. }
  34651. var alternate = from.alternate;
  34652. if (alternate !== null && alternate === common) {
  34653. break;
  34654. }
  34655. pathFrom.push(from);
  34656. from = getParent(from);
  34657. }
  34658. var pathTo = [];
  34659. while (true) {
  34660. if (!to) {
  34661. break;
  34662. }
  34663. if (to === common) {
  34664. break;
  34665. }
  34666. var _alternate = to.alternate;
  34667. if (_alternate !== null && _alternate === common) {
  34668. break;
  34669. }
  34670. pathTo.push(to);
  34671. to = getParent(to);
  34672. }
  34673. for (var i = 0; i < pathFrom.length; i++) {
  34674. fn(pathFrom[i], 'bubbled', argFrom);
  34675. }
  34676. for (var _i = pathTo.length; _i-- > 0;) {
  34677. fn(pathTo[_i], 'captured', argTo);
  34678. }
  34679. }
  34680. function isInteractive(tag) {
  34681. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  34682. }
  34683. function shouldPreventMouseEvent(name, type, props) {
  34684. switch (name) {
  34685. case 'onClick':
  34686. case 'onClickCapture':
  34687. case 'onDoubleClick':
  34688. case 'onDoubleClickCapture':
  34689. case 'onMouseDown':
  34690. case 'onMouseDownCapture':
  34691. case 'onMouseMove':
  34692. case 'onMouseMoveCapture':
  34693. case 'onMouseUp':
  34694. case 'onMouseUpCapture':
  34695. case 'onMouseEnter':
  34696. return !!(props.disabled && isInteractive(type));
  34697. default:
  34698. return false;
  34699. }
  34700. }
  34701. /**
  34702. * @param {object} inst The instance, which is the source of events.
  34703. * @param {string} registrationName Name of listener (e.g. `onClick`).
  34704. * @return {?function} The stored callback.
  34705. */
  34706. function getListener(inst, registrationName) {
  34707. var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  34708. // live here; needs to be moved to a better place soon
  34709. var stateNode = inst.stateNode;
  34710. if (!stateNode) {
  34711. // Work in progress (ex: onload events in incremental mode).
  34712. return null;
  34713. }
  34714. var props = getFiberCurrentPropsFromNode(stateNode);
  34715. if (!props) {
  34716. // Work in progress.
  34717. return null;
  34718. }
  34719. listener = props[registrationName];
  34720. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  34721. return null;
  34722. }
  34723. if (!(!listener || typeof listener === 'function')) {
  34724. {
  34725. throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." );
  34726. }
  34727. }
  34728. return listener;
  34729. }
  34730. /**
  34731. * Some event types have a notion of different registration names for different
  34732. * "phases" of propagation. This finds listeners by a given phase.
  34733. */
  34734. function listenerAtPhase(inst, event, propagationPhase) {
  34735. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  34736. return getListener(inst, registrationName);
  34737. }
  34738. /**
  34739. * A small set of propagation patterns, each of which will accept a small amount
  34740. * of information, and generate a set of "dispatch ready event objects" - which
  34741. * are sets of events that have already been annotated with a set of dispatched
  34742. * listener functions/ids. The API is designed this way to discourage these
  34743. * propagation strategies from actually executing the dispatches, since we
  34744. * always want to collect the entire set of dispatches before executing even a
  34745. * single one.
  34746. */
  34747. /**
  34748. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  34749. * here, allows us to not have to bind or create functions for each event.
  34750. * Mutating the event's members allows us to not have to create a wrapping
  34751. * "dispatch" object that pairs the event with the listener.
  34752. */
  34753. function accumulateDirectionalDispatches(inst, phase, event) {
  34754. {
  34755. if (!inst) {
  34756. error('Dispatching inst must not be null');
  34757. }
  34758. }
  34759. var listener = listenerAtPhase(inst, event, phase);
  34760. if (listener) {
  34761. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  34762. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  34763. }
  34764. }
  34765. /**
  34766. * Collect dispatches (must be entirely collected before dispatching - see unit
  34767. * tests). Lazily allocate the array to conserve memory. We must loop through
  34768. * each event and perform the traversal for each one. We cannot perform a
  34769. * single traversal for the entire collection of events because each event may
  34770. * have a different target.
  34771. */
  34772. function accumulateTwoPhaseDispatchesSingle(event) {
  34773. if (event && event.dispatchConfig.phasedRegistrationNames) {
  34774. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  34775. }
  34776. }
  34777. /**
  34778. * Accumulates without regard to direction, does not look for phased
  34779. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  34780. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  34781. */
  34782. function accumulateDispatches(inst, ignoredDirection, event) {
  34783. if (inst && event && event.dispatchConfig.registrationName) {
  34784. var registrationName = event.dispatchConfig.registrationName;
  34785. var listener = getListener(inst, registrationName);
  34786. if (listener) {
  34787. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  34788. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  34789. }
  34790. }
  34791. }
  34792. /**
  34793. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  34794. * `dispatchMarker`.
  34795. * @param {SyntheticEvent} event
  34796. */
  34797. function accumulateDirectDispatchesSingle(event) {
  34798. if (event && event.dispatchConfig.registrationName) {
  34799. accumulateDispatches(event._targetInst, null, event);
  34800. }
  34801. }
  34802. function accumulateTwoPhaseDispatches(events) {
  34803. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  34804. }
  34805. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  34806. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  34807. }
  34808. function accumulateDirectDispatches(events) {
  34809. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  34810. }
  34811. /**
  34812. * These variables store information about text content of a target node,
  34813. * allowing comparison of content before and after a given event.
  34814. *
  34815. * Identify the node where selection currently begins, then observe
  34816. * both its text content and its current position in the DOM. Since the
  34817. * browser may natively replace the target node during composition, we can
  34818. * use its position to find its replacement.
  34819. *
  34820. *
  34821. */
  34822. var root = null;
  34823. var startText = null;
  34824. var fallbackText = null;
  34825. function initialize(nativeEventTarget) {
  34826. root = nativeEventTarget;
  34827. startText = getText();
  34828. return true;
  34829. }
  34830. function reset() {
  34831. root = null;
  34832. startText = null;
  34833. fallbackText = null;
  34834. }
  34835. function getData() {
  34836. if (fallbackText) {
  34837. return fallbackText;
  34838. }
  34839. var start;
  34840. var startValue = startText;
  34841. var startLength = startValue.length;
  34842. var end;
  34843. var endValue = getText();
  34844. var endLength = endValue.length;
  34845. for (start = 0; start < startLength; start++) {
  34846. if (startValue[start] !== endValue[start]) {
  34847. break;
  34848. }
  34849. }
  34850. var minEnd = startLength - start;
  34851. for (end = 1; end <= minEnd; end++) {
  34852. if (startValue[startLength - end] !== endValue[endLength - end]) {
  34853. break;
  34854. }
  34855. }
  34856. var sliceTail = end > 1 ? 1 - end : undefined;
  34857. fallbackText = endValue.slice(start, sliceTail);
  34858. return fallbackText;
  34859. }
  34860. function getText() {
  34861. if ('value' in root) {
  34862. return root.value;
  34863. }
  34864. return root.textContent;
  34865. }
  34866. var EVENT_POOL_SIZE = 10;
  34867. /**
  34868. * @interface Event
  34869. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  34870. */
  34871. var EventInterface = {
  34872. type: null,
  34873. target: null,
  34874. // currentTarget is set when dispatching; no use in copying it here
  34875. currentTarget: function () {
  34876. return null;
  34877. },
  34878. eventPhase: null,
  34879. bubbles: null,
  34880. cancelable: null,
  34881. timeStamp: function (event) {
  34882. return event.timeStamp || Date.now();
  34883. },
  34884. defaultPrevented: null,
  34885. isTrusted: null
  34886. };
  34887. function functionThatReturnsTrue() {
  34888. return true;
  34889. }
  34890. function functionThatReturnsFalse() {
  34891. return false;
  34892. }
  34893. /**
  34894. * Synthetic events are dispatched by event plugins, typically in response to a
  34895. * top-level event delegation handler.
  34896. *
  34897. * These systems should generally use pooling to reduce the frequency of garbage
  34898. * collection. The system should check `isPersistent` to determine whether the
  34899. * event should be released into the pool after being dispatched. Users that
  34900. * need a persisted event should invoke `persist`.
  34901. *
  34902. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  34903. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  34904. * DOM interface; custom application-specific events can also subclass this.
  34905. *
  34906. * @param {object} dispatchConfig Configuration used to dispatch this event.
  34907. * @param {*} targetInst Marker identifying the event target.
  34908. * @param {object} nativeEvent Native browser event.
  34909. * @param {DOMEventTarget} nativeEventTarget Target node.
  34910. */
  34911. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  34912. {
  34913. // these have a getter/setter for warnings
  34914. delete this.nativeEvent;
  34915. delete this.preventDefault;
  34916. delete this.stopPropagation;
  34917. delete this.isDefaultPrevented;
  34918. delete this.isPropagationStopped;
  34919. }
  34920. this.dispatchConfig = dispatchConfig;
  34921. this._targetInst = targetInst;
  34922. this.nativeEvent = nativeEvent;
  34923. var Interface = this.constructor.Interface;
  34924. for (var propName in Interface) {
  34925. if (!Interface.hasOwnProperty(propName)) {
  34926. continue;
  34927. }
  34928. {
  34929. delete this[propName]; // this has a getter/setter for warnings
  34930. }
  34931. var normalize = Interface[propName];
  34932. if (normalize) {
  34933. this[propName] = normalize(nativeEvent);
  34934. } else {
  34935. if (propName === 'target') {
  34936. this.target = nativeEventTarget;
  34937. } else {
  34938. this[propName] = nativeEvent[propName];
  34939. }
  34940. }
  34941. }
  34942. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  34943. if (defaultPrevented) {
  34944. this.isDefaultPrevented = functionThatReturnsTrue;
  34945. } else {
  34946. this.isDefaultPrevented = functionThatReturnsFalse;
  34947. }
  34948. this.isPropagationStopped = functionThatReturnsFalse;
  34949. return this;
  34950. }
  34951. _assign(SyntheticEvent.prototype, {
  34952. preventDefault: function () {
  34953. this.defaultPrevented = true;
  34954. var event = this.nativeEvent;
  34955. if (!event) {
  34956. return;
  34957. }
  34958. if (event.preventDefault) {
  34959. event.preventDefault();
  34960. } else if (typeof event.returnValue !== 'unknown') {
  34961. event.returnValue = false;
  34962. }
  34963. this.isDefaultPrevented = functionThatReturnsTrue;
  34964. },
  34965. stopPropagation: function () {
  34966. var event = this.nativeEvent;
  34967. if (!event) {
  34968. return;
  34969. }
  34970. if (event.stopPropagation) {
  34971. event.stopPropagation();
  34972. } else if (typeof event.cancelBubble !== 'unknown') {
  34973. // The ChangeEventPlugin registers a "propertychange" event for
  34974. // IE. This event does not support bubbling or cancelling, and
  34975. // any references to cancelBubble throw "Member not found". A
  34976. // typeof check of "unknown" circumvents this issue (and is also
  34977. // IE specific).
  34978. event.cancelBubble = true;
  34979. }
  34980. this.isPropagationStopped = functionThatReturnsTrue;
  34981. },
  34982. /**
  34983. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  34984. * them back into the pool. This allows a way to hold onto a reference that
  34985. * won't be added back into the pool.
  34986. */
  34987. persist: function () {
  34988. this.isPersistent = functionThatReturnsTrue;
  34989. },
  34990. /**
  34991. * Checks if this event should be released back into the pool.
  34992. *
  34993. * @return {boolean} True if this should not be released, false otherwise.
  34994. */
  34995. isPersistent: functionThatReturnsFalse,
  34996. /**
  34997. * `PooledClass` looks for `destructor` on each instance it releases.
  34998. */
  34999. destructor: function () {
  35000. var Interface = this.constructor.Interface;
  35001. for (var propName in Interface) {
  35002. {
  35003. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  35004. }
  35005. }
  35006. this.dispatchConfig = null;
  35007. this._targetInst = null;
  35008. this.nativeEvent = null;
  35009. this.isDefaultPrevented = functionThatReturnsFalse;
  35010. this.isPropagationStopped = functionThatReturnsFalse;
  35011. this._dispatchListeners = null;
  35012. this._dispatchInstances = null;
  35013. {
  35014. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  35015. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  35016. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  35017. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  35018. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  35019. }
  35020. }
  35021. });
  35022. SyntheticEvent.Interface = EventInterface;
  35023. /**
  35024. * Helper to reduce boilerplate when creating subclasses.
  35025. */
  35026. SyntheticEvent.extend = function (Interface) {
  35027. var Super = this;
  35028. var E = function () {};
  35029. E.prototype = Super.prototype;
  35030. var prototype = new E();
  35031. function Class() {
  35032. return Super.apply(this, arguments);
  35033. }
  35034. _assign(prototype, Class.prototype);
  35035. Class.prototype = prototype;
  35036. Class.prototype.constructor = Class;
  35037. Class.Interface = _assign({}, Super.Interface, Interface);
  35038. Class.extend = Super.extend;
  35039. addEventPoolingTo(Class);
  35040. return Class;
  35041. };
  35042. addEventPoolingTo(SyntheticEvent);
  35043. /**
  35044. * Helper to nullify syntheticEvent instance properties when destructing
  35045. *
  35046. * @param {String} propName
  35047. * @param {?object} getVal
  35048. * @return {object} defineProperty object
  35049. */
  35050. function getPooledWarningPropertyDefinition(propName, getVal) {
  35051. var isFunction = typeof getVal === 'function';
  35052. return {
  35053. configurable: true,
  35054. set: set,
  35055. get: get
  35056. };
  35057. function set(val) {
  35058. var action = isFunction ? 'setting the method' : 'setting the property';
  35059. warn(action, 'This is effectively a no-op');
  35060. return val;
  35061. }
  35062. function get() {
  35063. var action = isFunction ? 'accessing the method' : 'accessing the property';
  35064. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  35065. warn(action, result);
  35066. return getVal;
  35067. }
  35068. function warn(action, result) {
  35069. {
  35070. 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);
  35071. }
  35072. }
  35073. }
  35074. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  35075. var EventConstructor = this;
  35076. if (EventConstructor.eventPool.length) {
  35077. var instance = EventConstructor.eventPool.pop();
  35078. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  35079. return instance;
  35080. }
  35081. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  35082. }
  35083. function releasePooledEvent(event) {
  35084. var EventConstructor = this;
  35085. if (!(event instanceof EventConstructor)) {
  35086. {
  35087. throw Error( "Trying to release an event instance into a pool of a different type." );
  35088. }
  35089. }
  35090. event.destructor();
  35091. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  35092. EventConstructor.eventPool.push(event);
  35093. }
  35094. }
  35095. function addEventPoolingTo(EventConstructor) {
  35096. EventConstructor.eventPool = [];
  35097. EventConstructor.getPooled = getPooledEvent;
  35098. EventConstructor.release = releasePooledEvent;
  35099. }
  35100. /**
  35101. * @interface Event
  35102. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  35103. */
  35104. var SyntheticCompositionEvent = SyntheticEvent.extend({
  35105. data: null
  35106. });
  35107. /**
  35108. * @interface Event
  35109. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  35110. * /#events-inputevents
  35111. */
  35112. var SyntheticInputEvent = SyntheticEvent.extend({
  35113. data: null
  35114. });
  35115. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  35116. var START_KEYCODE = 229;
  35117. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  35118. var documentMode = null;
  35119. if (canUseDOM && 'documentMode' in document) {
  35120. documentMode = document.documentMode;
  35121. } // Webkit offers a very useful `textInput` event that can be used to
  35122. // directly represent `beforeInput`. The IE `textinput` event is not as
  35123. // useful, so we don't use it.
  35124. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied
  35125. // by the native compositionend event may be incorrect. Japanese ideographic
  35126. // spaces, for instance (\u3000) are not recorded correctly.
  35127. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  35128. var SPACEBAR_CODE = 32;
  35129. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); // Events and their corresponding property names.
  35130. var eventTypes = {
  35131. beforeInput: {
  35132. phasedRegistrationNames: {
  35133. bubbled: 'onBeforeInput',
  35134. captured: 'onBeforeInputCapture'
  35135. },
  35136. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  35137. },
  35138. compositionEnd: {
  35139. phasedRegistrationNames: {
  35140. bubbled: 'onCompositionEnd',
  35141. captured: 'onCompositionEndCapture'
  35142. },
  35143. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35144. },
  35145. compositionStart: {
  35146. phasedRegistrationNames: {
  35147. bubbled: 'onCompositionStart',
  35148. captured: 'onCompositionStartCapture'
  35149. },
  35150. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35151. },
  35152. compositionUpdate: {
  35153. phasedRegistrationNames: {
  35154. bubbled: 'onCompositionUpdate',
  35155. captured: 'onCompositionUpdateCapture'
  35156. },
  35157. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35158. }
  35159. }; // Track whether we've ever handled a keypress on the space key.
  35160. var hasSpaceKeypress = false;
  35161. /**
  35162. * Return whether a native keypress event is assumed to be a command.
  35163. * This is required because Firefox fires `keypress` events for key commands
  35164. * (cut, copy, select-all, etc.) even though no character is inserted.
  35165. */
  35166. function isKeypressCommand(nativeEvent) {
  35167. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  35168. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  35169. }
  35170. /**
  35171. * Translate native top level events into event types.
  35172. *
  35173. * @param {string} topLevelType
  35174. * @return {object}
  35175. */
  35176. function getCompositionEventType(topLevelType) {
  35177. switch (topLevelType) {
  35178. case TOP_COMPOSITION_START:
  35179. return eventTypes.compositionStart;
  35180. case TOP_COMPOSITION_END:
  35181. return eventTypes.compositionEnd;
  35182. case TOP_COMPOSITION_UPDATE:
  35183. return eventTypes.compositionUpdate;
  35184. }
  35185. }
  35186. /**
  35187. * Does our fallback best-guess model think this event signifies that
  35188. * composition has begun?
  35189. *
  35190. * @param {string} topLevelType
  35191. * @param {object} nativeEvent
  35192. * @return {boolean}
  35193. */
  35194. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  35195. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  35196. }
  35197. /**
  35198. * Does our fallback mode think that this event is the end of composition?
  35199. *
  35200. * @param {string} topLevelType
  35201. * @param {object} nativeEvent
  35202. * @return {boolean}
  35203. */
  35204. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  35205. switch (topLevelType) {
  35206. case TOP_KEY_UP:
  35207. // Command keys insert or clear IME input.
  35208. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  35209. case TOP_KEY_DOWN:
  35210. // Expect IME keyCode on each keydown. If we get any other
  35211. // code we must have exited earlier.
  35212. return nativeEvent.keyCode !== START_KEYCODE;
  35213. case TOP_KEY_PRESS:
  35214. case TOP_MOUSE_DOWN:
  35215. case TOP_BLUR:
  35216. // Events are not possible without cancelling IME.
  35217. return true;
  35218. default:
  35219. return false;
  35220. }
  35221. }
  35222. /**
  35223. * Google Input Tools provides composition data via a CustomEvent,
  35224. * with the `data` property populated in the `detail` object. If this
  35225. * is available on the event object, use it. If not, this is a plain
  35226. * composition event and we have nothing special to extract.
  35227. *
  35228. * @param {object} nativeEvent
  35229. * @return {?string}
  35230. */
  35231. function getDataFromCustomEvent(nativeEvent) {
  35232. var detail = nativeEvent.detail;
  35233. if (typeof detail === 'object' && 'data' in detail) {
  35234. return detail.data;
  35235. }
  35236. return null;
  35237. }
  35238. /**
  35239. * Check if a composition event was triggered by Korean IME.
  35240. * Our fallback mode does not work well with IE's Korean IME,
  35241. * so just use native composition events when Korean IME is used.
  35242. * Although CompositionEvent.locale property is deprecated,
  35243. * it is available in IE, where our fallback mode is enabled.
  35244. *
  35245. * @param {object} nativeEvent
  35246. * @return {boolean}
  35247. */
  35248. function isUsingKoreanIME(nativeEvent) {
  35249. return nativeEvent.locale === 'ko';
  35250. } // Track the current IME composition status, if any.
  35251. var isComposing = false;
  35252. /**
  35253. * @return {?object} A SyntheticCompositionEvent.
  35254. */
  35255. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35256. var eventType;
  35257. var fallbackData;
  35258. if (canUseCompositionEvent) {
  35259. eventType = getCompositionEventType(topLevelType);
  35260. } else if (!isComposing) {
  35261. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  35262. eventType = eventTypes.compositionStart;
  35263. }
  35264. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35265. eventType = eventTypes.compositionEnd;
  35266. }
  35267. if (!eventType) {
  35268. return null;
  35269. }
  35270. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  35271. // The current composition is stored statically and must not be
  35272. // overwritten while composition continues.
  35273. if (!isComposing && eventType === eventTypes.compositionStart) {
  35274. isComposing = initialize(nativeEventTarget);
  35275. } else if (eventType === eventTypes.compositionEnd) {
  35276. if (isComposing) {
  35277. fallbackData = getData();
  35278. }
  35279. }
  35280. }
  35281. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  35282. if (fallbackData) {
  35283. // Inject data generated from fallback path into the synthetic event.
  35284. // This matches the property of native CompositionEventInterface.
  35285. event.data = fallbackData;
  35286. } else {
  35287. var customData = getDataFromCustomEvent(nativeEvent);
  35288. if (customData !== null) {
  35289. event.data = customData;
  35290. }
  35291. }
  35292. accumulateTwoPhaseDispatches(event);
  35293. return event;
  35294. }
  35295. /**
  35296. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  35297. * @param {object} nativeEvent Native browser event.
  35298. * @return {?string} The string corresponding to this `beforeInput` event.
  35299. */
  35300. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  35301. switch (topLevelType) {
  35302. case TOP_COMPOSITION_END:
  35303. return getDataFromCustomEvent(nativeEvent);
  35304. case TOP_KEY_PRESS:
  35305. /**
  35306. * If native `textInput` events are available, our goal is to make
  35307. * use of them. However, there is a special case: the spacebar key.
  35308. * In Webkit, preventing default on a spacebar `textInput` event
  35309. * cancels character insertion, but it *also* causes the browser
  35310. * to fall back to its default spacebar behavior of scrolling the
  35311. * page.
  35312. *
  35313. * Tracking at:
  35314. * https://code.google.com/p/chromium/issues/detail?id=355103
  35315. *
  35316. * To avoid this issue, use the keypress event as if no `textInput`
  35317. * event is available.
  35318. */
  35319. var which = nativeEvent.which;
  35320. if (which !== SPACEBAR_CODE) {
  35321. return null;
  35322. }
  35323. hasSpaceKeypress = true;
  35324. return SPACEBAR_CHAR;
  35325. case TOP_TEXT_INPUT:
  35326. // Record the characters to be added to the DOM.
  35327. var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled
  35328. // it at the keypress level and bail immediately. Android Chrome
  35329. // doesn't give us keycodes, so we need to ignore it.
  35330. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  35331. return null;
  35332. }
  35333. return chars;
  35334. default:
  35335. // For other native event types, do nothing.
  35336. return null;
  35337. }
  35338. }
  35339. /**
  35340. * For browsers that do not provide the `textInput` event, extract the
  35341. * appropriate string to use for SyntheticInputEvent.
  35342. *
  35343. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  35344. * @param {object} nativeEvent Native browser event.
  35345. * @return {?string} The fallback string for this `beforeInput` event.
  35346. */
  35347. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  35348. // If we are currently composing (IME) and using a fallback to do so,
  35349. // try to extract the composed characters from the fallback object.
  35350. // If composition event is available, we extract a string only at
  35351. // compositionevent, otherwise extract it at fallback events.
  35352. if (isComposing) {
  35353. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35354. var chars = getData();
  35355. reset();
  35356. isComposing = false;
  35357. return chars;
  35358. }
  35359. return null;
  35360. }
  35361. switch (topLevelType) {
  35362. case TOP_PASTE:
  35363. // If a paste event occurs after a keypress, throw out the input
  35364. // chars. Paste events should not lead to BeforeInput events.
  35365. return null;
  35366. case TOP_KEY_PRESS:
  35367. /**
  35368. * As of v27, Firefox may fire keypress events even when no character
  35369. * will be inserted. A few possibilities:
  35370. *
  35371. * - `which` is `0`. Arrow keys, Esc key, etc.
  35372. *
  35373. * - `which` is the pressed key code, but no char is available.
  35374. * Ex: 'AltGr + d` in Polish. There is no modified character for
  35375. * this key combination and no character is inserted into the
  35376. * document, but FF fires the keypress for char code `100` anyway.
  35377. * No `input` event will occur.
  35378. *
  35379. * - `which` is the pressed key code, but a command combination is
  35380. * being used. Ex: `Cmd+C`. No character is inserted, and no
  35381. * `input` event will occur.
  35382. */
  35383. if (!isKeypressCommand(nativeEvent)) {
  35384. // IE fires the `keypress` event when a user types an emoji via
  35385. // Touch keyboard of Windows. In such a case, the `char` property
  35386. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  35387. // is 2, the property `which` does not represent an emoji correctly.
  35388. // In such a case, we directly return the `char` property instead of
  35389. // using `which`.
  35390. if (nativeEvent.char && nativeEvent.char.length > 1) {
  35391. return nativeEvent.char;
  35392. } else if (nativeEvent.which) {
  35393. return String.fromCharCode(nativeEvent.which);
  35394. }
  35395. }
  35396. return null;
  35397. case TOP_COMPOSITION_END:
  35398. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  35399. default:
  35400. return null;
  35401. }
  35402. }
  35403. /**
  35404. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  35405. * `textInput` or fallback behavior.
  35406. *
  35407. * @return {?object} A SyntheticInputEvent.
  35408. */
  35409. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35410. var chars;
  35411. if (canUseTextInputEvent) {
  35412. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  35413. } else {
  35414. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  35415. } // If no characters are being inserted, no BeforeInput event should
  35416. // be fired.
  35417. if (!chars) {
  35418. return null;
  35419. }
  35420. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  35421. event.data = chars;
  35422. accumulateTwoPhaseDispatches(event);
  35423. return event;
  35424. }
  35425. /**
  35426. * Create an `onBeforeInput` event to match
  35427. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  35428. *
  35429. * This event plugin is based on the native `textInput` event
  35430. * available in Chrome, Safari, Opera, and IE. This event fires after
  35431. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  35432. *
  35433. * `beforeInput` is spec'd but not implemented in any browsers, and
  35434. * the `input` event does not provide any useful information about what has
  35435. * actually been added, contrary to the spec. Thus, `textInput` is the best
  35436. * available event to identify the characters that have actually been inserted
  35437. * into the target node.
  35438. *
  35439. * This plugin is also responsible for emitting `composition` events, thus
  35440. * allowing us to share composition fallback code for both `beforeInput` and
  35441. * `composition` event types.
  35442. */
  35443. var BeforeInputEventPlugin = {
  35444. eventTypes: eventTypes,
  35445. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  35446. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35447. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35448. if (composition === null) {
  35449. return beforeInput;
  35450. }
  35451. if (beforeInput === null) {
  35452. return composition;
  35453. }
  35454. return [composition, beforeInput];
  35455. }
  35456. };
  35457. /**
  35458. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  35459. */
  35460. var supportedInputTypes = {
  35461. color: true,
  35462. date: true,
  35463. datetime: true,
  35464. 'datetime-local': true,
  35465. email: true,
  35466. month: true,
  35467. number: true,
  35468. password: true,
  35469. range: true,
  35470. search: true,
  35471. tel: true,
  35472. text: true,
  35473. time: true,
  35474. url: true,
  35475. week: true
  35476. };
  35477. function isTextInputElement(elem) {
  35478. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  35479. if (nodeName === 'input') {
  35480. return !!supportedInputTypes[elem.type];
  35481. }
  35482. if (nodeName === 'textarea') {
  35483. return true;
  35484. }
  35485. return false;
  35486. }
  35487. var eventTypes$1 = {
  35488. change: {
  35489. phasedRegistrationNames: {
  35490. bubbled: 'onChange',
  35491. captured: 'onChangeCapture'
  35492. },
  35493. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  35494. }
  35495. };
  35496. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  35497. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  35498. event.type = 'change'; // Flag this event loop as needing state restore.
  35499. enqueueStateRestore(target);
  35500. accumulateTwoPhaseDispatches(event);
  35501. return event;
  35502. }
  35503. /**
  35504. * For IE shims
  35505. */
  35506. var activeElement = null;
  35507. var activeElementInst = null;
  35508. /**
  35509. * SECTION: handle `change` event
  35510. */
  35511. function shouldUseChangeEvent(elem) {
  35512. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  35513. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  35514. }
  35515. function manualDispatchChangeEvent(nativeEvent) {
  35516. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the
  35517. // other events and have it go through ReactBrowserEventEmitter. Since it
  35518. // doesn't, we manually listen for the events and so we have to enqueue and
  35519. // process the abstract event manually.
  35520. //
  35521. // Batching is necessary here in order to ensure that all event handlers run
  35522. // before the next rerender (including event handlers attached to ancestor
  35523. // elements instead of directly on the input). Without this, controlled
  35524. // components don't work properly in conjunction with event bubbling because
  35525. // the component is rerendered and the value reverted before all the event
  35526. // handlers can run. See https://github.com/facebook/react/issues/708.
  35527. batchedUpdates(runEventInBatch, event);
  35528. }
  35529. function runEventInBatch(event) {
  35530. runEventsInBatch(event);
  35531. }
  35532. function getInstIfValueChanged(targetInst) {
  35533. var targetNode = getNodeFromInstance$1(targetInst);
  35534. if (updateValueIfChanged(targetNode)) {
  35535. return targetInst;
  35536. }
  35537. }
  35538. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  35539. if (topLevelType === TOP_CHANGE) {
  35540. return targetInst;
  35541. }
  35542. }
  35543. /**
  35544. * SECTION: handle `input` event
  35545. */
  35546. var isInputEventSupported = false;
  35547. if (canUseDOM) {
  35548. // IE9 claims to support the input event but fails to trigger it when
  35549. // deleting text, so we ignore its input events.
  35550. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  35551. }
  35552. /**
  35553. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  35554. * and override the value property so that we can distinguish user events from
  35555. * value changes in JS.
  35556. */
  35557. function startWatchingForValueChange(target, targetInst) {
  35558. activeElement = target;
  35559. activeElementInst = targetInst;
  35560. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  35561. }
  35562. /**
  35563. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  35564. * if any exists.
  35565. */
  35566. function stopWatchingForValueChange() {
  35567. if (!activeElement) {
  35568. return;
  35569. }
  35570. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  35571. activeElement = null;
  35572. activeElementInst = null;
  35573. }
  35574. /**
  35575. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  35576. * the value of the active element has changed.
  35577. */
  35578. function handlePropertyChange(nativeEvent) {
  35579. if (nativeEvent.propertyName !== 'value') {
  35580. return;
  35581. }
  35582. if (getInstIfValueChanged(activeElementInst)) {
  35583. manualDispatchChangeEvent(nativeEvent);
  35584. }
  35585. }
  35586. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  35587. if (topLevelType === TOP_FOCUS) {
  35588. // In IE9, propertychange fires for most input events but is buggy and
  35589. // doesn't fire when text is deleted, but conveniently, selectionchange
  35590. // appears to fire in all of the remaining cases so we catch those and
  35591. // forward the event if the value has changed
  35592. // In either case, we don't want to call the event handler if the value
  35593. // is changed from JS so we redefine a setter for `.value` that updates
  35594. // our activeElementValue variable, allowing us to ignore those changes
  35595. //
  35596. // stopWatching() should be a noop here but we call it just in case we
  35597. // missed a blur event somehow.
  35598. stopWatchingForValueChange();
  35599. startWatchingForValueChange(target, targetInst);
  35600. } else if (topLevelType === TOP_BLUR) {
  35601. stopWatchingForValueChange();
  35602. }
  35603. } // For IE8 and IE9.
  35604. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  35605. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  35606. // On the selectionchange event, the target is just document which isn't
  35607. // helpful for us so just check activeElement instead.
  35608. //
  35609. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  35610. // propertychange on the first input event after setting `value` from a
  35611. // script and fires only keydown, keypress, keyup. Catching keyup usually
  35612. // gets it and catching keydown lets us fire an event for the first
  35613. // keystroke if user does a key repeat (it'll be a little delayed: right
  35614. // before the second keystroke). Other input methods (e.g., paste) seem to
  35615. // fire selectionchange normally.
  35616. return getInstIfValueChanged(activeElementInst);
  35617. }
  35618. }
  35619. /**
  35620. * SECTION: handle `click` event
  35621. */
  35622. function shouldUseClickEvent(elem) {
  35623. // Use the `click` event to detect changes to checkbox and radio inputs.
  35624. // This approach works across all browsers, whereas `change` does not fire
  35625. // until `blur` in IE8.
  35626. var nodeName = elem.nodeName;
  35627. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  35628. }
  35629. function getTargetInstForClickEvent(topLevelType, targetInst) {
  35630. if (topLevelType === TOP_CLICK) {
  35631. return getInstIfValueChanged(targetInst);
  35632. }
  35633. }
  35634. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  35635. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  35636. return getInstIfValueChanged(targetInst);
  35637. }
  35638. }
  35639. function handleControlledInputBlur(node) {
  35640. var state = node._wrapperState;
  35641. if (!state || !state.controlled || node.type !== 'number') {
  35642. return;
  35643. }
  35644. {
  35645. // If controlled, assign the value attribute to the current value on blur
  35646. setDefaultValue(node, 'number', node.value);
  35647. }
  35648. }
  35649. /**
  35650. * This plugin creates an `onChange` event that normalizes change events
  35651. * across form elements. This event fires at a time when it's possible to
  35652. * change the element's value without seeing a flicker.
  35653. *
  35654. * Supported elements are:
  35655. * - input (see `isTextInputElement`)
  35656. * - textarea
  35657. * - select
  35658. */
  35659. var ChangeEventPlugin = {
  35660. eventTypes: eventTypes$1,
  35661. _isInputEventSupported: isInputEventSupported,
  35662. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  35663. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  35664. var getTargetInstFunc, handleEventFunc;
  35665. if (shouldUseChangeEvent(targetNode)) {
  35666. getTargetInstFunc = getTargetInstForChangeEvent;
  35667. } else if (isTextInputElement(targetNode)) {
  35668. if (isInputEventSupported) {
  35669. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  35670. } else {
  35671. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  35672. handleEventFunc = handleEventsForInputEventPolyfill;
  35673. }
  35674. } else if (shouldUseClickEvent(targetNode)) {
  35675. getTargetInstFunc = getTargetInstForClickEvent;
  35676. }
  35677. if (getTargetInstFunc) {
  35678. var inst = getTargetInstFunc(topLevelType, targetInst);
  35679. if (inst) {
  35680. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  35681. return event;
  35682. }
  35683. }
  35684. if (handleEventFunc) {
  35685. handleEventFunc(topLevelType, targetNode, targetInst);
  35686. } // When blurring, set the value attribute for number inputs
  35687. if (topLevelType === TOP_BLUR) {
  35688. handleControlledInputBlur(targetNode);
  35689. }
  35690. }
  35691. };
  35692. var SyntheticUIEvent = SyntheticEvent.extend({
  35693. view: null,
  35694. detail: null
  35695. });
  35696. /**
  35697. * Translation from modifier key to the associated property in the event.
  35698. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  35699. */
  35700. var modifierKeyToProp = {
  35701. Alt: 'altKey',
  35702. Control: 'ctrlKey',
  35703. Meta: 'metaKey',
  35704. Shift: 'shiftKey'
  35705. }; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  35706. // getModifierState. If getModifierState is not supported, we map it to a set of
  35707. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  35708. function modifierStateGetter(keyArg) {
  35709. var syntheticEvent = this;
  35710. var nativeEvent = syntheticEvent.nativeEvent;
  35711. if (nativeEvent.getModifierState) {
  35712. return nativeEvent.getModifierState(keyArg);
  35713. }
  35714. var keyProp = modifierKeyToProp[keyArg];
  35715. return keyProp ? !!nativeEvent[keyProp] : false;
  35716. }
  35717. function getEventModifierState(nativeEvent) {
  35718. return modifierStateGetter;
  35719. }
  35720. var previousScreenX = 0;
  35721. var previousScreenY = 0; // Use flags to signal movementX/Y has already been set
  35722. var isMovementXSet = false;
  35723. var isMovementYSet = false;
  35724. /**
  35725. * @interface MouseEvent
  35726. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  35727. */
  35728. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  35729. screenX: null,
  35730. screenY: null,
  35731. clientX: null,
  35732. clientY: null,
  35733. pageX: null,
  35734. pageY: null,
  35735. ctrlKey: null,
  35736. shiftKey: null,
  35737. altKey: null,
  35738. metaKey: null,
  35739. getModifierState: getEventModifierState,
  35740. button: null,
  35741. buttons: null,
  35742. relatedTarget: function (event) {
  35743. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  35744. },
  35745. movementX: function (event) {
  35746. if ('movementX' in event) {
  35747. return event.movementX;
  35748. }
  35749. var screenX = previousScreenX;
  35750. previousScreenX = event.screenX;
  35751. if (!isMovementXSet) {
  35752. isMovementXSet = true;
  35753. return 0;
  35754. }
  35755. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  35756. },
  35757. movementY: function (event) {
  35758. if ('movementY' in event) {
  35759. return event.movementY;
  35760. }
  35761. var screenY = previousScreenY;
  35762. previousScreenY = event.screenY;
  35763. if (!isMovementYSet) {
  35764. isMovementYSet = true;
  35765. return 0;
  35766. }
  35767. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  35768. }
  35769. });
  35770. /**
  35771. * @interface PointerEvent
  35772. * @see http://www.w3.org/TR/pointerevents/
  35773. */
  35774. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  35775. pointerId: null,
  35776. width: null,
  35777. height: null,
  35778. pressure: null,
  35779. tangentialPressure: null,
  35780. tiltX: null,
  35781. tiltY: null,
  35782. twist: null,
  35783. pointerType: null,
  35784. isPrimary: null
  35785. });
  35786. var eventTypes$2 = {
  35787. mouseEnter: {
  35788. registrationName: 'onMouseEnter',
  35789. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  35790. },
  35791. mouseLeave: {
  35792. registrationName: 'onMouseLeave',
  35793. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  35794. },
  35795. pointerEnter: {
  35796. registrationName: 'onPointerEnter',
  35797. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  35798. },
  35799. pointerLeave: {
  35800. registrationName: 'onPointerLeave',
  35801. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  35802. }
  35803. };
  35804. var EnterLeaveEventPlugin = {
  35805. eventTypes: eventTypes$2,
  35806. /**
  35807. * For almost every interaction we care about, there will be both a top-level
  35808. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  35809. * we do not extract duplicate events. However, moving the mouse into the
  35810. * browser from outside will not fire a `mouseout` event. In this case, we use
  35811. * the `mouseover` top-level event.
  35812. */
  35813. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  35814. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  35815. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  35816. if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0 && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  35817. // If this is an over event with a target, then we've already dispatched
  35818. // the event in the out event of the other target. If this is replayed,
  35819. // then it's because we couldn't dispatch against this target previously
  35820. // so we have to do it now instead.
  35821. return null;
  35822. }
  35823. if (!isOutEvent && !isOverEvent) {
  35824. // Must not be a mouse or pointer in or out - ignoring.
  35825. return null;
  35826. }
  35827. var win;
  35828. if (nativeEventTarget.window === nativeEventTarget) {
  35829. // `nativeEventTarget` is probably a window object.
  35830. win = nativeEventTarget;
  35831. } else {
  35832. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  35833. var doc = nativeEventTarget.ownerDocument;
  35834. if (doc) {
  35835. win = doc.defaultView || doc.parentWindow;
  35836. } else {
  35837. win = window;
  35838. }
  35839. }
  35840. var from;
  35841. var to;
  35842. if (isOutEvent) {
  35843. from = targetInst;
  35844. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  35845. to = related ? getClosestInstanceFromNode(related) : null;
  35846. if (to !== null) {
  35847. var nearestMounted = getNearestMountedFiber(to);
  35848. if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
  35849. to = null;
  35850. }
  35851. }
  35852. } else {
  35853. // Moving to a node from outside the window.
  35854. from = null;
  35855. to = targetInst;
  35856. }
  35857. if (from === to) {
  35858. // Nothing pertains to our managed components.
  35859. return null;
  35860. }
  35861. var eventInterface, leaveEventType, enterEventType, eventTypePrefix;
  35862. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  35863. eventInterface = SyntheticMouseEvent;
  35864. leaveEventType = eventTypes$2.mouseLeave;
  35865. enterEventType = eventTypes$2.mouseEnter;
  35866. eventTypePrefix = 'mouse';
  35867. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  35868. eventInterface = SyntheticPointerEvent;
  35869. leaveEventType = eventTypes$2.pointerLeave;
  35870. enterEventType = eventTypes$2.pointerEnter;
  35871. eventTypePrefix = 'pointer';
  35872. }
  35873. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  35874. var toNode = to == null ? win : getNodeFromInstance$1(to);
  35875. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  35876. leave.type = eventTypePrefix + 'leave';
  35877. leave.target = fromNode;
  35878. leave.relatedTarget = toNode;
  35879. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  35880. enter.type = eventTypePrefix + 'enter';
  35881. enter.target = toNode;
  35882. enter.relatedTarget = fromNode;
  35883. accumulateEnterLeaveDispatches(leave, enter, from, to); // If we are not processing the first ancestor, then we
  35884. // should not process the same nativeEvent again, as we
  35885. // will have already processed it in the first ancestor.
  35886. if ((eventSystemFlags & IS_FIRST_ANCESTOR) === 0) {
  35887. return [leave];
  35888. }
  35889. return [leave, enter];
  35890. }
  35891. };
  35892. /**
  35893. * inlined Object.is polyfill to avoid requiring consumers ship their own
  35894. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  35895. */
  35896. function is(x, y) {
  35897. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  35898. ;
  35899. }
  35900. var objectIs = typeof Object.is === 'function' ? Object.is : is;
  35901. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  35902. /**
  35903. * Performs equality by iterating through keys on an object and returning false
  35904. * when any key has values which are not strictly equal between the arguments.
  35905. * Returns true when the values of all keys are strictly equal.
  35906. */
  35907. function shallowEqual(objA, objB) {
  35908. if (objectIs(objA, objB)) {
  35909. return true;
  35910. }
  35911. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  35912. return false;
  35913. }
  35914. var keysA = Object.keys(objA);
  35915. var keysB = Object.keys(objB);
  35916. if (keysA.length !== keysB.length) {
  35917. return false;
  35918. } // Test for A's keys different from B.
  35919. for (var i = 0; i < keysA.length; i++) {
  35920. if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) {
  35921. return false;
  35922. }
  35923. }
  35924. return true;
  35925. }
  35926. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  35927. var eventTypes$3 = {
  35928. select: {
  35929. phasedRegistrationNames: {
  35930. bubbled: 'onSelect',
  35931. captured: 'onSelectCapture'
  35932. },
  35933. 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]
  35934. }
  35935. };
  35936. var activeElement$1 = null;
  35937. var activeElementInst$1 = null;
  35938. var lastSelection = null;
  35939. var mouseDown = false;
  35940. /**
  35941. * Get an object which is a unique representation of the current selection.
  35942. *
  35943. * The return value will not be consistent across nodes or browsers, but
  35944. * two identical selections on the same node will return identical objects.
  35945. *
  35946. * @param {DOMElement} node
  35947. * @return {object}
  35948. */
  35949. function getSelection$1(node) {
  35950. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  35951. return {
  35952. start: node.selectionStart,
  35953. end: node.selectionEnd
  35954. };
  35955. } else {
  35956. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  35957. var selection = win.getSelection();
  35958. return {
  35959. anchorNode: selection.anchorNode,
  35960. anchorOffset: selection.anchorOffset,
  35961. focusNode: selection.focusNode,
  35962. focusOffset: selection.focusOffset
  35963. };
  35964. }
  35965. }
  35966. /**
  35967. * Get document associated with the event target.
  35968. *
  35969. * @param {object} nativeEventTarget
  35970. * @return {Document}
  35971. */
  35972. function getEventTargetDocument(eventTarget) {
  35973. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  35974. }
  35975. /**
  35976. * Poll selection to see whether it's changed.
  35977. *
  35978. * @param {object} nativeEvent
  35979. * @param {object} nativeEventTarget
  35980. * @return {?SyntheticEvent}
  35981. */
  35982. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  35983. // Ensure we have the right element, and that the user is not dragging a
  35984. // selection (this matches native `select` event behavior). In HTML5, select
  35985. // fires only on input and textarea thus if there's no focused element we
  35986. // won't dispatch.
  35987. var doc = getEventTargetDocument(nativeEventTarget);
  35988. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  35989. return null;
  35990. } // Only fire when selection has actually changed.
  35991. var currentSelection = getSelection$1(activeElement$1);
  35992. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  35993. lastSelection = currentSelection;
  35994. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  35995. syntheticEvent.type = 'select';
  35996. syntheticEvent.target = activeElement$1;
  35997. accumulateTwoPhaseDispatches(syntheticEvent);
  35998. return syntheticEvent;
  35999. }
  36000. return null;
  36001. }
  36002. /**
  36003. * This plugin creates an `onSelect` event that normalizes select events
  36004. * across form elements.
  36005. *
  36006. * Supported elements are:
  36007. * - input (see `isTextInputElement`)
  36008. * - textarea
  36009. * - contentEditable
  36010. *
  36011. * This differs from native browser implementations in the following ways:
  36012. * - Fires on contentEditable fields as well as inputs.
  36013. * - Fires for collapsed selection.
  36014. * - Fires after user input.
  36015. */
  36016. var SelectEventPlugin = {
  36017. eventTypes: eventTypes$3,
  36018. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, container) {
  36019. var containerOrDoc = container || getEventTargetDocument(nativeEventTarget); // Track whether all listeners exists for this plugin. If none exist, we do
  36020. // not extract events. See #3639.
  36021. if (!containerOrDoc || !isListeningToAllDependencies('onSelect', containerOrDoc)) {
  36022. return null;
  36023. }
  36024. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  36025. switch (topLevelType) {
  36026. // Track the input node that has focus.
  36027. case TOP_FOCUS:
  36028. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  36029. activeElement$1 = targetNode;
  36030. activeElementInst$1 = targetInst;
  36031. lastSelection = null;
  36032. }
  36033. break;
  36034. case TOP_BLUR:
  36035. activeElement$1 = null;
  36036. activeElementInst$1 = null;
  36037. lastSelection = null;
  36038. break;
  36039. // Don't fire the event while the user is dragging. This matches the
  36040. // semantics of the native select event.
  36041. case TOP_MOUSE_DOWN:
  36042. mouseDown = true;
  36043. break;
  36044. case TOP_CONTEXT_MENU:
  36045. case TOP_MOUSE_UP:
  36046. case TOP_DRAG_END:
  36047. mouseDown = false;
  36048. return constructSelectEvent(nativeEvent, nativeEventTarget);
  36049. // Chrome and IE fire non-standard event when selection is changed (and
  36050. // sometimes when it hasn't). IE's event fires out of order with respect
  36051. // to key and input events on deletion, so we discard it.
  36052. //
  36053. // Firefox doesn't support selectionchange, so check selection status
  36054. // after each key entry. The selection changes after keydown and before
  36055. // keyup, but we check on keydown as well in the case of holding down a
  36056. // key, when multiple keydown events are fired but only one keyup is.
  36057. // This is also our approach for IE handling, for the reason above.
  36058. case TOP_SELECTION_CHANGE:
  36059. if (skipSelectionChangeEvent) {
  36060. break;
  36061. }
  36062. // falls through
  36063. case TOP_KEY_DOWN:
  36064. case TOP_KEY_UP:
  36065. return constructSelectEvent(nativeEvent, nativeEventTarget);
  36066. }
  36067. return null;
  36068. }
  36069. };
  36070. /**
  36071. * @interface Event
  36072. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  36073. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  36074. */
  36075. var SyntheticAnimationEvent = SyntheticEvent.extend({
  36076. animationName: null,
  36077. elapsedTime: null,
  36078. pseudoElement: null
  36079. });
  36080. /**
  36081. * @interface Event
  36082. * @see http://www.w3.org/TR/clipboard-apis/
  36083. */
  36084. var SyntheticClipboardEvent = SyntheticEvent.extend({
  36085. clipboardData: function (event) {
  36086. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  36087. }
  36088. });
  36089. /**
  36090. * @interface FocusEvent
  36091. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  36092. */
  36093. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  36094. relatedTarget: null
  36095. });
  36096. /**
  36097. * `charCode` represents the actual "character code" and is safe to use with
  36098. * `String.fromCharCode`. As such, only keys that correspond to printable
  36099. * characters produce a valid `charCode`, the only exception to this is Enter.
  36100. * The Tab-key is considered non-printable and does not have a `charCode`,
  36101. * presumably because it does not produce a tab-character in browsers.
  36102. *
  36103. * @param {object} nativeEvent Native browser event.
  36104. * @return {number} Normalized `charCode` property.
  36105. */
  36106. function getEventCharCode(nativeEvent) {
  36107. var charCode;
  36108. var keyCode = nativeEvent.keyCode;
  36109. if ('charCode' in nativeEvent) {
  36110. charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  36111. if (charCode === 0 && keyCode === 13) {
  36112. charCode = 13;
  36113. }
  36114. } else {
  36115. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  36116. charCode = keyCode;
  36117. } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  36118. // report Enter as charCode 10 when ctrl is pressed.
  36119. if (charCode === 10) {
  36120. charCode = 13;
  36121. } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  36122. // Must not discard the (non-)printable Enter-key.
  36123. if (charCode >= 32 || charCode === 13) {
  36124. return charCode;
  36125. }
  36126. return 0;
  36127. }
  36128. /**
  36129. * Normalization of deprecated HTML5 `key` values
  36130. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  36131. */
  36132. var normalizeKey = {
  36133. Esc: 'Escape',
  36134. Spacebar: ' ',
  36135. Left: 'ArrowLeft',
  36136. Up: 'ArrowUp',
  36137. Right: 'ArrowRight',
  36138. Down: 'ArrowDown',
  36139. Del: 'Delete',
  36140. Win: 'OS',
  36141. Menu: 'ContextMenu',
  36142. Apps: 'ContextMenu',
  36143. Scroll: 'ScrollLock',
  36144. MozPrintableKey: 'Unidentified'
  36145. };
  36146. /**
  36147. * Translation from legacy `keyCode` to HTML5 `key`
  36148. * Only special keys supported, all others depend on keyboard layout or browser
  36149. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  36150. */
  36151. var translateToKey = {
  36152. '8': 'Backspace',
  36153. '9': 'Tab',
  36154. '12': 'Clear',
  36155. '13': 'Enter',
  36156. '16': 'Shift',
  36157. '17': 'Control',
  36158. '18': 'Alt',
  36159. '19': 'Pause',
  36160. '20': 'CapsLock',
  36161. '27': 'Escape',
  36162. '32': ' ',
  36163. '33': 'PageUp',
  36164. '34': 'PageDown',
  36165. '35': 'End',
  36166. '36': 'Home',
  36167. '37': 'ArrowLeft',
  36168. '38': 'ArrowUp',
  36169. '39': 'ArrowRight',
  36170. '40': 'ArrowDown',
  36171. '45': 'Insert',
  36172. '46': 'Delete',
  36173. '112': 'F1',
  36174. '113': 'F2',
  36175. '114': 'F3',
  36176. '115': 'F4',
  36177. '116': 'F5',
  36178. '117': 'F6',
  36179. '118': 'F7',
  36180. '119': 'F8',
  36181. '120': 'F9',
  36182. '121': 'F10',
  36183. '122': 'F11',
  36184. '123': 'F12',
  36185. '144': 'NumLock',
  36186. '145': 'ScrollLock',
  36187. '224': 'Meta'
  36188. };
  36189. /**
  36190. * @param {object} nativeEvent Native browser event.
  36191. * @return {string} Normalized `key` property.
  36192. */
  36193. function getEventKey(nativeEvent) {
  36194. if (nativeEvent.key) {
  36195. // Normalize inconsistent values reported by browsers due to
  36196. // implementations of a working draft specification.
  36197. // FireFox implements `key` but returns `MozPrintableKey` for all
  36198. // printable characters (normalized to `Unidentified`), ignore it.
  36199. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  36200. if (key !== 'Unidentified') {
  36201. return key;
  36202. }
  36203. } // Browser does not implement `key`, polyfill as much of it as we can.
  36204. if (nativeEvent.type === 'keypress') {
  36205. var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can
  36206. // thus be captured by `keypress`, no other non-printable key should.
  36207. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  36208. }
  36209. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  36210. // While user keyboard layout determines the actual meaning of each
  36211. // `keyCode` value, almost all function keys have a universal value.
  36212. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  36213. }
  36214. return '';
  36215. }
  36216. /**
  36217. * @interface KeyboardEvent
  36218. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  36219. */
  36220. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  36221. key: getEventKey,
  36222. location: null,
  36223. ctrlKey: null,
  36224. shiftKey: null,
  36225. altKey: null,
  36226. metaKey: null,
  36227. repeat: null,
  36228. locale: null,
  36229. getModifierState: getEventModifierState,
  36230. // Legacy Interface
  36231. charCode: function (event) {
  36232. // `charCode` is the result of a KeyPress event and represents the value of
  36233. // the actual printable character.
  36234. // KeyPress is deprecated, but its replacement is not yet final and not
  36235. // implemented in any major browser. Only KeyPress has charCode.
  36236. if (event.type === 'keypress') {
  36237. return getEventCharCode(event);
  36238. }
  36239. return 0;
  36240. },
  36241. keyCode: function (event) {
  36242. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  36243. // physical keyboard key.
  36244. // The actual meaning of the value depends on the users' keyboard layout
  36245. // which cannot be detected. Assuming that it is a US keyboard layout
  36246. // provides a surprisingly accurate mapping for US and European users.
  36247. // Due to this, it is left to the user to implement at this time.
  36248. if (event.type === 'keydown' || event.type === 'keyup') {
  36249. return event.keyCode;
  36250. }
  36251. return 0;
  36252. },
  36253. which: function (event) {
  36254. // `which` is an alias for either `keyCode` or `charCode` depending on the
  36255. // type of the event.
  36256. if (event.type === 'keypress') {
  36257. return getEventCharCode(event);
  36258. }
  36259. if (event.type === 'keydown' || event.type === 'keyup') {
  36260. return event.keyCode;
  36261. }
  36262. return 0;
  36263. }
  36264. });
  36265. /**
  36266. * @interface DragEvent
  36267. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  36268. */
  36269. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  36270. dataTransfer: null
  36271. });
  36272. /**
  36273. * @interface TouchEvent
  36274. * @see http://www.w3.org/TR/touch-events/
  36275. */
  36276. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  36277. touches: null,
  36278. targetTouches: null,
  36279. changedTouches: null,
  36280. altKey: null,
  36281. metaKey: null,
  36282. ctrlKey: null,
  36283. shiftKey: null,
  36284. getModifierState: getEventModifierState
  36285. });
  36286. /**
  36287. * @interface Event
  36288. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  36289. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  36290. */
  36291. var SyntheticTransitionEvent = SyntheticEvent.extend({
  36292. propertyName: null,
  36293. elapsedTime: null,
  36294. pseudoElement: null
  36295. });
  36296. /**
  36297. * @interface WheelEvent
  36298. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  36299. */
  36300. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  36301. deltaX: function (event) {
  36302. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  36303. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  36304. },
  36305. deltaY: function (event) {
  36306. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  36307. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  36308. 'wheelDelta' in event ? -event.wheelDelta : 0;
  36309. },
  36310. deltaZ: null,
  36311. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  36312. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  36313. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  36314. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  36315. deltaMode: null
  36316. });
  36317. 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];
  36318. var SimpleEventPlugin = {
  36319. // simpleEventPluginEventTypes gets populated from
  36320. // the DOMEventProperties module.
  36321. eventTypes: simpleEventPluginEventTypes,
  36322. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  36323. var dispatchConfig = topLevelEventsToDispatchConfig.get(topLevelType);
  36324. if (!dispatchConfig) {
  36325. return null;
  36326. }
  36327. var EventConstructor;
  36328. switch (topLevelType) {
  36329. case TOP_KEY_PRESS:
  36330. // Firefox creates a keypress event for function keys too. This removes
  36331. // the unwanted keypress events. Enter is however both printable and
  36332. // non-printable. One would expect Tab to be as well (but it isn't).
  36333. if (getEventCharCode(nativeEvent) === 0) {
  36334. return null;
  36335. }
  36336. /* falls through */
  36337. case TOP_KEY_DOWN:
  36338. case TOP_KEY_UP:
  36339. EventConstructor = SyntheticKeyboardEvent;
  36340. break;
  36341. case TOP_BLUR:
  36342. case TOP_FOCUS:
  36343. EventConstructor = SyntheticFocusEvent;
  36344. break;
  36345. case TOP_CLICK:
  36346. // Firefox creates a click event on right mouse clicks. This removes the
  36347. // unwanted click events.
  36348. if (nativeEvent.button === 2) {
  36349. return null;
  36350. }
  36351. /* falls through */
  36352. case TOP_AUX_CLICK:
  36353. case TOP_DOUBLE_CLICK:
  36354. case TOP_MOUSE_DOWN:
  36355. case TOP_MOUSE_MOVE:
  36356. case TOP_MOUSE_UP: // TODO: Disabled elements should not respond to mouse events
  36357. /* falls through */
  36358. case TOP_MOUSE_OUT:
  36359. case TOP_MOUSE_OVER:
  36360. case TOP_CONTEXT_MENU:
  36361. EventConstructor = SyntheticMouseEvent;
  36362. break;
  36363. case TOP_DRAG:
  36364. case TOP_DRAG_END:
  36365. case TOP_DRAG_ENTER:
  36366. case TOP_DRAG_EXIT:
  36367. case TOP_DRAG_LEAVE:
  36368. case TOP_DRAG_OVER:
  36369. case TOP_DRAG_START:
  36370. case TOP_DROP:
  36371. EventConstructor = SyntheticDragEvent;
  36372. break;
  36373. case TOP_TOUCH_CANCEL:
  36374. case TOP_TOUCH_END:
  36375. case TOP_TOUCH_MOVE:
  36376. case TOP_TOUCH_START:
  36377. EventConstructor = SyntheticTouchEvent;
  36378. break;
  36379. case TOP_ANIMATION_END:
  36380. case TOP_ANIMATION_ITERATION:
  36381. case TOP_ANIMATION_START:
  36382. EventConstructor = SyntheticAnimationEvent;
  36383. break;
  36384. case TOP_TRANSITION_END:
  36385. EventConstructor = SyntheticTransitionEvent;
  36386. break;
  36387. case TOP_SCROLL:
  36388. EventConstructor = SyntheticUIEvent;
  36389. break;
  36390. case TOP_WHEEL:
  36391. EventConstructor = SyntheticWheelEvent;
  36392. break;
  36393. case TOP_COPY:
  36394. case TOP_CUT:
  36395. case TOP_PASTE:
  36396. EventConstructor = SyntheticClipboardEvent;
  36397. break;
  36398. case TOP_GOT_POINTER_CAPTURE:
  36399. case TOP_LOST_POINTER_CAPTURE:
  36400. case TOP_POINTER_CANCEL:
  36401. case TOP_POINTER_DOWN:
  36402. case TOP_POINTER_MOVE:
  36403. case TOP_POINTER_OUT:
  36404. case TOP_POINTER_OVER:
  36405. case TOP_POINTER_UP:
  36406. EventConstructor = SyntheticPointerEvent;
  36407. break;
  36408. default:
  36409. {
  36410. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  36411. error('SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  36412. }
  36413. } // HTML Events
  36414. // @see http://www.w3.org/TR/html5/index.html#events-0
  36415. EventConstructor = SyntheticEvent;
  36416. break;
  36417. }
  36418. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  36419. accumulateTwoPhaseDispatches(event);
  36420. return event;
  36421. }
  36422. };
  36423. /**
  36424. * Specifies a deterministic ordering of `EventPlugin`s. A convenient way to
  36425. * reason about plugins, without having to package every one of them. This
  36426. * is better than having plugins be ordered in the same order that they
  36427. * are injected because that ordering would be influenced by the packaging order.
  36428. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  36429. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  36430. */
  36431. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  36432. /**
  36433. * Inject modules for resolving DOM hierarchy and plugin ordering.
  36434. */
  36435. injectEventPluginOrder(DOMEventPluginOrder);
  36436. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  36437. /**
  36438. * Some important event plugins included by default (without having to require
  36439. * them).
  36440. */
  36441. injectEventPluginsByName({
  36442. SimpleEventPlugin: SimpleEventPlugin,
  36443. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  36444. ChangeEventPlugin: ChangeEventPlugin,
  36445. SelectEventPlugin: SelectEventPlugin,
  36446. BeforeInputEventPlugin: BeforeInputEventPlugin
  36447. });
  36448. // Prefix measurements so that it's possible to filter them.
  36449. // Longer prefixes are hard to read in DevTools.
  36450. var reactEmoji = "\u269B";
  36451. var warningEmoji = "\u26D4";
  36452. 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.
  36453. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  36454. var currentFiber = null; // If we're in the middle of user code, which fiber and method is it?
  36455. // Reusing `currentFiber` would be confusing for this because user code fiber
  36456. // can change during commit phase too, but we don't need to unwind it (since
  36457. // lifecycles in the commit phase don't resemble a tree).
  36458. var currentPhase = null;
  36459. var currentPhaseFiber = null; // Did lifecycle hook schedule an update? This is often a performance problem,
  36460. // so we will keep track of it, and include it in the report.
  36461. // Track commits caused by cascading updates.
  36462. var isCommitting = false;
  36463. var hasScheduledUpdateInCurrentCommit = false;
  36464. var hasScheduledUpdateInCurrentPhase = false;
  36465. var commitCountInCurrentWorkLoop = 0;
  36466. var effectCountInCurrentCommit = 0;
  36467. // to avoid stretch the commit phase with measurement overhead.
  36468. var labelsInCurrentCommit = new Set();
  36469. var formatMarkName = function (markName) {
  36470. return reactEmoji + " " + markName;
  36471. };
  36472. var formatLabel = function (label, warning) {
  36473. var prefix = warning ? warningEmoji + " " : reactEmoji + " ";
  36474. var suffix = warning ? " Warning: " + warning : '';
  36475. return "" + prefix + label + suffix;
  36476. };
  36477. var beginMark = function (markName) {
  36478. performance.mark(formatMarkName(markName));
  36479. };
  36480. var clearMark = function (markName) {
  36481. performance.clearMarks(formatMarkName(markName));
  36482. };
  36483. var endMark = function (label, markName, warning) {
  36484. var formattedMarkName = formatMarkName(markName);
  36485. var formattedLabel = formatLabel(label, warning);
  36486. try {
  36487. performance.measure(formattedLabel, formattedMarkName);
  36488. } catch (err) {} // If previous mark was missing for some reason, this will throw.
  36489. // This could only happen if React crashed in an unexpected place earlier.
  36490. // Don't pile on with more errors.
  36491. // Clear marks immediately to avoid growing buffer.
  36492. performance.clearMarks(formattedMarkName);
  36493. performance.clearMeasures(formattedLabel);
  36494. };
  36495. var getFiberMarkName = function (label, debugID) {
  36496. return label + " (#" + debugID + ")";
  36497. };
  36498. var getFiberLabel = function (componentName, isMounted, phase) {
  36499. if (phase === null) {
  36500. // These are composite component total time measurements.
  36501. return componentName + " [" + (isMounted ? 'update' : 'mount') + "]";
  36502. } else {
  36503. // Composite component methods.
  36504. return componentName + "." + phase;
  36505. }
  36506. };
  36507. var beginFiberMark = function (fiber, phase) {
  36508. var componentName = getComponentName(fiber.type) || 'Unknown';
  36509. var debugID = fiber._debugID;
  36510. var isMounted = fiber.alternate !== null;
  36511. var label = getFiberLabel(componentName, isMounted, phase);
  36512. if (isCommitting && labelsInCurrentCommit.has(label)) {
  36513. // During the commit phase, we don't show duplicate labels because
  36514. // there is a fixed overhead for every measurement, and we don't
  36515. // want to stretch the commit phase beyond necessary.
  36516. return false;
  36517. }
  36518. labelsInCurrentCommit.add(label);
  36519. var markName = getFiberMarkName(label, debugID);
  36520. beginMark(markName);
  36521. return true;
  36522. };
  36523. var clearFiberMark = function (fiber, phase) {
  36524. var componentName = getComponentName(fiber.type) || 'Unknown';
  36525. var debugID = fiber._debugID;
  36526. var isMounted = fiber.alternate !== null;
  36527. var label = getFiberLabel(componentName, isMounted, phase);
  36528. var markName = getFiberMarkName(label, debugID);
  36529. clearMark(markName);
  36530. };
  36531. var endFiberMark = function (fiber, phase, warning) {
  36532. var componentName = getComponentName(fiber.type) || 'Unknown';
  36533. var debugID = fiber._debugID;
  36534. var isMounted = fiber.alternate !== null;
  36535. var label = getFiberLabel(componentName, isMounted, phase);
  36536. var markName = getFiberMarkName(label, debugID);
  36537. endMark(label, markName, warning);
  36538. };
  36539. var shouldIgnoreFiber = function (fiber) {
  36540. // Host components should be skipped in the timeline.
  36541. // We could check typeof fiber.type, but does this work with RN?
  36542. switch (fiber.tag) {
  36543. case HostRoot:
  36544. case HostComponent:
  36545. case HostText:
  36546. case HostPortal:
  36547. case Fragment:
  36548. case ContextProvider:
  36549. case ContextConsumer:
  36550. case Mode:
  36551. return true;
  36552. default:
  36553. return false;
  36554. }
  36555. };
  36556. var clearPendingPhaseMeasurement = function () {
  36557. if (currentPhase !== null && currentPhaseFiber !== null) {
  36558. clearFiberMark(currentPhaseFiber, currentPhase);
  36559. }
  36560. currentPhaseFiber = null;
  36561. currentPhase = null;
  36562. hasScheduledUpdateInCurrentPhase = false;
  36563. };
  36564. var pauseTimers = function () {
  36565. // Stops all currently active measurements so that they can be resumed
  36566. // if we continue in a later deferred loop from the same unit of work.
  36567. var fiber = currentFiber;
  36568. while (fiber) {
  36569. if (fiber._debugIsCurrentlyTiming) {
  36570. endFiberMark(fiber, null, null);
  36571. }
  36572. fiber = fiber.return;
  36573. }
  36574. };
  36575. var resumeTimersRecursively = function (fiber) {
  36576. if (fiber.return !== null) {
  36577. resumeTimersRecursively(fiber.return);
  36578. }
  36579. if (fiber._debugIsCurrentlyTiming) {
  36580. beginFiberMark(fiber, null);
  36581. }
  36582. };
  36583. var resumeTimers = function () {
  36584. // Resumes all measurements that were active during the last deferred loop.
  36585. if (currentFiber !== null) {
  36586. resumeTimersRecursively(currentFiber);
  36587. }
  36588. };
  36589. function recordEffect() {
  36590. {
  36591. effectCountInCurrentCommit++;
  36592. }
  36593. }
  36594. function recordScheduleUpdate() {
  36595. {
  36596. if (isCommitting) {
  36597. hasScheduledUpdateInCurrentCommit = true;
  36598. }
  36599. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  36600. hasScheduledUpdateInCurrentPhase = true;
  36601. }
  36602. }
  36603. }
  36604. function startWorkTimer(fiber) {
  36605. {
  36606. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  36607. return;
  36608. } // If we pause, this is the fiber to unwind from.
  36609. currentFiber = fiber;
  36610. if (!beginFiberMark(fiber, null)) {
  36611. return;
  36612. }
  36613. fiber._debugIsCurrentlyTiming = true;
  36614. }
  36615. }
  36616. function cancelWorkTimer(fiber) {
  36617. {
  36618. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  36619. return;
  36620. } // Remember we shouldn't complete measurement for this fiber.
  36621. // Otherwise flamechart will be deep even for small updates.
  36622. fiber._debugIsCurrentlyTiming = false;
  36623. clearFiberMark(fiber, null);
  36624. }
  36625. }
  36626. function stopWorkTimer(fiber) {
  36627. {
  36628. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  36629. return;
  36630. } // If we pause, its parent is the fiber to unwind from.
  36631. currentFiber = fiber.return;
  36632. if (!fiber._debugIsCurrentlyTiming) {
  36633. return;
  36634. }
  36635. fiber._debugIsCurrentlyTiming = false;
  36636. endFiberMark(fiber, null, null);
  36637. }
  36638. }
  36639. function stopFailedWorkTimer(fiber) {
  36640. {
  36641. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  36642. return;
  36643. } // If we pause, its parent is the fiber to unwind from.
  36644. currentFiber = fiber.return;
  36645. if (!fiber._debugIsCurrentlyTiming) {
  36646. return;
  36647. }
  36648. fiber._debugIsCurrentlyTiming = false;
  36649. var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  36650. endFiberMark(fiber, null, warning);
  36651. }
  36652. }
  36653. function startPhaseTimer(fiber, phase) {
  36654. {
  36655. if (!supportsUserTiming) {
  36656. return;
  36657. }
  36658. clearPendingPhaseMeasurement();
  36659. if (!beginFiberMark(fiber, phase)) {
  36660. return;
  36661. }
  36662. currentPhaseFiber = fiber;
  36663. currentPhase = phase;
  36664. }
  36665. }
  36666. function stopPhaseTimer() {
  36667. {
  36668. if (!supportsUserTiming) {
  36669. return;
  36670. }
  36671. if (currentPhase !== null && currentPhaseFiber !== null) {
  36672. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  36673. endFiberMark(currentPhaseFiber, currentPhase, warning);
  36674. }
  36675. currentPhase = null;
  36676. currentPhaseFiber = null;
  36677. }
  36678. }
  36679. function startWorkLoopTimer(nextUnitOfWork) {
  36680. {
  36681. currentFiber = nextUnitOfWork;
  36682. if (!supportsUserTiming) {
  36683. return;
  36684. }
  36685. commitCountInCurrentWorkLoop = 0; // This is top level call.
  36686. // Any other measurements are performed within.
  36687. beginMark('(React Tree Reconciliation)'); // Resume any measurements that were in progress during the last loop.
  36688. resumeTimers();
  36689. }
  36690. }
  36691. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  36692. {
  36693. if (!supportsUserTiming) {
  36694. return;
  36695. }
  36696. var warning = null;
  36697. if (interruptedBy !== null) {
  36698. if (interruptedBy.tag === HostRoot) {
  36699. warning = 'A top-level update interrupted the previous render';
  36700. } else {
  36701. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  36702. warning = "An update to " + componentName + " interrupted the previous render";
  36703. }
  36704. } else if (commitCountInCurrentWorkLoop > 1) {
  36705. warning = 'There were cascading updates';
  36706. }
  36707. commitCountInCurrentWorkLoop = 0;
  36708. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)'; // Pause any measurements until the next loop.
  36709. pauseTimers();
  36710. endMark(label, '(React Tree Reconciliation)', warning);
  36711. }
  36712. }
  36713. function startCommitTimer() {
  36714. {
  36715. if (!supportsUserTiming) {
  36716. return;
  36717. }
  36718. isCommitting = true;
  36719. hasScheduledUpdateInCurrentCommit = false;
  36720. labelsInCurrentCommit.clear();
  36721. beginMark('(Committing Changes)');
  36722. }
  36723. }
  36724. function stopCommitTimer() {
  36725. {
  36726. if (!supportsUserTiming) {
  36727. return;
  36728. }
  36729. var warning = null;
  36730. if (hasScheduledUpdateInCurrentCommit) {
  36731. warning = 'Lifecycle hook scheduled a cascading update';
  36732. } else if (commitCountInCurrentWorkLoop > 0) {
  36733. warning = 'Caused by a cascading update in earlier commit';
  36734. }
  36735. hasScheduledUpdateInCurrentCommit = false;
  36736. commitCountInCurrentWorkLoop++;
  36737. isCommitting = false;
  36738. labelsInCurrentCommit.clear();
  36739. endMark('(Committing Changes)', '(Committing Changes)', warning);
  36740. }
  36741. }
  36742. function startCommitSnapshotEffectsTimer() {
  36743. {
  36744. if (!supportsUserTiming) {
  36745. return;
  36746. }
  36747. effectCountInCurrentCommit = 0;
  36748. beginMark('(Committing Snapshot Effects)');
  36749. }
  36750. }
  36751. function stopCommitSnapshotEffectsTimer() {
  36752. {
  36753. if (!supportsUserTiming) {
  36754. return;
  36755. }
  36756. var count = effectCountInCurrentCommit;
  36757. effectCountInCurrentCommit = 0;
  36758. endMark("(Committing Snapshot Effects: " + count + " Total)", '(Committing Snapshot Effects)', null);
  36759. }
  36760. }
  36761. function startCommitHostEffectsTimer() {
  36762. {
  36763. if (!supportsUserTiming) {
  36764. return;
  36765. }
  36766. effectCountInCurrentCommit = 0;
  36767. beginMark('(Committing Host Effects)');
  36768. }
  36769. }
  36770. function stopCommitHostEffectsTimer() {
  36771. {
  36772. if (!supportsUserTiming) {
  36773. return;
  36774. }
  36775. var count = effectCountInCurrentCommit;
  36776. effectCountInCurrentCommit = 0;
  36777. endMark("(Committing Host Effects: " + count + " Total)", '(Committing Host Effects)', null);
  36778. }
  36779. }
  36780. function startCommitLifeCyclesTimer() {
  36781. {
  36782. if (!supportsUserTiming) {
  36783. return;
  36784. }
  36785. effectCountInCurrentCommit = 0;
  36786. beginMark('(Calling Lifecycle Methods)');
  36787. }
  36788. }
  36789. function stopCommitLifeCyclesTimer() {
  36790. {
  36791. if (!supportsUserTiming) {
  36792. return;
  36793. }
  36794. var count = effectCountInCurrentCommit;
  36795. effectCountInCurrentCommit = 0;
  36796. endMark("(Calling Lifecycle Methods: " + count + " Total)", '(Calling Lifecycle Methods)', null);
  36797. }
  36798. }
  36799. var valueStack = [];
  36800. var fiberStack;
  36801. {
  36802. fiberStack = [];
  36803. }
  36804. var index = -1;
  36805. function createCursor(defaultValue) {
  36806. return {
  36807. current: defaultValue
  36808. };
  36809. }
  36810. function pop(cursor, fiber) {
  36811. if (index < 0) {
  36812. {
  36813. error('Unexpected pop.');
  36814. }
  36815. return;
  36816. }
  36817. {
  36818. if (fiber !== fiberStack[index]) {
  36819. error('Unexpected Fiber popped.');
  36820. }
  36821. }
  36822. cursor.current = valueStack[index];
  36823. valueStack[index] = null;
  36824. {
  36825. fiberStack[index] = null;
  36826. }
  36827. index--;
  36828. }
  36829. function push(cursor, value, fiber) {
  36830. index++;
  36831. valueStack[index] = cursor.current;
  36832. {
  36833. fiberStack[index] = fiber;
  36834. }
  36835. cursor.current = value;
  36836. }
  36837. var warnedAboutMissingGetChildContext;
  36838. {
  36839. warnedAboutMissingGetChildContext = {};
  36840. }
  36841. var emptyContextObject = {};
  36842. {
  36843. Object.freeze(emptyContextObject);
  36844. } // A cursor to the current merged context object on the stack.
  36845. var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.
  36846. var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
  36847. // We use this to get access to the parent context after we have already
  36848. // pushed the next context provider, and now need to merge their contexts.
  36849. var previousContext = emptyContextObject;
  36850. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  36851. {
  36852. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  36853. // If the fiber is a context provider itself, when we read its context
  36854. // we may have already pushed its own child context on the stack. A context
  36855. // provider should not "see" its own child context. Therefore we read the
  36856. // previous (parent) context instead for a context provider.
  36857. return previousContext;
  36858. }
  36859. return contextStackCursor.current;
  36860. }
  36861. }
  36862. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  36863. {
  36864. var instance = workInProgress.stateNode;
  36865. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  36866. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  36867. }
  36868. }
  36869. function getMaskedContext(workInProgress, unmaskedContext) {
  36870. {
  36871. var type = workInProgress.type;
  36872. var contextTypes = type.contextTypes;
  36873. if (!contextTypes) {
  36874. return emptyContextObject;
  36875. } // Avoid recreating masked context unless unmasked context has changed.
  36876. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  36877. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  36878. var instance = workInProgress.stateNode;
  36879. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  36880. return instance.__reactInternalMemoizedMaskedChildContext;
  36881. }
  36882. var context = {};
  36883. for (var key in contextTypes) {
  36884. context[key] = unmaskedContext[key];
  36885. }
  36886. {
  36887. var name = getComponentName(type) || 'Unknown';
  36888. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  36889. } // Cache unmasked context so we can avoid recreating masked context unless necessary.
  36890. // Context is created before the class component is instantiated so check for instance.
  36891. if (instance) {
  36892. cacheContext(workInProgress, unmaskedContext, context);
  36893. }
  36894. return context;
  36895. }
  36896. }
  36897. function hasContextChanged() {
  36898. {
  36899. return didPerformWorkStackCursor.current;
  36900. }
  36901. }
  36902. function isContextProvider(type) {
  36903. {
  36904. var childContextTypes = type.childContextTypes;
  36905. return childContextTypes !== null && childContextTypes !== undefined;
  36906. }
  36907. }
  36908. function popContext(fiber) {
  36909. {
  36910. pop(didPerformWorkStackCursor, fiber);
  36911. pop(contextStackCursor, fiber);
  36912. }
  36913. }
  36914. function popTopLevelContextObject(fiber) {
  36915. {
  36916. pop(didPerformWorkStackCursor, fiber);
  36917. pop(contextStackCursor, fiber);
  36918. }
  36919. }
  36920. function pushTopLevelContextObject(fiber, context, didChange) {
  36921. {
  36922. if (!(contextStackCursor.current === emptyContextObject)) {
  36923. {
  36924. throw Error( "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue." );
  36925. }
  36926. }
  36927. push(contextStackCursor, context, fiber);
  36928. push(didPerformWorkStackCursor, didChange, fiber);
  36929. }
  36930. }
  36931. function processChildContext(fiber, type, parentContext) {
  36932. {
  36933. var instance = fiber.stateNode;
  36934. var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  36935. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  36936. if (typeof instance.getChildContext !== 'function') {
  36937. {
  36938. var componentName = getComponentName(type) || 'Unknown';
  36939. if (!warnedAboutMissingGetChildContext[componentName]) {
  36940. warnedAboutMissingGetChildContext[componentName] = true;
  36941. 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);
  36942. }
  36943. }
  36944. return parentContext;
  36945. }
  36946. var childContext;
  36947. startPhaseTimer(fiber, 'getChildContext');
  36948. childContext = instance.getChildContext();
  36949. stopPhaseTimer();
  36950. for (var contextKey in childContext) {
  36951. if (!(contextKey in childContextTypes)) {
  36952. {
  36953. throw Error( (getComponentName(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes." );
  36954. }
  36955. }
  36956. }
  36957. {
  36958. var name = getComponentName(type) || 'Unknown';
  36959. checkPropTypes(childContextTypes, childContext, 'child context', name, // In practice, there is one case in which we won't get a stack. It's when
  36960. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  36961. // context from the parent component instance. The stack will be missing
  36962. // because it's outside of the reconciliation, and so the pointer has not
  36963. // been set. This is rare and doesn't matter. We'll also remove that API.
  36964. getCurrentFiberStackInDev);
  36965. }
  36966. return _assign({}, parentContext, {}, childContext);
  36967. }
  36968. }
  36969. function pushContextProvider(workInProgress) {
  36970. {
  36971. var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
  36972. // If the instance does not exist yet, we will push null at first,
  36973. // and replace it on the stack later when invalidating the context.
  36974. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
  36975. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  36976. previousContext = contextStackCursor.current;
  36977. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  36978. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  36979. return true;
  36980. }
  36981. }
  36982. function invalidateContextProvider(workInProgress, type, didChange) {
  36983. {
  36984. var instance = workInProgress.stateNode;
  36985. if (!instance) {
  36986. {
  36987. throw Error( "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." );
  36988. }
  36989. }
  36990. if (didChange) {
  36991. // Merge parent and own context.
  36992. // Skip this if we're not updating due to sCU.
  36993. // This avoids unnecessarily recomputing memoized values.
  36994. var mergedContext = processChildContext(workInProgress, type, previousContext);
  36995. instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
  36996. // It is important to unwind the context in the reverse order.
  36997. pop(didPerformWorkStackCursor, workInProgress);
  36998. pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.
  36999. push(contextStackCursor, mergedContext, workInProgress);
  37000. push(didPerformWorkStackCursor, didChange, workInProgress);
  37001. } else {
  37002. pop(didPerformWorkStackCursor, workInProgress);
  37003. push(didPerformWorkStackCursor, didChange, workInProgress);
  37004. }
  37005. }
  37006. }
  37007. function findCurrentUnmaskedContext(fiber) {
  37008. {
  37009. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  37010. // makes sense elsewhere
  37011. if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
  37012. {
  37013. 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." );
  37014. }
  37015. }
  37016. var node = fiber;
  37017. do {
  37018. switch (node.tag) {
  37019. case HostRoot:
  37020. return node.stateNode.context;
  37021. case ClassComponent:
  37022. {
  37023. var Component = node.type;
  37024. if (isContextProvider(Component)) {
  37025. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  37026. }
  37027. break;
  37028. }
  37029. }
  37030. node = node.return;
  37031. } while (node !== null);
  37032. {
  37033. {
  37034. throw Error( "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue." );
  37035. }
  37036. }
  37037. }
  37038. }
  37039. var LegacyRoot = 0;
  37040. var BlockingRoot = 1;
  37041. var ConcurrentRoot = 2;
  37042. var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority,
  37043. Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback,
  37044. Scheduler_cancelCallback = Scheduler.unstable_cancelCallback,
  37045. Scheduler_shouldYield = Scheduler.unstable_shouldYield,
  37046. Scheduler_requestPaint = Scheduler.unstable_requestPaint,
  37047. Scheduler_now = Scheduler.unstable_now,
  37048. Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,
  37049. Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority,
  37050. Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
  37051. Scheduler_NormalPriority = Scheduler.unstable_NormalPriority,
  37052. Scheduler_LowPriority = Scheduler.unstable_LowPriority,
  37053. Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;
  37054. {
  37055. // Provide explicit error message when production+profiling bundle of e.g.
  37056. // react-dom is used with production (non-profiling) bundle of
  37057. // scheduler/tracing
  37058. if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
  37059. {
  37060. 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" );
  37061. }
  37062. }
  37063. }
  37064. var fakeCallbackNode = {}; // Except for NoPriority, these correspond to Scheduler priorities. We use
  37065. // ascending numbers so we can compare them like numbers. They start at 90 to
  37066. // avoid clashing with Scheduler's priorities.
  37067. var ImmediatePriority = 99;
  37068. var UserBlockingPriority$1 = 98;
  37069. var NormalPriority = 97;
  37070. var LowPriority = 96;
  37071. var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only.
  37072. var NoPriority = 90;
  37073. var shouldYield = Scheduler_shouldYield;
  37074. var requestPaint = // Fall back gracefully if we're running an older version of Scheduler.
  37075. Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
  37076. var syncQueue = null;
  37077. var immediateQueueCallbackNode = null;
  37078. var isFlushingSyncQueue = false;
  37079. var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
  37080. // This will be the case for modern browsers that support `performance.now`. In
  37081. // older browsers, Scheduler falls back to `Date.now`, which returns a Unix
  37082. // timestamp. In that case, subtract the module initialization time to simulate
  37083. // the behavior of performance.now and keep our times small enough to fit
  37084. // within 32 bits.
  37085. // TODO: Consider lifting this into Scheduler.
  37086. var now = initialTimeMs < 10000 ? Scheduler_now : function () {
  37087. return Scheduler_now() - initialTimeMs;
  37088. };
  37089. function getCurrentPriorityLevel() {
  37090. switch (Scheduler_getCurrentPriorityLevel()) {
  37091. case Scheduler_ImmediatePriority:
  37092. return ImmediatePriority;
  37093. case Scheduler_UserBlockingPriority:
  37094. return UserBlockingPriority$1;
  37095. case Scheduler_NormalPriority:
  37096. return NormalPriority;
  37097. case Scheduler_LowPriority:
  37098. return LowPriority;
  37099. case Scheduler_IdlePriority:
  37100. return IdlePriority;
  37101. default:
  37102. {
  37103. {
  37104. throw Error( "Unknown priority level." );
  37105. }
  37106. }
  37107. }
  37108. }
  37109. function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  37110. switch (reactPriorityLevel) {
  37111. case ImmediatePriority:
  37112. return Scheduler_ImmediatePriority;
  37113. case UserBlockingPriority$1:
  37114. return Scheduler_UserBlockingPriority;
  37115. case NormalPriority:
  37116. return Scheduler_NormalPriority;
  37117. case LowPriority:
  37118. return Scheduler_LowPriority;
  37119. case IdlePriority:
  37120. return Scheduler_IdlePriority;
  37121. default:
  37122. {
  37123. {
  37124. throw Error( "Unknown priority level." );
  37125. }
  37126. }
  37127. }
  37128. }
  37129. function runWithPriority$1(reactPriorityLevel, fn) {
  37130. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  37131. return Scheduler_runWithPriority(priorityLevel, fn);
  37132. }
  37133. function scheduleCallback(reactPriorityLevel, callback, options) {
  37134. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  37135. return Scheduler_scheduleCallback(priorityLevel, callback, options);
  37136. }
  37137. function scheduleSyncCallback(callback) {
  37138. // Push this callback into an internal queue. We'll flush these either in
  37139. // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  37140. if (syncQueue === null) {
  37141. syncQueue = [callback]; // Flush the queue in the next tick, at the earliest.
  37142. immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  37143. } else {
  37144. // Push onto existing queue. Don't need to schedule a callback because
  37145. // we already scheduled one when we created the queue.
  37146. syncQueue.push(callback);
  37147. }
  37148. return fakeCallbackNode;
  37149. }
  37150. function cancelCallback(callbackNode) {
  37151. if (callbackNode !== fakeCallbackNode) {
  37152. Scheduler_cancelCallback(callbackNode);
  37153. }
  37154. }
  37155. function flushSyncCallbackQueue() {
  37156. if (immediateQueueCallbackNode !== null) {
  37157. var node = immediateQueueCallbackNode;
  37158. immediateQueueCallbackNode = null;
  37159. Scheduler_cancelCallback(node);
  37160. }
  37161. flushSyncCallbackQueueImpl();
  37162. }
  37163. function flushSyncCallbackQueueImpl() {
  37164. if (!isFlushingSyncQueue && syncQueue !== null) {
  37165. // Prevent re-entrancy.
  37166. isFlushingSyncQueue = true;
  37167. var i = 0;
  37168. try {
  37169. var _isSync = true;
  37170. var queue = syncQueue;
  37171. runWithPriority$1(ImmediatePriority, function () {
  37172. for (; i < queue.length; i++) {
  37173. var callback = queue[i];
  37174. do {
  37175. callback = callback(_isSync);
  37176. } while (callback !== null);
  37177. }
  37178. });
  37179. syncQueue = null;
  37180. } catch (error) {
  37181. // If something throws, leave the remaining callbacks on the queue.
  37182. if (syncQueue !== null) {
  37183. syncQueue = syncQueue.slice(i + 1);
  37184. } // Resume flushing in the next tick
  37185. Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
  37186. throw error;
  37187. } finally {
  37188. isFlushingSyncQueue = false;
  37189. }
  37190. }
  37191. }
  37192. var NoMode = 0;
  37193. var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root
  37194. // tag instead
  37195. var BlockingMode = 2;
  37196. var ConcurrentMode = 4;
  37197. var ProfileMode = 8;
  37198. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  37199. // Math.pow(2, 30) - 1
  37200. // 0b111111111111111111111111111111
  37201. var MAX_SIGNED_31_BIT_INT = 1073741823;
  37202. var NoWork = 0; // TODO: Think of a better name for Never. The key difference with Idle is that
  37203. // Never work can be committed in an inconsistent state without tearing the UI.
  37204. // The main example is offscreen content, like a hidden subtree. So one possible
  37205. // name is Offscreen. However, it also includes dehydrated Suspense boundaries,
  37206. // which are inconsistent in the sense that they haven't finished yet, but
  37207. // aren't visibly inconsistent because the server rendered HTML matches what the
  37208. // hydrated tree would look like.
  37209. var Never = 1; // Idle is slightly higher priority than Never. It must completely finish in
  37210. // order to be consistent.
  37211. var Idle = 2; // Continuous Hydration is slightly higher than Idle and is used to increase
  37212. // priority of hover targets.
  37213. var ContinuousHydration = 3;
  37214. var Sync = MAX_SIGNED_31_BIT_INT;
  37215. var Batched = Sync - 1;
  37216. var UNIT_SIZE = 10;
  37217. var MAGIC_NUMBER_OFFSET = Batched - 1; // 1 unit of expiration time represents 10ms.
  37218. function msToExpirationTime(ms) {
  37219. // Always subtract from the offset so that we don't clash with the magic number for NoWork.
  37220. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  37221. }
  37222. function expirationTimeToMs(expirationTime) {
  37223. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  37224. }
  37225. function ceiling(num, precision) {
  37226. return ((num / precision | 0) + 1) * precision;
  37227. }
  37228. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  37229. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  37230. } // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
  37231. // the names to reflect.
  37232. var LOW_PRIORITY_EXPIRATION = 5000;
  37233. var LOW_PRIORITY_BATCH_SIZE = 250;
  37234. function computeAsyncExpiration(currentTime) {
  37235. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  37236. }
  37237. function computeSuspenseExpiration(currentTime, timeoutMs) {
  37238. // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
  37239. return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);
  37240. } // We intentionally set a higher expiration time for interactive updates in
  37241. // dev than in production.
  37242. //
  37243. // If the main thread is being blocked so long that you hit the expiration,
  37244. // it's a problem that could be solved with better scheduling.
  37245. //
  37246. // People will be more likely to notice this and fix it with the long
  37247. // expiration time in development.
  37248. //
  37249. // In production we opt for better UX at the risk of masking scheduling
  37250. // problems, by expiring fast.
  37251. var HIGH_PRIORITY_EXPIRATION = 500 ;
  37252. var HIGH_PRIORITY_BATCH_SIZE = 100;
  37253. function computeInteractiveExpiration(currentTime) {
  37254. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  37255. }
  37256. function inferPriorityFromExpirationTime(currentTime, expirationTime) {
  37257. if (expirationTime === Sync) {
  37258. return ImmediatePriority;
  37259. }
  37260. if (expirationTime === Never || expirationTime === Idle) {
  37261. return IdlePriority;
  37262. }
  37263. var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);
  37264. if (msUntil <= 0) {
  37265. return ImmediatePriority;
  37266. }
  37267. if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
  37268. return UserBlockingPriority$1;
  37269. }
  37270. if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
  37271. return NormalPriority;
  37272. } // TODO: Handle LowPriority
  37273. // Assume anything lower has idle priority
  37274. return IdlePriority;
  37275. }
  37276. var ReactStrictModeWarnings = {
  37277. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  37278. flushPendingUnsafeLifecycleWarnings: function () {},
  37279. recordLegacyContextWarning: function (fiber, instance) {},
  37280. flushLegacyContextWarning: function () {},
  37281. discardPendingWarnings: function () {}
  37282. };
  37283. {
  37284. var findStrictRoot = function (fiber) {
  37285. var maybeStrictRoot = null;
  37286. var node = fiber;
  37287. while (node !== null) {
  37288. if (node.mode & StrictMode) {
  37289. maybeStrictRoot = node;
  37290. }
  37291. node = node.return;
  37292. }
  37293. return maybeStrictRoot;
  37294. };
  37295. var setToSortedString = function (set) {
  37296. var array = [];
  37297. set.forEach(function (value) {
  37298. array.push(value);
  37299. });
  37300. return array.sort().join(', ');
  37301. };
  37302. var pendingComponentWillMountWarnings = [];
  37303. var pendingUNSAFE_ComponentWillMountWarnings = [];
  37304. var pendingComponentWillReceivePropsWarnings = [];
  37305. var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  37306. var pendingComponentWillUpdateWarnings = [];
  37307. var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.
  37308. var didWarnAboutUnsafeLifecycles = new Set();
  37309. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  37310. // Dedup strategy: Warn once per component.
  37311. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  37312. return;
  37313. }
  37314. if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
  37315. instance.componentWillMount.__suppressDeprecationWarning !== true) {
  37316. pendingComponentWillMountWarnings.push(fiber);
  37317. }
  37318. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
  37319. pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
  37320. }
  37321. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  37322. pendingComponentWillReceivePropsWarnings.push(fiber);
  37323. }
  37324. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  37325. pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
  37326. }
  37327. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  37328. pendingComponentWillUpdateWarnings.push(fiber);
  37329. }
  37330. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
  37331. pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
  37332. }
  37333. };
  37334. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  37335. // We do an initial pass to gather component names
  37336. var componentWillMountUniqueNames = new Set();
  37337. if (pendingComponentWillMountWarnings.length > 0) {
  37338. pendingComponentWillMountWarnings.forEach(function (fiber) {
  37339. componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  37340. didWarnAboutUnsafeLifecycles.add(fiber.type);
  37341. });
  37342. pendingComponentWillMountWarnings = [];
  37343. }
  37344. var UNSAFE_componentWillMountUniqueNames = new Set();
  37345. if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
  37346. pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
  37347. UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  37348. didWarnAboutUnsafeLifecycles.add(fiber.type);
  37349. });
  37350. pendingUNSAFE_ComponentWillMountWarnings = [];
  37351. }
  37352. var componentWillReceivePropsUniqueNames = new Set();
  37353. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  37354. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  37355. componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  37356. didWarnAboutUnsafeLifecycles.add(fiber.type);
  37357. });
  37358. pendingComponentWillReceivePropsWarnings = [];
  37359. }
  37360. var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
  37361. if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
  37362. pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
  37363. UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  37364. didWarnAboutUnsafeLifecycles.add(fiber.type);
  37365. });
  37366. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  37367. }
  37368. var componentWillUpdateUniqueNames = new Set();
  37369. if (pendingComponentWillUpdateWarnings.length > 0) {
  37370. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  37371. componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  37372. didWarnAboutUnsafeLifecycles.add(fiber.type);
  37373. });
  37374. pendingComponentWillUpdateWarnings = [];
  37375. }
  37376. var UNSAFE_componentWillUpdateUniqueNames = new Set();
  37377. if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
  37378. pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
  37379. UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  37380. didWarnAboutUnsafeLifecycles.add(fiber.type);
  37381. });
  37382. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  37383. } // Finally, we flush all the warnings
  37384. // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
  37385. if (UNSAFE_componentWillMountUniqueNames.size > 0) {
  37386. var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
  37387. 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);
  37388. }
  37389. if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
  37390. var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
  37391. 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);
  37392. }
  37393. if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
  37394. var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
  37395. 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);
  37396. }
  37397. if (componentWillMountUniqueNames.size > 0) {
  37398. var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
  37399. 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);
  37400. }
  37401. if (componentWillReceivePropsUniqueNames.size > 0) {
  37402. var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
  37403. 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);
  37404. }
  37405. if (componentWillUpdateUniqueNames.size > 0) {
  37406. var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
  37407. 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);
  37408. }
  37409. };
  37410. var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.
  37411. var didWarnAboutLegacyContext = new Set();
  37412. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  37413. var strictRoot = findStrictRoot(fiber);
  37414. if (strictRoot === null) {
  37415. 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.');
  37416. return;
  37417. } // Dedup strategy: Warn once per component.
  37418. if (didWarnAboutLegacyContext.has(fiber.type)) {
  37419. return;
  37420. }
  37421. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  37422. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  37423. if (warningsForRoot === undefined) {
  37424. warningsForRoot = [];
  37425. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  37426. }
  37427. warningsForRoot.push(fiber);
  37428. }
  37429. };
  37430. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  37431. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  37432. if (fiberArray.length === 0) {
  37433. return;
  37434. }
  37435. var firstFiber = fiberArray[0];
  37436. var uniqueNames = new Set();
  37437. fiberArray.forEach(function (fiber) {
  37438. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  37439. didWarnAboutLegacyContext.add(fiber.type);
  37440. });
  37441. var sortedNames = setToSortedString(uniqueNames);
  37442. var firstComponentStack = getStackByFiberInDevAndProd(firstFiber);
  37443. 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);
  37444. });
  37445. };
  37446. ReactStrictModeWarnings.discardPendingWarnings = function () {
  37447. pendingComponentWillMountWarnings = [];
  37448. pendingUNSAFE_ComponentWillMountWarnings = [];
  37449. pendingComponentWillReceivePropsWarnings = [];
  37450. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  37451. pendingComponentWillUpdateWarnings = [];
  37452. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  37453. pendingLegacyContextWarning = new Map();
  37454. };
  37455. }
  37456. var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.
  37457. var failedBoundaries = null;
  37458. var setRefreshHandler = function (handler) {
  37459. {
  37460. resolveFamily = handler;
  37461. }
  37462. };
  37463. function resolveFunctionForHotReloading(type) {
  37464. {
  37465. if (resolveFamily === null) {
  37466. // Hot reloading is disabled.
  37467. return type;
  37468. }
  37469. var family = resolveFamily(type);
  37470. if (family === undefined) {
  37471. return type;
  37472. } // Use the latest known implementation.
  37473. return family.current;
  37474. }
  37475. }
  37476. function resolveClassForHotReloading(type) {
  37477. // No implementation differences.
  37478. return resolveFunctionForHotReloading(type);
  37479. }
  37480. function resolveForwardRefForHotReloading(type) {
  37481. {
  37482. if (resolveFamily === null) {
  37483. // Hot reloading is disabled.
  37484. return type;
  37485. }
  37486. var family = resolveFamily(type);
  37487. if (family === undefined) {
  37488. // Check if we're dealing with a real forwardRef. Don't want to crash early.
  37489. if (type !== null && type !== undefined && typeof type.render === 'function') {
  37490. // ForwardRef is special because its resolved .type is an object,
  37491. // but it's possible that we only have its inner render function in the map.
  37492. // If that inner render function is different, we'll build a new forwardRef type.
  37493. var currentRender = resolveFunctionForHotReloading(type.render);
  37494. if (type.render !== currentRender) {
  37495. var syntheticType = {
  37496. $$typeof: REACT_FORWARD_REF_TYPE,
  37497. render: currentRender
  37498. };
  37499. if (type.displayName !== undefined) {
  37500. syntheticType.displayName = type.displayName;
  37501. }
  37502. return syntheticType;
  37503. }
  37504. }
  37505. return type;
  37506. } // Use the latest known implementation.
  37507. return family.current;
  37508. }
  37509. }
  37510. function isCompatibleFamilyForHotReloading(fiber, element) {
  37511. {
  37512. if (resolveFamily === null) {
  37513. // Hot reloading is disabled.
  37514. return false;
  37515. }
  37516. var prevType = fiber.elementType;
  37517. var nextType = element.type; // If we got here, we know types aren't === equal.
  37518. var needsCompareFamilies = false;
  37519. var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
  37520. switch (fiber.tag) {
  37521. case ClassComponent:
  37522. {
  37523. if (typeof nextType === 'function') {
  37524. needsCompareFamilies = true;
  37525. }
  37526. break;
  37527. }
  37528. case FunctionComponent:
  37529. {
  37530. if (typeof nextType === 'function') {
  37531. needsCompareFamilies = true;
  37532. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  37533. // We don't know the inner type yet.
  37534. // We're going to assume that the lazy inner type is stable,
  37535. // and so it is sufficient to avoid reconciling it away.
  37536. // We're not going to unwrap or actually use the new lazy type.
  37537. needsCompareFamilies = true;
  37538. }
  37539. break;
  37540. }
  37541. case ForwardRef:
  37542. {
  37543. if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
  37544. needsCompareFamilies = true;
  37545. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  37546. needsCompareFamilies = true;
  37547. }
  37548. break;
  37549. }
  37550. case MemoComponent:
  37551. case SimpleMemoComponent:
  37552. {
  37553. if ($$typeofNextType === REACT_MEMO_TYPE) {
  37554. // TODO: if it was but can no longer be simple,
  37555. // we shouldn't set this.
  37556. needsCompareFamilies = true;
  37557. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  37558. needsCompareFamilies = true;
  37559. }
  37560. break;
  37561. }
  37562. default:
  37563. return false;
  37564. } // Check if both types have a family and it's the same one.
  37565. if (needsCompareFamilies) {
  37566. // Note: memo() and forwardRef() we'll compare outer rather than inner type.
  37567. // This means both of them need to be registered to preserve state.
  37568. // If we unwrapped and compared the inner types for wrappers instead,
  37569. // then we would risk falsely saying two separate memo(Foo)
  37570. // calls are equivalent because they wrap the same Foo function.
  37571. var prevFamily = resolveFamily(prevType);
  37572. if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
  37573. return true;
  37574. }
  37575. }
  37576. return false;
  37577. }
  37578. }
  37579. function markFailedErrorBoundaryForHotReloading(fiber) {
  37580. {
  37581. if (resolveFamily === null) {
  37582. // Hot reloading is disabled.
  37583. return;
  37584. }
  37585. if (typeof WeakSet !== 'function') {
  37586. return;
  37587. }
  37588. if (failedBoundaries === null) {
  37589. failedBoundaries = new WeakSet();
  37590. }
  37591. failedBoundaries.add(fiber);
  37592. }
  37593. }
  37594. var scheduleRefresh = function (root, update) {
  37595. {
  37596. if (resolveFamily === null) {
  37597. // Hot reloading is disabled.
  37598. return;
  37599. }
  37600. var staleFamilies = update.staleFamilies,
  37601. updatedFamilies = update.updatedFamilies;
  37602. flushPassiveEffects();
  37603. flushSync(function () {
  37604. scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
  37605. });
  37606. }
  37607. };
  37608. var scheduleRoot = function (root, element) {
  37609. {
  37610. if (root.context !== emptyContextObject) {
  37611. // Super edge case: root has a legacy _renderSubtree context
  37612. // but we don't know the parentComponent so we can't pass it.
  37613. // Just ignore. We'll delete this with _renderSubtree code path later.
  37614. return;
  37615. }
  37616. flushPassiveEffects();
  37617. syncUpdates(function () {
  37618. updateContainer(element, root, null, null);
  37619. });
  37620. }
  37621. };
  37622. function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  37623. {
  37624. var alternate = fiber.alternate,
  37625. child = fiber.child,
  37626. sibling = fiber.sibling,
  37627. tag = fiber.tag,
  37628. type = fiber.type;
  37629. var candidateType = null;
  37630. switch (tag) {
  37631. case FunctionComponent:
  37632. case SimpleMemoComponent:
  37633. case ClassComponent:
  37634. candidateType = type;
  37635. break;
  37636. case ForwardRef:
  37637. candidateType = type.render;
  37638. break;
  37639. }
  37640. if (resolveFamily === null) {
  37641. throw new Error('Expected resolveFamily to be set during hot reload.');
  37642. }
  37643. var needsRender = false;
  37644. var needsRemount = false;
  37645. if (candidateType !== null) {
  37646. var family = resolveFamily(candidateType);
  37647. if (family !== undefined) {
  37648. if (staleFamilies.has(family)) {
  37649. needsRemount = true;
  37650. } else if (updatedFamilies.has(family)) {
  37651. if (tag === ClassComponent) {
  37652. needsRemount = true;
  37653. } else {
  37654. needsRender = true;
  37655. }
  37656. }
  37657. }
  37658. }
  37659. if (failedBoundaries !== null) {
  37660. if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
  37661. needsRemount = true;
  37662. }
  37663. }
  37664. if (needsRemount) {
  37665. fiber._debugNeedsRemount = true;
  37666. }
  37667. if (needsRemount || needsRender) {
  37668. scheduleWork(fiber, Sync);
  37669. }
  37670. if (child !== null && !needsRemount) {
  37671. scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
  37672. }
  37673. if (sibling !== null) {
  37674. scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
  37675. }
  37676. }
  37677. }
  37678. var findHostInstancesForRefresh = function (root, families) {
  37679. {
  37680. var hostInstances = new Set();
  37681. var types = new Set(families.map(function (family) {
  37682. return family.current;
  37683. }));
  37684. findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
  37685. return hostInstances;
  37686. }
  37687. };
  37688. function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  37689. {
  37690. var child = fiber.child,
  37691. sibling = fiber.sibling,
  37692. tag = fiber.tag,
  37693. type = fiber.type;
  37694. var candidateType = null;
  37695. switch (tag) {
  37696. case FunctionComponent:
  37697. case SimpleMemoComponent:
  37698. case ClassComponent:
  37699. candidateType = type;
  37700. break;
  37701. case ForwardRef:
  37702. candidateType = type.render;
  37703. break;
  37704. }
  37705. var didMatch = false;
  37706. if (candidateType !== null) {
  37707. if (types.has(candidateType)) {
  37708. didMatch = true;
  37709. }
  37710. }
  37711. if (didMatch) {
  37712. // We have a match. This only drills down to the closest host components.
  37713. // There's no need to search deeper because for the purpose of giving
  37714. // visual feedback, "flashing" outermost parent rectangles is sufficient.
  37715. findHostInstancesForFiberShallowly(fiber, hostInstances);
  37716. } else {
  37717. // If there's no match, maybe there will be one further down in the child tree.
  37718. if (child !== null) {
  37719. findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
  37720. }
  37721. }
  37722. if (sibling !== null) {
  37723. findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
  37724. }
  37725. }
  37726. }
  37727. function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  37728. {
  37729. var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
  37730. if (foundHostInstances) {
  37731. return;
  37732. } // If we didn't find any host children, fallback to closest host parent.
  37733. var node = fiber;
  37734. while (true) {
  37735. switch (node.tag) {
  37736. case HostComponent:
  37737. hostInstances.add(node.stateNode);
  37738. return;
  37739. case HostPortal:
  37740. hostInstances.add(node.stateNode.containerInfo);
  37741. return;
  37742. case HostRoot:
  37743. hostInstances.add(node.stateNode.containerInfo);
  37744. return;
  37745. }
  37746. if (node.return === null) {
  37747. throw new Error('Expected to reach root first.');
  37748. }
  37749. node = node.return;
  37750. }
  37751. }
  37752. }
  37753. function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  37754. {
  37755. var node = fiber;
  37756. var foundHostInstances = false;
  37757. while (true) {
  37758. if (node.tag === HostComponent) {
  37759. // We got a match.
  37760. foundHostInstances = true;
  37761. hostInstances.add(node.stateNode); // There may still be more, so keep searching.
  37762. } else if (node.child !== null) {
  37763. node.child.return = node;
  37764. node = node.child;
  37765. continue;
  37766. }
  37767. if (node === fiber) {
  37768. return foundHostInstances;
  37769. }
  37770. while (node.sibling === null) {
  37771. if (node.return === null || node.return === fiber) {
  37772. return foundHostInstances;
  37773. }
  37774. node = node.return;
  37775. }
  37776. node.sibling.return = node.return;
  37777. node = node.sibling;
  37778. }
  37779. }
  37780. return false;
  37781. }
  37782. function resolveDefaultProps(Component, baseProps) {
  37783. if (Component && Component.defaultProps) {
  37784. // Resolve default props. Taken from ReactElement
  37785. var props = _assign({}, baseProps);
  37786. var defaultProps = Component.defaultProps;
  37787. for (var propName in defaultProps) {
  37788. if (props[propName] === undefined) {
  37789. props[propName] = defaultProps[propName];
  37790. }
  37791. }
  37792. return props;
  37793. }
  37794. return baseProps;
  37795. }
  37796. function readLazyComponentType(lazyComponent) {
  37797. initializeLazyComponentType(lazyComponent);
  37798. if (lazyComponent._status !== Resolved) {
  37799. throw lazyComponent._result;
  37800. }
  37801. return lazyComponent._result;
  37802. }
  37803. var valueCursor = createCursor(null);
  37804. var rendererSigil;
  37805. {
  37806. // Use this to detect multiple renderers using the same context
  37807. rendererSigil = {};
  37808. }
  37809. var currentlyRenderingFiber = null;
  37810. var lastContextDependency = null;
  37811. var lastContextWithAllBitsObserved = null;
  37812. var isDisallowedContextReadInDEV = false;
  37813. function resetContextDependencies() {
  37814. // This is called right before React yields execution, to ensure `readContext`
  37815. // cannot be called outside the render phase.
  37816. currentlyRenderingFiber = null;
  37817. lastContextDependency = null;
  37818. lastContextWithAllBitsObserved = null;
  37819. {
  37820. isDisallowedContextReadInDEV = false;
  37821. }
  37822. }
  37823. function enterDisallowedContextReadInDEV() {
  37824. {
  37825. isDisallowedContextReadInDEV = true;
  37826. }
  37827. }
  37828. function exitDisallowedContextReadInDEV() {
  37829. {
  37830. isDisallowedContextReadInDEV = false;
  37831. }
  37832. }
  37833. function pushProvider(providerFiber, nextValue) {
  37834. var context = providerFiber.type._context;
  37835. {
  37836. push(valueCursor, context._currentValue, providerFiber);
  37837. context._currentValue = nextValue;
  37838. {
  37839. if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
  37840. error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
  37841. }
  37842. context._currentRenderer = rendererSigil;
  37843. }
  37844. }
  37845. }
  37846. function popProvider(providerFiber) {
  37847. var currentValue = valueCursor.current;
  37848. pop(valueCursor, providerFiber);
  37849. var context = providerFiber.type._context;
  37850. {
  37851. context._currentValue = currentValue;
  37852. }
  37853. }
  37854. function calculateChangedBits(context, newValue, oldValue) {
  37855. if (objectIs(oldValue, newValue)) {
  37856. // No change
  37857. return 0;
  37858. } else {
  37859. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
  37860. {
  37861. if ((changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits) {
  37862. error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
  37863. }
  37864. }
  37865. return changedBits | 0;
  37866. }
  37867. }
  37868. function scheduleWorkOnParentPath(parent, renderExpirationTime) {
  37869. // Update the child expiration time of all the ancestors, including
  37870. // the alternates.
  37871. var node = parent;
  37872. while (node !== null) {
  37873. var alternate = node.alternate;
  37874. if (node.childExpirationTime < renderExpirationTime) {
  37875. node.childExpirationTime = renderExpirationTime;
  37876. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  37877. alternate.childExpirationTime = renderExpirationTime;
  37878. }
  37879. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  37880. alternate.childExpirationTime = renderExpirationTime;
  37881. } else {
  37882. // Neither alternate was updated, which means the rest of the
  37883. // ancestor path already has sufficient priority.
  37884. break;
  37885. }
  37886. node = node.return;
  37887. }
  37888. }
  37889. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  37890. var fiber = workInProgress.child;
  37891. if (fiber !== null) {
  37892. // Set the return pointer of the child to the work-in-progress fiber.
  37893. fiber.return = workInProgress;
  37894. }
  37895. while (fiber !== null) {
  37896. var nextFiber = void 0; // Visit this fiber.
  37897. var list = fiber.dependencies;
  37898. if (list !== null) {
  37899. nextFiber = fiber.child;
  37900. var dependency = list.firstContext;
  37901. while (dependency !== null) {
  37902. // Check if the context matches.
  37903. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  37904. // Match! Schedule an update on this fiber.
  37905. if (fiber.tag === ClassComponent) {
  37906. // Schedule a force update on the work-in-progress.
  37907. var update = createUpdate(renderExpirationTime, null);
  37908. update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the
  37909. // update to the current fiber, too, which means it will persist even if
  37910. // this render is thrown away. Since it's a race condition, not sure it's
  37911. // worth fixing.
  37912. enqueueUpdate(fiber, update);
  37913. }
  37914. if (fiber.expirationTime < renderExpirationTime) {
  37915. fiber.expirationTime = renderExpirationTime;
  37916. }
  37917. var alternate = fiber.alternate;
  37918. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  37919. alternate.expirationTime = renderExpirationTime;
  37920. }
  37921. scheduleWorkOnParentPath(fiber.return, renderExpirationTime); // Mark the expiration time on the list, too.
  37922. if (list.expirationTime < renderExpirationTime) {
  37923. list.expirationTime = renderExpirationTime;
  37924. } // Since we already found a match, we can stop traversing the
  37925. // dependency list.
  37926. break;
  37927. }
  37928. dependency = dependency.next;
  37929. }
  37930. } else if (fiber.tag === ContextProvider) {
  37931. // Don't scan deeper if this is a matching provider
  37932. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  37933. } else {
  37934. // Traverse down.
  37935. nextFiber = fiber.child;
  37936. }
  37937. if (nextFiber !== null) {
  37938. // Set the return pointer of the child to the work-in-progress fiber.
  37939. nextFiber.return = fiber;
  37940. } else {
  37941. // No child. Traverse to next sibling.
  37942. nextFiber = fiber;
  37943. while (nextFiber !== null) {
  37944. if (nextFiber === workInProgress) {
  37945. // We're back to the root of this subtree. Exit.
  37946. nextFiber = null;
  37947. break;
  37948. }
  37949. var sibling = nextFiber.sibling;
  37950. if (sibling !== null) {
  37951. // Set the return pointer of the sibling to the work-in-progress fiber.
  37952. sibling.return = nextFiber.return;
  37953. nextFiber = sibling;
  37954. break;
  37955. } // No more siblings. Traverse up.
  37956. nextFiber = nextFiber.return;
  37957. }
  37958. }
  37959. fiber = nextFiber;
  37960. }
  37961. }
  37962. function prepareToReadContext(workInProgress, renderExpirationTime) {
  37963. currentlyRenderingFiber = workInProgress;
  37964. lastContextDependency = null;
  37965. lastContextWithAllBitsObserved = null;
  37966. var dependencies = workInProgress.dependencies;
  37967. if (dependencies !== null) {
  37968. var firstContext = dependencies.firstContext;
  37969. if (firstContext !== null) {
  37970. if (dependencies.expirationTime >= renderExpirationTime) {
  37971. // Context list has a pending update. Mark that this fiber performed work.
  37972. markWorkInProgressReceivedUpdate();
  37973. } // Reset the work-in-progress list
  37974. dependencies.firstContext = null;
  37975. }
  37976. }
  37977. }
  37978. function readContext(context, observedBits) {
  37979. {
  37980. // This warning would fire if you read context inside a Hook like useMemo.
  37981. // Unlike the class check below, it's not enforced in production for perf.
  37982. if (isDisallowedContextReadInDEV) {
  37983. 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().');
  37984. }
  37985. }
  37986. if (lastContextWithAllBitsObserved === context) ; else if (observedBits === false || observedBits === 0) ; else {
  37987. var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types.
  37988. if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
  37989. // Observe all updates.
  37990. lastContextWithAllBitsObserved = context;
  37991. resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
  37992. } else {
  37993. resolvedObservedBits = observedBits;
  37994. }
  37995. var contextItem = {
  37996. context: context,
  37997. observedBits: resolvedObservedBits,
  37998. next: null
  37999. };
  38000. if (lastContextDependency === null) {
  38001. if (!(currentlyRenderingFiber !== null)) {
  38002. {
  38003. 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()." );
  38004. }
  38005. } // This is the first dependency for this component. Create a new list.
  38006. lastContextDependency = contextItem;
  38007. currentlyRenderingFiber.dependencies = {
  38008. expirationTime: NoWork,
  38009. firstContext: contextItem,
  38010. responders: null
  38011. };
  38012. } else {
  38013. // Append a new context item.
  38014. lastContextDependency = lastContextDependency.next = contextItem;
  38015. }
  38016. }
  38017. return context._currentValue ;
  38018. }
  38019. var UpdateState = 0;
  38020. var ReplaceState = 1;
  38021. var ForceUpdate = 2;
  38022. var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.
  38023. // It should only be read right after calling `processUpdateQueue`, via
  38024. // `checkHasForceUpdateAfterProcessing`.
  38025. var hasForceUpdate = false;
  38026. var didWarnUpdateInsideUpdate;
  38027. var currentlyProcessingQueue;
  38028. {
  38029. didWarnUpdateInsideUpdate = false;
  38030. currentlyProcessingQueue = null;
  38031. }
  38032. function initializeUpdateQueue(fiber) {
  38033. var queue = {
  38034. baseState: fiber.memoizedState,
  38035. baseQueue: null,
  38036. shared: {
  38037. pending: null
  38038. },
  38039. effects: null
  38040. };
  38041. fiber.updateQueue = queue;
  38042. }
  38043. function cloneUpdateQueue(current, workInProgress) {
  38044. // Clone the update queue from current. Unless it's already a clone.
  38045. var queue = workInProgress.updateQueue;
  38046. var currentQueue = current.updateQueue;
  38047. if (queue === currentQueue) {
  38048. var clone = {
  38049. baseState: currentQueue.baseState,
  38050. baseQueue: currentQueue.baseQueue,
  38051. shared: currentQueue.shared,
  38052. effects: currentQueue.effects
  38053. };
  38054. workInProgress.updateQueue = clone;
  38055. }
  38056. }
  38057. function createUpdate(expirationTime, suspenseConfig) {
  38058. var update = {
  38059. expirationTime: expirationTime,
  38060. suspenseConfig: suspenseConfig,
  38061. tag: UpdateState,
  38062. payload: null,
  38063. callback: null,
  38064. next: null
  38065. };
  38066. update.next = update;
  38067. {
  38068. update.priority = getCurrentPriorityLevel();
  38069. }
  38070. return update;
  38071. }
  38072. function enqueueUpdate(fiber, update) {
  38073. var updateQueue = fiber.updateQueue;
  38074. if (updateQueue === null) {
  38075. // Only occurs if the fiber has been unmounted.
  38076. return;
  38077. }
  38078. var sharedQueue = updateQueue.shared;
  38079. var pending = sharedQueue.pending;
  38080. if (pending === null) {
  38081. // This is the first update. Create a circular list.
  38082. update.next = update;
  38083. } else {
  38084. update.next = pending.next;
  38085. pending.next = update;
  38086. }
  38087. sharedQueue.pending = update;
  38088. {
  38089. if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
  38090. 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.');
  38091. didWarnUpdateInsideUpdate = true;
  38092. }
  38093. }
  38094. }
  38095. function enqueueCapturedUpdate(workInProgress, update) {
  38096. var current = workInProgress.alternate;
  38097. if (current !== null) {
  38098. // Ensure the work-in-progress queue is a clone
  38099. cloneUpdateQueue(current, workInProgress);
  38100. } // Captured updates go only on the work-in-progress queue.
  38101. var queue = workInProgress.updateQueue; // Append the update to the end of the list.
  38102. var last = queue.baseQueue;
  38103. if (last === null) {
  38104. queue.baseQueue = update.next = update;
  38105. update.next = update;
  38106. } else {
  38107. update.next = last.next;
  38108. last.next = update;
  38109. }
  38110. }
  38111. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  38112. switch (update.tag) {
  38113. case ReplaceState:
  38114. {
  38115. var payload = update.payload;
  38116. if (typeof payload === 'function') {
  38117. // Updater function
  38118. {
  38119. enterDisallowedContextReadInDEV();
  38120. if ( workInProgress.mode & StrictMode) {
  38121. payload.call(instance, prevState, nextProps);
  38122. }
  38123. }
  38124. var nextState = payload.call(instance, prevState, nextProps);
  38125. {
  38126. exitDisallowedContextReadInDEV();
  38127. }
  38128. return nextState;
  38129. } // State object
  38130. return payload;
  38131. }
  38132. case CaptureUpdate:
  38133. {
  38134. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  38135. }
  38136. // Intentional fallthrough
  38137. case UpdateState:
  38138. {
  38139. var _payload = update.payload;
  38140. var partialState;
  38141. if (typeof _payload === 'function') {
  38142. // Updater function
  38143. {
  38144. enterDisallowedContextReadInDEV();
  38145. if ( workInProgress.mode & StrictMode) {
  38146. _payload.call(instance, prevState, nextProps);
  38147. }
  38148. }
  38149. partialState = _payload.call(instance, prevState, nextProps);
  38150. {
  38151. exitDisallowedContextReadInDEV();
  38152. }
  38153. } else {
  38154. // Partial state object
  38155. partialState = _payload;
  38156. }
  38157. if (partialState === null || partialState === undefined) {
  38158. // Null and undefined are treated as no-ops.
  38159. return prevState;
  38160. } // Merge the partial state and the previous state.
  38161. return _assign({}, prevState, partialState);
  38162. }
  38163. case ForceUpdate:
  38164. {
  38165. hasForceUpdate = true;
  38166. return prevState;
  38167. }
  38168. }
  38169. return prevState;
  38170. }
  38171. function processUpdateQueue(workInProgress, props, instance, renderExpirationTime) {
  38172. // This is always non-null on a ClassComponent or HostRoot
  38173. var queue = workInProgress.updateQueue;
  38174. hasForceUpdate = false;
  38175. {
  38176. currentlyProcessingQueue = queue.shared;
  38177. } // The last rebase update that is NOT part of the base state.
  38178. var baseQueue = queue.baseQueue; // The last pending update that hasn't been processed yet.
  38179. var pendingQueue = queue.shared.pending;
  38180. if (pendingQueue !== null) {
  38181. // We have new updates that haven't been processed yet.
  38182. // We'll add them to the base queue.
  38183. if (baseQueue !== null) {
  38184. // Merge the pending queue and the base queue.
  38185. var baseFirst = baseQueue.next;
  38186. var pendingFirst = pendingQueue.next;
  38187. baseQueue.next = pendingFirst;
  38188. pendingQueue.next = baseFirst;
  38189. }
  38190. baseQueue = pendingQueue;
  38191. queue.shared.pending = null; // TODO: Pass `current` as argument
  38192. var current = workInProgress.alternate;
  38193. if (current !== null) {
  38194. var currentQueue = current.updateQueue;
  38195. if (currentQueue !== null) {
  38196. currentQueue.baseQueue = pendingQueue;
  38197. }
  38198. }
  38199. } // These values may change as we process the queue.
  38200. if (baseQueue !== null) {
  38201. var first = baseQueue.next; // Iterate through the list of updates to compute the result.
  38202. var newState = queue.baseState;
  38203. var newExpirationTime = NoWork;
  38204. var newBaseState = null;
  38205. var newBaseQueueFirst = null;
  38206. var newBaseQueueLast = null;
  38207. if (first !== null) {
  38208. var update = first;
  38209. do {
  38210. var updateExpirationTime = update.expirationTime;
  38211. if (updateExpirationTime < renderExpirationTime) {
  38212. // Priority is insufficient. Skip this update. If this is the first
  38213. // skipped update, the previous update/state is the new base
  38214. // update/state.
  38215. var clone = {
  38216. expirationTime: update.expirationTime,
  38217. suspenseConfig: update.suspenseConfig,
  38218. tag: update.tag,
  38219. payload: update.payload,
  38220. callback: update.callback,
  38221. next: null
  38222. };
  38223. if (newBaseQueueLast === null) {
  38224. newBaseQueueFirst = newBaseQueueLast = clone;
  38225. newBaseState = newState;
  38226. } else {
  38227. newBaseQueueLast = newBaseQueueLast.next = clone;
  38228. } // Update the remaining priority in the queue.
  38229. if (updateExpirationTime > newExpirationTime) {
  38230. newExpirationTime = updateExpirationTime;
  38231. }
  38232. } else {
  38233. // This update does have sufficient priority.
  38234. if (newBaseQueueLast !== null) {
  38235. var _clone = {
  38236. expirationTime: Sync,
  38237. // This update is going to be committed so we never want uncommit it.
  38238. suspenseConfig: update.suspenseConfig,
  38239. tag: update.tag,
  38240. payload: update.payload,
  38241. callback: update.callback,
  38242. next: null
  38243. };
  38244. newBaseQueueLast = newBaseQueueLast.next = _clone;
  38245. } // Mark the event time of this update as relevant to this render pass.
  38246. // TODO: This should ideally use the true event time of this update rather than
  38247. // its priority which is a derived and not reverseable value.
  38248. // TODO: We should skip this update if it was already committed but currently
  38249. // we have no way of detecting the difference between a committed and suspended
  38250. // update here.
  38251. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.
  38252. newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
  38253. var callback = update.callback;
  38254. if (callback !== null) {
  38255. workInProgress.effectTag |= Callback;
  38256. var effects = queue.effects;
  38257. if (effects === null) {
  38258. queue.effects = [update];
  38259. } else {
  38260. effects.push(update);
  38261. }
  38262. }
  38263. }
  38264. update = update.next;
  38265. if (update === null || update === first) {
  38266. pendingQueue = queue.shared.pending;
  38267. if (pendingQueue === null) {
  38268. break;
  38269. } else {
  38270. // An update was scheduled from inside a reducer. Add the new
  38271. // pending updates to the end of the list and keep processing.
  38272. update = baseQueue.next = pendingQueue.next;
  38273. pendingQueue.next = first;
  38274. queue.baseQueue = baseQueue = pendingQueue;
  38275. queue.shared.pending = null;
  38276. }
  38277. }
  38278. } while (true);
  38279. }
  38280. if (newBaseQueueLast === null) {
  38281. newBaseState = newState;
  38282. } else {
  38283. newBaseQueueLast.next = newBaseQueueFirst;
  38284. }
  38285. queue.baseState = newBaseState;
  38286. queue.baseQueue = newBaseQueueLast; // Set the remaining expiration time to be whatever is remaining in the queue.
  38287. // This should be fine because the only two other things that contribute to
  38288. // expiration time are props and context. We're already in the middle of the
  38289. // begin phase by the time we start processing the queue, so we've already
  38290. // dealt with the props. Context in components that specify
  38291. // shouldComponentUpdate is tricky; but we'll have to account for
  38292. // that regardless.
  38293. markUnprocessedUpdateTime(newExpirationTime);
  38294. workInProgress.expirationTime = newExpirationTime;
  38295. workInProgress.memoizedState = newState;
  38296. }
  38297. {
  38298. currentlyProcessingQueue = null;
  38299. }
  38300. }
  38301. function callCallback(callback, context) {
  38302. if (!(typeof callback === 'function')) {
  38303. {
  38304. throw Error( "Invalid argument passed as callback. Expected a function. Instead received: " + callback );
  38305. }
  38306. }
  38307. callback.call(context);
  38308. }
  38309. function resetHasForceUpdateBeforeProcessing() {
  38310. hasForceUpdate = false;
  38311. }
  38312. function checkHasForceUpdateAfterProcessing() {
  38313. return hasForceUpdate;
  38314. }
  38315. function commitUpdateQueue(finishedWork, finishedQueue, instance) {
  38316. // Commit the effects
  38317. var effects = finishedQueue.effects;
  38318. finishedQueue.effects = null;
  38319. if (effects !== null) {
  38320. for (var i = 0; i < effects.length; i++) {
  38321. var effect = effects[i];
  38322. var callback = effect.callback;
  38323. if (callback !== null) {
  38324. effect.callback = null;
  38325. callCallback(callback, instance);
  38326. }
  38327. }
  38328. }
  38329. }
  38330. var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
  38331. function requestCurrentSuspenseConfig() {
  38332. return ReactCurrentBatchConfig.suspense;
  38333. }
  38334. var fakeInternalInstance = {};
  38335. var isArray = Array.isArray; // React.Component uses a shared frozen object by default.
  38336. // We'll use it to determine whether we need to initialize legacy refs.
  38337. var emptyRefsObject = new React.Component().refs;
  38338. var didWarnAboutStateAssignmentForComponent;
  38339. var didWarnAboutUninitializedState;
  38340. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
  38341. var didWarnAboutLegacyLifecyclesAndDerivedState;
  38342. var didWarnAboutUndefinedDerivedState;
  38343. var warnOnUndefinedDerivedState;
  38344. var warnOnInvalidCallback;
  38345. var didWarnAboutDirectlyAssigningPropsToState;
  38346. var didWarnAboutContextTypeAndContextTypes;
  38347. var didWarnAboutInvalidateContextType;
  38348. {
  38349. didWarnAboutStateAssignmentForComponent = new Set();
  38350. didWarnAboutUninitializedState = new Set();
  38351. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  38352. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  38353. didWarnAboutDirectlyAssigningPropsToState = new Set();
  38354. didWarnAboutUndefinedDerivedState = new Set();
  38355. didWarnAboutContextTypeAndContextTypes = new Set();
  38356. didWarnAboutInvalidateContextType = new Set();
  38357. var didWarnOnInvalidCallback = new Set();
  38358. warnOnInvalidCallback = function (callback, callerName) {
  38359. if (callback === null || typeof callback === 'function') {
  38360. return;
  38361. }
  38362. var key = callerName + "_" + callback;
  38363. if (!didWarnOnInvalidCallback.has(key)) {
  38364. didWarnOnInvalidCallback.add(key);
  38365. error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  38366. }
  38367. };
  38368. warnOnUndefinedDerivedState = function (type, partialState) {
  38369. if (partialState === undefined) {
  38370. var componentName = getComponentName(type) || 'Component';
  38371. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  38372. didWarnAboutUndefinedDerivedState.add(componentName);
  38373. error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  38374. }
  38375. }
  38376. }; // This is so gross but it's at least non-critical and can be removed if
  38377. // it causes problems. This is meant to give a nicer error message for
  38378. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  38379. // ...)) which otherwise throws a "_processChildContext is not a function"
  38380. // exception.
  38381. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  38382. enumerable: false,
  38383. value: function () {
  38384. {
  38385. {
  38386. 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)." );
  38387. }
  38388. }
  38389. }
  38390. });
  38391. Object.freeze(fakeInternalInstance);
  38392. }
  38393. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  38394. var prevState = workInProgress.memoizedState;
  38395. {
  38396. if ( workInProgress.mode & StrictMode) {
  38397. // Invoke the function an extra time to help detect side-effects.
  38398. getDerivedStateFromProps(nextProps, prevState);
  38399. }
  38400. }
  38401. var partialState = getDerivedStateFromProps(nextProps, prevState);
  38402. {
  38403. warnOnUndefinedDerivedState(ctor, partialState);
  38404. } // Merge the partial state and the previous state.
  38405. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  38406. workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the
  38407. // base state.
  38408. if (workInProgress.expirationTime === NoWork) {
  38409. // Queue is always non-null for classes
  38410. var updateQueue = workInProgress.updateQueue;
  38411. updateQueue.baseState = memoizedState;
  38412. }
  38413. }
  38414. var classComponentUpdater = {
  38415. isMounted: isMounted,
  38416. enqueueSetState: function (inst, payload, callback) {
  38417. var fiber = get(inst);
  38418. var currentTime = requestCurrentTimeForUpdate();
  38419. var suspenseConfig = requestCurrentSuspenseConfig();
  38420. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  38421. var update = createUpdate(expirationTime, suspenseConfig);
  38422. update.payload = payload;
  38423. if (callback !== undefined && callback !== null) {
  38424. {
  38425. warnOnInvalidCallback(callback, 'setState');
  38426. }
  38427. update.callback = callback;
  38428. }
  38429. enqueueUpdate(fiber, update);
  38430. scheduleWork(fiber, expirationTime);
  38431. },
  38432. enqueueReplaceState: function (inst, payload, callback) {
  38433. var fiber = get(inst);
  38434. var currentTime = requestCurrentTimeForUpdate();
  38435. var suspenseConfig = requestCurrentSuspenseConfig();
  38436. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  38437. var update = createUpdate(expirationTime, suspenseConfig);
  38438. update.tag = ReplaceState;
  38439. update.payload = payload;
  38440. if (callback !== undefined && callback !== null) {
  38441. {
  38442. warnOnInvalidCallback(callback, 'replaceState');
  38443. }
  38444. update.callback = callback;
  38445. }
  38446. enqueueUpdate(fiber, update);
  38447. scheduleWork(fiber, expirationTime);
  38448. },
  38449. enqueueForceUpdate: function (inst, callback) {
  38450. var fiber = get(inst);
  38451. var currentTime = requestCurrentTimeForUpdate();
  38452. var suspenseConfig = requestCurrentSuspenseConfig();
  38453. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  38454. var update = createUpdate(expirationTime, suspenseConfig);
  38455. update.tag = ForceUpdate;
  38456. if (callback !== undefined && callback !== null) {
  38457. {
  38458. warnOnInvalidCallback(callback, 'forceUpdate');
  38459. }
  38460. update.callback = callback;
  38461. }
  38462. enqueueUpdate(fiber, update);
  38463. scheduleWork(fiber, expirationTime);
  38464. }
  38465. };
  38466. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  38467. var instance = workInProgress.stateNode;
  38468. if (typeof instance.shouldComponentUpdate === 'function') {
  38469. {
  38470. if ( workInProgress.mode & StrictMode) {
  38471. // Invoke the function an extra time to help detect side-effects.
  38472. instance.shouldComponentUpdate(newProps, newState, nextContext);
  38473. }
  38474. }
  38475. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  38476. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  38477. stopPhaseTimer();
  38478. {
  38479. if (shouldUpdate === undefined) {
  38480. error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component');
  38481. }
  38482. }
  38483. return shouldUpdate;
  38484. }
  38485. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  38486. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  38487. }
  38488. return true;
  38489. }
  38490. function checkClassInstance(workInProgress, ctor, newProps) {
  38491. var instance = workInProgress.stateNode;
  38492. {
  38493. var name = getComponentName(ctor) || 'Component';
  38494. var renderPresent = instance.render;
  38495. if (!renderPresent) {
  38496. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  38497. error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  38498. } else {
  38499. error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  38500. }
  38501. }
  38502. if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
  38503. 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);
  38504. }
  38505. if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
  38506. 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);
  38507. }
  38508. if (instance.propTypes) {
  38509. error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
  38510. }
  38511. if (instance.contextType) {
  38512. error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
  38513. }
  38514. {
  38515. if (instance.contextTypes) {
  38516. error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
  38517. }
  38518. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  38519. didWarnAboutContextTypeAndContextTypes.add(ctor);
  38520. error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  38521. }
  38522. }
  38523. if (typeof instance.componentShouldUpdate === 'function') {
  38524. 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);
  38525. }
  38526. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  38527. 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');
  38528. }
  38529. if (typeof instance.componentDidUnmount === 'function') {
  38530. error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
  38531. }
  38532. if (typeof instance.componentDidReceiveProps === 'function') {
  38533. 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);
  38534. }
  38535. if (typeof instance.componentWillRecieveProps === 'function') {
  38536. error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
  38537. }
  38538. if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
  38539. error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
  38540. }
  38541. var hasMutatedProps = instance.props !== newProps;
  38542. if (instance.props !== undefined && hasMutatedProps) {
  38543. error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
  38544. }
  38545. if (instance.defaultProps) {
  38546. 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);
  38547. }
  38548. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  38549. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  38550. error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  38551. }
  38552. if (typeof instance.getDerivedStateFromProps === 'function') {
  38553. error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
  38554. }
  38555. if (typeof instance.getDerivedStateFromError === 'function') {
  38556. error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
  38557. }
  38558. if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
  38559. error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
  38560. }
  38561. var _state = instance.state;
  38562. if (_state && (typeof _state !== 'object' || isArray(_state))) {
  38563. error('%s.state: must be set to an object or null', name);
  38564. }
  38565. if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
  38566. error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
  38567. }
  38568. }
  38569. }
  38570. function adoptClassInstance(workInProgress, instance) {
  38571. instance.updater = classComponentUpdater;
  38572. workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates
  38573. set(instance, workInProgress);
  38574. {
  38575. instance._reactInternalInstance = fakeInternalInstance;
  38576. }
  38577. }
  38578. function constructClassInstance(workInProgress, ctor, props) {
  38579. var isLegacyContextConsumer = false;
  38580. var unmaskedContext = emptyContextObject;
  38581. var context = emptyContextObject;
  38582. var contextType = ctor.contextType;
  38583. {
  38584. if ('contextType' in ctor) {
  38585. var isValid = // Allow null for conditional declaration
  38586. contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
  38587. if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
  38588. didWarnAboutInvalidateContextType.add(ctor);
  38589. var addendum = '';
  38590. if (contextType === undefined) {
  38591. 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.';
  38592. } else if (typeof contextType !== 'object') {
  38593. addendum = ' However, it is set to a ' + typeof contextType + '.';
  38594. } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
  38595. addendum = ' Did you accidentally pass the Context.Provider instead?';
  38596. } else if (contextType._context !== undefined) {
  38597. // <Context.Consumer>
  38598. addendum = ' Did you accidentally pass the Context.Consumer instead?';
  38599. } else {
  38600. addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
  38601. }
  38602. error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
  38603. }
  38604. }
  38605. }
  38606. if (typeof contextType === 'object' && contextType !== null) {
  38607. context = readContext(contextType);
  38608. } else {
  38609. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  38610. var contextTypes = ctor.contextTypes;
  38611. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  38612. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  38613. } // Instantiate twice to help detect side-effects.
  38614. {
  38615. if ( workInProgress.mode & StrictMode) {
  38616. new ctor(props, context); // eslint-disable-line no-new
  38617. }
  38618. }
  38619. var instance = new ctor(props, context);
  38620. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  38621. adoptClassInstance(workInProgress, instance);
  38622. {
  38623. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  38624. var componentName = getComponentName(ctor) || 'Component';
  38625. if (!didWarnAboutUninitializedState.has(componentName)) {
  38626. didWarnAboutUninitializedState.add(componentName);
  38627. 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);
  38628. }
  38629. } // If new component APIs are defined, "unsafe" lifecycles won't be called.
  38630. // Warn about these lifecycles if they are present.
  38631. // Don't warn about react-lifecycles-compat polyfilled methods though.
  38632. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  38633. var foundWillMountName = null;
  38634. var foundWillReceivePropsName = null;
  38635. var foundWillUpdateName = null;
  38636. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  38637. foundWillMountName = 'componentWillMount';
  38638. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  38639. foundWillMountName = 'UNSAFE_componentWillMount';
  38640. }
  38641. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  38642. foundWillReceivePropsName = 'componentWillReceiveProps';
  38643. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  38644. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  38645. }
  38646. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  38647. foundWillUpdateName = 'componentWillUpdate';
  38648. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  38649. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  38650. }
  38651. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  38652. var _componentName = getComponentName(ctor) || 'Component';
  38653. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  38654. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  38655. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  38656. 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 : '');
  38657. }
  38658. }
  38659. }
  38660. } // Cache unmasked context so we can avoid recreating masked context unless necessary.
  38661. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  38662. if (isLegacyContextConsumer) {
  38663. cacheContext(workInProgress, unmaskedContext, context);
  38664. }
  38665. return instance;
  38666. }
  38667. function callComponentWillMount(workInProgress, instance) {
  38668. startPhaseTimer(workInProgress, 'componentWillMount');
  38669. var oldState = instance.state;
  38670. if (typeof instance.componentWillMount === 'function') {
  38671. instance.componentWillMount();
  38672. }
  38673. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  38674. instance.UNSAFE_componentWillMount();
  38675. }
  38676. stopPhaseTimer();
  38677. if (oldState !== instance.state) {
  38678. {
  38679. error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
  38680. }
  38681. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  38682. }
  38683. }
  38684. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  38685. var oldState = instance.state;
  38686. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  38687. if (typeof instance.componentWillReceiveProps === 'function') {
  38688. instance.componentWillReceiveProps(newProps, nextContext);
  38689. }
  38690. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  38691. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  38692. }
  38693. stopPhaseTimer();
  38694. if (instance.state !== oldState) {
  38695. {
  38696. var componentName = getComponentName(workInProgress.type) || 'Component';
  38697. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  38698. didWarnAboutStateAssignmentForComponent.add(componentName);
  38699. error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  38700. }
  38701. }
  38702. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  38703. }
  38704. } // Invokes the mount life-cycles on a previously never rendered instance.
  38705. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  38706. {
  38707. checkClassInstance(workInProgress, ctor, newProps);
  38708. }
  38709. var instance = workInProgress.stateNode;
  38710. instance.props = newProps;
  38711. instance.state = workInProgress.memoizedState;
  38712. instance.refs = emptyRefsObject;
  38713. initializeUpdateQueue(workInProgress);
  38714. var contextType = ctor.contextType;
  38715. if (typeof contextType === 'object' && contextType !== null) {
  38716. instance.context = readContext(contextType);
  38717. } else {
  38718. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  38719. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  38720. }
  38721. {
  38722. if (instance.state === newProps) {
  38723. var componentName = getComponentName(ctor) || 'Component';
  38724. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  38725. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  38726. 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);
  38727. }
  38728. }
  38729. if (workInProgress.mode & StrictMode) {
  38730. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  38731. }
  38732. {
  38733. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  38734. }
  38735. }
  38736. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  38737. instance.state = workInProgress.memoizedState;
  38738. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  38739. if (typeof getDerivedStateFromProps === 'function') {
  38740. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  38741. instance.state = workInProgress.memoizedState;
  38742. } // In order to support react-lifecycles-compat polyfilled components,
  38743. // Unsafe lifecycles should not be invoked for components using the new APIs.
  38744. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  38745. callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's
  38746. // process them now.
  38747. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  38748. instance.state = workInProgress.memoizedState;
  38749. }
  38750. if (typeof instance.componentDidMount === 'function') {
  38751. workInProgress.effectTag |= Update;
  38752. }
  38753. }
  38754. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  38755. var instance = workInProgress.stateNode;
  38756. var oldProps = workInProgress.memoizedProps;
  38757. instance.props = oldProps;
  38758. var oldContext = instance.context;
  38759. var contextType = ctor.contextType;
  38760. var nextContext = emptyContextObject;
  38761. if (typeof contextType === 'object' && contextType !== null) {
  38762. nextContext = readContext(contextType);
  38763. } else {
  38764. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  38765. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  38766. }
  38767. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  38768. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  38769. // ever the previously attempted to render - not the "current". However,
  38770. // during componentDidUpdate we pass the "current" props.
  38771. // In order to support react-lifecycles-compat polyfilled components,
  38772. // Unsafe lifecycles should not be invoked for components using the new APIs.
  38773. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  38774. if (oldProps !== newProps || oldContext !== nextContext) {
  38775. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  38776. }
  38777. }
  38778. resetHasForceUpdateBeforeProcessing();
  38779. var oldState = workInProgress.memoizedState;
  38780. var newState = instance.state = oldState;
  38781. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  38782. newState = workInProgress.memoizedState;
  38783. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  38784. // If an update was already in progress, we should schedule an Update
  38785. // effect even though we're bailing out, so that cWU/cDU are called.
  38786. if (typeof instance.componentDidMount === 'function') {
  38787. workInProgress.effectTag |= Update;
  38788. }
  38789. return false;
  38790. }
  38791. if (typeof getDerivedStateFromProps === 'function') {
  38792. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  38793. newState = workInProgress.memoizedState;
  38794. }
  38795. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  38796. if (shouldUpdate) {
  38797. // In order to support react-lifecycles-compat polyfilled components,
  38798. // Unsafe lifecycles should not be invoked for components using the new APIs.
  38799. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  38800. startPhaseTimer(workInProgress, 'componentWillMount');
  38801. if (typeof instance.componentWillMount === 'function') {
  38802. instance.componentWillMount();
  38803. }
  38804. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  38805. instance.UNSAFE_componentWillMount();
  38806. }
  38807. stopPhaseTimer();
  38808. }
  38809. if (typeof instance.componentDidMount === 'function') {
  38810. workInProgress.effectTag |= Update;
  38811. }
  38812. } else {
  38813. // If an update was already in progress, we should schedule an Update
  38814. // effect even though we're bailing out, so that cWU/cDU are called.
  38815. if (typeof instance.componentDidMount === 'function') {
  38816. workInProgress.effectTag |= Update;
  38817. } // If shouldComponentUpdate returned false, we should still update the
  38818. // memoized state to indicate that this work can be reused.
  38819. workInProgress.memoizedProps = newProps;
  38820. workInProgress.memoizedState = newState;
  38821. } // Update the existing instance's state, props, and context pointers even
  38822. // if shouldComponentUpdate returns false.
  38823. instance.props = newProps;
  38824. instance.state = newState;
  38825. instance.context = nextContext;
  38826. return shouldUpdate;
  38827. } // Invokes the update life-cycles and returns false if it shouldn't rerender.
  38828. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  38829. var instance = workInProgress.stateNode;
  38830. cloneUpdateQueue(current, workInProgress);
  38831. var oldProps = workInProgress.memoizedProps;
  38832. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  38833. var oldContext = instance.context;
  38834. var contextType = ctor.contextType;
  38835. var nextContext = emptyContextObject;
  38836. if (typeof contextType === 'object' && contextType !== null) {
  38837. nextContext = readContext(contextType);
  38838. } else {
  38839. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  38840. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  38841. }
  38842. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  38843. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  38844. // ever the previously attempted to render - not the "current". However,
  38845. // during componentDidUpdate we pass the "current" props.
  38846. // In order to support react-lifecycles-compat polyfilled components,
  38847. // Unsafe lifecycles should not be invoked for components using the new APIs.
  38848. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  38849. if (oldProps !== newProps || oldContext !== nextContext) {
  38850. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  38851. }
  38852. }
  38853. resetHasForceUpdateBeforeProcessing();
  38854. var oldState = workInProgress.memoizedState;
  38855. var newState = instance.state = oldState;
  38856. processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
  38857. newState = workInProgress.memoizedState;
  38858. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  38859. // If an update was already in progress, we should schedule an Update
  38860. // effect even though we're bailing out, so that cWU/cDU are called.
  38861. if (typeof instance.componentDidUpdate === 'function') {
  38862. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  38863. workInProgress.effectTag |= Update;
  38864. }
  38865. }
  38866. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  38867. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  38868. workInProgress.effectTag |= Snapshot;
  38869. }
  38870. }
  38871. return false;
  38872. }
  38873. if (typeof getDerivedStateFromProps === 'function') {
  38874. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  38875. newState = workInProgress.memoizedState;
  38876. }
  38877. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  38878. if (shouldUpdate) {
  38879. // In order to support react-lifecycles-compat polyfilled components,
  38880. // Unsafe lifecycles should not be invoked for components using the new APIs.
  38881. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  38882. startPhaseTimer(workInProgress, 'componentWillUpdate');
  38883. if (typeof instance.componentWillUpdate === 'function') {
  38884. instance.componentWillUpdate(newProps, newState, nextContext);
  38885. }
  38886. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  38887. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  38888. }
  38889. stopPhaseTimer();
  38890. }
  38891. if (typeof instance.componentDidUpdate === 'function') {
  38892. workInProgress.effectTag |= Update;
  38893. }
  38894. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  38895. workInProgress.effectTag |= Snapshot;
  38896. }
  38897. } else {
  38898. // If an update was already in progress, we should schedule an Update
  38899. // effect even though we're bailing out, so that cWU/cDU are called.
  38900. if (typeof instance.componentDidUpdate === 'function') {
  38901. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  38902. workInProgress.effectTag |= Update;
  38903. }
  38904. }
  38905. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  38906. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  38907. workInProgress.effectTag |= Snapshot;
  38908. }
  38909. } // If shouldComponentUpdate returned false, we should still update the
  38910. // memoized props/state to indicate that this work can be reused.
  38911. workInProgress.memoizedProps = newProps;
  38912. workInProgress.memoizedState = newState;
  38913. } // Update the existing instance's state, props, and context pointers even
  38914. // if shouldComponentUpdate returns false.
  38915. instance.props = newProps;
  38916. instance.state = newState;
  38917. instance.context = nextContext;
  38918. return shouldUpdate;
  38919. }
  38920. var didWarnAboutMaps;
  38921. var didWarnAboutGenerators;
  38922. var didWarnAboutStringRefs;
  38923. var ownerHasKeyUseWarning;
  38924. var ownerHasFunctionTypeWarning;
  38925. var warnForMissingKey = function (child) {};
  38926. {
  38927. didWarnAboutMaps = false;
  38928. didWarnAboutGenerators = false;
  38929. didWarnAboutStringRefs = {};
  38930. /**
  38931. * Warn if there's no key explicitly set on dynamic arrays of children or
  38932. * object keys are not valid. This allows us to keep track of children between
  38933. * updates.
  38934. */
  38935. ownerHasKeyUseWarning = {};
  38936. ownerHasFunctionTypeWarning = {};
  38937. warnForMissingKey = function (child) {
  38938. if (child === null || typeof child !== 'object') {
  38939. return;
  38940. }
  38941. if (!child._store || child._store.validated || child.key != null) {
  38942. return;
  38943. }
  38944. if (!(typeof child._store === 'object')) {
  38945. {
  38946. throw Error( "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." );
  38947. }
  38948. }
  38949. child._store.validated = true;
  38950. var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  38951. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  38952. return;
  38953. }
  38954. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  38955. error('Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  38956. };
  38957. }
  38958. var isArray$1 = Array.isArray;
  38959. function coerceRef(returnFiber, current, element) {
  38960. var mixedRef = element.ref;
  38961. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  38962. {
  38963. // TODO: Clean this up once we turn on the string ref warning for
  38964. // everyone, because the strict mode case will no longer be relevant
  38965. if ((returnFiber.mode & StrictMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
  38966. // because these cannot be automatically converted to an arrow function
  38967. // using a codemod. Therefore, we don't have to warn about string refs again.
  38968. !(element._owner && element._self && element._owner.stateNode !== element._self)) {
  38969. var componentName = getComponentName(returnFiber.type) || 'Component';
  38970. if (!didWarnAboutStringRefs[componentName]) {
  38971. {
  38972. 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));
  38973. }
  38974. didWarnAboutStringRefs[componentName] = true;
  38975. }
  38976. }
  38977. }
  38978. if (element._owner) {
  38979. var owner = element._owner;
  38980. var inst;
  38981. if (owner) {
  38982. var ownerFiber = owner;
  38983. if (!(ownerFiber.tag === ClassComponent)) {
  38984. {
  38985. 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" );
  38986. }
  38987. }
  38988. inst = ownerFiber.stateNode;
  38989. }
  38990. if (!inst) {
  38991. {
  38992. throw Error( "Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue." );
  38993. }
  38994. }
  38995. var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref
  38996. if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
  38997. return current.ref;
  38998. }
  38999. var ref = function (value) {
  39000. var refs = inst.refs;
  39001. if (refs === emptyRefsObject) {
  39002. // This is a lazy pooled frozen object, so we need to initialize.
  39003. refs = inst.refs = {};
  39004. }
  39005. if (value === null) {
  39006. delete refs[stringRef];
  39007. } else {
  39008. refs[stringRef] = value;
  39009. }
  39010. };
  39011. ref._stringRef = stringRef;
  39012. return ref;
  39013. } else {
  39014. if (!(typeof mixedRef === 'string')) {
  39015. {
  39016. throw Error( "Expected ref to be a function, a string, an object returned by React.createRef(), or null." );
  39017. }
  39018. }
  39019. if (!element._owner) {
  39020. {
  39021. 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." );
  39022. }
  39023. }
  39024. }
  39025. }
  39026. return mixedRef;
  39027. }
  39028. function throwOnInvalidObjectType(returnFiber, newChild) {
  39029. if (returnFiber.type !== 'textarea') {
  39030. var addendum = '';
  39031. {
  39032. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  39033. }
  39034. {
  39035. {
  39036. 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 );
  39037. }
  39038. }
  39039. }
  39040. }
  39041. function warnOnFunctionType() {
  39042. {
  39043. 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();
  39044. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  39045. return;
  39046. }
  39047. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  39048. 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.');
  39049. }
  39050. } // This wrapper function exists because I expect to clone the code in each path
  39051. // to be able to optimize each path individually by branching early. This needs
  39052. // a compiler or we can do it manually. Helpers that don't need this branching
  39053. // live outside of this function.
  39054. function ChildReconciler(shouldTrackSideEffects) {
  39055. function deleteChild(returnFiber, childToDelete) {
  39056. if (!shouldTrackSideEffects) {
  39057. // Noop.
  39058. return;
  39059. } // Deletions are added in reversed order so we add it to the front.
  39060. // At this point, the return fiber's effect list is empty except for
  39061. // deletions, so we can just append the deletion to the list. The remaining
  39062. // effects aren't added until the complete phase. Once we implement
  39063. // resuming, this may not be true.
  39064. var last = returnFiber.lastEffect;
  39065. if (last !== null) {
  39066. last.nextEffect = childToDelete;
  39067. returnFiber.lastEffect = childToDelete;
  39068. } else {
  39069. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  39070. }
  39071. childToDelete.nextEffect = null;
  39072. childToDelete.effectTag = Deletion;
  39073. }
  39074. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  39075. if (!shouldTrackSideEffects) {
  39076. // Noop.
  39077. return null;
  39078. } // TODO: For the shouldClone case, this could be micro-optimized a bit by
  39079. // assuming that after the first child we've already added everything.
  39080. var childToDelete = currentFirstChild;
  39081. while (childToDelete !== null) {
  39082. deleteChild(returnFiber, childToDelete);
  39083. childToDelete = childToDelete.sibling;
  39084. }
  39085. return null;
  39086. }
  39087. function mapRemainingChildren(returnFiber, currentFirstChild) {
  39088. // Add the remaining children to a temporary map so that we can find them by
  39089. // keys quickly. Implicit (null) keys get added to this set with their index
  39090. // instead.
  39091. var existingChildren = new Map();
  39092. var existingChild = currentFirstChild;
  39093. while (existingChild !== null) {
  39094. if (existingChild.key !== null) {
  39095. existingChildren.set(existingChild.key, existingChild);
  39096. } else {
  39097. existingChildren.set(existingChild.index, existingChild);
  39098. }
  39099. existingChild = existingChild.sibling;
  39100. }
  39101. return existingChildren;
  39102. }
  39103. function useFiber(fiber, pendingProps) {
  39104. // We currently set sibling to null and index to 0 here because it is easy
  39105. // to forget to do before returning it. E.g. for the single child case.
  39106. var clone = createWorkInProgress(fiber, pendingProps);
  39107. clone.index = 0;
  39108. clone.sibling = null;
  39109. return clone;
  39110. }
  39111. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  39112. newFiber.index = newIndex;
  39113. if (!shouldTrackSideEffects) {
  39114. // Noop.
  39115. return lastPlacedIndex;
  39116. }
  39117. var current = newFiber.alternate;
  39118. if (current !== null) {
  39119. var oldIndex = current.index;
  39120. if (oldIndex < lastPlacedIndex) {
  39121. // This is a move.
  39122. newFiber.effectTag = Placement;
  39123. return lastPlacedIndex;
  39124. } else {
  39125. // This item can stay in place.
  39126. return oldIndex;
  39127. }
  39128. } else {
  39129. // This is an insertion.
  39130. newFiber.effectTag = Placement;
  39131. return lastPlacedIndex;
  39132. }
  39133. }
  39134. function placeSingleChild(newFiber) {
  39135. // This is simpler for the single child case. We only need to do a
  39136. // placement for inserting new children.
  39137. if (shouldTrackSideEffects && newFiber.alternate === null) {
  39138. newFiber.effectTag = Placement;
  39139. }
  39140. return newFiber;
  39141. }
  39142. function updateTextNode(returnFiber, current, textContent, expirationTime) {
  39143. if (current === null || current.tag !== HostText) {
  39144. // Insert
  39145. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  39146. created.return = returnFiber;
  39147. return created;
  39148. } else {
  39149. // Update
  39150. var existing = useFiber(current, textContent);
  39151. existing.return = returnFiber;
  39152. return existing;
  39153. }
  39154. }
  39155. function updateElement(returnFiber, current, element, expirationTime) {
  39156. if (current !== null) {
  39157. if (current.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
  39158. isCompatibleFamilyForHotReloading(current, element) )) {
  39159. // Move based on index
  39160. var existing = useFiber(current, element.props);
  39161. existing.ref = coerceRef(returnFiber, current, element);
  39162. existing.return = returnFiber;
  39163. {
  39164. existing._debugSource = element._source;
  39165. existing._debugOwner = element._owner;
  39166. }
  39167. return existing;
  39168. }
  39169. } // Insert
  39170. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  39171. created.ref = coerceRef(returnFiber, current, element);
  39172. created.return = returnFiber;
  39173. return created;
  39174. }
  39175. function updatePortal(returnFiber, current, portal, expirationTime) {
  39176. if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
  39177. // Insert
  39178. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  39179. created.return = returnFiber;
  39180. return created;
  39181. } else {
  39182. // Update
  39183. var existing = useFiber(current, portal.children || []);
  39184. existing.return = returnFiber;
  39185. return existing;
  39186. }
  39187. }
  39188. function updateFragment(returnFiber, current, fragment, expirationTime, key) {
  39189. if (current === null || current.tag !== Fragment) {
  39190. // Insert
  39191. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  39192. created.return = returnFiber;
  39193. return created;
  39194. } else {
  39195. // Update
  39196. var existing = useFiber(current, fragment);
  39197. existing.return = returnFiber;
  39198. return existing;
  39199. }
  39200. }
  39201. function createChild(returnFiber, newChild, expirationTime) {
  39202. if (typeof newChild === 'string' || typeof newChild === 'number') {
  39203. // Text nodes don't have keys. If the previous node is implicitly keyed
  39204. // we can continue to replace it without aborting even if it is not a text
  39205. // node.
  39206. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  39207. created.return = returnFiber;
  39208. return created;
  39209. }
  39210. if (typeof newChild === 'object' && newChild !== null) {
  39211. switch (newChild.$$typeof) {
  39212. case REACT_ELEMENT_TYPE:
  39213. {
  39214. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  39215. _created.ref = coerceRef(returnFiber, null, newChild);
  39216. _created.return = returnFiber;
  39217. return _created;
  39218. }
  39219. case REACT_PORTAL_TYPE:
  39220. {
  39221. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  39222. _created2.return = returnFiber;
  39223. return _created2;
  39224. }
  39225. }
  39226. if (isArray$1(newChild) || getIteratorFn(newChild)) {
  39227. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  39228. _created3.return = returnFiber;
  39229. return _created3;
  39230. }
  39231. throwOnInvalidObjectType(returnFiber, newChild);
  39232. }
  39233. {
  39234. if (typeof newChild === 'function') {
  39235. warnOnFunctionType();
  39236. }
  39237. }
  39238. return null;
  39239. }
  39240. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  39241. // Update the fiber if the keys match, otherwise return null.
  39242. var key = oldFiber !== null ? oldFiber.key : null;
  39243. if (typeof newChild === 'string' || typeof newChild === 'number') {
  39244. // Text nodes don't have keys. If the previous node is implicitly keyed
  39245. // we can continue to replace it without aborting even if it is not a text
  39246. // node.
  39247. if (key !== null) {
  39248. return null;
  39249. }
  39250. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  39251. }
  39252. if (typeof newChild === 'object' && newChild !== null) {
  39253. switch (newChild.$$typeof) {
  39254. case REACT_ELEMENT_TYPE:
  39255. {
  39256. if (newChild.key === key) {
  39257. if (newChild.type === REACT_FRAGMENT_TYPE) {
  39258. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  39259. }
  39260. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  39261. } else {
  39262. return null;
  39263. }
  39264. }
  39265. case REACT_PORTAL_TYPE:
  39266. {
  39267. if (newChild.key === key) {
  39268. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  39269. } else {
  39270. return null;
  39271. }
  39272. }
  39273. }
  39274. if (isArray$1(newChild) || getIteratorFn(newChild)) {
  39275. if (key !== null) {
  39276. return null;
  39277. }
  39278. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  39279. }
  39280. throwOnInvalidObjectType(returnFiber, newChild);
  39281. }
  39282. {
  39283. if (typeof newChild === 'function') {
  39284. warnOnFunctionType();
  39285. }
  39286. }
  39287. return null;
  39288. }
  39289. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  39290. if (typeof newChild === 'string' || typeof newChild === 'number') {
  39291. // Text nodes don't have keys, so we neither have to check the old nor
  39292. // new node for the key. If both are text nodes, they match.
  39293. var matchedFiber = existingChildren.get(newIdx) || null;
  39294. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  39295. }
  39296. if (typeof newChild === 'object' && newChild !== null) {
  39297. switch (newChild.$$typeof) {
  39298. case REACT_ELEMENT_TYPE:
  39299. {
  39300. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  39301. if (newChild.type === REACT_FRAGMENT_TYPE) {
  39302. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  39303. }
  39304. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  39305. }
  39306. case REACT_PORTAL_TYPE:
  39307. {
  39308. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  39309. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  39310. }
  39311. }
  39312. if (isArray$1(newChild) || getIteratorFn(newChild)) {
  39313. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  39314. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  39315. }
  39316. throwOnInvalidObjectType(returnFiber, newChild);
  39317. }
  39318. {
  39319. if (typeof newChild === 'function') {
  39320. warnOnFunctionType();
  39321. }
  39322. }
  39323. return null;
  39324. }
  39325. /**
  39326. * Warns if there is a duplicate or missing key
  39327. */
  39328. function warnOnInvalidKey(child, knownKeys) {
  39329. {
  39330. if (typeof child !== 'object' || child === null) {
  39331. return knownKeys;
  39332. }
  39333. switch (child.$$typeof) {
  39334. case REACT_ELEMENT_TYPE:
  39335. case REACT_PORTAL_TYPE:
  39336. warnForMissingKey(child);
  39337. var key = child.key;
  39338. if (typeof key !== 'string') {
  39339. break;
  39340. }
  39341. if (knownKeys === null) {
  39342. knownKeys = new Set();
  39343. knownKeys.add(key);
  39344. break;
  39345. }
  39346. if (!knownKeys.has(key)) {
  39347. knownKeys.add(key);
  39348. break;
  39349. }
  39350. 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);
  39351. break;
  39352. }
  39353. }
  39354. return knownKeys;
  39355. }
  39356. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  39357. // This algorithm can't optimize by searching from both ends since we
  39358. // don't have backpointers on fibers. I'm trying to see how far we can get
  39359. // with that model. If it ends up not being worth the tradeoffs, we can
  39360. // add it later.
  39361. // Even with a two ended optimization, we'd want to optimize for the case
  39362. // where there are few changes and brute force the comparison instead of
  39363. // going for the Map. It'd like to explore hitting that path first in
  39364. // forward-only mode and only go for the Map once we notice that we need
  39365. // lots of look ahead. This doesn't handle reversal as well as two ended
  39366. // search but that's unusual. Besides, for the two ended optimization to
  39367. // work on Iterables, we'd need to copy the whole set.
  39368. // In this first iteration, we'll just live with hitting the bad case
  39369. // (adding everything to a Map) in for every insert/move.
  39370. // If you change this code, also update reconcileChildrenIterator() which
  39371. // uses the same algorithm.
  39372. {
  39373. // First, validate keys.
  39374. var knownKeys = null;
  39375. for (var i = 0; i < newChildren.length; i++) {
  39376. var child = newChildren[i];
  39377. knownKeys = warnOnInvalidKey(child, knownKeys);
  39378. }
  39379. }
  39380. var resultingFirstChild = null;
  39381. var previousNewFiber = null;
  39382. var oldFiber = currentFirstChild;
  39383. var lastPlacedIndex = 0;
  39384. var newIdx = 0;
  39385. var nextOldFiber = null;
  39386. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  39387. if (oldFiber.index > newIdx) {
  39388. nextOldFiber = oldFiber;
  39389. oldFiber = null;
  39390. } else {
  39391. nextOldFiber = oldFiber.sibling;
  39392. }
  39393. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  39394. if (newFiber === null) {
  39395. // TODO: This breaks on empty slots like null children. That's
  39396. // unfortunate because it triggers the slow path all the time. We need
  39397. // a better way to communicate whether this was a miss or null,
  39398. // boolean, undefined, etc.
  39399. if (oldFiber === null) {
  39400. oldFiber = nextOldFiber;
  39401. }
  39402. break;
  39403. }
  39404. if (shouldTrackSideEffects) {
  39405. if (oldFiber && newFiber.alternate === null) {
  39406. // We matched the slot, but we didn't reuse the existing fiber, so we
  39407. // need to delete the existing child.
  39408. deleteChild(returnFiber, oldFiber);
  39409. }
  39410. }
  39411. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  39412. if (previousNewFiber === null) {
  39413. // TODO: Move out of the loop. This only happens for the first run.
  39414. resultingFirstChild = newFiber;
  39415. } else {
  39416. // TODO: Defer siblings if we're not at the right index for this slot.
  39417. // I.e. if we had null values before, then we want to defer this
  39418. // for each null value. However, we also don't want to call updateSlot
  39419. // with the previous one.
  39420. previousNewFiber.sibling = newFiber;
  39421. }
  39422. previousNewFiber = newFiber;
  39423. oldFiber = nextOldFiber;
  39424. }
  39425. if (newIdx === newChildren.length) {
  39426. // We've reached the end of the new children. We can delete the rest.
  39427. deleteRemainingChildren(returnFiber, oldFiber);
  39428. return resultingFirstChild;
  39429. }
  39430. if (oldFiber === null) {
  39431. // If we don't have any more existing children we can choose a fast path
  39432. // since the rest will all be insertions.
  39433. for (; newIdx < newChildren.length; newIdx++) {
  39434. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  39435. if (_newFiber === null) {
  39436. continue;
  39437. }
  39438. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  39439. if (previousNewFiber === null) {
  39440. // TODO: Move out of the loop. This only happens for the first run.
  39441. resultingFirstChild = _newFiber;
  39442. } else {
  39443. previousNewFiber.sibling = _newFiber;
  39444. }
  39445. previousNewFiber = _newFiber;
  39446. }
  39447. return resultingFirstChild;
  39448. } // Add all children to a key map for quick lookups.
  39449. var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
  39450. for (; newIdx < newChildren.length; newIdx++) {
  39451. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  39452. if (_newFiber2 !== null) {
  39453. if (shouldTrackSideEffects) {
  39454. if (_newFiber2.alternate !== null) {
  39455. // The new fiber is a work in progress, but if there exists a
  39456. // current, that means that we reused the fiber. We need to delete
  39457. // it from the child list so that we don't add it to the deletion
  39458. // list.
  39459. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  39460. }
  39461. }
  39462. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  39463. if (previousNewFiber === null) {
  39464. resultingFirstChild = _newFiber2;
  39465. } else {
  39466. previousNewFiber.sibling = _newFiber2;
  39467. }
  39468. previousNewFiber = _newFiber2;
  39469. }
  39470. }
  39471. if (shouldTrackSideEffects) {
  39472. // Any existing children that weren't consumed above were deleted. We need
  39473. // to add them to the deletion list.
  39474. existingChildren.forEach(function (child) {
  39475. return deleteChild(returnFiber, child);
  39476. });
  39477. }
  39478. return resultingFirstChild;
  39479. }
  39480. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  39481. // This is the same implementation as reconcileChildrenArray(),
  39482. // but using the iterator instead.
  39483. var iteratorFn = getIteratorFn(newChildrenIterable);
  39484. if (!(typeof iteratorFn === 'function')) {
  39485. {
  39486. throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." );
  39487. }
  39488. }
  39489. {
  39490. // We don't support rendering Generators because it's a mutation.
  39491. // See https://github.com/facebook/react/issues/12995
  39492. if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag
  39493. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  39494. if (!didWarnAboutGenerators) {
  39495. 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.');
  39496. }
  39497. didWarnAboutGenerators = true;
  39498. } // Warn about using Maps as children
  39499. if (newChildrenIterable.entries === iteratorFn) {
  39500. if (!didWarnAboutMaps) {
  39501. error('Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.');
  39502. }
  39503. didWarnAboutMaps = true;
  39504. } // First, validate keys.
  39505. // We'll get a different iterator later for the main pass.
  39506. var _newChildren = iteratorFn.call(newChildrenIterable);
  39507. if (_newChildren) {
  39508. var knownKeys = null;
  39509. var _step = _newChildren.next();
  39510. for (; !_step.done; _step = _newChildren.next()) {
  39511. var child = _step.value;
  39512. knownKeys = warnOnInvalidKey(child, knownKeys);
  39513. }
  39514. }
  39515. }
  39516. var newChildren = iteratorFn.call(newChildrenIterable);
  39517. if (!(newChildren != null)) {
  39518. {
  39519. throw Error( "An iterable object provided no iterator." );
  39520. }
  39521. }
  39522. var resultingFirstChild = null;
  39523. var previousNewFiber = null;
  39524. var oldFiber = currentFirstChild;
  39525. var lastPlacedIndex = 0;
  39526. var newIdx = 0;
  39527. var nextOldFiber = null;
  39528. var step = newChildren.next();
  39529. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  39530. if (oldFiber.index > newIdx) {
  39531. nextOldFiber = oldFiber;
  39532. oldFiber = null;
  39533. } else {
  39534. nextOldFiber = oldFiber.sibling;
  39535. }
  39536. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  39537. if (newFiber === null) {
  39538. // TODO: This breaks on empty slots like null children. That's
  39539. // unfortunate because it triggers the slow path all the time. We need
  39540. // a better way to communicate whether this was a miss or null,
  39541. // boolean, undefined, etc.
  39542. if (oldFiber === null) {
  39543. oldFiber = nextOldFiber;
  39544. }
  39545. break;
  39546. }
  39547. if (shouldTrackSideEffects) {
  39548. if (oldFiber && newFiber.alternate === null) {
  39549. // We matched the slot, but we didn't reuse the existing fiber, so we
  39550. // need to delete the existing child.
  39551. deleteChild(returnFiber, oldFiber);
  39552. }
  39553. }
  39554. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  39555. if (previousNewFiber === null) {
  39556. // TODO: Move out of the loop. This only happens for the first run.
  39557. resultingFirstChild = newFiber;
  39558. } else {
  39559. // TODO: Defer siblings if we're not at the right index for this slot.
  39560. // I.e. if we had null values before, then we want to defer this
  39561. // for each null value. However, we also don't want to call updateSlot
  39562. // with the previous one.
  39563. previousNewFiber.sibling = newFiber;
  39564. }
  39565. previousNewFiber = newFiber;
  39566. oldFiber = nextOldFiber;
  39567. }
  39568. if (step.done) {
  39569. // We've reached the end of the new children. We can delete the rest.
  39570. deleteRemainingChildren(returnFiber, oldFiber);
  39571. return resultingFirstChild;
  39572. }
  39573. if (oldFiber === null) {
  39574. // If we don't have any more existing children we can choose a fast path
  39575. // since the rest will all be insertions.
  39576. for (; !step.done; newIdx++, step = newChildren.next()) {
  39577. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  39578. if (_newFiber3 === null) {
  39579. continue;
  39580. }
  39581. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  39582. if (previousNewFiber === null) {
  39583. // TODO: Move out of the loop. This only happens for the first run.
  39584. resultingFirstChild = _newFiber3;
  39585. } else {
  39586. previousNewFiber.sibling = _newFiber3;
  39587. }
  39588. previousNewFiber = _newFiber3;
  39589. }
  39590. return resultingFirstChild;
  39591. } // Add all children to a key map for quick lookups.
  39592. var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
  39593. for (; !step.done; newIdx++, step = newChildren.next()) {
  39594. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  39595. if (_newFiber4 !== null) {
  39596. if (shouldTrackSideEffects) {
  39597. if (_newFiber4.alternate !== null) {
  39598. // The new fiber is a work in progress, but if there exists a
  39599. // current, that means that we reused the fiber. We need to delete
  39600. // it from the child list so that we don't add it to the deletion
  39601. // list.
  39602. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  39603. }
  39604. }
  39605. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  39606. if (previousNewFiber === null) {
  39607. resultingFirstChild = _newFiber4;
  39608. } else {
  39609. previousNewFiber.sibling = _newFiber4;
  39610. }
  39611. previousNewFiber = _newFiber4;
  39612. }
  39613. }
  39614. if (shouldTrackSideEffects) {
  39615. // Any existing children that weren't consumed above were deleted. We need
  39616. // to add them to the deletion list.
  39617. existingChildren.forEach(function (child) {
  39618. return deleteChild(returnFiber, child);
  39619. });
  39620. }
  39621. return resultingFirstChild;
  39622. }
  39623. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  39624. // There's no need to check for keys on text nodes since we don't have a
  39625. // way to define them.
  39626. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  39627. // We already have an existing node so let's just update it and delete
  39628. // the rest.
  39629. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  39630. var existing = useFiber(currentFirstChild, textContent);
  39631. existing.return = returnFiber;
  39632. return existing;
  39633. } // The existing first child is not a text node so we need to create one
  39634. // and delete the existing ones.
  39635. deleteRemainingChildren(returnFiber, currentFirstChild);
  39636. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  39637. created.return = returnFiber;
  39638. return created;
  39639. }
  39640. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  39641. var key = element.key;
  39642. var child = currentFirstChild;
  39643. while (child !== null) {
  39644. // TODO: If key === null and child.key === null, then this only applies to
  39645. // the first item in the list.
  39646. if (child.key === key) {
  39647. switch (child.tag) {
  39648. case Fragment:
  39649. {
  39650. if (element.type === REACT_FRAGMENT_TYPE) {
  39651. deleteRemainingChildren(returnFiber, child.sibling);
  39652. var existing = useFiber(child, element.props.children);
  39653. existing.return = returnFiber;
  39654. {
  39655. existing._debugSource = element._source;
  39656. existing._debugOwner = element._owner;
  39657. }
  39658. return existing;
  39659. }
  39660. break;
  39661. }
  39662. case Block:
  39663. // We intentionally fallthrough here if enableBlocksAPI is not on.
  39664. // eslint-disable-next-lined no-fallthrough
  39665. default:
  39666. {
  39667. if (child.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
  39668. isCompatibleFamilyForHotReloading(child, element) )) {
  39669. deleteRemainingChildren(returnFiber, child.sibling);
  39670. var _existing3 = useFiber(child, element.props);
  39671. _existing3.ref = coerceRef(returnFiber, child, element);
  39672. _existing3.return = returnFiber;
  39673. {
  39674. _existing3._debugSource = element._source;
  39675. _existing3._debugOwner = element._owner;
  39676. }
  39677. return _existing3;
  39678. }
  39679. break;
  39680. }
  39681. } // Didn't match.
  39682. deleteRemainingChildren(returnFiber, child);
  39683. break;
  39684. } else {
  39685. deleteChild(returnFiber, child);
  39686. }
  39687. child = child.sibling;
  39688. }
  39689. if (element.type === REACT_FRAGMENT_TYPE) {
  39690. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  39691. created.return = returnFiber;
  39692. return created;
  39693. } else {
  39694. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  39695. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  39696. _created4.return = returnFiber;
  39697. return _created4;
  39698. }
  39699. }
  39700. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  39701. var key = portal.key;
  39702. var child = currentFirstChild;
  39703. while (child !== null) {
  39704. // TODO: If key === null and child.key === null, then this only applies to
  39705. // the first item in the list.
  39706. if (child.key === key) {
  39707. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  39708. deleteRemainingChildren(returnFiber, child.sibling);
  39709. var existing = useFiber(child, portal.children || []);
  39710. existing.return = returnFiber;
  39711. return existing;
  39712. } else {
  39713. deleteRemainingChildren(returnFiber, child);
  39714. break;
  39715. }
  39716. } else {
  39717. deleteChild(returnFiber, child);
  39718. }
  39719. child = child.sibling;
  39720. }
  39721. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  39722. created.return = returnFiber;
  39723. return created;
  39724. } // This API will tag the children with the side-effect of the reconciliation
  39725. // itself. They will be added to the side-effect list as we pass through the
  39726. // children and the parent.
  39727. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  39728. // This function is not recursive.
  39729. // If the top level item is an array, we treat it as a set of children,
  39730. // not as a fragment. Nested arrays on the other hand will be treated as
  39731. // fragment nodes. Recursion happens at the normal flow.
  39732. // Handle top level unkeyed fragments as if they were arrays.
  39733. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  39734. // We treat the ambiguous cases above the same.
  39735. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  39736. if (isUnkeyedTopLevelFragment) {
  39737. newChild = newChild.props.children;
  39738. } // Handle object types
  39739. var isObject = typeof newChild === 'object' && newChild !== null;
  39740. if (isObject) {
  39741. switch (newChild.$$typeof) {
  39742. case REACT_ELEMENT_TYPE:
  39743. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  39744. case REACT_PORTAL_TYPE:
  39745. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  39746. }
  39747. }
  39748. if (typeof newChild === 'string' || typeof newChild === 'number') {
  39749. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  39750. }
  39751. if (isArray$1(newChild)) {
  39752. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  39753. }
  39754. if (getIteratorFn(newChild)) {
  39755. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  39756. }
  39757. if (isObject) {
  39758. throwOnInvalidObjectType(returnFiber, newChild);
  39759. }
  39760. {
  39761. if (typeof newChild === 'function') {
  39762. warnOnFunctionType();
  39763. }
  39764. }
  39765. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  39766. // If the new child is undefined, and the return fiber is a composite
  39767. // component, throw an error. If Fiber return types are disabled,
  39768. // we already threw above.
  39769. switch (returnFiber.tag) {
  39770. case ClassComponent:
  39771. {
  39772. {
  39773. var instance = returnFiber.stateNode;
  39774. if (instance.render._isMockFunction) {
  39775. // We allow auto-mocks to proceed as if they're returning null.
  39776. break;
  39777. }
  39778. }
  39779. }
  39780. // Intentionally fall through to the next case, which handles both
  39781. // functions and classes
  39782. // eslint-disable-next-lined no-fallthrough
  39783. case FunctionComponent:
  39784. {
  39785. var Component = returnFiber.type;
  39786. {
  39787. {
  39788. 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." );
  39789. }
  39790. }
  39791. }
  39792. }
  39793. } // Remaining cases are all treated as empty.
  39794. return deleteRemainingChildren(returnFiber, currentFirstChild);
  39795. }
  39796. return reconcileChildFibers;
  39797. }
  39798. var reconcileChildFibers = ChildReconciler(true);
  39799. var mountChildFibers = ChildReconciler(false);
  39800. function cloneChildFibers(current, workInProgress) {
  39801. if (!(current === null || workInProgress.child === current.child)) {
  39802. {
  39803. throw Error( "Resuming work not yet implemented." );
  39804. }
  39805. }
  39806. if (workInProgress.child === null) {
  39807. return;
  39808. }
  39809. var currentChild = workInProgress.child;
  39810. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
  39811. workInProgress.child = newChild;
  39812. newChild.return = workInProgress;
  39813. while (currentChild.sibling !== null) {
  39814. currentChild = currentChild.sibling;
  39815. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
  39816. newChild.return = workInProgress;
  39817. }
  39818. newChild.sibling = null;
  39819. } // Reset a workInProgress child set to prepare it for a second pass.
  39820. function resetChildFibers(workInProgress, renderExpirationTime) {
  39821. var child = workInProgress.child;
  39822. while (child !== null) {
  39823. resetWorkInProgress(child, renderExpirationTime);
  39824. child = child.sibling;
  39825. }
  39826. }
  39827. var NO_CONTEXT = {};
  39828. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  39829. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  39830. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  39831. function requiredContext(c) {
  39832. if (!(c !== NO_CONTEXT)) {
  39833. {
  39834. throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." );
  39835. }
  39836. }
  39837. return c;
  39838. }
  39839. function getRootHostContainer() {
  39840. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  39841. return rootInstance;
  39842. }
  39843. function pushHostContainer(fiber, nextRootInstance) {
  39844. // Push current root instance onto the stack;
  39845. // This allows us to reset root when portals are popped.
  39846. push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.
  39847. // This enables us to pop only Fibers that provide unique contexts.
  39848. push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.
  39849. // However, we can't just call getRootHostContext() and push it because
  39850. // we'd have a different number of entries on the stack depending on
  39851. // whether getRootHostContext() throws somewhere in renderer code or not.
  39852. // So we push an empty value first. This lets us safely unwind on errors.
  39853. push(contextStackCursor$1, NO_CONTEXT, fiber);
  39854. var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.
  39855. pop(contextStackCursor$1, fiber);
  39856. push(contextStackCursor$1, nextRootContext, fiber);
  39857. }
  39858. function popHostContainer(fiber) {
  39859. pop(contextStackCursor$1, fiber);
  39860. pop(contextFiberStackCursor, fiber);
  39861. pop(rootInstanceStackCursor, fiber);
  39862. }
  39863. function getHostContext() {
  39864. var context = requiredContext(contextStackCursor$1.current);
  39865. return context;
  39866. }
  39867. function pushHostContext(fiber) {
  39868. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  39869. var context = requiredContext(contextStackCursor$1.current);
  39870. var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.
  39871. if (context === nextContext) {
  39872. return;
  39873. } // Track the context and the Fiber that provided it.
  39874. // This enables us to pop only Fibers that provide unique contexts.
  39875. push(contextFiberStackCursor, fiber, fiber);
  39876. push(contextStackCursor$1, nextContext, fiber);
  39877. }
  39878. function popHostContext(fiber) {
  39879. // Do not pop unless this Fiber provided the current context.
  39880. // pushHostContext() only pushes Fibers that provide unique contexts.
  39881. if (contextFiberStackCursor.current !== fiber) {
  39882. return;
  39883. }
  39884. pop(contextStackCursor$1, fiber);
  39885. pop(contextFiberStackCursor, fiber);
  39886. }
  39887. var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
  39888. // inherited deeply down the subtree. The upper bits only affect
  39889. // this immediate suspense boundary and gets reset each new
  39890. // boundary or suspense list.
  39891. var SubtreeSuspenseContextMask = 1; // Subtree Flags:
  39892. // InvisibleParentSuspenseContext indicates that one of our parent Suspense
  39893. // boundaries is not currently showing visible main content.
  39894. // Either because it is already showing a fallback or is not mounted at all.
  39895. // We can use this to determine if it is desirable to trigger a fallback at
  39896. // the parent. If not, then we might need to trigger undesirable boundaries
  39897. // and/or suspend the commit to avoid hiding the parent content.
  39898. var InvisibleParentSuspenseContext = 1; // Shallow Flags:
  39899. // ForceSuspenseFallback can be used by SuspenseList to force newly added
  39900. // items into their fallback state during one of the render passes.
  39901. var ForceSuspenseFallback = 2;
  39902. var suspenseStackCursor = createCursor(DefaultSuspenseContext);
  39903. function hasSuspenseContext(parentContext, flag) {
  39904. return (parentContext & flag) !== 0;
  39905. }
  39906. function setDefaultShallowSuspenseContext(parentContext) {
  39907. return parentContext & SubtreeSuspenseContextMask;
  39908. }
  39909. function setShallowSuspenseContext(parentContext, shallowContext) {
  39910. return parentContext & SubtreeSuspenseContextMask | shallowContext;
  39911. }
  39912. function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  39913. return parentContext | subtreeContext;
  39914. }
  39915. function pushSuspenseContext(fiber, newContext) {
  39916. push(suspenseStackCursor, newContext, fiber);
  39917. }
  39918. function popSuspenseContext(fiber) {
  39919. pop(suspenseStackCursor, fiber);
  39920. }
  39921. function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  39922. // If it was the primary children that just suspended, capture and render the
  39923. // fallback. Otherwise, don't capture and bubble to the next boundary.
  39924. var nextState = workInProgress.memoizedState;
  39925. if (nextState !== null) {
  39926. if (nextState.dehydrated !== null) {
  39927. // A dehydrated boundary always captures.
  39928. return true;
  39929. }
  39930. return false;
  39931. }
  39932. var props = workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop.
  39933. if (props.fallback === undefined) {
  39934. return false;
  39935. } // Regular boundaries always capture.
  39936. if (props.unstable_avoidThisFallback !== true) {
  39937. return true;
  39938. } // If it's a boundary we should avoid, then we prefer to bubble up to the
  39939. // parent boundary if it is currently invisible.
  39940. if (hasInvisibleParent) {
  39941. return false;
  39942. } // If the parent is not able to handle it, we must handle it.
  39943. return true;
  39944. }
  39945. function findFirstSuspended(row) {
  39946. var node = row;
  39947. while (node !== null) {
  39948. if (node.tag === SuspenseComponent) {
  39949. var state = node.memoizedState;
  39950. if (state !== null) {
  39951. var dehydrated = state.dehydrated;
  39952. if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
  39953. return node;
  39954. }
  39955. }
  39956. } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
  39957. // keep track of whether it suspended or not.
  39958. node.memoizedProps.revealOrder !== undefined) {
  39959. var didSuspend = (node.effectTag & DidCapture) !== NoEffect;
  39960. if (didSuspend) {
  39961. return node;
  39962. }
  39963. } else if (node.child !== null) {
  39964. node.child.return = node;
  39965. node = node.child;
  39966. continue;
  39967. }
  39968. if (node === row) {
  39969. return null;
  39970. }
  39971. while (node.sibling === null) {
  39972. if (node.return === null || node.return === row) {
  39973. return null;
  39974. }
  39975. node = node.return;
  39976. }
  39977. node.sibling.return = node.return;
  39978. node = node.sibling;
  39979. }
  39980. return null;
  39981. }
  39982. function createDeprecatedResponderListener(responder, props) {
  39983. var eventResponderListener = {
  39984. responder: responder,
  39985. props: props
  39986. };
  39987. {
  39988. Object.freeze(eventResponderListener);
  39989. }
  39990. return eventResponderListener;
  39991. }
  39992. var HasEffect =
  39993. /* */
  39994. 1; // Represents the phase in which the effect (not the clean-up) fires.
  39995. var Layout =
  39996. /* */
  39997. 2;
  39998. var Passive$1 =
  39999. /* */
  40000. 4;
  40001. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher,
  40002. ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
  40003. var didWarnAboutMismatchedHooksForComponent;
  40004. {
  40005. didWarnAboutMismatchedHooksForComponent = new Set();
  40006. }
  40007. // These are set right before calling the component.
  40008. var renderExpirationTime = NoWork; // The work-in-progress fiber. I've named it differently to distinguish it from
  40009. // the work-in-progress hook.
  40010. var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
  40011. // current hook list is the list that belongs to the current fiber. The
  40012. // work-in-progress hook list is a new list that will be added to the
  40013. // work-in-progress fiber.
  40014. var currentHook = null;
  40015. var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
  40016. // does not get reset if we do another render pass; only when we're completely
  40017. // finished evaluating this component. This is an optimization so we know
  40018. // whether we need to clear render phase updates after a throw.
  40019. var didScheduleRenderPhaseUpdate = false;
  40020. var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook
  40021. var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
  40022. // The list stores the order of hooks used during the initial render (mount).
  40023. // Subsequent renders (updates) reference this list.
  40024. var hookTypesDev = null;
  40025. var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
  40026. // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
  40027. // When true, such Hooks will always be "remounted". Only used during hot reload.
  40028. var ignorePreviousDependencies = false;
  40029. function mountHookTypesDev() {
  40030. {
  40031. var hookName = currentHookNameInDev;
  40032. if (hookTypesDev === null) {
  40033. hookTypesDev = [hookName];
  40034. } else {
  40035. hookTypesDev.push(hookName);
  40036. }
  40037. }
  40038. }
  40039. function updateHookTypesDev() {
  40040. {
  40041. var hookName = currentHookNameInDev;
  40042. if (hookTypesDev !== null) {
  40043. hookTypesUpdateIndexDev++;
  40044. if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
  40045. warnOnHookMismatchInDev(hookName);
  40046. }
  40047. }
  40048. }
  40049. }
  40050. function checkDepsAreArrayDev(deps) {
  40051. {
  40052. if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
  40053. // Verify deps, but only on mount to avoid extra checks.
  40054. // It's unlikely their type would change as usually you define them inline.
  40055. 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);
  40056. }
  40057. }
  40058. }
  40059. function warnOnHookMismatchInDev(currentHookName) {
  40060. {
  40061. var componentName = getComponentName(currentlyRenderingFiber$1.type);
  40062. if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
  40063. didWarnAboutMismatchedHooksForComponent.add(componentName);
  40064. if (hookTypesDev !== null) {
  40065. var table = '';
  40066. var secondColumnStart = 30;
  40067. for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
  40068. var oldHookName = hookTypesDev[i];
  40069. var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
  40070. var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
  40071. // lol @ IE not supporting String#repeat
  40072. while (row.length < secondColumnStart) {
  40073. row += ' ';
  40074. }
  40075. row += newHookName + '\n';
  40076. table += row;
  40077. }
  40078. 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);
  40079. }
  40080. }
  40081. }
  40082. }
  40083. function throwInvalidHookError() {
  40084. {
  40085. {
  40086. 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." );
  40087. }
  40088. }
  40089. }
  40090. function areHookInputsEqual(nextDeps, prevDeps) {
  40091. {
  40092. if (ignorePreviousDependencies) {
  40093. // Only true when this component is being hot reloaded.
  40094. return false;
  40095. }
  40096. }
  40097. if (prevDeps === null) {
  40098. {
  40099. 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);
  40100. }
  40101. return false;
  40102. }
  40103. {
  40104. // Don't bother comparing lengths in prod because these arrays should be
  40105. // passed inline.
  40106. if (nextDeps.length !== prevDeps.length) {
  40107. 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(', ') + "]");
  40108. }
  40109. }
  40110. for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
  40111. if (objectIs(nextDeps[i], prevDeps[i])) {
  40112. continue;
  40113. }
  40114. return false;
  40115. }
  40116. return true;
  40117. }
  40118. function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderExpirationTime) {
  40119. renderExpirationTime = nextRenderExpirationTime;
  40120. currentlyRenderingFiber$1 = workInProgress;
  40121. {
  40122. hookTypesDev = current !== null ? current._debugHookTypes : null;
  40123. hookTypesUpdateIndexDev = -1; // Used for hot reloading:
  40124. ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  40125. }
  40126. workInProgress.memoizedState = null;
  40127. workInProgress.updateQueue = null;
  40128. workInProgress.expirationTime = NoWork; // The following should have already been reset
  40129. // currentHook = null;
  40130. // workInProgressHook = null;
  40131. // didScheduleRenderPhaseUpdate = false;
  40132. // TODO Warn if no hooks are used at all during mount, then some are used during update.
  40133. // Currently we will identify the update render as a mount because memoizedState === null.
  40134. // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  40135. // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
  40136. // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  40137. // so memoizedState would be null during updates and mounts.
  40138. {
  40139. if (current !== null && current.memoizedState !== null) {
  40140. ReactCurrentDispatcher.current = HooksDispatcherOnUpdateInDEV;
  40141. } else if (hookTypesDev !== null) {
  40142. // This dispatcher handles an edge case where a component is updating,
  40143. // but no stateful hooks have been used.
  40144. // We want to match the production code behavior (which will use HooksDispatcherOnMount),
  40145. // but with the extra DEV validation to ensure hooks ordering hasn't changed.
  40146. // This dispatcher does that.
  40147. ReactCurrentDispatcher.current = HooksDispatcherOnMountWithHookTypesInDEV;
  40148. } else {
  40149. ReactCurrentDispatcher.current = HooksDispatcherOnMountInDEV;
  40150. }
  40151. }
  40152. var children = Component(props, secondArg); // Check if there was a render phase update
  40153. if (workInProgress.expirationTime === renderExpirationTime) {
  40154. // Keep rendering in a loop for as long as render phase updates continue to
  40155. // be scheduled. Use a counter to prevent infinite loops.
  40156. var numberOfReRenders = 0;
  40157. do {
  40158. workInProgress.expirationTime = NoWork;
  40159. if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
  40160. {
  40161. throw Error( "Too many re-renders. React limits the number of renders to prevent an infinite loop." );
  40162. }
  40163. }
  40164. numberOfReRenders += 1;
  40165. {
  40166. // Even when hot reloading, allow dependencies to stabilize
  40167. // after first render to prevent infinite render phase updates.
  40168. ignorePreviousDependencies = false;
  40169. } // Start over from the beginning of the list
  40170. currentHook = null;
  40171. workInProgressHook = null;
  40172. workInProgress.updateQueue = null;
  40173. {
  40174. // Also validate hook order for cascading updates.
  40175. hookTypesUpdateIndexDev = -1;
  40176. }
  40177. ReactCurrentDispatcher.current = HooksDispatcherOnRerenderInDEV ;
  40178. children = Component(props, secondArg);
  40179. } while (workInProgress.expirationTime === renderExpirationTime);
  40180. } // We can assume the previous dispatcher is always this one, since we set it
  40181. // at the beginning of the render phase and there's no re-entrancy.
  40182. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  40183. {
  40184. workInProgress._debugHookTypes = hookTypesDev;
  40185. } // This check uses currentHook so that it works the same in DEV and prod bundles.
  40186. // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
  40187. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  40188. renderExpirationTime = NoWork;
  40189. currentlyRenderingFiber$1 = null;
  40190. currentHook = null;
  40191. workInProgressHook = null;
  40192. {
  40193. currentHookNameInDev = null;
  40194. hookTypesDev = null;
  40195. hookTypesUpdateIndexDev = -1;
  40196. }
  40197. didScheduleRenderPhaseUpdate = false;
  40198. if (!!didRenderTooFewHooks) {
  40199. {
  40200. throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." );
  40201. }
  40202. }
  40203. return children;
  40204. }
  40205. function bailoutHooks(current, workInProgress, expirationTime) {
  40206. workInProgress.updateQueue = current.updateQueue;
  40207. workInProgress.effectTag &= ~(Passive | Update);
  40208. if (current.expirationTime <= expirationTime) {
  40209. current.expirationTime = NoWork;
  40210. }
  40211. }
  40212. function resetHooksAfterThrow() {
  40213. // We can assume the previous dispatcher is always this one, since we set it
  40214. // at the beginning of the render phase and there's no re-entrancy.
  40215. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  40216. if (didScheduleRenderPhaseUpdate) {
  40217. // There were render phase updates. These are only valid for this render
  40218. // phase, which we are now aborting. Remove the updates from the queues so
  40219. // they do not persist to the next render. Do not remove updates from hooks
  40220. // that weren't processed.
  40221. //
  40222. // Only reset the updates from the queue if it has a clone. If it does
  40223. // not have a clone, that means it wasn't processed, and the updates were
  40224. // scheduled before we entered the render phase.
  40225. var hook = currentlyRenderingFiber$1.memoizedState;
  40226. while (hook !== null) {
  40227. var queue = hook.queue;
  40228. if (queue !== null) {
  40229. queue.pending = null;
  40230. }
  40231. hook = hook.next;
  40232. }
  40233. }
  40234. renderExpirationTime = NoWork;
  40235. currentlyRenderingFiber$1 = null;
  40236. currentHook = null;
  40237. workInProgressHook = null;
  40238. {
  40239. hookTypesDev = null;
  40240. hookTypesUpdateIndexDev = -1;
  40241. currentHookNameInDev = null;
  40242. }
  40243. didScheduleRenderPhaseUpdate = false;
  40244. }
  40245. function mountWorkInProgressHook() {
  40246. var hook = {
  40247. memoizedState: null,
  40248. baseState: null,
  40249. baseQueue: null,
  40250. queue: null,
  40251. next: null
  40252. };
  40253. if (workInProgressHook === null) {
  40254. // This is the first hook in the list
  40255. currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
  40256. } else {
  40257. // Append to the end of the list
  40258. workInProgressHook = workInProgressHook.next = hook;
  40259. }
  40260. return workInProgressHook;
  40261. }
  40262. function updateWorkInProgressHook() {
  40263. // This function is used both for updates and for re-renders triggered by a
  40264. // render phase update. It assumes there is either a current hook we can
  40265. // clone, or a work-in-progress hook from a previous render pass that we can
  40266. // use as a base. When we reach the end of the base list, we must switch to
  40267. // the dispatcher used for mounts.
  40268. var nextCurrentHook;
  40269. if (currentHook === null) {
  40270. var current = currentlyRenderingFiber$1.alternate;
  40271. if (current !== null) {
  40272. nextCurrentHook = current.memoizedState;
  40273. } else {
  40274. nextCurrentHook = null;
  40275. }
  40276. } else {
  40277. nextCurrentHook = currentHook.next;
  40278. }
  40279. var nextWorkInProgressHook;
  40280. if (workInProgressHook === null) {
  40281. nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
  40282. } else {
  40283. nextWorkInProgressHook = workInProgressHook.next;
  40284. }
  40285. if (nextWorkInProgressHook !== null) {
  40286. // There's already a work-in-progress. Reuse it.
  40287. workInProgressHook = nextWorkInProgressHook;
  40288. nextWorkInProgressHook = workInProgressHook.next;
  40289. currentHook = nextCurrentHook;
  40290. } else {
  40291. // Clone from the current hook.
  40292. if (!(nextCurrentHook !== null)) {
  40293. {
  40294. throw Error( "Rendered more hooks than during the previous render." );
  40295. }
  40296. }
  40297. currentHook = nextCurrentHook;
  40298. var newHook = {
  40299. memoizedState: currentHook.memoizedState,
  40300. baseState: currentHook.baseState,
  40301. baseQueue: currentHook.baseQueue,
  40302. queue: currentHook.queue,
  40303. next: null
  40304. };
  40305. if (workInProgressHook === null) {
  40306. // This is the first hook in the list.
  40307. currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
  40308. } else {
  40309. // Append to the end of the list.
  40310. workInProgressHook = workInProgressHook.next = newHook;
  40311. }
  40312. }
  40313. return workInProgressHook;
  40314. }
  40315. function createFunctionComponentUpdateQueue() {
  40316. return {
  40317. lastEffect: null
  40318. };
  40319. }
  40320. function basicStateReducer(state, action) {
  40321. // $FlowFixMe: Flow doesn't like mixed types
  40322. return typeof action === 'function' ? action(state) : action;
  40323. }
  40324. function mountReducer(reducer, initialArg, init) {
  40325. var hook = mountWorkInProgressHook();
  40326. var initialState;
  40327. if (init !== undefined) {
  40328. initialState = init(initialArg);
  40329. } else {
  40330. initialState = initialArg;
  40331. }
  40332. hook.memoizedState = hook.baseState = initialState;
  40333. var queue = hook.queue = {
  40334. pending: null,
  40335. dispatch: null,
  40336. lastRenderedReducer: reducer,
  40337. lastRenderedState: initialState
  40338. };
  40339. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  40340. return [hook.memoizedState, dispatch];
  40341. }
  40342. function updateReducer(reducer, initialArg, init) {
  40343. var hook = updateWorkInProgressHook();
  40344. var queue = hook.queue;
  40345. if (!(queue !== null)) {
  40346. {
  40347. throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
  40348. }
  40349. }
  40350. queue.lastRenderedReducer = reducer;
  40351. var current = currentHook; // The last rebase update that is NOT part of the base state.
  40352. var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.
  40353. var pendingQueue = queue.pending;
  40354. if (pendingQueue !== null) {
  40355. // We have new updates that haven't been processed yet.
  40356. // We'll add them to the base queue.
  40357. if (baseQueue !== null) {
  40358. // Merge the pending queue and the base queue.
  40359. var baseFirst = baseQueue.next;
  40360. var pendingFirst = pendingQueue.next;
  40361. baseQueue.next = pendingFirst;
  40362. pendingQueue.next = baseFirst;
  40363. }
  40364. current.baseQueue = baseQueue = pendingQueue;
  40365. queue.pending = null;
  40366. }
  40367. if (baseQueue !== null) {
  40368. // We have a queue to process.
  40369. var first = baseQueue.next;
  40370. var newState = current.baseState;
  40371. var newBaseState = null;
  40372. var newBaseQueueFirst = null;
  40373. var newBaseQueueLast = null;
  40374. var update = first;
  40375. do {
  40376. var updateExpirationTime = update.expirationTime;
  40377. if (updateExpirationTime < renderExpirationTime) {
  40378. // Priority is insufficient. Skip this update. If this is the first
  40379. // skipped update, the previous update/state is the new base
  40380. // update/state.
  40381. var clone = {
  40382. expirationTime: update.expirationTime,
  40383. suspenseConfig: update.suspenseConfig,
  40384. action: update.action,
  40385. eagerReducer: update.eagerReducer,
  40386. eagerState: update.eagerState,
  40387. next: null
  40388. };
  40389. if (newBaseQueueLast === null) {
  40390. newBaseQueueFirst = newBaseQueueLast = clone;
  40391. newBaseState = newState;
  40392. } else {
  40393. newBaseQueueLast = newBaseQueueLast.next = clone;
  40394. } // Update the remaining priority in the queue.
  40395. if (updateExpirationTime > currentlyRenderingFiber$1.expirationTime) {
  40396. currentlyRenderingFiber$1.expirationTime = updateExpirationTime;
  40397. markUnprocessedUpdateTime(updateExpirationTime);
  40398. }
  40399. } else {
  40400. // This update does have sufficient priority.
  40401. if (newBaseQueueLast !== null) {
  40402. var _clone = {
  40403. expirationTime: Sync,
  40404. // This update is going to be committed so we never want uncommit it.
  40405. suspenseConfig: update.suspenseConfig,
  40406. action: update.action,
  40407. eagerReducer: update.eagerReducer,
  40408. eagerState: update.eagerState,
  40409. next: null
  40410. };
  40411. newBaseQueueLast = newBaseQueueLast.next = _clone;
  40412. } // Mark the event time of this update as relevant to this render pass.
  40413. // TODO: This should ideally use the true event time of this update rather than
  40414. // its priority which is a derived and not reverseable value.
  40415. // TODO: We should skip this update if it was already committed but currently
  40416. // we have no way of detecting the difference between a committed and suspended
  40417. // update here.
  40418. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.
  40419. if (update.eagerReducer === reducer) {
  40420. // If this update was processed eagerly, and its reducer matches the
  40421. // current reducer, we can use the eagerly computed state.
  40422. newState = update.eagerState;
  40423. } else {
  40424. var action = update.action;
  40425. newState = reducer(newState, action);
  40426. }
  40427. }
  40428. update = update.next;
  40429. } while (update !== null && update !== first);
  40430. if (newBaseQueueLast === null) {
  40431. newBaseState = newState;
  40432. } else {
  40433. newBaseQueueLast.next = newBaseQueueFirst;
  40434. } // Mark that the fiber performed work, but only if the new state is
  40435. // different from the current state.
  40436. if (!objectIs(newState, hook.memoizedState)) {
  40437. markWorkInProgressReceivedUpdate();
  40438. }
  40439. hook.memoizedState = newState;
  40440. hook.baseState = newBaseState;
  40441. hook.baseQueue = newBaseQueueLast;
  40442. queue.lastRenderedState = newState;
  40443. }
  40444. var dispatch = queue.dispatch;
  40445. return [hook.memoizedState, dispatch];
  40446. }
  40447. function rerenderReducer(reducer, initialArg, init) {
  40448. var hook = updateWorkInProgressHook();
  40449. var queue = hook.queue;
  40450. if (!(queue !== null)) {
  40451. {
  40452. throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
  40453. }
  40454. }
  40455. queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
  40456. // work-in-progress hook.
  40457. var dispatch = queue.dispatch;
  40458. var lastRenderPhaseUpdate = queue.pending;
  40459. var newState = hook.memoizedState;
  40460. if (lastRenderPhaseUpdate !== null) {
  40461. // The queue doesn't persist past this render pass.
  40462. queue.pending = null;
  40463. var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  40464. var update = firstRenderPhaseUpdate;
  40465. do {
  40466. // Process this render phase update. We don't have to check the
  40467. // priority because it will always be the same as the current
  40468. // render's.
  40469. var action = update.action;
  40470. newState = reducer(newState, action);
  40471. update = update.next;
  40472. } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
  40473. // different from the current state.
  40474. if (!objectIs(newState, hook.memoizedState)) {
  40475. markWorkInProgressReceivedUpdate();
  40476. }
  40477. hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
  40478. // the base state unless the queue is empty.
  40479. // TODO: Not sure if this is the desired semantics, but it's what we
  40480. // do for gDSFP. I can't remember why.
  40481. if (hook.baseQueue === null) {
  40482. hook.baseState = newState;
  40483. }
  40484. queue.lastRenderedState = newState;
  40485. }
  40486. return [newState, dispatch];
  40487. }
  40488. function mountState(initialState) {
  40489. var hook = mountWorkInProgressHook();
  40490. if (typeof initialState === 'function') {
  40491. // $FlowFixMe: Flow doesn't like mixed types
  40492. initialState = initialState();
  40493. }
  40494. hook.memoizedState = hook.baseState = initialState;
  40495. var queue = hook.queue = {
  40496. pending: null,
  40497. dispatch: null,
  40498. lastRenderedReducer: basicStateReducer,
  40499. lastRenderedState: initialState
  40500. };
  40501. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  40502. return [hook.memoizedState, dispatch];
  40503. }
  40504. function updateState(initialState) {
  40505. return updateReducer(basicStateReducer);
  40506. }
  40507. function rerenderState(initialState) {
  40508. return rerenderReducer(basicStateReducer);
  40509. }
  40510. function pushEffect(tag, create, destroy, deps) {
  40511. var effect = {
  40512. tag: tag,
  40513. create: create,
  40514. destroy: destroy,
  40515. deps: deps,
  40516. // Circular
  40517. next: null
  40518. };
  40519. var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;
  40520. if (componentUpdateQueue === null) {
  40521. componentUpdateQueue = createFunctionComponentUpdateQueue();
  40522. currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
  40523. componentUpdateQueue.lastEffect = effect.next = effect;
  40524. } else {
  40525. var lastEffect = componentUpdateQueue.lastEffect;
  40526. if (lastEffect === null) {
  40527. componentUpdateQueue.lastEffect = effect.next = effect;
  40528. } else {
  40529. var firstEffect = lastEffect.next;
  40530. lastEffect.next = effect;
  40531. effect.next = firstEffect;
  40532. componentUpdateQueue.lastEffect = effect;
  40533. }
  40534. }
  40535. return effect;
  40536. }
  40537. function mountRef(initialValue) {
  40538. var hook = mountWorkInProgressHook();
  40539. var ref = {
  40540. current: initialValue
  40541. };
  40542. {
  40543. Object.seal(ref);
  40544. }
  40545. hook.memoizedState = ref;
  40546. return ref;
  40547. }
  40548. function updateRef(initialValue) {
  40549. var hook = updateWorkInProgressHook();
  40550. return hook.memoizedState;
  40551. }
  40552. function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  40553. var hook = mountWorkInProgressHook();
  40554. var nextDeps = deps === undefined ? null : deps;
  40555. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  40556. hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, undefined, nextDeps);
  40557. }
  40558. function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  40559. var hook = updateWorkInProgressHook();
  40560. var nextDeps = deps === undefined ? null : deps;
  40561. var destroy = undefined;
  40562. if (currentHook !== null) {
  40563. var prevEffect = currentHook.memoizedState;
  40564. destroy = prevEffect.destroy;
  40565. if (nextDeps !== null) {
  40566. var prevDeps = prevEffect.deps;
  40567. if (areHookInputsEqual(nextDeps, prevDeps)) {
  40568. pushEffect(hookEffectTag, create, destroy, nextDeps);
  40569. return;
  40570. }
  40571. }
  40572. }
  40573. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  40574. hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, destroy, nextDeps);
  40575. }
  40576. function mountEffect(create, deps) {
  40577. {
  40578. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  40579. if ('undefined' !== typeof jest) {
  40580. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  40581. }
  40582. }
  40583. return mountEffectImpl(Update | Passive, Passive$1, create, deps);
  40584. }
  40585. function updateEffect(create, deps) {
  40586. {
  40587. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  40588. if ('undefined' !== typeof jest) {
  40589. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  40590. }
  40591. }
  40592. return updateEffectImpl(Update | Passive, Passive$1, create, deps);
  40593. }
  40594. function mountLayoutEffect(create, deps) {
  40595. return mountEffectImpl(Update, Layout, create, deps);
  40596. }
  40597. function updateLayoutEffect(create, deps) {
  40598. return updateEffectImpl(Update, Layout, create, deps);
  40599. }
  40600. function imperativeHandleEffect(create, ref) {
  40601. if (typeof ref === 'function') {
  40602. var refCallback = ref;
  40603. var _inst = create();
  40604. refCallback(_inst);
  40605. return function () {
  40606. refCallback(null);
  40607. };
  40608. } else if (ref !== null && ref !== undefined) {
  40609. var refObject = ref;
  40610. {
  40611. if (!refObject.hasOwnProperty('current')) {
  40612. 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(', ') + '}');
  40613. }
  40614. }
  40615. var _inst2 = create();
  40616. refObject.current = _inst2;
  40617. return function () {
  40618. refObject.current = null;
  40619. };
  40620. }
  40621. }
  40622. function mountImperativeHandle(ref, create, deps) {
  40623. {
  40624. if (typeof create !== 'function') {
  40625. error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
  40626. }
  40627. } // TODO: If deps are provided, should we skip comparing the ref itself?
  40628. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  40629. return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  40630. }
  40631. function updateImperativeHandle(ref, create, deps) {
  40632. {
  40633. if (typeof create !== 'function') {
  40634. error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
  40635. }
  40636. } // TODO: If deps are provided, should we skip comparing the ref itself?
  40637. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  40638. return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  40639. }
  40640. function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
  40641. // The react-debug-hooks package injects its own implementation
  40642. // so that e.g. DevTools can display custom hook values.
  40643. }
  40644. var updateDebugValue = mountDebugValue;
  40645. function mountCallback(callback, deps) {
  40646. var hook = mountWorkInProgressHook();
  40647. var nextDeps = deps === undefined ? null : deps;
  40648. hook.memoizedState = [callback, nextDeps];
  40649. return callback;
  40650. }
  40651. function updateCallback(callback, deps) {
  40652. var hook = updateWorkInProgressHook();
  40653. var nextDeps = deps === undefined ? null : deps;
  40654. var prevState = hook.memoizedState;
  40655. if (prevState !== null) {
  40656. if (nextDeps !== null) {
  40657. var prevDeps = prevState[1];
  40658. if (areHookInputsEqual(nextDeps, prevDeps)) {
  40659. return prevState[0];
  40660. }
  40661. }
  40662. }
  40663. hook.memoizedState = [callback, nextDeps];
  40664. return callback;
  40665. }
  40666. function mountMemo(nextCreate, deps) {
  40667. var hook = mountWorkInProgressHook();
  40668. var nextDeps = deps === undefined ? null : deps;
  40669. var nextValue = nextCreate();
  40670. hook.memoizedState = [nextValue, nextDeps];
  40671. return nextValue;
  40672. }
  40673. function updateMemo(nextCreate, deps) {
  40674. var hook = updateWorkInProgressHook();
  40675. var nextDeps = deps === undefined ? null : deps;
  40676. var prevState = hook.memoizedState;
  40677. if (prevState !== null) {
  40678. // Assume these are defined. If they're not, areHookInputsEqual will warn.
  40679. if (nextDeps !== null) {
  40680. var prevDeps = prevState[1];
  40681. if (areHookInputsEqual(nextDeps, prevDeps)) {
  40682. return prevState[0];
  40683. }
  40684. }
  40685. }
  40686. var nextValue = nextCreate();
  40687. hook.memoizedState = [nextValue, nextDeps];
  40688. return nextValue;
  40689. }
  40690. function mountDeferredValue(value, config) {
  40691. var _mountState = mountState(value),
  40692. prevValue = _mountState[0],
  40693. setValue = _mountState[1];
  40694. mountEffect(function () {
  40695. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  40696. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  40697. try {
  40698. setValue(value);
  40699. } finally {
  40700. ReactCurrentBatchConfig$1.suspense = previousConfig;
  40701. }
  40702. }, [value, config]);
  40703. return prevValue;
  40704. }
  40705. function updateDeferredValue(value, config) {
  40706. var _updateState = updateState(),
  40707. prevValue = _updateState[0],
  40708. setValue = _updateState[1];
  40709. updateEffect(function () {
  40710. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  40711. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  40712. try {
  40713. setValue(value);
  40714. } finally {
  40715. ReactCurrentBatchConfig$1.suspense = previousConfig;
  40716. }
  40717. }, [value, config]);
  40718. return prevValue;
  40719. }
  40720. function rerenderDeferredValue(value, config) {
  40721. var _rerenderState = rerenderState(),
  40722. prevValue = _rerenderState[0],
  40723. setValue = _rerenderState[1];
  40724. updateEffect(function () {
  40725. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  40726. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  40727. try {
  40728. setValue(value);
  40729. } finally {
  40730. ReactCurrentBatchConfig$1.suspense = previousConfig;
  40731. }
  40732. }, [value, config]);
  40733. return prevValue;
  40734. }
  40735. function startTransition(setPending, config, callback) {
  40736. var priorityLevel = getCurrentPriorityLevel();
  40737. runWithPriority$1(priorityLevel < UserBlockingPriority$1 ? UserBlockingPriority$1 : priorityLevel, function () {
  40738. setPending(true);
  40739. });
  40740. runWithPriority$1(priorityLevel > NormalPriority ? NormalPriority : priorityLevel, function () {
  40741. var previousConfig = ReactCurrentBatchConfig$1.suspense;
  40742. ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
  40743. try {
  40744. setPending(false);
  40745. callback();
  40746. } finally {
  40747. ReactCurrentBatchConfig$1.suspense = previousConfig;
  40748. }
  40749. });
  40750. }
  40751. function mountTransition(config) {
  40752. var _mountState2 = mountState(false),
  40753. isPending = _mountState2[0],
  40754. setPending = _mountState2[1];
  40755. var start = mountCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  40756. return [start, isPending];
  40757. }
  40758. function updateTransition(config) {
  40759. var _updateState2 = updateState(),
  40760. isPending = _updateState2[0],
  40761. setPending = _updateState2[1];
  40762. var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  40763. return [start, isPending];
  40764. }
  40765. function rerenderTransition(config) {
  40766. var _rerenderState2 = rerenderState(),
  40767. isPending = _rerenderState2[0],
  40768. setPending = _rerenderState2[1];
  40769. var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  40770. return [start, isPending];
  40771. }
  40772. function dispatchAction(fiber, queue, action) {
  40773. {
  40774. if (typeof arguments[3] === 'function') {
  40775. 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().');
  40776. }
  40777. }
  40778. var currentTime = requestCurrentTimeForUpdate();
  40779. var suspenseConfig = requestCurrentSuspenseConfig();
  40780. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  40781. var update = {
  40782. expirationTime: expirationTime,
  40783. suspenseConfig: suspenseConfig,
  40784. action: action,
  40785. eagerReducer: null,
  40786. eagerState: null,
  40787. next: null
  40788. };
  40789. {
  40790. update.priority = getCurrentPriorityLevel();
  40791. } // Append the update to the end of the list.
  40792. var pending = queue.pending;
  40793. if (pending === null) {
  40794. // This is the first update. Create a circular list.
  40795. update.next = update;
  40796. } else {
  40797. update.next = pending.next;
  40798. pending.next = update;
  40799. }
  40800. queue.pending = update;
  40801. var alternate = fiber.alternate;
  40802. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  40803. // This is a render phase update. Stash it in a lazily-created map of
  40804. // queue -> linked list of updates. After this render pass, we'll restart
  40805. // and apply the stashed updates on top of the work-in-progress hook.
  40806. didScheduleRenderPhaseUpdate = true;
  40807. update.expirationTime = renderExpirationTime;
  40808. currentlyRenderingFiber$1.expirationTime = renderExpirationTime;
  40809. } else {
  40810. if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
  40811. // The queue is currently empty, which means we can eagerly compute the
  40812. // next state before entering the render phase. If the new state is the
  40813. // same as the current state, we may be able to bail out entirely.
  40814. var lastRenderedReducer = queue.lastRenderedReducer;
  40815. if (lastRenderedReducer !== null) {
  40816. var prevDispatcher;
  40817. {
  40818. prevDispatcher = ReactCurrentDispatcher.current;
  40819. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  40820. }
  40821. try {
  40822. var currentState = queue.lastRenderedState;
  40823. var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
  40824. // it, on the update object. If the reducer hasn't changed by the
  40825. // time we enter the render phase, then the eager state can be used
  40826. // without calling the reducer again.
  40827. update.eagerReducer = lastRenderedReducer;
  40828. update.eagerState = eagerState;
  40829. if (objectIs(eagerState, currentState)) {
  40830. // Fast path. We can bail out without scheduling React to re-render.
  40831. // It's still possible that we'll need to rebase this update later,
  40832. // if the component re-renders for a different reason and by that
  40833. // time the reducer has changed.
  40834. return;
  40835. }
  40836. } catch (error) {// Suppress the error. It will throw again in the render phase.
  40837. } finally {
  40838. {
  40839. ReactCurrentDispatcher.current = prevDispatcher;
  40840. }
  40841. }
  40842. }
  40843. }
  40844. {
  40845. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  40846. if ('undefined' !== typeof jest) {
  40847. warnIfNotScopedWithMatchingAct(fiber);
  40848. warnIfNotCurrentlyActingUpdatesInDev(fiber);
  40849. }
  40850. }
  40851. scheduleWork(fiber, expirationTime);
  40852. }
  40853. }
  40854. var ContextOnlyDispatcher = {
  40855. readContext: readContext,
  40856. useCallback: throwInvalidHookError,
  40857. useContext: throwInvalidHookError,
  40858. useEffect: throwInvalidHookError,
  40859. useImperativeHandle: throwInvalidHookError,
  40860. useLayoutEffect: throwInvalidHookError,
  40861. useMemo: throwInvalidHookError,
  40862. useReducer: throwInvalidHookError,
  40863. useRef: throwInvalidHookError,
  40864. useState: throwInvalidHookError,
  40865. useDebugValue: throwInvalidHookError,
  40866. useResponder: throwInvalidHookError,
  40867. useDeferredValue: throwInvalidHookError,
  40868. useTransition: throwInvalidHookError
  40869. };
  40870. var HooksDispatcherOnMountInDEV = null;
  40871. var HooksDispatcherOnMountWithHookTypesInDEV = null;
  40872. var HooksDispatcherOnUpdateInDEV = null;
  40873. var HooksDispatcherOnRerenderInDEV = null;
  40874. var InvalidNestedHooksDispatcherOnMountInDEV = null;
  40875. var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
  40876. var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
  40877. {
  40878. var warnInvalidContextAccess = function () {
  40879. 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().');
  40880. };
  40881. var warnInvalidHookAccess = function () {
  40882. 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');
  40883. };
  40884. HooksDispatcherOnMountInDEV = {
  40885. readContext: function (context, observedBits) {
  40886. return readContext(context, observedBits);
  40887. },
  40888. useCallback: function (callback, deps) {
  40889. currentHookNameInDev = 'useCallback';
  40890. mountHookTypesDev();
  40891. checkDepsAreArrayDev(deps);
  40892. return mountCallback(callback, deps);
  40893. },
  40894. useContext: function (context, observedBits) {
  40895. currentHookNameInDev = 'useContext';
  40896. mountHookTypesDev();
  40897. return readContext(context, observedBits);
  40898. },
  40899. useEffect: function (create, deps) {
  40900. currentHookNameInDev = 'useEffect';
  40901. mountHookTypesDev();
  40902. checkDepsAreArrayDev(deps);
  40903. return mountEffect(create, deps);
  40904. },
  40905. useImperativeHandle: function (ref, create, deps) {
  40906. currentHookNameInDev = 'useImperativeHandle';
  40907. mountHookTypesDev();
  40908. checkDepsAreArrayDev(deps);
  40909. return mountImperativeHandle(ref, create, deps);
  40910. },
  40911. useLayoutEffect: function (create, deps) {
  40912. currentHookNameInDev = 'useLayoutEffect';
  40913. mountHookTypesDev();
  40914. checkDepsAreArrayDev(deps);
  40915. return mountLayoutEffect(create, deps);
  40916. },
  40917. useMemo: function (create, deps) {
  40918. currentHookNameInDev = 'useMemo';
  40919. mountHookTypesDev();
  40920. checkDepsAreArrayDev(deps);
  40921. var prevDispatcher = ReactCurrentDispatcher.current;
  40922. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  40923. try {
  40924. return mountMemo(create, deps);
  40925. } finally {
  40926. ReactCurrentDispatcher.current = prevDispatcher;
  40927. }
  40928. },
  40929. useReducer: function (reducer, initialArg, init) {
  40930. currentHookNameInDev = 'useReducer';
  40931. mountHookTypesDev();
  40932. var prevDispatcher = ReactCurrentDispatcher.current;
  40933. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  40934. try {
  40935. return mountReducer(reducer, initialArg, init);
  40936. } finally {
  40937. ReactCurrentDispatcher.current = prevDispatcher;
  40938. }
  40939. },
  40940. useRef: function (initialValue) {
  40941. currentHookNameInDev = 'useRef';
  40942. mountHookTypesDev();
  40943. return mountRef(initialValue);
  40944. },
  40945. useState: function (initialState) {
  40946. currentHookNameInDev = 'useState';
  40947. mountHookTypesDev();
  40948. var prevDispatcher = ReactCurrentDispatcher.current;
  40949. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  40950. try {
  40951. return mountState(initialState);
  40952. } finally {
  40953. ReactCurrentDispatcher.current = prevDispatcher;
  40954. }
  40955. },
  40956. useDebugValue: function (value, formatterFn) {
  40957. currentHookNameInDev = 'useDebugValue';
  40958. mountHookTypesDev();
  40959. return mountDebugValue();
  40960. },
  40961. useResponder: function (responder, props) {
  40962. currentHookNameInDev = 'useResponder';
  40963. mountHookTypesDev();
  40964. return createDeprecatedResponderListener(responder, props);
  40965. },
  40966. useDeferredValue: function (value, config) {
  40967. currentHookNameInDev = 'useDeferredValue';
  40968. mountHookTypesDev();
  40969. return mountDeferredValue(value, config);
  40970. },
  40971. useTransition: function (config) {
  40972. currentHookNameInDev = 'useTransition';
  40973. mountHookTypesDev();
  40974. return mountTransition(config);
  40975. }
  40976. };
  40977. HooksDispatcherOnMountWithHookTypesInDEV = {
  40978. readContext: function (context, observedBits) {
  40979. return readContext(context, observedBits);
  40980. },
  40981. useCallback: function (callback, deps) {
  40982. currentHookNameInDev = 'useCallback';
  40983. updateHookTypesDev();
  40984. return mountCallback(callback, deps);
  40985. },
  40986. useContext: function (context, observedBits) {
  40987. currentHookNameInDev = 'useContext';
  40988. updateHookTypesDev();
  40989. return readContext(context, observedBits);
  40990. },
  40991. useEffect: function (create, deps) {
  40992. currentHookNameInDev = 'useEffect';
  40993. updateHookTypesDev();
  40994. return mountEffect(create, deps);
  40995. },
  40996. useImperativeHandle: function (ref, create, deps) {
  40997. currentHookNameInDev = 'useImperativeHandle';
  40998. updateHookTypesDev();
  40999. return mountImperativeHandle(ref, create, deps);
  41000. },
  41001. useLayoutEffect: function (create, deps) {
  41002. currentHookNameInDev = 'useLayoutEffect';
  41003. updateHookTypesDev();
  41004. return mountLayoutEffect(create, deps);
  41005. },
  41006. useMemo: function (create, deps) {
  41007. currentHookNameInDev = 'useMemo';
  41008. updateHookTypesDev();
  41009. var prevDispatcher = ReactCurrentDispatcher.current;
  41010. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  41011. try {
  41012. return mountMemo(create, deps);
  41013. } finally {
  41014. ReactCurrentDispatcher.current = prevDispatcher;
  41015. }
  41016. },
  41017. useReducer: function (reducer, initialArg, init) {
  41018. currentHookNameInDev = 'useReducer';
  41019. updateHookTypesDev();
  41020. var prevDispatcher = ReactCurrentDispatcher.current;
  41021. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  41022. try {
  41023. return mountReducer(reducer, initialArg, init);
  41024. } finally {
  41025. ReactCurrentDispatcher.current = prevDispatcher;
  41026. }
  41027. },
  41028. useRef: function (initialValue) {
  41029. currentHookNameInDev = 'useRef';
  41030. updateHookTypesDev();
  41031. return mountRef(initialValue);
  41032. },
  41033. useState: function (initialState) {
  41034. currentHookNameInDev = 'useState';
  41035. updateHookTypesDev();
  41036. var prevDispatcher = ReactCurrentDispatcher.current;
  41037. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  41038. try {
  41039. return mountState(initialState);
  41040. } finally {
  41041. ReactCurrentDispatcher.current = prevDispatcher;
  41042. }
  41043. },
  41044. useDebugValue: function (value, formatterFn) {
  41045. currentHookNameInDev = 'useDebugValue';
  41046. updateHookTypesDev();
  41047. return mountDebugValue();
  41048. },
  41049. useResponder: function (responder, props) {
  41050. currentHookNameInDev = 'useResponder';
  41051. updateHookTypesDev();
  41052. return createDeprecatedResponderListener(responder, props);
  41053. },
  41054. useDeferredValue: function (value, config) {
  41055. currentHookNameInDev = 'useDeferredValue';
  41056. updateHookTypesDev();
  41057. return mountDeferredValue(value, config);
  41058. },
  41059. useTransition: function (config) {
  41060. currentHookNameInDev = 'useTransition';
  41061. updateHookTypesDev();
  41062. return mountTransition(config);
  41063. }
  41064. };
  41065. HooksDispatcherOnUpdateInDEV = {
  41066. readContext: function (context, observedBits) {
  41067. return readContext(context, observedBits);
  41068. },
  41069. useCallback: function (callback, deps) {
  41070. currentHookNameInDev = 'useCallback';
  41071. updateHookTypesDev();
  41072. return updateCallback(callback, deps);
  41073. },
  41074. useContext: function (context, observedBits) {
  41075. currentHookNameInDev = 'useContext';
  41076. updateHookTypesDev();
  41077. return readContext(context, observedBits);
  41078. },
  41079. useEffect: function (create, deps) {
  41080. currentHookNameInDev = 'useEffect';
  41081. updateHookTypesDev();
  41082. return updateEffect(create, deps);
  41083. },
  41084. useImperativeHandle: function (ref, create, deps) {
  41085. currentHookNameInDev = 'useImperativeHandle';
  41086. updateHookTypesDev();
  41087. return updateImperativeHandle(ref, create, deps);
  41088. },
  41089. useLayoutEffect: function (create, deps) {
  41090. currentHookNameInDev = 'useLayoutEffect';
  41091. updateHookTypesDev();
  41092. return updateLayoutEffect(create, deps);
  41093. },
  41094. useMemo: function (create, deps) {
  41095. currentHookNameInDev = 'useMemo';
  41096. updateHookTypesDev();
  41097. var prevDispatcher = ReactCurrentDispatcher.current;
  41098. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  41099. try {
  41100. return updateMemo(create, deps);
  41101. } finally {
  41102. ReactCurrentDispatcher.current = prevDispatcher;
  41103. }
  41104. },
  41105. useReducer: function (reducer, initialArg, init) {
  41106. currentHookNameInDev = 'useReducer';
  41107. updateHookTypesDev();
  41108. var prevDispatcher = ReactCurrentDispatcher.current;
  41109. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  41110. try {
  41111. return updateReducer(reducer, initialArg, init);
  41112. } finally {
  41113. ReactCurrentDispatcher.current = prevDispatcher;
  41114. }
  41115. },
  41116. useRef: function (initialValue) {
  41117. currentHookNameInDev = 'useRef';
  41118. updateHookTypesDev();
  41119. return updateRef();
  41120. },
  41121. useState: function (initialState) {
  41122. currentHookNameInDev = 'useState';
  41123. updateHookTypesDev();
  41124. var prevDispatcher = ReactCurrentDispatcher.current;
  41125. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  41126. try {
  41127. return updateState(initialState);
  41128. } finally {
  41129. ReactCurrentDispatcher.current = prevDispatcher;
  41130. }
  41131. },
  41132. useDebugValue: function (value, formatterFn) {
  41133. currentHookNameInDev = 'useDebugValue';
  41134. updateHookTypesDev();
  41135. return updateDebugValue();
  41136. },
  41137. useResponder: function (responder, props) {
  41138. currentHookNameInDev = 'useResponder';
  41139. updateHookTypesDev();
  41140. return createDeprecatedResponderListener(responder, props);
  41141. },
  41142. useDeferredValue: function (value, config) {
  41143. currentHookNameInDev = 'useDeferredValue';
  41144. updateHookTypesDev();
  41145. return updateDeferredValue(value, config);
  41146. },
  41147. useTransition: function (config) {
  41148. currentHookNameInDev = 'useTransition';
  41149. updateHookTypesDev();
  41150. return updateTransition(config);
  41151. }
  41152. };
  41153. HooksDispatcherOnRerenderInDEV = {
  41154. readContext: function (context, observedBits) {
  41155. return readContext(context, observedBits);
  41156. },
  41157. useCallback: function (callback, deps) {
  41158. currentHookNameInDev = 'useCallback';
  41159. updateHookTypesDev();
  41160. return updateCallback(callback, deps);
  41161. },
  41162. useContext: function (context, observedBits) {
  41163. currentHookNameInDev = 'useContext';
  41164. updateHookTypesDev();
  41165. return readContext(context, observedBits);
  41166. },
  41167. useEffect: function (create, deps) {
  41168. currentHookNameInDev = 'useEffect';
  41169. updateHookTypesDev();
  41170. return updateEffect(create, deps);
  41171. },
  41172. useImperativeHandle: function (ref, create, deps) {
  41173. currentHookNameInDev = 'useImperativeHandle';
  41174. updateHookTypesDev();
  41175. return updateImperativeHandle(ref, create, deps);
  41176. },
  41177. useLayoutEffect: function (create, deps) {
  41178. currentHookNameInDev = 'useLayoutEffect';
  41179. updateHookTypesDev();
  41180. return updateLayoutEffect(create, deps);
  41181. },
  41182. useMemo: function (create, deps) {
  41183. currentHookNameInDev = 'useMemo';
  41184. updateHookTypesDev();
  41185. var prevDispatcher = ReactCurrentDispatcher.current;
  41186. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
  41187. try {
  41188. return updateMemo(create, deps);
  41189. } finally {
  41190. ReactCurrentDispatcher.current = prevDispatcher;
  41191. }
  41192. },
  41193. useReducer: function (reducer, initialArg, init) {
  41194. currentHookNameInDev = 'useReducer';
  41195. updateHookTypesDev();
  41196. var prevDispatcher = ReactCurrentDispatcher.current;
  41197. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
  41198. try {
  41199. return rerenderReducer(reducer, initialArg, init);
  41200. } finally {
  41201. ReactCurrentDispatcher.current = prevDispatcher;
  41202. }
  41203. },
  41204. useRef: function (initialValue) {
  41205. currentHookNameInDev = 'useRef';
  41206. updateHookTypesDev();
  41207. return updateRef();
  41208. },
  41209. useState: function (initialState) {
  41210. currentHookNameInDev = 'useState';
  41211. updateHookTypesDev();
  41212. var prevDispatcher = ReactCurrentDispatcher.current;
  41213. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
  41214. try {
  41215. return rerenderState(initialState);
  41216. } finally {
  41217. ReactCurrentDispatcher.current = prevDispatcher;
  41218. }
  41219. },
  41220. useDebugValue: function (value, formatterFn) {
  41221. currentHookNameInDev = 'useDebugValue';
  41222. updateHookTypesDev();
  41223. return updateDebugValue();
  41224. },
  41225. useResponder: function (responder, props) {
  41226. currentHookNameInDev = 'useResponder';
  41227. updateHookTypesDev();
  41228. return createDeprecatedResponderListener(responder, props);
  41229. },
  41230. useDeferredValue: function (value, config) {
  41231. currentHookNameInDev = 'useDeferredValue';
  41232. updateHookTypesDev();
  41233. return rerenderDeferredValue(value, config);
  41234. },
  41235. useTransition: function (config) {
  41236. currentHookNameInDev = 'useTransition';
  41237. updateHookTypesDev();
  41238. return rerenderTransition(config);
  41239. }
  41240. };
  41241. InvalidNestedHooksDispatcherOnMountInDEV = {
  41242. readContext: function (context, observedBits) {
  41243. warnInvalidContextAccess();
  41244. return readContext(context, observedBits);
  41245. },
  41246. useCallback: function (callback, deps) {
  41247. currentHookNameInDev = 'useCallback';
  41248. warnInvalidHookAccess();
  41249. mountHookTypesDev();
  41250. return mountCallback(callback, deps);
  41251. },
  41252. useContext: function (context, observedBits) {
  41253. currentHookNameInDev = 'useContext';
  41254. warnInvalidHookAccess();
  41255. mountHookTypesDev();
  41256. return readContext(context, observedBits);
  41257. },
  41258. useEffect: function (create, deps) {
  41259. currentHookNameInDev = 'useEffect';
  41260. warnInvalidHookAccess();
  41261. mountHookTypesDev();
  41262. return mountEffect(create, deps);
  41263. },
  41264. useImperativeHandle: function (ref, create, deps) {
  41265. currentHookNameInDev = 'useImperativeHandle';
  41266. warnInvalidHookAccess();
  41267. mountHookTypesDev();
  41268. return mountImperativeHandle(ref, create, deps);
  41269. },
  41270. useLayoutEffect: function (create, deps) {
  41271. currentHookNameInDev = 'useLayoutEffect';
  41272. warnInvalidHookAccess();
  41273. mountHookTypesDev();
  41274. return mountLayoutEffect(create, deps);
  41275. },
  41276. useMemo: function (create, deps) {
  41277. currentHookNameInDev = 'useMemo';
  41278. warnInvalidHookAccess();
  41279. mountHookTypesDev();
  41280. var prevDispatcher = ReactCurrentDispatcher.current;
  41281. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  41282. try {
  41283. return mountMemo(create, deps);
  41284. } finally {
  41285. ReactCurrentDispatcher.current = prevDispatcher;
  41286. }
  41287. },
  41288. useReducer: function (reducer, initialArg, init) {
  41289. currentHookNameInDev = 'useReducer';
  41290. warnInvalidHookAccess();
  41291. mountHookTypesDev();
  41292. var prevDispatcher = ReactCurrentDispatcher.current;
  41293. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  41294. try {
  41295. return mountReducer(reducer, initialArg, init);
  41296. } finally {
  41297. ReactCurrentDispatcher.current = prevDispatcher;
  41298. }
  41299. },
  41300. useRef: function (initialValue) {
  41301. currentHookNameInDev = 'useRef';
  41302. warnInvalidHookAccess();
  41303. mountHookTypesDev();
  41304. return mountRef(initialValue);
  41305. },
  41306. useState: function (initialState) {
  41307. currentHookNameInDev = 'useState';
  41308. warnInvalidHookAccess();
  41309. mountHookTypesDev();
  41310. var prevDispatcher = ReactCurrentDispatcher.current;
  41311. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
  41312. try {
  41313. return mountState(initialState);
  41314. } finally {
  41315. ReactCurrentDispatcher.current = prevDispatcher;
  41316. }
  41317. },
  41318. useDebugValue: function (value, formatterFn) {
  41319. currentHookNameInDev = 'useDebugValue';
  41320. warnInvalidHookAccess();
  41321. mountHookTypesDev();
  41322. return mountDebugValue();
  41323. },
  41324. useResponder: function (responder, props) {
  41325. currentHookNameInDev = 'useResponder';
  41326. warnInvalidHookAccess();
  41327. mountHookTypesDev();
  41328. return createDeprecatedResponderListener(responder, props);
  41329. },
  41330. useDeferredValue: function (value, config) {
  41331. currentHookNameInDev = 'useDeferredValue';
  41332. warnInvalidHookAccess();
  41333. mountHookTypesDev();
  41334. return mountDeferredValue(value, config);
  41335. },
  41336. useTransition: function (config) {
  41337. currentHookNameInDev = 'useTransition';
  41338. warnInvalidHookAccess();
  41339. mountHookTypesDev();
  41340. return mountTransition(config);
  41341. }
  41342. };
  41343. InvalidNestedHooksDispatcherOnUpdateInDEV = {
  41344. readContext: function (context, observedBits) {
  41345. warnInvalidContextAccess();
  41346. return readContext(context, observedBits);
  41347. },
  41348. useCallback: function (callback, deps) {
  41349. currentHookNameInDev = 'useCallback';
  41350. warnInvalidHookAccess();
  41351. updateHookTypesDev();
  41352. return updateCallback(callback, deps);
  41353. },
  41354. useContext: function (context, observedBits) {
  41355. currentHookNameInDev = 'useContext';
  41356. warnInvalidHookAccess();
  41357. updateHookTypesDev();
  41358. return readContext(context, observedBits);
  41359. },
  41360. useEffect: function (create, deps) {
  41361. currentHookNameInDev = 'useEffect';
  41362. warnInvalidHookAccess();
  41363. updateHookTypesDev();
  41364. return updateEffect(create, deps);
  41365. },
  41366. useImperativeHandle: function (ref, create, deps) {
  41367. currentHookNameInDev = 'useImperativeHandle';
  41368. warnInvalidHookAccess();
  41369. updateHookTypesDev();
  41370. return updateImperativeHandle(ref, create, deps);
  41371. },
  41372. useLayoutEffect: function (create, deps) {
  41373. currentHookNameInDev = 'useLayoutEffect';
  41374. warnInvalidHookAccess();
  41375. updateHookTypesDev();
  41376. return updateLayoutEffect(create, deps);
  41377. },
  41378. useMemo: function (create, deps) {
  41379. currentHookNameInDev = 'useMemo';
  41380. warnInvalidHookAccess();
  41381. updateHookTypesDev();
  41382. var prevDispatcher = ReactCurrentDispatcher.current;
  41383. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  41384. try {
  41385. return updateMemo(create, deps);
  41386. } finally {
  41387. ReactCurrentDispatcher.current = prevDispatcher;
  41388. }
  41389. },
  41390. useReducer: function (reducer, initialArg, init) {
  41391. currentHookNameInDev = 'useReducer';
  41392. warnInvalidHookAccess();
  41393. updateHookTypesDev();
  41394. var prevDispatcher = ReactCurrentDispatcher.current;
  41395. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  41396. try {
  41397. return updateReducer(reducer, initialArg, init);
  41398. } finally {
  41399. ReactCurrentDispatcher.current = prevDispatcher;
  41400. }
  41401. },
  41402. useRef: function (initialValue) {
  41403. currentHookNameInDev = 'useRef';
  41404. warnInvalidHookAccess();
  41405. updateHookTypesDev();
  41406. return updateRef();
  41407. },
  41408. useState: function (initialState) {
  41409. currentHookNameInDev = 'useState';
  41410. warnInvalidHookAccess();
  41411. updateHookTypesDev();
  41412. var prevDispatcher = ReactCurrentDispatcher.current;
  41413. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  41414. try {
  41415. return updateState(initialState);
  41416. } finally {
  41417. ReactCurrentDispatcher.current = prevDispatcher;
  41418. }
  41419. },
  41420. useDebugValue: function (value, formatterFn) {
  41421. currentHookNameInDev = 'useDebugValue';
  41422. warnInvalidHookAccess();
  41423. updateHookTypesDev();
  41424. return updateDebugValue();
  41425. },
  41426. useResponder: function (responder, props) {
  41427. currentHookNameInDev = 'useResponder';
  41428. warnInvalidHookAccess();
  41429. updateHookTypesDev();
  41430. return createDeprecatedResponderListener(responder, props);
  41431. },
  41432. useDeferredValue: function (value, config) {
  41433. currentHookNameInDev = 'useDeferredValue';
  41434. warnInvalidHookAccess();
  41435. updateHookTypesDev();
  41436. return updateDeferredValue(value, config);
  41437. },
  41438. useTransition: function (config) {
  41439. currentHookNameInDev = 'useTransition';
  41440. warnInvalidHookAccess();
  41441. updateHookTypesDev();
  41442. return updateTransition(config);
  41443. }
  41444. };
  41445. InvalidNestedHooksDispatcherOnRerenderInDEV = {
  41446. readContext: function (context, observedBits) {
  41447. warnInvalidContextAccess();
  41448. return readContext(context, observedBits);
  41449. },
  41450. useCallback: function (callback, deps) {
  41451. currentHookNameInDev = 'useCallback';
  41452. warnInvalidHookAccess();
  41453. updateHookTypesDev();
  41454. return updateCallback(callback, deps);
  41455. },
  41456. useContext: function (context, observedBits) {
  41457. currentHookNameInDev = 'useContext';
  41458. warnInvalidHookAccess();
  41459. updateHookTypesDev();
  41460. return readContext(context, observedBits);
  41461. },
  41462. useEffect: function (create, deps) {
  41463. currentHookNameInDev = 'useEffect';
  41464. warnInvalidHookAccess();
  41465. updateHookTypesDev();
  41466. return updateEffect(create, deps);
  41467. },
  41468. useImperativeHandle: function (ref, create, deps) {
  41469. currentHookNameInDev = 'useImperativeHandle';
  41470. warnInvalidHookAccess();
  41471. updateHookTypesDev();
  41472. return updateImperativeHandle(ref, create, deps);
  41473. },
  41474. useLayoutEffect: function (create, deps) {
  41475. currentHookNameInDev = 'useLayoutEffect';
  41476. warnInvalidHookAccess();
  41477. updateHookTypesDev();
  41478. return updateLayoutEffect(create, deps);
  41479. },
  41480. useMemo: function (create, deps) {
  41481. currentHookNameInDev = 'useMemo';
  41482. warnInvalidHookAccess();
  41483. updateHookTypesDev();
  41484. var prevDispatcher = ReactCurrentDispatcher.current;
  41485. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  41486. try {
  41487. return updateMemo(create, deps);
  41488. } finally {
  41489. ReactCurrentDispatcher.current = prevDispatcher;
  41490. }
  41491. },
  41492. useReducer: function (reducer, initialArg, init) {
  41493. currentHookNameInDev = 'useReducer';
  41494. warnInvalidHookAccess();
  41495. updateHookTypesDev();
  41496. var prevDispatcher = ReactCurrentDispatcher.current;
  41497. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  41498. try {
  41499. return rerenderReducer(reducer, initialArg, init);
  41500. } finally {
  41501. ReactCurrentDispatcher.current = prevDispatcher;
  41502. }
  41503. },
  41504. useRef: function (initialValue) {
  41505. currentHookNameInDev = 'useRef';
  41506. warnInvalidHookAccess();
  41507. updateHookTypesDev();
  41508. return updateRef();
  41509. },
  41510. useState: function (initialState) {
  41511. currentHookNameInDev = 'useState';
  41512. warnInvalidHookAccess();
  41513. updateHookTypesDev();
  41514. var prevDispatcher = ReactCurrentDispatcher.current;
  41515. ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  41516. try {
  41517. return rerenderState(initialState);
  41518. } finally {
  41519. ReactCurrentDispatcher.current = prevDispatcher;
  41520. }
  41521. },
  41522. useDebugValue: function (value, formatterFn) {
  41523. currentHookNameInDev = 'useDebugValue';
  41524. warnInvalidHookAccess();
  41525. updateHookTypesDev();
  41526. return updateDebugValue();
  41527. },
  41528. useResponder: function (responder, props) {
  41529. currentHookNameInDev = 'useResponder';
  41530. warnInvalidHookAccess();
  41531. updateHookTypesDev();
  41532. return createDeprecatedResponderListener(responder, props);
  41533. },
  41534. useDeferredValue: function (value, config) {
  41535. currentHookNameInDev = 'useDeferredValue';
  41536. warnInvalidHookAccess();
  41537. updateHookTypesDev();
  41538. return rerenderDeferredValue(value, config);
  41539. },
  41540. useTransition: function (config) {
  41541. currentHookNameInDev = 'useTransition';
  41542. warnInvalidHookAccess();
  41543. updateHookTypesDev();
  41544. return rerenderTransition(config);
  41545. }
  41546. };
  41547. }
  41548. var now$1 = Scheduler.unstable_now;
  41549. var commitTime = 0;
  41550. var profilerStartTime = -1;
  41551. function getCommitTime() {
  41552. return commitTime;
  41553. }
  41554. function recordCommitTime() {
  41555. commitTime = now$1();
  41556. }
  41557. function startProfilerTimer(fiber) {
  41558. profilerStartTime = now$1();
  41559. if (fiber.actualStartTime < 0) {
  41560. fiber.actualStartTime = now$1();
  41561. }
  41562. }
  41563. function stopProfilerTimerIfRunning(fiber) {
  41564. profilerStartTime = -1;
  41565. }
  41566. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  41567. if (profilerStartTime >= 0) {
  41568. var elapsedTime = now$1() - profilerStartTime;
  41569. fiber.actualDuration += elapsedTime;
  41570. if (overrideBaseTime) {
  41571. fiber.selfBaseDuration = elapsedTime;
  41572. }
  41573. profilerStartTime = -1;
  41574. }
  41575. }
  41576. // This may have been an insertion or a hydration.
  41577. var hydrationParentFiber = null;
  41578. var nextHydratableInstance = null;
  41579. var isHydrating = false;
  41580. function enterHydrationState(fiber) {
  41581. var parentInstance = fiber.stateNode.containerInfo;
  41582. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  41583. hydrationParentFiber = fiber;
  41584. isHydrating = true;
  41585. return true;
  41586. }
  41587. function deleteHydratableInstance(returnFiber, instance) {
  41588. {
  41589. switch (returnFiber.tag) {
  41590. case HostRoot:
  41591. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  41592. break;
  41593. case HostComponent:
  41594. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  41595. break;
  41596. }
  41597. }
  41598. var childToDelete = createFiberFromHostInstanceForDeletion();
  41599. childToDelete.stateNode = instance;
  41600. childToDelete.return = returnFiber;
  41601. childToDelete.effectTag = Deletion; // This might seem like it belongs on progressedFirstDeletion. However,
  41602. // these children are not part of the reconciliation list of children.
  41603. // Even if we abort and rereconcile the children, that will try to hydrate
  41604. // again and the nodes are still in the host tree so these will be
  41605. // recreated.
  41606. if (returnFiber.lastEffect !== null) {
  41607. returnFiber.lastEffect.nextEffect = childToDelete;
  41608. returnFiber.lastEffect = childToDelete;
  41609. } else {
  41610. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  41611. }
  41612. }
  41613. function insertNonHydratedInstance(returnFiber, fiber) {
  41614. fiber.effectTag = fiber.effectTag & ~Hydrating | Placement;
  41615. {
  41616. switch (returnFiber.tag) {
  41617. case HostRoot:
  41618. {
  41619. var parentContainer = returnFiber.stateNode.containerInfo;
  41620. switch (fiber.tag) {
  41621. case HostComponent:
  41622. var type = fiber.type;
  41623. var props = fiber.pendingProps;
  41624. didNotFindHydratableContainerInstance(parentContainer, type);
  41625. break;
  41626. case HostText:
  41627. var text = fiber.pendingProps;
  41628. didNotFindHydratableContainerTextInstance(parentContainer, text);
  41629. break;
  41630. }
  41631. break;
  41632. }
  41633. case HostComponent:
  41634. {
  41635. var parentType = returnFiber.type;
  41636. var parentProps = returnFiber.memoizedProps;
  41637. var parentInstance = returnFiber.stateNode;
  41638. switch (fiber.tag) {
  41639. case HostComponent:
  41640. var _type = fiber.type;
  41641. var _props = fiber.pendingProps;
  41642. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type);
  41643. break;
  41644. case HostText:
  41645. var _text = fiber.pendingProps;
  41646. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  41647. break;
  41648. case SuspenseComponent:
  41649. didNotFindHydratableSuspenseInstance(parentType, parentProps);
  41650. break;
  41651. }
  41652. break;
  41653. }
  41654. default:
  41655. return;
  41656. }
  41657. }
  41658. }
  41659. function tryHydrate(fiber, nextInstance) {
  41660. switch (fiber.tag) {
  41661. case HostComponent:
  41662. {
  41663. var type = fiber.type;
  41664. var props = fiber.pendingProps;
  41665. var instance = canHydrateInstance(nextInstance, type);
  41666. if (instance !== null) {
  41667. fiber.stateNode = instance;
  41668. return true;
  41669. }
  41670. return false;
  41671. }
  41672. case HostText:
  41673. {
  41674. var text = fiber.pendingProps;
  41675. var textInstance = canHydrateTextInstance(nextInstance, text);
  41676. if (textInstance !== null) {
  41677. fiber.stateNode = textInstance;
  41678. return true;
  41679. }
  41680. return false;
  41681. }
  41682. case SuspenseComponent:
  41683. {
  41684. return false;
  41685. }
  41686. default:
  41687. return false;
  41688. }
  41689. }
  41690. function tryToClaimNextHydratableInstance(fiber) {
  41691. if (!isHydrating) {
  41692. return;
  41693. }
  41694. var nextInstance = nextHydratableInstance;
  41695. if (!nextInstance) {
  41696. // Nothing to hydrate. Make it an insertion.
  41697. insertNonHydratedInstance(hydrationParentFiber, fiber);
  41698. isHydrating = false;
  41699. hydrationParentFiber = fiber;
  41700. return;
  41701. }
  41702. var firstAttemptedInstance = nextInstance;
  41703. if (!tryHydrate(fiber, nextInstance)) {
  41704. // If we can't hydrate this instance let's try the next one.
  41705. // We use this as a heuristic. It's based on intuition and not data so it
  41706. // might be flawed or unnecessary.
  41707. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  41708. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  41709. // Nothing to hydrate. Make it an insertion.
  41710. insertNonHydratedInstance(hydrationParentFiber, fiber);
  41711. isHydrating = false;
  41712. hydrationParentFiber = fiber;
  41713. return;
  41714. } // We matched the next one, we'll now assume that the first one was
  41715. // superfluous and we'll delete it. Since we can't eagerly delete it
  41716. // we'll have to schedule a deletion. To do that, this node needs a dummy
  41717. // fiber associated with it.
  41718. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  41719. }
  41720. hydrationParentFiber = fiber;
  41721. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  41722. }
  41723. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  41724. var instance = fiber.stateNode;
  41725. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); // TODO: Type this specific to this type of component.
  41726. fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
  41727. // is a new ref we mark this as an update.
  41728. if (updatePayload !== null) {
  41729. return true;
  41730. }
  41731. return false;
  41732. }
  41733. function prepareToHydrateHostTextInstance(fiber) {
  41734. var textInstance = fiber.stateNode;
  41735. var textContent = fiber.memoizedProps;
  41736. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  41737. {
  41738. if (shouldUpdate) {
  41739. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  41740. // hydration parent is the parent host component of this host text.
  41741. var returnFiber = hydrationParentFiber;
  41742. if (returnFiber !== null) {
  41743. switch (returnFiber.tag) {
  41744. case HostRoot:
  41745. {
  41746. var parentContainer = returnFiber.stateNode.containerInfo;
  41747. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  41748. break;
  41749. }
  41750. case HostComponent:
  41751. {
  41752. var parentType = returnFiber.type;
  41753. var parentProps = returnFiber.memoizedProps;
  41754. var parentInstance = returnFiber.stateNode;
  41755. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  41756. break;
  41757. }
  41758. }
  41759. }
  41760. }
  41761. }
  41762. return shouldUpdate;
  41763. }
  41764. function skipPastDehydratedSuspenseInstance(fiber) {
  41765. var suspenseState = fiber.memoizedState;
  41766. var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;
  41767. if (!suspenseInstance) {
  41768. {
  41769. throw Error( "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." );
  41770. }
  41771. }
  41772. return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
  41773. }
  41774. function popToNextHostParent(fiber) {
  41775. var parent = fiber.return;
  41776. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
  41777. parent = parent.return;
  41778. }
  41779. hydrationParentFiber = parent;
  41780. }
  41781. function popHydrationState(fiber) {
  41782. if (fiber !== hydrationParentFiber) {
  41783. // We're deeper than the current hydration context, inside an inserted
  41784. // tree.
  41785. return false;
  41786. }
  41787. if (!isHydrating) {
  41788. // If we're not currently hydrating but we're in a hydration context, then
  41789. // we were an insertion and now need to pop up reenter hydration of our
  41790. // siblings.
  41791. popToNextHostParent(fiber);
  41792. isHydrating = true;
  41793. return false;
  41794. }
  41795. var type = fiber.type; // If we have any remaining hydratable nodes, we need to delete them now.
  41796. // We only do this deeper than head and body since they tend to have random
  41797. // other nodes in them. We also ignore components with pure text content in
  41798. // side of them.
  41799. // TODO: Better heuristic.
  41800. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  41801. var nextInstance = nextHydratableInstance;
  41802. while (nextInstance) {
  41803. deleteHydratableInstance(fiber, nextInstance);
  41804. nextInstance = getNextHydratableSibling(nextInstance);
  41805. }
  41806. }
  41807. popToNextHostParent(fiber);
  41808. if (fiber.tag === SuspenseComponent) {
  41809. nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
  41810. } else {
  41811. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  41812. }
  41813. return true;
  41814. }
  41815. function resetHydrationState() {
  41816. hydrationParentFiber = null;
  41817. nextHydratableInstance = null;
  41818. isHydrating = false;
  41819. }
  41820. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  41821. var didReceiveUpdate = false;
  41822. var didWarnAboutBadClass;
  41823. var didWarnAboutModulePatternComponent;
  41824. var didWarnAboutContextTypeOnFunctionComponent;
  41825. var didWarnAboutGetDerivedStateOnFunctionComponent;
  41826. var didWarnAboutFunctionRefs;
  41827. var didWarnAboutReassigningProps;
  41828. var didWarnAboutRevealOrder;
  41829. var didWarnAboutTailOptions;
  41830. {
  41831. didWarnAboutBadClass = {};
  41832. didWarnAboutModulePatternComponent = {};
  41833. didWarnAboutContextTypeOnFunctionComponent = {};
  41834. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  41835. didWarnAboutFunctionRefs = {};
  41836. didWarnAboutReassigningProps = false;
  41837. didWarnAboutRevealOrder = {};
  41838. didWarnAboutTailOptions = {};
  41839. }
  41840. function reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime) {
  41841. if (current === null) {
  41842. // If this is a fresh new component that hasn't been rendered yet, we
  41843. // won't update its child set by applying minimal side-effects. Instead,
  41844. // we will add them all to the child before it gets rendered. That means
  41845. // we can optimize this reconciliation pass by not tracking side-effects.
  41846. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  41847. } else {
  41848. // If the current child is the same as the work in progress, it means that
  41849. // we haven't yet started any work on these children. Therefore, we use
  41850. // the clone algorithm to create a copy of all the current children.
  41851. // If we had any progressed work already, that is invalid at this point so
  41852. // let's throw it out.
  41853. workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime);
  41854. }
  41855. }
  41856. function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime) {
  41857. // This function is fork of reconcileChildren. It's used in cases where we
  41858. // want to reconcile without matching against the existing set. This has the
  41859. // effect of all current children being unmounted; even if the type and key
  41860. // are the same, the old child is unmounted and a new child is created.
  41861. //
  41862. // To do this, we're going to go through the reconcile algorithm twice. In
  41863. // the first pass, we schedule a deletion for all the current children by
  41864. // passing null.
  41865. workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderExpirationTime); // In the second pass, we mount the new children. The trick here is that we
  41866. // pass null in place of where we usually pass the current child set. This has
  41867. // the effect of remounting all children regardless of whether their
  41868. // identities match.
  41869. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  41870. }
  41871. function updateForwardRef(current, workInProgress, Component, nextProps, renderExpirationTime) {
  41872. // TODO: current can be non-null here even if the component
  41873. // hasn't yet mounted. This happens after the first render suspends.
  41874. // We'll need to figure out if this is fine or can cause issues.
  41875. {
  41876. if (workInProgress.type !== workInProgress.elementType) {
  41877. // Lazy component props can't be validated in createElement
  41878. // because they're only guaranteed to be resolved here.
  41879. var innerPropTypes = Component.propTypes;
  41880. if (innerPropTypes) {
  41881. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  41882. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  41883. }
  41884. }
  41885. }
  41886. var render = Component.render;
  41887. var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent
  41888. var nextChildren;
  41889. prepareToReadContext(workInProgress, renderExpirationTime);
  41890. {
  41891. ReactCurrentOwner$1.current = workInProgress;
  41892. setIsRendering(true);
  41893. nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);
  41894. if ( workInProgress.mode & StrictMode) {
  41895. // Only double-render components with Hooks
  41896. if (workInProgress.memoizedState !== null) {
  41897. nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);
  41898. }
  41899. }
  41900. setIsRendering(false);
  41901. }
  41902. if (current !== null && !didReceiveUpdate) {
  41903. bailoutHooks(current, workInProgress, renderExpirationTime);
  41904. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  41905. } // React DevTools reads this flag.
  41906. workInProgress.effectTag |= PerformedWork;
  41907. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  41908. return workInProgress.child;
  41909. }
  41910. function updateMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  41911. if (current === null) {
  41912. var type = Component.type;
  41913. if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
  41914. Component.defaultProps === undefined) {
  41915. var resolvedType = type;
  41916. {
  41917. resolvedType = resolveFunctionForHotReloading(type);
  41918. } // If this is a plain function component without default props,
  41919. // and with only the default shallow comparison, we upgrade it
  41920. // to a SimpleMemoComponent to allow fast path updates.
  41921. workInProgress.tag = SimpleMemoComponent;
  41922. workInProgress.type = resolvedType;
  41923. {
  41924. validateFunctionComponentInDev(workInProgress, type);
  41925. }
  41926. return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
  41927. }
  41928. {
  41929. var innerPropTypes = type.propTypes;
  41930. if (innerPropTypes) {
  41931. // Inner memo component props aren't currently validated in createElement.
  41932. // We could move it there, but we'd still need this for lazy code path.
  41933. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  41934. 'prop', getComponentName(type), getCurrentFiberStackInDev);
  41935. }
  41936. }
  41937. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  41938. child.ref = workInProgress.ref;
  41939. child.return = workInProgress;
  41940. workInProgress.child = child;
  41941. return child;
  41942. }
  41943. {
  41944. var _type = Component.type;
  41945. var _innerPropTypes = _type.propTypes;
  41946. if (_innerPropTypes) {
  41947. // Inner memo component props aren't currently validated in createElement.
  41948. // We could move it there, but we'd still need this for lazy code path.
  41949. checkPropTypes(_innerPropTypes, nextProps, // Resolved props
  41950. 'prop', getComponentName(_type), getCurrentFiberStackInDev);
  41951. }
  41952. }
  41953. var currentChild = current.child; // This is always exactly one child
  41954. if (updateExpirationTime < renderExpirationTime) {
  41955. // This will be the props with resolved defaultProps,
  41956. // unlike current.memoizedProps which will be the unresolved ones.
  41957. var prevProps = currentChild.memoizedProps; // Default to shallow comparison
  41958. var compare = Component.compare;
  41959. compare = compare !== null ? compare : shallowEqual;
  41960. if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
  41961. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  41962. }
  41963. } // React DevTools reads this flag.
  41964. workInProgress.effectTag |= PerformedWork;
  41965. var newChild = createWorkInProgress(currentChild, nextProps);
  41966. newChild.ref = workInProgress.ref;
  41967. newChild.return = workInProgress;
  41968. workInProgress.child = newChild;
  41969. return newChild;
  41970. }
  41971. function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  41972. // TODO: current can be non-null here even if the component
  41973. // hasn't yet mounted. This happens when the inner render suspends.
  41974. // We'll need to figure out if this is fine or can cause issues.
  41975. {
  41976. if (workInProgress.type !== workInProgress.elementType) {
  41977. // Lazy component props can't be validated in createElement
  41978. // because they're only guaranteed to be resolved here.
  41979. var outerMemoType = workInProgress.elementType;
  41980. if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
  41981. // We warn when you define propTypes on lazy()
  41982. // so let's just skip over it to find memo() outer wrapper.
  41983. // Inner props for memo are validated later.
  41984. outerMemoType = refineResolvedLazyComponent(outerMemoType);
  41985. }
  41986. var outerPropTypes = outerMemoType && outerMemoType.propTypes;
  41987. if (outerPropTypes) {
  41988. checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
  41989. 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
  41990. } // Inner propTypes will be validated in the function component path.
  41991. }
  41992. }
  41993. if (current !== null) {
  41994. var prevProps = current.memoizedProps;
  41995. if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
  41996. workInProgress.type === current.type )) {
  41997. didReceiveUpdate = false;
  41998. if (updateExpirationTime < renderExpirationTime) {
  41999. // The pending update priority was cleared at the beginning of
  42000. // beginWork. We're about to bail out, but there might be additional
  42001. // updates at a lower priority. Usually, the priority level of the
  42002. // remaining updates is accumlated during the evaluation of the
  42003. // component (i.e. when processing the update queue). But since since
  42004. // we're bailing out early *without* evaluating the component, we need
  42005. // to account for it here, too. Reset to the value of the current fiber.
  42006. // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
  42007. // because a MemoComponent fiber does not have hooks or an update queue;
  42008. // rather, it wraps around an inner component, which may or may not
  42009. // contains hooks.
  42010. // TODO: Move the reset at in beginWork out of the common path so that
  42011. // this is no longer necessary.
  42012. workInProgress.expirationTime = current.expirationTime;
  42013. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  42014. }
  42015. }
  42016. }
  42017. return updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime);
  42018. }
  42019. function updateFragment(current, workInProgress, renderExpirationTime) {
  42020. var nextChildren = workInProgress.pendingProps;
  42021. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  42022. return workInProgress.child;
  42023. }
  42024. function updateMode(current, workInProgress, renderExpirationTime) {
  42025. var nextChildren = workInProgress.pendingProps.children;
  42026. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  42027. return workInProgress.child;
  42028. }
  42029. function updateProfiler(current, workInProgress, renderExpirationTime) {
  42030. {
  42031. workInProgress.effectTag |= Update;
  42032. }
  42033. var nextProps = workInProgress.pendingProps;
  42034. var nextChildren = nextProps.children;
  42035. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  42036. return workInProgress.child;
  42037. }
  42038. function markRef(current, workInProgress) {
  42039. var ref = workInProgress.ref;
  42040. if (current === null && ref !== null || current !== null && current.ref !== ref) {
  42041. // Schedule a Ref effect
  42042. workInProgress.effectTag |= Ref;
  42043. }
  42044. }
  42045. function updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
  42046. {
  42047. if (workInProgress.type !== workInProgress.elementType) {
  42048. // Lazy component props can't be validated in createElement
  42049. // because they're only guaranteed to be resolved here.
  42050. var innerPropTypes = Component.propTypes;
  42051. if (innerPropTypes) {
  42052. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  42053. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  42054. }
  42055. }
  42056. }
  42057. var context;
  42058. {
  42059. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  42060. context = getMaskedContext(workInProgress, unmaskedContext);
  42061. }
  42062. var nextChildren;
  42063. prepareToReadContext(workInProgress, renderExpirationTime);
  42064. {
  42065. ReactCurrentOwner$1.current = workInProgress;
  42066. setIsRendering(true);
  42067. nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);
  42068. if ( workInProgress.mode & StrictMode) {
  42069. // Only double-render components with Hooks
  42070. if (workInProgress.memoizedState !== null) {
  42071. nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);
  42072. }
  42073. }
  42074. setIsRendering(false);
  42075. }
  42076. if (current !== null && !didReceiveUpdate) {
  42077. bailoutHooks(current, workInProgress, renderExpirationTime);
  42078. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  42079. } // React DevTools reads this flag.
  42080. workInProgress.effectTag |= PerformedWork;
  42081. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  42082. return workInProgress.child;
  42083. }
  42084. function updateClassComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
  42085. {
  42086. if (workInProgress.type !== workInProgress.elementType) {
  42087. // Lazy component props can't be validated in createElement
  42088. // because they're only guaranteed to be resolved here.
  42089. var innerPropTypes = Component.propTypes;
  42090. if (innerPropTypes) {
  42091. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  42092. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  42093. }
  42094. }
  42095. } // Push context providers early to prevent context stack mismatches.
  42096. // During mounting we don't know the child context yet as the instance doesn't exist.
  42097. // We will invalidate the child context in finishClassComponent() right after rendering.
  42098. var hasContext;
  42099. if (isContextProvider(Component)) {
  42100. hasContext = true;
  42101. pushContextProvider(workInProgress);
  42102. } else {
  42103. hasContext = false;
  42104. }
  42105. prepareToReadContext(workInProgress, renderExpirationTime);
  42106. var instance = workInProgress.stateNode;
  42107. var shouldUpdate;
  42108. if (instance === null) {
  42109. if (current !== null) {
  42110. // A class component without an instance only mounts if it suspended
  42111. // inside a non-concurrent tree, in an inconsistent state. We want to
  42112. // treat it like a new mount, even though an empty version of it already
  42113. // committed. Disconnect the alternate pointers.
  42114. current.alternate = null;
  42115. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  42116. workInProgress.effectTag |= Placement;
  42117. } // In the initial pass we might need to construct the instance.
  42118. constructClassInstance(workInProgress, Component, nextProps);
  42119. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  42120. shouldUpdate = true;
  42121. } else if (current === null) {
  42122. // In a resume, we'll already have an instance we can reuse.
  42123. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  42124. } else {
  42125. shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderExpirationTime);
  42126. }
  42127. var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  42128. {
  42129. var inst = workInProgress.stateNode;
  42130. if (inst.props !== nextProps) {
  42131. if (!didWarnAboutReassigningProps) {
  42132. 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');
  42133. }
  42134. didWarnAboutReassigningProps = true;
  42135. }
  42136. }
  42137. return nextUnitOfWork;
  42138. }
  42139. function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  42140. // Refs should update even if shouldComponentUpdate returns false
  42141. markRef(current, workInProgress);
  42142. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  42143. if (!shouldUpdate && !didCaptureError) {
  42144. // Context providers should defer to sCU for rendering
  42145. if (hasContext) {
  42146. invalidateContextProvider(workInProgress, Component, false);
  42147. }
  42148. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  42149. }
  42150. var instance = workInProgress.stateNode; // Rerender
  42151. ReactCurrentOwner$1.current = workInProgress;
  42152. var nextChildren;
  42153. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  42154. // If we captured an error, but getDerivedStateFromError is not defined,
  42155. // unmount all the children. componentDidCatch will schedule an update to
  42156. // re-render a fallback. This is temporary until we migrate everyone to
  42157. // the new API.
  42158. // TODO: Warn in a future release.
  42159. nextChildren = null;
  42160. {
  42161. stopProfilerTimerIfRunning();
  42162. }
  42163. } else {
  42164. {
  42165. setIsRendering(true);
  42166. nextChildren = instance.render();
  42167. if ( workInProgress.mode & StrictMode) {
  42168. instance.render();
  42169. }
  42170. setIsRendering(false);
  42171. }
  42172. } // React DevTools reads this flag.
  42173. workInProgress.effectTag |= PerformedWork;
  42174. if (current !== null && didCaptureError) {
  42175. // If we're recovering from an error, reconcile without reusing any of
  42176. // the existing children. Conceptually, the normal children and the children
  42177. // that are shown on error are two different sets, so we shouldn't reuse
  42178. // normal children even if their identities match.
  42179. forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime);
  42180. } else {
  42181. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  42182. } // Memoize state using the values we just used to render.
  42183. // TODO: Restructure so we never read values from the instance.
  42184. workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.
  42185. if (hasContext) {
  42186. invalidateContextProvider(workInProgress, Component, true);
  42187. }
  42188. return workInProgress.child;
  42189. }
  42190. function pushHostRootContext(workInProgress) {
  42191. var root = workInProgress.stateNode;
  42192. if (root.pendingContext) {
  42193. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  42194. } else if (root.context) {
  42195. // Should always be set
  42196. pushTopLevelContextObject(workInProgress, root.context, false);
  42197. }
  42198. pushHostContainer(workInProgress, root.containerInfo);
  42199. }
  42200. function updateHostRoot(current, workInProgress, renderExpirationTime) {
  42201. pushHostRootContext(workInProgress);
  42202. var updateQueue = workInProgress.updateQueue;
  42203. if (!(current !== null && updateQueue !== null)) {
  42204. {
  42205. 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." );
  42206. }
  42207. }
  42208. var nextProps = workInProgress.pendingProps;
  42209. var prevState = workInProgress.memoizedState;
  42210. var prevChildren = prevState !== null ? prevState.element : null;
  42211. cloneUpdateQueue(current, workInProgress);
  42212. processUpdateQueue(workInProgress, nextProps, null, renderExpirationTime);
  42213. var nextState = workInProgress.memoizedState; // Caution: React DevTools currently depends on this property
  42214. // being called "element".
  42215. var nextChildren = nextState.element;
  42216. if (nextChildren === prevChildren) {
  42217. // If the state is the same as before, that's a bailout because we had
  42218. // no work that expires at this time.
  42219. resetHydrationState();
  42220. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  42221. }
  42222. var root = workInProgress.stateNode;
  42223. if (root.hydrate && enterHydrationState(workInProgress)) {
  42224. // If we don't have any current children this might be the first pass.
  42225. // We always try to hydrate. If this isn't a hydration pass there won't
  42226. // be any children to hydrate which is effectively the same thing as
  42227. // not hydrating.
  42228. var child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  42229. workInProgress.child = child;
  42230. var node = child;
  42231. while (node) {
  42232. // Mark each child as hydrating. This is a fast path to know whether this
  42233. // tree is part of a hydrating tree. This is used to determine if a child
  42234. // node has fully mounted yet, and for scheduling event replaying.
  42235. // Conceptually this is similar to Placement in that a new subtree is
  42236. // inserted into the React tree here. It just happens to not need DOM
  42237. // mutations because it already exists.
  42238. node.effectTag = node.effectTag & ~Placement | Hydrating;
  42239. node = node.sibling;
  42240. }
  42241. } else {
  42242. // Otherwise reset hydration state in case we aborted and resumed another
  42243. // root.
  42244. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  42245. resetHydrationState();
  42246. }
  42247. return workInProgress.child;
  42248. }
  42249. function updateHostComponent(current, workInProgress, renderExpirationTime) {
  42250. pushHostContext(workInProgress);
  42251. if (current === null) {
  42252. tryToClaimNextHydratableInstance(workInProgress);
  42253. }
  42254. var type = workInProgress.type;
  42255. var nextProps = workInProgress.pendingProps;
  42256. var prevProps = current !== null ? current.memoizedProps : null;
  42257. var nextChildren = nextProps.children;
  42258. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  42259. if (isDirectTextChild) {
  42260. // We special case a direct text child of a host node. This is a common
  42261. // case. We won't handle it as a reified child. We will instead handle
  42262. // this in the host environment that also has access to this prop. That
  42263. // avoids allocating another HostText fiber and traversing it.
  42264. nextChildren = null;
  42265. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  42266. // If we're switching from a direct text child to a normal child, or to
  42267. // empty, we need to schedule the text content to be reset.
  42268. workInProgress.effectTag |= ContentReset;
  42269. }
  42270. markRef(current, workInProgress); // Check the host config to see if the children are offscreen/hidden.
  42271. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
  42272. {
  42273. markSpawnedWork(Never);
  42274. } // Schedule this fiber to re-render at offscreen priority. Then bailout.
  42275. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  42276. return null;
  42277. }
  42278. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  42279. return workInProgress.child;
  42280. }
  42281. function updateHostText(current, workInProgress) {
  42282. if (current === null) {
  42283. tryToClaimNextHydratableInstance(workInProgress);
  42284. } // Nothing to do here. This is terminal. We'll do the completion step
  42285. // immediately after.
  42286. return null;
  42287. }
  42288. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  42289. if (_current !== null) {
  42290. // A lazy component only mounts if it suspended inside a non-
  42291. // concurrent tree, in an inconsistent state. We want to treat it like
  42292. // a new mount, even though an empty version of it already committed.
  42293. // Disconnect the alternate pointers.
  42294. _current.alternate = null;
  42295. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  42296. workInProgress.effectTag |= Placement;
  42297. }
  42298. var props = workInProgress.pendingProps; // We can't start a User Timing measurement with correct label yet.
  42299. // Cancel and resume right after we know the tag.
  42300. cancelWorkTimer(workInProgress);
  42301. var Component = readLazyComponentType(elementType); // Store the unwrapped component in the type.
  42302. workInProgress.type = Component;
  42303. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  42304. startWorkTimer(workInProgress);
  42305. var resolvedProps = resolveDefaultProps(Component, props);
  42306. var child;
  42307. switch (resolvedTag) {
  42308. case FunctionComponent:
  42309. {
  42310. {
  42311. validateFunctionComponentInDev(workInProgress, Component);
  42312. workInProgress.type = Component = resolveFunctionForHotReloading(Component);
  42313. }
  42314. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  42315. return child;
  42316. }
  42317. case ClassComponent:
  42318. {
  42319. {
  42320. workInProgress.type = Component = resolveClassForHotReloading(Component);
  42321. }
  42322. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  42323. return child;
  42324. }
  42325. case ForwardRef:
  42326. {
  42327. {
  42328. workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
  42329. }
  42330. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  42331. return child;
  42332. }
  42333. case MemoComponent:
  42334. {
  42335. {
  42336. if (workInProgress.type !== workInProgress.elementType) {
  42337. var outerPropTypes = Component.propTypes;
  42338. if (outerPropTypes) {
  42339. checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
  42340. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  42341. }
  42342. }
  42343. }
  42344. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  42345. updateExpirationTime, renderExpirationTime);
  42346. return child;
  42347. }
  42348. }
  42349. var hint = '';
  42350. {
  42351. if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
  42352. hint = ' Did you wrap a component in React.lazy() more than once?';
  42353. }
  42354. } // This message intentionally doesn't mention ForwardRef or MemoComponent
  42355. // because the fact that it's a separate type of work is an
  42356. // implementation detail.
  42357. {
  42358. {
  42359. throw Error( "Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint );
  42360. }
  42361. }
  42362. }
  42363. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  42364. if (_current !== null) {
  42365. // An incomplete component only mounts if it suspended inside a non-
  42366. // concurrent tree, in an inconsistent state. We want to treat it like
  42367. // a new mount, even though an empty version of it already committed.
  42368. // Disconnect the alternate pointers.
  42369. _current.alternate = null;
  42370. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  42371. workInProgress.effectTag |= Placement;
  42372. } // Promote the fiber to a class and try rendering again.
  42373. workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
  42374. // Push context providers early to prevent context stack mismatches.
  42375. // During mounting we don't know the child context yet as the instance doesn't exist.
  42376. // We will invalidate the child context in finishClassComponent() right after rendering.
  42377. var hasContext;
  42378. if (isContextProvider(Component)) {
  42379. hasContext = true;
  42380. pushContextProvider(workInProgress);
  42381. } else {
  42382. hasContext = false;
  42383. }
  42384. prepareToReadContext(workInProgress, renderExpirationTime);
  42385. constructClassInstance(workInProgress, Component, nextProps);
  42386. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  42387. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  42388. }
  42389. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  42390. if (_current !== null) {
  42391. // An indeterminate component only mounts if it suspended inside a non-
  42392. // concurrent tree, in an inconsistent state. We want to treat it like
  42393. // a new mount, even though an empty version of it already committed.
  42394. // Disconnect the alternate pointers.
  42395. _current.alternate = null;
  42396. workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
  42397. workInProgress.effectTag |= Placement;
  42398. }
  42399. var props = workInProgress.pendingProps;
  42400. var context;
  42401. {
  42402. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  42403. context = getMaskedContext(workInProgress, unmaskedContext);
  42404. }
  42405. prepareToReadContext(workInProgress, renderExpirationTime);
  42406. var value;
  42407. {
  42408. if (Component.prototype && typeof Component.prototype.render === 'function') {
  42409. var componentName = getComponentName(Component) || 'Unknown';
  42410. if (!didWarnAboutBadClass[componentName]) {
  42411. 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);
  42412. didWarnAboutBadClass[componentName] = true;
  42413. }
  42414. }
  42415. if (workInProgress.mode & StrictMode) {
  42416. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  42417. }
  42418. setIsRendering(true);
  42419. ReactCurrentOwner$1.current = workInProgress;
  42420. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  42421. setIsRendering(false);
  42422. } // React DevTools reads this flag.
  42423. workInProgress.effectTag |= PerformedWork;
  42424. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  42425. {
  42426. var _componentName = getComponentName(Component) || 'Unknown';
  42427. if (!didWarnAboutModulePatternComponent[_componentName]) {
  42428. 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);
  42429. didWarnAboutModulePatternComponent[_componentName] = true;
  42430. }
  42431. } // Proceed under the assumption that this is a class instance
  42432. workInProgress.tag = ClassComponent; // Throw out any hooks that were used.
  42433. workInProgress.memoizedState = null;
  42434. workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.
  42435. // During mounting we don't know the child context yet as the instance doesn't exist.
  42436. // We will invalidate the child context in finishClassComponent() right after rendering.
  42437. var hasContext = false;
  42438. if (isContextProvider(Component)) {
  42439. hasContext = true;
  42440. pushContextProvider(workInProgress);
  42441. } else {
  42442. hasContext = false;
  42443. }
  42444. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  42445. initializeUpdateQueue(workInProgress);
  42446. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  42447. if (typeof getDerivedStateFromProps === 'function') {
  42448. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  42449. }
  42450. adoptClassInstance(workInProgress, value);
  42451. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  42452. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  42453. } else {
  42454. // Proceed under the assumption that this is a function component
  42455. workInProgress.tag = FunctionComponent;
  42456. {
  42457. if ( workInProgress.mode & StrictMode) {
  42458. // Only double-render components with Hooks
  42459. if (workInProgress.memoizedState !== null) {
  42460. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  42461. }
  42462. }
  42463. }
  42464. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  42465. {
  42466. validateFunctionComponentInDev(workInProgress, Component);
  42467. }
  42468. return workInProgress.child;
  42469. }
  42470. }
  42471. function validateFunctionComponentInDev(workInProgress, Component) {
  42472. {
  42473. if (Component) {
  42474. if (Component.childContextTypes) {
  42475. error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
  42476. }
  42477. }
  42478. if (workInProgress.ref !== null) {
  42479. var info = '';
  42480. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  42481. if (ownerName) {
  42482. info += '\n\nCheck the render method of `' + ownerName + '`.';
  42483. }
  42484. var warningKey = ownerName || workInProgress._debugID || '';
  42485. var debugSource = workInProgress._debugSource;
  42486. if (debugSource) {
  42487. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  42488. }
  42489. if (!didWarnAboutFunctionRefs[warningKey]) {
  42490. didWarnAboutFunctionRefs[warningKey] = true;
  42491. error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
  42492. }
  42493. }
  42494. if (typeof Component.getDerivedStateFromProps === 'function') {
  42495. var _componentName2 = getComponentName(Component) || 'Unknown';
  42496. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
  42497. error('%s: Function components do not support getDerivedStateFromProps.', _componentName2);
  42498. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
  42499. }
  42500. }
  42501. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  42502. var _componentName3 = getComponentName(Component) || 'Unknown';
  42503. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
  42504. error('%s: Function components do not support contextType.', _componentName3);
  42505. didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
  42506. }
  42507. }
  42508. }
  42509. }
  42510. var SUSPENDED_MARKER = {
  42511. dehydrated: null,
  42512. retryTime: NoWork
  42513. };
  42514. function shouldRemainOnFallback(suspenseContext, current, workInProgress) {
  42515. // If the context is telling us that we should show a fallback, and we're not
  42516. // already showing content, then we should show the fallback instead.
  42517. return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current === null || current.memoizedState !== null);
  42518. }
  42519. function updateSuspenseComponent(current, workInProgress, renderExpirationTime) {
  42520. var mode = workInProgress.mode;
  42521. var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.
  42522. {
  42523. if (shouldSuspend(workInProgress)) {
  42524. workInProgress.effectTag |= DidCapture;
  42525. }
  42526. }
  42527. var suspenseContext = suspenseStackCursor.current;
  42528. var nextDidTimeout = false;
  42529. var didSuspend = (workInProgress.effectTag & DidCapture) !== NoEffect;
  42530. if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
  42531. // Something in this boundary's subtree already suspended. Switch to
  42532. // rendering the fallback children.
  42533. nextDidTimeout = true;
  42534. workInProgress.effectTag &= ~DidCapture;
  42535. } else {
  42536. // Attempting the main content
  42537. if (current === null || current.memoizedState !== null) {
  42538. // This is a new mount or this boundary is already showing a fallback state.
  42539. // Mark this subtree context as having at least one invisible parent that could
  42540. // handle the fallback state.
  42541. // Boundaries without fallbacks or should be avoided are not considered since
  42542. // they cannot handle preferred fallback states.
  42543. if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
  42544. suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
  42545. }
  42546. }
  42547. }
  42548. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  42549. pushSuspenseContext(workInProgress, suspenseContext); // This next part is a bit confusing. If the children timeout, we switch to
  42550. // showing the fallback children in place of the "primary" children.
  42551. // However, we don't want to delete the primary children because then their
  42552. // state will be lost (both the React state and the host state, e.g.
  42553. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  42554. // Both the fallback children AND the primary children are rendered at the
  42555. // same time. Once the primary children are un-suspended, we can delete
  42556. // the fallback children — don't need to preserve their state.
  42557. //
  42558. // The two sets of children are siblings in the host environment, but
  42559. // semantically, for purposes of reconciliation, they are two separate sets.
  42560. // So we store them using two fragment fibers.
  42561. //
  42562. // However, we want to avoid allocating extra fibers for every placeholder.
  42563. // They're only necessary when the children time out, because that's the
  42564. // only time when both sets are mounted.
  42565. //
  42566. // So, the extra fragment fibers are only used if the children time out.
  42567. // Otherwise, we render the primary children directly. This requires some
  42568. // custom reconciliation logic to preserve the state of the primary
  42569. // children. It's essentially a very basic form of re-parenting.
  42570. if (current === null) {
  42571. // If we're currently hydrating, try to hydrate this boundary.
  42572. // But only if this has a fallback.
  42573. if (nextProps.fallback !== undefined) {
  42574. tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.
  42575. } // This is the initial mount. This branch is pretty simple because there's
  42576. // no previous state that needs to be preserved.
  42577. if (nextDidTimeout) {
  42578. // Mount separate fragments for primary and fallback children.
  42579. var nextFallbackChildren = nextProps.fallback;
  42580. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  42581. primaryChildFragment.return = workInProgress;
  42582. if ((workInProgress.mode & BlockingMode) === NoMode) {
  42583. // Outside of blocking mode, we commit the effects from the
  42584. // partially completed, timed-out tree, too.
  42585. var progressedState = workInProgress.memoizedState;
  42586. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  42587. primaryChildFragment.child = progressedPrimaryChild;
  42588. var progressedChild = progressedPrimaryChild;
  42589. while (progressedChild !== null) {
  42590. progressedChild.return = primaryChildFragment;
  42591. progressedChild = progressedChild.sibling;
  42592. }
  42593. }
  42594. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  42595. fallbackChildFragment.return = workInProgress;
  42596. primaryChildFragment.sibling = fallbackChildFragment; // Skip the primary children, and continue working on the
  42597. // fallback children.
  42598. workInProgress.memoizedState = SUSPENDED_MARKER;
  42599. workInProgress.child = primaryChildFragment;
  42600. return fallbackChildFragment;
  42601. } else {
  42602. // Mount the primary children without an intermediate fragment fiber.
  42603. var nextPrimaryChildren = nextProps.children;
  42604. workInProgress.memoizedState = null;
  42605. return workInProgress.child = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  42606. }
  42607. } else {
  42608. // This is an update. This branch is more complicated because we need to
  42609. // ensure the state of the primary children is preserved.
  42610. var prevState = current.memoizedState;
  42611. if (prevState !== null) {
  42612. // wrapped in a fragment fiber.
  42613. var currentPrimaryChildFragment = current.child;
  42614. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  42615. if (nextDidTimeout) {
  42616. // Still timed out. Reuse the current primary children by cloning
  42617. // its fragment. We're going to skip over these entirely.
  42618. var _nextFallbackChildren2 = nextProps.fallback;
  42619. var _primaryChildFragment2 = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps);
  42620. _primaryChildFragment2.return = workInProgress;
  42621. if ((workInProgress.mode & BlockingMode) === NoMode) {
  42622. // Outside of blocking mode, we commit the effects from the
  42623. // partially completed, timed-out tree, too.
  42624. var _progressedState = workInProgress.memoizedState;
  42625. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  42626. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  42627. _primaryChildFragment2.child = _progressedPrimaryChild;
  42628. var _progressedChild2 = _progressedPrimaryChild;
  42629. while (_progressedChild2 !== null) {
  42630. _progressedChild2.return = _primaryChildFragment2;
  42631. _progressedChild2 = _progressedChild2.sibling;
  42632. }
  42633. }
  42634. } // Because primaryChildFragment is a new fiber that we're inserting as the
  42635. // parent of a new tree, we need to set its treeBaseDuration.
  42636. if ( workInProgress.mode & ProfileMode) {
  42637. // treeBaseDuration is the sum of all the child tree base durations.
  42638. var _treeBaseDuration = 0;
  42639. var _hiddenChild = _primaryChildFragment2.child;
  42640. while (_hiddenChild !== null) {
  42641. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  42642. _hiddenChild = _hiddenChild.sibling;
  42643. }
  42644. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  42645. } // Clone the fallback child fragment, too. These we'll continue
  42646. // working on.
  42647. var _fallbackChildFragment2 = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren2);
  42648. _fallbackChildFragment2.return = workInProgress;
  42649. _primaryChildFragment2.sibling = _fallbackChildFragment2;
  42650. _primaryChildFragment2.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
  42651. // fallback children.
  42652. workInProgress.memoizedState = SUSPENDED_MARKER;
  42653. workInProgress.child = _primaryChildFragment2;
  42654. return _fallbackChildFragment2;
  42655. } else {
  42656. // No longer suspended. Switch back to showing the primary children,
  42657. // and remove the intermediate fragment fiber.
  42658. var _nextPrimaryChildren = nextProps.children;
  42659. var currentPrimaryChild = currentPrimaryChildFragment.child;
  42660. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime); // If this render doesn't suspend, we need to delete the fallback
  42661. // children. Wait until the complete phase, after we've confirmed the
  42662. // fallback is no longer needed.
  42663. // TODO: Would it be better to store the fallback fragment on
  42664. // the stateNode?
  42665. // Continue rendering the children, like we normally do.
  42666. workInProgress.memoizedState = null;
  42667. return workInProgress.child = primaryChild;
  42668. }
  42669. } else {
  42670. // The current tree has not already timed out. That means the primary
  42671. // children are not wrapped in a fragment fiber.
  42672. var _currentPrimaryChild = current.child;
  42673. if (nextDidTimeout) {
  42674. // Timed out. Wrap the children in a fragment fiber to keep them
  42675. // separate from the fallback children.
  42676. var _nextFallbackChildren3 = nextProps.fallback;
  42677. var _primaryChildFragment3 = createFiberFromFragment( // It shouldn't matter what the pending props are because we aren't
  42678. // going to render this fragment.
  42679. null, mode, NoWork, null);
  42680. _primaryChildFragment3.return = workInProgress;
  42681. _primaryChildFragment3.child = _currentPrimaryChild;
  42682. if (_currentPrimaryChild !== null) {
  42683. _currentPrimaryChild.return = _primaryChildFragment3;
  42684. } // Even though we're creating a new fiber, there are no new children,
  42685. // because we're reusing an already mounted tree. So we don't need to
  42686. // schedule a placement.
  42687. // primaryChildFragment.effectTag |= Placement;
  42688. if ((workInProgress.mode & BlockingMode) === NoMode) {
  42689. // Outside of blocking mode, we commit the effects from the
  42690. // partially completed, timed-out tree, too.
  42691. var _progressedState2 = workInProgress.memoizedState;
  42692. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  42693. _primaryChildFragment3.child = _progressedPrimaryChild2;
  42694. var _progressedChild3 = _progressedPrimaryChild2;
  42695. while (_progressedChild3 !== null) {
  42696. _progressedChild3.return = _primaryChildFragment3;
  42697. _progressedChild3 = _progressedChild3.sibling;
  42698. }
  42699. } // Because primaryChildFragment is a new fiber that we're inserting as the
  42700. // parent of a new tree, we need to set its treeBaseDuration.
  42701. if ( workInProgress.mode & ProfileMode) {
  42702. // treeBaseDuration is the sum of all the child tree base durations.
  42703. var _treeBaseDuration2 = 0;
  42704. var _hiddenChild2 = _primaryChildFragment3.child;
  42705. while (_hiddenChild2 !== null) {
  42706. _treeBaseDuration2 += _hiddenChild2.treeBaseDuration;
  42707. _hiddenChild2 = _hiddenChild2.sibling;
  42708. }
  42709. _primaryChildFragment3.treeBaseDuration = _treeBaseDuration2;
  42710. } // Create a fragment from the fallback children, too.
  42711. var _fallbackChildFragment3 = createFiberFromFragment(_nextFallbackChildren3, mode, renderExpirationTime, null);
  42712. _fallbackChildFragment3.return = workInProgress;
  42713. _primaryChildFragment3.sibling = _fallbackChildFragment3;
  42714. _fallbackChildFragment3.effectTag |= Placement;
  42715. _primaryChildFragment3.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
  42716. // fallback children.
  42717. workInProgress.memoizedState = SUSPENDED_MARKER;
  42718. workInProgress.child = _primaryChildFragment3;
  42719. return _fallbackChildFragment3;
  42720. } else {
  42721. // Still haven't timed out. Continue rendering the children, like we
  42722. // normally do.
  42723. workInProgress.memoizedState = null;
  42724. var _nextPrimaryChildren2 = nextProps.children;
  42725. return workInProgress.child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  42726. }
  42727. }
  42728. }
  42729. }
  42730. function scheduleWorkOnFiber(fiber, renderExpirationTime) {
  42731. if (fiber.expirationTime < renderExpirationTime) {
  42732. fiber.expirationTime = renderExpirationTime;
  42733. }
  42734. var alternate = fiber.alternate;
  42735. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  42736. alternate.expirationTime = renderExpirationTime;
  42737. }
  42738. scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
  42739. }
  42740. function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
  42741. // Mark any Suspense boundaries with fallbacks as having work to do.
  42742. // If they were previously forced into fallbacks, they may now be able
  42743. // to unblock.
  42744. var node = firstChild;
  42745. while (node !== null) {
  42746. if (node.tag === SuspenseComponent) {
  42747. var state = node.memoizedState;
  42748. if (state !== null) {
  42749. scheduleWorkOnFiber(node, renderExpirationTime);
  42750. }
  42751. } else if (node.tag === SuspenseListComponent) {
  42752. // If the tail is hidden there might not be an Suspense boundaries
  42753. // to schedule work on. In this case we have to schedule it on the
  42754. // list itself.
  42755. // We don't have to traverse to the children of the list since
  42756. // the list will propagate the change when it rerenders.
  42757. scheduleWorkOnFiber(node, renderExpirationTime);
  42758. } else if (node.child !== null) {
  42759. node.child.return = node;
  42760. node = node.child;
  42761. continue;
  42762. }
  42763. if (node === workInProgress) {
  42764. return;
  42765. }
  42766. while (node.sibling === null) {
  42767. if (node.return === null || node.return === workInProgress) {
  42768. return;
  42769. }
  42770. node = node.return;
  42771. }
  42772. node.sibling.return = node.return;
  42773. node = node.sibling;
  42774. }
  42775. }
  42776. function findLastContentRow(firstChild) {
  42777. // This is going to find the last row among these children that is already
  42778. // showing content on the screen, as opposed to being in fallback state or
  42779. // new. If a row has multiple Suspense boundaries, any of them being in the
  42780. // fallback state, counts as the whole row being in a fallback state.
  42781. // Note that the "rows" will be workInProgress, but any nested children
  42782. // will still be current since we haven't rendered them yet. The mounted
  42783. // order may not be the same as the new order. We use the new order.
  42784. var row = firstChild;
  42785. var lastContentRow = null;
  42786. while (row !== null) {
  42787. var currentRow = row.alternate; // New rows can't be content rows.
  42788. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  42789. lastContentRow = row;
  42790. }
  42791. row = row.sibling;
  42792. }
  42793. return lastContentRow;
  42794. }
  42795. function validateRevealOrder(revealOrder) {
  42796. {
  42797. if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
  42798. didWarnAboutRevealOrder[revealOrder] = true;
  42799. if (typeof revealOrder === 'string') {
  42800. switch (revealOrder.toLowerCase()) {
  42801. case 'together':
  42802. case 'forwards':
  42803. case 'backwards':
  42804. {
  42805. error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
  42806. break;
  42807. }
  42808. case 'forward':
  42809. case 'backward':
  42810. {
  42811. 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());
  42812. break;
  42813. }
  42814. default:
  42815. error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  42816. break;
  42817. }
  42818. } else {
  42819. error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  42820. }
  42821. }
  42822. }
  42823. }
  42824. function validateTailOptions(tailMode, revealOrder) {
  42825. {
  42826. if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
  42827. if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
  42828. didWarnAboutTailOptions[tailMode] = true;
  42829. error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
  42830. } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
  42831. didWarnAboutTailOptions[tailMode] = true;
  42832. error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
  42833. }
  42834. }
  42835. }
  42836. }
  42837. function validateSuspenseListNestedChild(childSlot, index) {
  42838. {
  42839. var isArray = Array.isArray(childSlot);
  42840. var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
  42841. if (isArray || isIterable) {
  42842. var type = isArray ? 'array' : 'iterable';
  42843. 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);
  42844. return false;
  42845. }
  42846. }
  42847. return true;
  42848. }
  42849. function validateSuspenseListChildren(children, revealOrder) {
  42850. {
  42851. if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
  42852. if (Array.isArray(children)) {
  42853. for (var i = 0; i < children.length; i++) {
  42854. if (!validateSuspenseListNestedChild(children[i], i)) {
  42855. return;
  42856. }
  42857. }
  42858. } else {
  42859. var iteratorFn = getIteratorFn(children);
  42860. if (typeof iteratorFn === 'function') {
  42861. var childrenIterator = iteratorFn.call(children);
  42862. if (childrenIterator) {
  42863. var step = childrenIterator.next();
  42864. var _i = 0;
  42865. for (; !step.done; step = childrenIterator.next()) {
  42866. if (!validateSuspenseListNestedChild(step.value, _i)) {
  42867. return;
  42868. }
  42869. _i++;
  42870. }
  42871. }
  42872. } else {
  42873. 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);
  42874. }
  42875. }
  42876. }
  42877. }
  42878. }
  42879. function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) {
  42880. var renderState = workInProgress.memoizedState;
  42881. if (renderState === null) {
  42882. workInProgress.memoizedState = {
  42883. isBackwards: isBackwards,
  42884. rendering: null,
  42885. renderingStartTime: 0,
  42886. last: lastContentRow,
  42887. tail: tail,
  42888. tailExpiration: 0,
  42889. tailMode: tailMode,
  42890. lastEffect: lastEffectBeforeRendering
  42891. };
  42892. } else {
  42893. // We can reuse the existing object from previous renders.
  42894. renderState.isBackwards = isBackwards;
  42895. renderState.rendering = null;
  42896. renderState.renderingStartTime = 0;
  42897. renderState.last = lastContentRow;
  42898. renderState.tail = tail;
  42899. renderState.tailExpiration = 0;
  42900. renderState.tailMode = tailMode;
  42901. renderState.lastEffect = lastEffectBeforeRendering;
  42902. }
  42903. } // This can end up rendering this component multiple passes.
  42904. // The first pass splits the children fibers into two sets. A head and tail.
  42905. // We first render the head. If anything is in fallback state, we do another
  42906. // pass through beginWork to rerender all children (including the tail) with
  42907. // the force suspend context. If the first render didn't have anything in
  42908. // in fallback state. Then we render each row in the tail one-by-one.
  42909. // That happens in the completeWork phase without going back to beginWork.
  42910. function updateSuspenseListComponent(current, workInProgress, renderExpirationTime) {
  42911. var nextProps = workInProgress.pendingProps;
  42912. var revealOrder = nextProps.revealOrder;
  42913. var tailMode = nextProps.tail;
  42914. var newChildren = nextProps.children;
  42915. validateRevealOrder(revealOrder);
  42916. validateTailOptions(tailMode, revealOrder);
  42917. validateSuspenseListChildren(newChildren, revealOrder);
  42918. reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  42919. var suspenseContext = suspenseStackCursor.current;
  42920. var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
  42921. if (shouldForceFallback) {
  42922. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  42923. workInProgress.effectTag |= DidCapture;
  42924. } else {
  42925. var didSuspendBefore = current !== null && (current.effectTag & DidCapture) !== NoEffect;
  42926. if (didSuspendBefore) {
  42927. // If we previously forced a fallback, we need to schedule work
  42928. // on any nested boundaries to let them know to try to render
  42929. // again. This is the same as context updating.
  42930. propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
  42931. }
  42932. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  42933. }
  42934. pushSuspenseContext(workInProgress, suspenseContext);
  42935. if ((workInProgress.mode & BlockingMode) === NoMode) {
  42936. // Outside of blocking mode, SuspenseList doesn't work so we just
  42937. // use make it a noop by treating it as the default revealOrder.
  42938. workInProgress.memoizedState = null;
  42939. } else {
  42940. switch (revealOrder) {
  42941. case 'forwards':
  42942. {
  42943. var lastContentRow = findLastContentRow(workInProgress.child);
  42944. var tail;
  42945. if (lastContentRow === null) {
  42946. // The whole list is part of the tail.
  42947. // TODO: We could fast path by just rendering the tail now.
  42948. tail = workInProgress.child;
  42949. workInProgress.child = null;
  42950. } else {
  42951. // Disconnect the tail rows after the content row.
  42952. // We're going to render them separately later.
  42953. tail = lastContentRow.sibling;
  42954. lastContentRow.sibling = null;
  42955. }
  42956. initSuspenseListRenderState(workInProgress, false, // isBackwards
  42957. tail, lastContentRow, tailMode, workInProgress.lastEffect);
  42958. break;
  42959. }
  42960. case 'backwards':
  42961. {
  42962. // We're going to find the first row that has existing content.
  42963. // At the same time we're going to reverse the list of everything
  42964. // we pass in the meantime. That's going to be our tail in reverse
  42965. // order.
  42966. var _tail = null;
  42967. var row = workInProgress.child;
  42968. workInProgress.child = null;
  42969. while (row !== null) {
  42970. var currentRow = row.alternate; // New rows can't be content rows.
  42971. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  42972. // This is the beginning of the main content.
  42973. workInProgress.child = row;
  42974. break;
  42975. }
  42976. var nextRow = row.sibling;
  42977. row.sibling = _tail;
  42978. _tail = row;
  42979. row = nextRow;
  42980. } // TODO: If workInProgress.child is null, we can continue on the tail immediately.
  42981. initSuspenseListRenderState(workInProgress, true, // isBackwards
  42982. _tail, null, // last
  42983. tailMode, workInProgress.lastEffect);
  42984. break;
  42985. }
  42986. case 'together':
  42987. {
  42988. initSuspenseListRenderState(workInProgress, false, // isBackwards
  42989. null, // tail
  42990. null, // last
  42991. undefined, workInProgress.lastEffect);
  42992. break;
  42993. }
  42994. default:
  42995. {
  42996. // The default reveal order is the same as not having
  42997. // a boundary.
  42998. workInProgress.memoizedState = null;
  42999. }
  43000. }
  43001. }
  43002. return workInProgress.child;
  43003. }
  43004. function updatePortalComponent(current, workInProgress, renderExpirationTime) {
  43005. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  43006. var nextChildren = workInProgress.pendingProps;
  43007. if (current === null) {
  43008. // Portals are special because we don't append the children during mount
  43009. // but at commit. Therefore we need to track insertions which the normal
  43010. // flow doesn't do during mount. This doesn't happen at the root because
  43011. // the root always starts with a "current" with a null child.
  43012. // TODO: Consider unifying this with how the root works.
  43013. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  43014. } else {
  43015. reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  43016. }
  43017. return workInProgress.child;
  43018. }
  43019. function updateContextProvider(current, workInProgress, renderExpirationTime) {
  43020. var providerType = workInProgress.type;
  43021. var context = providerType._context;
  43022. var newProps = workInProgress.pendingProps;
  43023. var oldProps = workInProgress.memoizedProps;
  43024. var newValue = newProps.value;
  43025. {
  43026. var providerPropTypes = workInProgress.type.propTypes;
  43027. if (providerPropTypes) {
  43028. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  43029. }
  43030. }
  43031. pushProvider(workInProgress, newValue);
  43032. if (oldProps !== null) {
  43033. var oldValue = oldProps.value;
  43034. var changedBits = calculateChangedBits(context, newValue, oldValue);
  43035. if (changedBits === 0) {
  43036. // No change. Bailout early if children are the same.
  43037. if (oldProps.children === newProps.children && !hasContextChanged()) {
  43038. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  43039. }
  43040. } else {
  43041. // The context value changed. Search for matching consumers and schedule
  43042. // them to update.
  43043. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  43044. }
  43045. }
  43046. var newChildren = newProps.children;
  43047. reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  43048. return workInProgress.child;
  43049. }
  43050. var hasWarnedAboutUsingContextAsConsumer = false;
  43051. function updateContextConsumer(current, workInProgress, renderExpirationTime) {
  43052. var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
  43053. // DEV mode, we create a separate object for Context.Consumer that acts
  43054. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  43055. // so we use the old behaviour (Context.Consumer references Context) to
  43056. // reduce size and overhead. The separate object references context via
  43057. // a property called "_context", which also gives us the ability to check
  43058. // in DEV mode if this property exists or not and warn if it does not.
  43059. {
  43060. if (context._context === undefined) {
  43061. // This may be because it's a Context (rather than a Consumer).
  43062. // Or it may be because it's older React where they're the same thing.
  43063. // We only want to warn if we're sure it's a new React.
  43064. if (context !== context.Consumer) {
  43065. if (!hasWarnedAboutUsingContextAsConsumer) {
  43066. hasWarnedAboutUsingContextAsConsumer = true;
  43067. error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  43068. }
  43069. }
  43070. } else {
  43071. context = context._context;
  43072. }
  43073. }
  43074. var newProps = workInProgress.pendingProps;
  43075. var render = newProps.children;
  43076. {
  43077. if (typeof render !== 'function') {
  43078. 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.');
  43079. }
  43080. }
  43081. prepareToReadContext(workInProgress, renderExpirationTime);
  43082. var newValue = readContext(context, newProps.unstable_observedBits);
  43083. var newChildren;
  43084. {
  43085. ReactCurrentOwner$1.current = workInProgress;
  43086. setIsRendering(true);
  43087. newChildren = render(newValue);
  43088. setIsRendering(false);
  43089. } // React DevTools reads this flag.
  43090. workInProgress.effectTag |= PerformedWork;
  43091. reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  43092. return workInProgress.child;
  43093. }
  43094. function markWorkInProgressReceivedUpdate() {
  43095. didReceiveUpdate = true;
  43096. }
  43097. function bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime) {
  43098. cancelWorkTimer(workInProgress);
  43099. if (current !== null) {
  43100. // Reuse previous dependencies
  43101. workInProgress.dependencies = current.dependencies;
  43102. }
  43103. {
  43104. // Don't update "base" render times for bailouts.
  43105. stopProfilerTimerIfRunning();
  43106. }
  43107. var updateExpirationTime = workInProgress.expirationTime;
  43108. if (updateExpirationTime !== NoWork) {
  43109. markUnprocessedUpdateTime(updateExpirationTime);
  43110. } // Check if the children have any pending work.
  43111. var childExpirationTime = workInProgress.childExpirationTime;
  43112. if (childExpirationTime < renderExpirationTime) {
  43113. // The children don't have any work either. We can skip them.
  43114. // TODO: Once we add back resuming, we should check if the children are
  43115. // a work-in-progress set. If so, we need to transfer their effects.
  43116. return null;
  43117. } else {
  43118. // This fiber doesn't have work, but its subtree does. Clone the child
  43119. // fibers and continue.
  43120. cloneChildFibers(current, workInProgress);
  43121. return workInProgress.child;
  43122. }
  43123. }
  43124. function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
  43125. {
  43126. var returnFiber = oldWorkInProgress.return;
  43127. if (returnFiber === null) {
  43128. throw new Error('Cannot swap the root fiber.');
  43129. } // Disconnect from the old current.
  43130. // It will get deleted.
  43131. current.alternate = null;
  43132. oldWorkInProgress.alternate = null; // Connect to the new tree.
  43133. newWorkInProgress.index = oldWorkInProgress.index;
  43134. newWorkInProgress.sibling = oldWorkInProgress.sibling;
  43135. newWorkInProgress.return = oldWorkInProgress.return;
  43136. newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.
  43137. if (oldWorkInProgress === returnFiber.child) {
  43138. returnFiber.child = newWorkInProgress;
  43139. } else {
  43140. var prevSibling = returnFiber.child;
  43141. if (prevSibling === null) {
  43142. throw new Error('Expected parent to have a child.');
  43143. }
  43144. while (prevSibling.sibling !== oldWorkInProgress) {
  43145. prevSibling = prevSibling.sibling;
  43146. if (prevSibling === null) {
  43147. throw new Error('Expected to find the previous sibling.');
  43148. }
  43149. }
  43150. prevSibling.sibling = newWorkInProgress;
  43151. } // Delete the old fiber and place the new one.
  43152. // Since the old fiber is disconnected, we have to schedule it manually.
  43153. var last = returnFiber.lastEffect;
  43154. if (last !== null) {
  43155. last.nextEffect = current;
  43156. returnFiber.lastEffect = current;
  43157. } else {
  43158. returnFiber.firstEffect = returnFiber.lastEffect = current;
  43159. }
  43160. current.nextEffect = null;
  43161. current.effectTag = Deletion;
  43162. newWorkInProgress.effectTag |= Placement; // Restart work from the new fiber.
  43163. return newWorkInProgress;
  43164. }
  43165. }
  43166. function beginWork(current, workInProgress, renderExpirationTime) {
  43167. var updateExpirationTime = workInProgress.expirationTime;
  43168. {
  43169. if (workInProgress._debugNeedsRemount && current !== null) {
  43170. // This will restart the begin phase with a new fiber.
  43171. return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
  43172. }
  43173. }
  43174. if (current !== null) {
  43175. var oldProps = current.memoizedProps;
  43176. var newProps = workInProgress.pendingProps;
  43177. if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
  43178. workInProgress.type !== current.type )) {
  43179. // If props or context changed, mark the fiber as having performed work.
  43180. // This may be unset if the props are determined to be equal later (memo).
  43181. didReceiveUpdate = true;
  43182. } else if (updateExpirationTime < renderExpirationTime) {
  43183. didReceiveUpdate = false; // This fiber does not have any pending work. Bailout without entering
  43184. // the begin phase. There's still some bookkeeping we that needs to be done
  43185. // in this optimized path, mostly pushing stuff onto the stack.
  43186. switch (workInProgress.tag) {
  43187. case HostRoot:
  43188. pushHostRootContext(workInProgress);
  43189. resetHydrationState();
  43190. break;
  43191. case HostComponent:
  43192. pushHostContext(workInProgress);
  43193. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
  43194. {
  43195. markSpawnedWork(Never);
  43196. } // Schedule this fiber to re-render at offscreen priority. Then bailout.
  43197. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  43198. return null;
  43199. }
  43200. break;
  43201. case ClassComponent:
  43202. {
  43203. var Component = workInProgress.type;
  43204. if (isContextProvider(Component)) {
  43205. pushContextProvider(workInProgress);
  43206. }
  43207. break;
  43208. }
  43209. case HostPortal:
  43210. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  43211. break;
  43212. case ContextProvider:
  43213. {
  43214. var newValue = workInProgress.memoizedProps.value;
  43215. pushProvider(workInProgress, newValue);
  43216. break;
  43217. }
  43218. case Profiler:
  43219. {
  43220. // Profiler should only call onRender when one of its descendants actually rendered.
  43221. var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  43222. if (hasChildWork) {
  43223. workInProgress.effectTag |= Update;
  43224. }
  43225. }
  43226. break;
  43227. case SuspenseComponent:
  43228. {
  43229. var state = workInProgress.memoizedState;
  43230. if (state !== null) {
  43231. // whether to retry the primary children, or to skip over it and
  43232. // go straight to the fallback. Check the priority of the primary
  43233. // child fragment.
  43234. var primaryChildFragment = workInProgress.child;
  43235. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  43236. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  43237. // The primary children have pending work. Use the normal path
  43238. // to attempt to render the primary children again.
  43239. return updateSuspenseComponent(current, workInProgress, renderExpirationTime);
  43240. } else {
  43241. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
  43242. // priority. Bailout.
  43243. var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  43244. if (child !== null) {
  43245. // The fallback children have pending work. Skip over the
  43246. // primary children and work on the fallback.
  43247. return child.sibling;
  43248. } else {
  43249. return null;
  43250. }
  43251. }
  43252. } else {
  43253. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  43254. }
  43255. break;
  43256. }
  43257. case SuspenseListComponent:
  43258. {
  43259. var didSuspendBefore = (current.effectTag & DidCapture) !== NoEffect;
  43260. var _hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  43261. if (didSuspendBefore) {
  43262. if (_hasChildWork) {
  43263. // If something was in fallback state last time, and we have all the
  43264. // same children then we're still in progressive loading state.
  43265. // Something might get unblocked by state updates or retries in the
  43266. // tree which will affect the tail. So we need to use the normal
  43267. // path to compute the correct tail.
  43268. return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
  43269. } // If none of the children had any work, that means that none of
  43270. // them got retried so they'll still be blocked in the same way
  43271. // as before. We can fast bail out.
  43272. workInProgress.effectTag |= DidCapture;
  43273. } // If nothing suspended before and we're rendering the same children,
  43274. // then the tail doesn't matter. Anything new that suspends will work
  43275. // in the "together" mode, so we can continue from the state we had.
  43276. var renderState = workInProgress.memoizedState;
  43277. if (renderState !== null) {
  43278. // Reset to the "together" mode in case we've started a different
  43279. // update in the past but didn't complete it.
  43280. renderState.rendering = null;
  43281. renderState.tail = null;
  43282. }
  43283. pushSuspenseContext(workInProgress, suspenseStackCursor.current);
  43284. if (_hasChildWork) {
  43285. break;
  43286. } else {
  43287. // If none of the children had any work, that means that none of
  43288. // them got retried so they'll still be blocked in the same way
  43289. // as before. We can fast bail out.
  43290. return null;
  43291. }
  43292. }
  43293. }
  43294. return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  43295. } else {
  43296. // An update was scheduled on this fiber, but there are no new props
  43297. // nor legacy context. Set this to false. If an update queue or context
  43298. // consumer produces a changed value, it will set this to true. Otherwise,
  43299. // the component will assume the children have not changed and bail out.
  43300. didReceiveUpdate = false;
  43301. }
  43302. } else {
  43303. didReceiveUpdate = false;
  43304. } // Before entering the begin phase, clear pending update priority.
  43305. // TODO: This assumes that we're about to evaluate the component and process
  43306. // the update queue. However, there's an exception: SimpleMemoComponent
  43307. // sometimes bails out later in the begin phase. This indicates that we should
  43308. // move this assignment out of the common path and into each branch.
  43309. workInProgress.expirationTime = NoWork;
  43310. switch (workInProgress.tag) {
  43311. case IndeterminateComponent:
  43312. {
  43313. return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderExpirationTime);
  43314. }
  43315. case LazyComponent:
  43316. {
  43317. var elementType = workInProgress.elementType;
  43318. return mountLazyComponent(current, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
  43319. }
  43320. case FunctionComponent:
  43321. {
  43322. var _Component = workInProgress.type;
  43323. var unresolvedProps = workInProgress.pendingProps;
  43324. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  43325. return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderExpirationTime);
  43326. }
  43327. case ClassComponent:
  43328. {
  43329. var _Component2 = workInProgress.type;
  43330. var _unresolvedProps = workInProgress.pendingProps;
  43331. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  43332. return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  43333. }
  43334. case HostRoot:
  43335. return updateHostRoot(current, workInProgress, renderExpirationTime);
  43336. case HostComponent:
  43337. return updateHostComponent(current, workInProgress, renderExpirationTime);
  43338. case HostText:
  43339. return updateHostText(current, workInProgress);
  43340. case SuspenseComponent:
  43341. return updateSuspenseComponent(current, workInProgress, renderExpirationTime);
  43342. case HostPortal:
  43343. return updatePortalComponent(current, workInProgress, renderExpirationTime);
  43344. case ForwardRef:
  43345. {
  43346. var type = workInProgress.type;
  43347. var _unresolvedProps2 = workInProgress.pendingProps;
  43348. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  43349. return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderExpirationTime);
  43350. }
  43351. case Fragment:
  43352. return updateFragment(current, workInProgress, renderExpirationTime);
  43353. case Mode:
  43354. return updateMode(current, workInProgress, renderExpirationTime);
  43355. case Profiler:
  43356. return updateProfiler(current, workInProgress, renderExpirationTime);
  43357. case ContextProvider:
  43358. return updateContextProvider(current, workInProgress, renderExpirationTime);
  43359. case ContextConsumer:
  43360. return updateContextConsumer(current, workInProgress, renderExpirationTime);
  43361. case MemoComponent:
  43362. {
  43363. var _type2 = workInProgress.type;
  43364. var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.
  43365. var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
  43366. {
  43367. if (workInProgress.type !== workInProgress.elementType) {
  43368. var outerPropTypes = _type2.propTypes;
  43369. if (outerPropTypes) {
  43370. checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
  43371. 'prop', getComponentName(_type2), getCurrentFiberStackInDev);
  43372. }
  43373. }
  43374. }
  43375. _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
  43376. return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  43377. }
  43378. case SimpleMemoComponent:
  43379. {
  43380. return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  43381. }
  43382. case IncompleteClassComponent:
  43383. {
  43384. var _Component3 = workInProgress.type;
  43385. var _unresolvedProps4 = workInProgress.pendingProps;
  43386. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  43387. return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  43388. }
  43389. case SuspenseListComponent:
  43390. {
  43391. return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
  43392. }
  43393. }
  43394. {
  43395. {
  43396. throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
  43397. }
  43398. }
  43399. }
  43400. function markUpdate(workInProgress) {
  43401. // Tag the fiber with an update effect. This turns a Placement into
  43402. // a PlacementAndUpdate.
  43403. workInProgress.effectTag |= Update;
  43404. }
  43405. function markRef$1(workInProgress) {
  43406. workInProgress.effectTag |= Ref;
  43407. }
  43408. var appendAllChildren;
  43409. var updateHostContainer;
  43410. var updateHostComponent$1;
  43411. var updateHostText$1;
  43412. {
  43413. // Mutation mode
  43414. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  43415. // We only have the top Fiber that was created but we need recurse down its
  43416. // children to find all the terminal nodes.
  43417. var node = workInProgress.child;
  43418. while (node !== null) {
  43419. if (node.tag === HostComponent || node.tag === HostText) {
  43420. appendInitialChild(parent, node.stateNode);
  43421. } else if (node.tag === HostPortal) ; else if (node.child !== null) {
  43422. node.child.return = node;
  43423. node = node.child;
  43424. continue;
  43425. }
  43426. if (node === workInProgress) {
  43427. return;
  43428. }
  43429. while (node.sibling === null) {
  43430. if (node.return === null || node.return === workInProgress) {
  43431. return;
  43432. }
  43433. node = node.return;
  43434. }
  43435. node.sibling.return = node.return;
  43436. node = node.sibling;
  43437. }
  43438. };
  43439. updateHostContainer = function (workInProgress) {// Noop
  43440. };
  43441. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  43442. // If we have an alternate, that means this is an update and we need to
  43443. // schedule a side-effect to do the updates.
  43444. var oldProps = current.memoizedProps;
  43445. if (oldProps === newProps) {
  43446. // In mutation mode, this is sufficient for a bailout because
  43447. // we won't touch this node even if children changed.
  43448. return;
  43449. } // If we get updated because one of our children updated, we don't
  43450. // have newProps so we'll have to reuse them.
  43451. // TODO: Split the update API as separate for the props vs. children.
  43452. // Even better would be if children weren't special cased at all tho.
  43453. var instance = workInProgress.stateNode;
  43454. var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host
  43455. // component is hitting the resume path. Figure out why. Possibly
  43456. // related to `hidden`.
  43457. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.
  43458. workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
  43459. // is a new ref we mark this as an update. All the work is done in commitWork.
  43460. if (updatePayload) {
  43461. markUpdate(workInProgress);
  43462. }
  43463. };
  43464. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  43465. // If the text differs, mark it as an update. All the work in done in commitWork.
  43466. if (oldText !== newText) {
  43467. markUpdate(workInProgress);
  43468. }
  43469. };
  43470. }
  43471. function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  43472. switch (renderState.tailMode) {
  43473. case 'hidden':
  43474. {
  43475. // Any insertions at the end of the tail list after this point
  43476. // should be invisible. If there are already mounted boundaries
  43477. // anything before them are not considered for collapsing.
  43478. // Therefore we need to go through the whole tail to find if
  43479. // there are any.
  43480. var tailNode = renderState.tail;
  43481. var lastTailNode = null;
  43482. while (tailNode !== null) {
  43483. if (tailNode.alternate !== null) {
  43484. lastTailNode = tailNode;
  43485. }
  43486. tailNode = tailNode.sibling;
  43487. } // Next we're simply going to delete all insertions after the
  43488. // last rendered item.
  43489. if (lastTailNode === null) {
  43490. // All remaining items in the tail are insertions.
  43491. renderState.tail = null;
  43492. } else {
  43493. // Detach the insertion after the last node that was already
  43494. // inserted.
  43495. lastTailNode.sibling = null;
  43496. }
  43497. break;
  43498. }
  43499. case 'collapsed':
  43500. {
  43501. // Any insertions at the end of the tail list after this point
  43502. // should be invisible. If there are already mounted boundaries
  43503. // anything before them are not considered for collapsing.
  43504. // Therefore we need to go through the whole tail to find if
  43505. // there are any.
  43506. var _tailNode = renderState.tail;
  43507. var _lastTailNode = null;
  43508. while (_tailNode !== null) {
  43509. if (_tailNode.alternate !== null) {
  43510. _lastTailNode = _tailNode;
  43511. }
  43512. _tailNode = _tailNode.sibling;
  43513. } // Next we're simply going to delete all insertions after the
  43514. // last rendered item.
  43515. if (_lastTailNode === null) {
  43516. // All remaining items in the tail are insertions.
  43517. if (!hasRenderedATailFallback && renderState.tail !== null) {
  43518. // We suspended during the head. We want to show at least one
  43519. // row at the tail. So we'll keep on and cut off the rest.
  43520. renderState.tail.sibling = null;
  43521. } else {
  43522. renderState.tail = null;
  43523. }
  43524. } else {
  43525. // Detach the insertion after the last node that was already
  43526. // inserted.
  43527. _lastTailNode.sibling = null;
  43528. }
  43529. break;
  43530. }
  43531. }
  43532. }
  43533. function completeWork(current, workInProgress, renderExpirationTime) {
  43534. var newProps = workInProgress.pendingProps;
  43535. switch (workInProgress.tag) {
  43536. case IndeterminateComponent:
  43537. case LazyComponent:
  43538. case SimpleMemoComponent:
  43539. case FunctionComponent:
  43540. case ForwardRef:
  43541. case Fragment:
  43542. case Mode:
  43543. case Profiler:
  43544. case ContextConsumer:
  43545. case MemoComponent:
  43546. return null;
  43547. case ClassComponent:
  43548. {
  43549. var Component = workInProgress.type;
  43550. if (isContextProvider(Component)) {
  43551. popContext(workInProgress);
  43552. }
  43553. return null;
  43554. }
  43555. case HostRoot:
  43556. {
  43557. popHostContainer(workInProgress);
  43558. popTopLevelContextObject(workInProgress);
  43559. var fiberRoot = workInProgress.stateNode;
  43560. if (fiberRoot.pendingContext) {
  43561. fiberRoot.context = fiberRoot.pendingContext;
  43562. fiberRoot.pendingContext = null;
  43563. }
  43564. if (current === null || current.child === null) {
  43565. // If we hydrated, pop so that we can delete any remaining children
  43566. // that weren't hydrated.
  43567. var wasHydrated = popHydrationState(workInProgress);
  43568. if (wasHydrated) {
  43569. // If we hydrated, then we'll need to schedule an update for
  43570. // the commit side-effects on the root.
  43571. markUpdate(workInProgress);
  43572. }
  43573. }
  43574. updateHostContainer(workInProgress);
  43575. return null;
  43576. }
  43577. case HostComponent:
  43578. {
  43579. popHostContext(workInProgress);
  43580. var rootContainerInstance = getRootHostContainer();
  43581. var type = workInProgress.type;
  43582. if (current !== null && workInProgress.stateNode != null) {
  43583. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  43584. if (current.ref !== workInProgress.ref) {
  43585. markRef$1(workInProgress);
  43586. }
  43587. } else {
  43588. if (!newProps) {
  43589. if (!(workInProgress.stateNode !== null)) {
  43590. {
  43591. throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
  43592. }
  43593. } // This can happen when we abort work.
  43594. return null;
  43595. }
  43596. var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
  43597. // "stack" as the parent. Then append children as we go in beginWork
  43598. // or completeWork depending on whether we want to add them top->down or
  43599. // bottom->up. Top->down is faster in IE11.
  43600. var _wasHydrated = popHydrationState(workInProgress);
  43601. if (_wasHydrated) {
  43602. // TODO: Move this and createInstance step into the beginPhase
  43603. // to consolidate.
  43604. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  43605. // If changes to the hydrated node need to be applied at the
  43606. // commit-phase we mark this as such.
  43607. markUpdate(workInProgress);
  43608. }
  43609. } else {
  43610. var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  43611. appendAllChildren(instance, workInProgress, false, false); // This needs to be set before we mount Flare event listeners
  43612. workInProgress.stateNode = instance;
  43613. // (eg DOM renderer supports auto-focus for certain elements).
  43614. // Make sure such renderers get scheduled for later work.
  43615. if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
  43616. markUpdate(workInProgress);
  43617. }
  43618. }
  43619. if (workInProgress.ref !== null) {
  43620. // If there is a ref on a host node we need to schedule a callback
  43621. markRef$1(workInProgress);
  43622. }
  43623. }
  43624. return null;
  43625. }
  43626. case HostText:
  43627. {
  43628. var newText = newProps;
  43629. if (current && workInProgress.stateNode != null) {
  43630. var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need
  43631. // to schedule a side-effect to do the updates.
  43632. updateHostText$1(current, workInProgress, oldText, newText);
  43633. } else {
  43634. if (typeof newText !== 'string') {
  43635. if (!(workInProgress.stateNode !== null)) {
  43636. {
  43637. throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
  43638. }
  43639. } // This can happen when we abort work.
  43640. }
  43641. var _rootContainerInstance = getRootHostContainer();
  43642. var _currentHostContext = getHostContext();
  43643. var _wasHydrated2 = popHydrationState(workInProgress);
  43644. if (_wasHydrated2) {
  43645. if (prepareToHydrateHostTextInstance(workInProgress)) {
  43646. markUpdate(workInProgress);
  43647. }
  43648. } else {
  43649. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  43650. }
  43651. }
  43652. return null;
  43653. }
  43654. case SuspenseComponent:
  43655. {
  43656. popSuspenseContext(workInProgress);
  43657. var nextState = workInProgress.memoizedState;
  43658. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  43659. // Something suspended. Re-render with the fallback children.
  43660. workInProgress.expirationTime = renderExpirationTime; // Do not reset the effect list.
  43661. return workInProgress;
  43662. }
  43663. var nextDidTimeout = nextState !== null;
  43664. var prevDidTimeout = false;
  43665. if (current === null) {
  43666. if (workInProgress.memoizedProps.fallback !== undefined) {
  43667. popHydrationState(workInProgress);
  43668. }
  43669. } else {
  43670. var prevState = current.memoizedState;
  43671. prevDidTimeout = prevState !== null;
  43672. if (!nextDidTimeout && prevState !== null) {
  43673. // We just switched from the fallback to the normal children.
  43674. // Delete the fallback.
  43675. // TODO: Would it be better to store the fallback fragment on
  43676. // the stateNode during the begin phase?
  43677. var currentFallbackChild = current.child.sibling;
  43678. if (currentFallbackChild !== null) {
  43679. // Deletions go at the beginning of the return fiber's effect list
  43680. var first = workInProgress.firstEffect;
  43681. if (first !== null) {
  43682. workInProgress.firstEffect = currentFallbackChild;
  43683. currentFallbackChild.nextEffect = first;
  43684. } else {
  43685. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  43686. currentFallbackChild.nextEffect = null;
  43687. }
  43688. currentFallbackChild.effectTag = Deletion;
  43689. }
  43690. }
  43691. }
  43692. if (nextDidTimeout && !prevDidTimeout) {
  43693. // If this subtreee is running in blocking mode we can suspend,
  43694. // otherwise we won't suspend.
  43695. // TODO: This will still suspend a synchronous tree if anything
  43696. // in the concurrent tree already suspended during this render.
  43697. // This is a known bug.
  43698. if ((workInProgress.mode & BlockingMode) !== NoMode) {
  43699. // TODO: Move this back to throwException because this is too late
  43700. // if this is a large tree which is common for initial loads. We
  43701. // don't know if we should restart a render or not until we get
  43702. // this marker, and this is too late.
  43703. // If this render already had a ping or lower pri updates,
  43704. // and this is the first time we know we're going to suspend we
  43705. // should be able to immediately restart from within throwException.
  43706. var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
  43707. if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
  43708. // If this was in an invisible tree or a new render, then showing
  43709. // this boundary is ok.
  43710. renderDidSuspend();
  43711. } else {
  43712. // Otherwise, we're going to have to hide content so we should
  43713. // suspend for longer if possible.
  43714. renderDidSuspendDelayIfPossible();
  43715. }
  43716. }
  43717. }
  43718. {
  43719. // TODO: Only schedule updates if these values are non equal, i.e. it changed.
  43720. if (nextDidTimeout || prevDidTimeout) {
  43721. // If this boundary just timed out, schedule an effect to attach a
  43722. // retry listener to the promise. This flag is also used to hide the
  43723. // primary children. In mutation mode, we also need the flag to
  43724. // *unhide* children that were previously hidden, so check if this
  43725. // is currently timed out, too.
  43726. workInProgress.effectTag |= Update;
  43727. }
  43728. }
  43729. return null;
  43730. }
  43731. case HostPortal:
  43732. popHostContainer(workInProgress);
  43733. updateHostContainer(workInProgress);
  43734. return null;
  43735. case ContextProvider:
  43736. // Pop provider fiber
  43737. popProvider(workInProgress);
  43738. return null;
  43739. case IncompleteClassComponent:
  43740. {
  43741. // Same as class component case. I put it down here so that the tags are
  43742. // sequential to ensure this switch is compiled to a jump table.
  43743. var _Component = workInProgress.type;
  43744. if (isContextProvider(_Component)) {
  43745. popContext(workInProgress);
  43746. }
  43747. return null;
  43748. }
  43749. case SuspenseListComponent:
  43750. {
  43751. popSuspenseContext(workInProgress);
  43752. var renderState = workInProgress.memoizedState;
  43753. if (renderState === null) {
  43754. // We're running in the default, "independent" mode.
  43755. // We don't do anything in this mode.
  43756. return null;
  43757. }
  43758. var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
  43759. var renderedTail = renderState.rendering;
  43760. if (renderedTail === null) {
  43761. // We just rendered the head.
  43762. if (!didSuspendAlready) {
  43763. // This is the first pass. We need to figure out if anything is still
  43764. // suspended in the rendered set.
  43765. // If new content unsuspended, but there's still some content that
  43766. // didn't. Then we need to do a second pass that forces everything
  43767. // to keep showing their fallbacks.
  43768. // We might be suspended if something in this render pass suspended, or
  43769. // something in the previous committed pass suspended. Otherwise,
  43770. // there's no chance so we can skip the expensive call to
  43771. // findFirstSuspended.
  43772. var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);
  43773. if (!cannotBeSuspended) {
  43774. var row = workInProgress.child;
  43775. while (row !== null) {
  43776. var suspended = findFirstSuspended(row);
  43777. if (suspended !== null) {
  43778. didSuspendAlready = true;
  43779. workInProgress.effectTag |= DidCapture;
  43780. cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
  43781. // part of the second pass. In that case nothing will subscribe to
  43782. // its thennables. Instead, we'll transfer its thennables to the
  43783. // SuspenseList so that it can retry if they resolve.
  43784. // There might be multiple of these in the list but since we're
  43785. // going to wait for all of them anyway, it doesn't really matter
  43786. // which ones gets to ping. In theory we could get clever and keep
  43787. // track of how many dependencies remain but it gets tricky because
  43788. // in the meantime, we can add/remove/change items and dependencies.
  43789. // We might bail out of the loop before finding any but that
  43790. // doesn't matter since that means that the other boundaries that
  43791. // we did find already has their listeners attached.
  43792. var newThennables = suspended.updateQueue;
  43793. if (newThennables !== null) {
  43794. workInProgress.updateQueue = newThennables;
  43795. workInProgress.effectTag |= Update;
  43796. } // Rerender the whole list, but this time, we'll force fallbacks
  43797. // to stay in place.
  43798. // Reset the effect list before doing the second pass since that's now invalid.
  43799. if (renderState.lastEffect === null) {
  43800. workInProgress.firstEffect = null;
  43801. }
  43802. workInProgress.lastEffect = renderState.lastEffect; // Reset the child fibers to their original state.
  43803. resetChildFibers(workInProgress, renderExpirationTime); // Set up the Suspense Context to force suspense and immediately
  43804. // rerender the children.
  43805. pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
  43806. return workInProgress.child;
  43807. }
  43808. row = row.sibling;
  43809. }
  43810. }
  43811. } else {
  43812. cutOffTailIfNeeded(renderState, false);
  43813. } // Next we're going to render the tail.
  43814. } else {
  43815. // Append the rendered row to the child list.
  43816. if (!didSuspendAlready) {
  43817. var _suspended = findFirstSuspended(renderedTail);
  43818. if (_suspended !== null) {
  43819. workInProgress.effectTag |= DidCapture;
  43820. didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
  43821. // get lost if this row ends up dropped during a second pass.
  43822. var _newThennables = _suspended.updateQueue;
  43823. if (_newThennables !== null) {
  43824. workInProgress.updateQueue = _newThennables;
  43825. workInProgress.effectTag |= Update;
  43826. }
  43827. cutOffTailIfNeeded(renderState, true); // This might have been modified.
  43828. if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate) {
  43829. // We need to delete the row we just rendered.
  43830. // Reset the effect list to what it was before we rendered this
  43831. // child. The nested children have already appended themselves.
  43832. var lastEffect = workInProgress.lastEffect = renderState.lastEffect; // Remove any effects that were appended after this point.
  43833. if (lastEffect !== null) {
  43834. lastEffect.nextEffect = null;
  43835. } // We're done.
  43836. return null;
  43837. }
  43838. } else if ( // The time it took to render last row is greater than time until
  43839. // the expiration.
  43840. now() * 2 - renderState.renderingStartTime > renderState.tailExpiration && renderExpirationTime > Never) {
  43841. // We have now passed our CPU deadline and we'll just give up further
  43842. // attempts to render the main content and only render fallbacks.
  43843. // The assumption is that this is usually faster.
  43844. workInProgress.effectTag |= DidCapture;
  43845. didSuspendAlready = true;
  43846. cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
  43847. // to get it started back up to attempt the next item. If we can show
  43848. // them, then they really have the same priority as this render.
  43849. // So we'll pick it back up the very next render pass once we've had
  43850. // an opportunity to yield for paint.
  43851. var nextPriority = renderExpirationTime - 1;
  43852. workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;
  43853. {
  43854. markSpawnedWork(nextPriority);
  43855. }
  43856. }
  43857. }
  43858. if (renderState.isBackwards) {
  43859. // The effect list of the backwards tail will have been added
  43860. // to the end. This breaks the guarantee that life-cycles fire in
  43861. // sibling order but that isn't a strong guarantee promised by React.
  43862. // Especially since these might also just pop in during future commits.
  43863. // Append to the beginning of the list.
  43864. renderedTail.sibling = workInProgress.child;
  43865. workInProgress.child = renderedTail;
  43866. } else {
  43867. var previousSibling = renderState.last;
  43868. if (previousSibling !== null) {
  43869. previousSibling.sibling = renderedTail;
  43870. } else {
  43871. workInProgress.child = renderedTail;
  43872. }
  43873. renderState.last = renderedTail;
  43874. }
  43875. }
  43876. if (renderState.tail !== null) {
  43877. // We still have tail rows to render.
  43878. if (renderState.tailExpiration === 0) {
  43879. // Heuristic for how long we're willing to spend rendering rows
  43880. // until we just give up and show what we have so far.
  43881. var TAIL_EXPIRATION_TIMEOUT_MS = 500;
  43882. renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS; // TODO: This is meant to mimic the train model or JND but this
  43883. // is a per component value. It should really be since the start
  43884. // of the total render or last commit. Consider using something like
  43885. // globalMostRecentFallbackTime. That doesn't account for being
  43886. // suspended for part of the time or when it's a new render.
  43887. // It should probably use a global start time value instead.
  43888. } // Pop a row.
  43889. var next = renderState.tail;
  43890. renderState.rendering = next;
  43891. renderState.tail = next.sibling;
  43892. renderState.lastEffect = workInProgress.lastEffect;
  43893. renderState.renderingStartTime = now();
  43894. next.sibling = null; // Restore the context.
  43895. // TODO: We can probably just avoid popping it instead and only
  43896. // setting it the first time we go from not suspended to suspended.
  43897. var suspenseContext = suspenseStackCursor.current;
  43898. if (didSuspendAlready) {
  43899. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  43900. } else {
  43901. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  43902. }
  43903. pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.
  43904. return next;
  43905. }
  43906. return null;
  43907. }
  43908. }
  43909. {
  43910. {
  43911. throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
  43912. }
  43913. }
  43914. }
  43915. function unwindWork(workInProgress, renderExpirationTime) {
  43916. switch (workInProgress.tag) {
  43917. case ClassComponent:
  43918. {
  43919. var Component = workInProgress.type;
  43920. if (isContextProvider(Component)) {
  43921. popContext(workInProgress);
  43922. }
  43923. var effectTag = workInProgress.effectTag;
  43924. if (effectTag & ShouldCapture) {
  43925. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  43926. return workInProgress;
  43927. }
  43928. return null;
  43929. }
  43930. case HostRoot:
  43931. {
  43932. popHostContainer(workInProgress);
  43933. popTopLevelContextObject(workInProgress);
  43934. var _effectTag = workInProgress.effectTag;
  43935. if (!((_effectTag & DidCapture) === NoEffect)) {
  43936. {
  43937. throw Error( "The root failed to unmount after an error. This is likely a bug in React. Please file an issue." );
  43938. }
  43939. }
  43940. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  43941. return workInProgress;
  43942. }
  43943. case HostComponent:
  43944. {
  43945. // TODO: popHydrationState
  43946. popHostContext(workInProgress);
  43947. return null;
  43948. }
  43949. case SuspenseComponent:
  43950. {
  43951. popSuspenseContext(workInProgress);
  43952. var _effectTag2 = workInProgress.effectTag;
  43953. if (_effectTag2 & ShouldCapture) {
  43954. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.
  43955. return workInProgress;
  43956. }
  43957. return null;
  43958. }
  43959. case SuspenseListComponent:
  43960. {
  43961. popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
  43962. // caught by a nested boundary. If not, it should bubble through.
  43963. return null;
  43964. }
  43965. case HostPortal:
  43966. popHostContainer(workInProgress);
  43967. return null;
  43968. case ContextProvider:
  43969. popProvider(workInProgress);
  43970. return null;
  43971. default:
  43972. return null;
  43973. }
  43974. }
  43975. function unwindInterruptedWork(interruptedWork) {
  43976. switch (interruptedWork.tag) {
  43977. case ClassComponent:
  43978. {
  43979. var childContextTypes = interruptedWork.type.childContextTypes;
  43980. if (childContextTypes !== null && childContextTypes !== undefined) {
  43981. popContext(interruptedWork);
  43982. }
  43983. break;
  43984. }
  43985. case HostRoot:
  43986. {
  43987. popHostContainer(interruptedWork);
  43988. popTopLevelContextObject(interruptedWork);
  43989. break;
  43990. }
  43991. case HostComponent:
  43992. {
  43993. popHostContext(interruptedWork);
  43994. break;
  43995. }
  43996. case HostPortal:
  43997. popHostContainer(interruptedWork);
  43998. break;
  43999. case SuspenseComponent:
  44000. popSuspenseContext(interruptedWork);
  44001. break;
  44002. case SuspenseListComponent:
  44003. popSuspenseContext(interruptedWork);
  44004. break;
  44005. case ContextProvider:
  44006. popProvider(interruptedWork);
  44007. break;
  44008. }
  44009. }
  44010. function createCapturedValue(value, source) {
  44011. // If the value is an error, call this function immediately after it is thrown
  44012. // so the stack is accurate.
  44013. return {
  44014. value: value,
  44015. source: source,
  44016. stack: getStackByFiberInDevAndProd(source)
  44017. };
  44018. }
  44019. function logCapturedError(capturedError) {
  44020. var error = capturedError.error;
  44021. {
  44022. var componentName = capturedError.componentName,
  44023. componentStack = capturedError.componentStack,
  44024. errorBoundaryName = capturedError.errorBoundaryName,
  44025. errorBoundaryFound = capturedError.errorBoundaryFound,
  44026. willRetry = capturedError.willRetry; // Browsers support silencing uncaught errors by calling
  44027. // `preventDefault()` in window `error` handler.
  44028. // We record this information as an expando on the error.
  44029. if (error != null && error._suppressLogging) {
  44030. if (errorBoundaryFound && willRetry) {
  44031. // The error is recoverable and was silenced.
  44032. // Ignore it and don't print the stack addendum.
  44033. // This is handy for testing error boundaries without noise.
  44034. return;
  44035. } // The error is fatal. Since the silencing might have
  44036. // been accidental, we'll surface it anyway.
  44037. // However, the browser would have silenced the original error
  44038. // so we'll print it first, and then print the stack addendum.
  44039. console['error'](error); // Don't transform to our wrapper
  44040. // For a more detailed description of this block, see:
  44041. // https://github.com/facebook/react/pull/13384
  44042. }
  44043. var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:';
  44044. var errorBoundaryMessage; // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  44045. if (errorBoundaryFound && errorBoundaryName) {
  44046. if (willRetry) {
  44047. errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".");
  44048. } else {
  44049. errorBoundaryMessage = "This error was initially handled by the error boundary " + errorBoundaryName + ".\n" + "Recreating the tree from scratch failed so React will unmount the tree.";
  44050. }
  44051. } else {
  44052. 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.';
  44053. }
  44054. var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.
  44055. // We don't include the original error message and JS stack because the browser
  44056. // has already printed it. Even if the application swallows the error, it is still
  44057. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  44058. console['error'](combinedMessage); // Don't transform to our wrapper
  44059. }
  44060. }
  44061. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  44062. {
  44063. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  44064. }
  44065. var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
  44066. function logError(boundary, errorInfo) {
  44067. var source = errorInfo.source;
  44068. var stack = errorInfo.stack;
  44069. if (stack === null && source !== null) {
  44070. stack = getStackByFiberInDevAndProd(source);
  44071. }
  44072. var capturedError = {
  44073. componentName: source !== null ? getComponentName(source.type) : null,
  44074. componentStack: stack !== null ? stack : '',
  44075. error: errorInfo.value,
  44076. errorBoundary: null,
  44077. errorBoundaryName: null,
  44078. errorBoundaryFound: false,
  44079. willRetry: false
  44080. };
  44081. if (boundary !== null && boundary.tag === ClassComponent) {
  44082. capturedError.errorBoundary = boundary.stateNode;
  44083. capturedError.errorBoundaryName = getComponentName(boundary.type);
  44084. capturedError.errorBoundaryFound = true;
  44085. capturedError.willRetry = true;
  44086. }
  44087. try {
  44088. logCapturedError(capturedError);
  44089. } catch (e) {
  44090. // This method must not throw, or React internal state will get messed up.
  44091. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  44092. // we want to report this error outside of the normal stack as a last resort.
  44093. // https://github.com/facebook/react/issues/13188
  44094. setTimeout(function () {
  44095. throw e;
  44096. });
  44097. }
  44098. }
  44099. var callComponentWillUnmountWithTimer = function (current, instance) {
  44100. startPhaseTimer(current, 'componentWillUnmount');
  44101. instance.props = current.memoizedProps;
  44102. instance.state = current.memoizedState;
  44103. instance.componentWillUnmount();
  44104. stopPhaseTimer();
  44105. }; // Capture errors so they don't interrupt unmounting.
  44106. function safelyCallComponentWillUnmount(current, instance) {
  44107. {
  44108. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance);
  44109. if (hasCaughtError()) {
  44110. var unmountError = clearCaughtError();
  44111. captureCommitPhaseError(current, unmountError);
  44112. }
  44113. }
  44114. }
  44115. function safelyDetachRef(current) {
  44116. var ref = current.ref;
  44117. if (ref !== null) {
  44118. if (typeof ref === 'function') {
  44119. {
  44120. invokeGuardedCallback(null, ref, null, null);
  44121. if (hasCaughtError()) {
  44122. var refError = clearCaughtError();
  44123. captureCommitPhaseError(current, refError);
  44124. }
  44125. }
  44126. } else {
  44127. ref.current = null;
  44128. }
  44129. }
  44130. }
  44131. function safelyCallDestroy(current, destroy) {
  44132. {
  44133. invokeGuardedCallback(null, destroy, null);
  44134. if (hasCaughtError()) {
  44135. var error = clearCaughtError();
  44136. captureCommitPhaseError(current, error);
  44137. }
  44138. }
  44139. }
  44140. function commitBeforeMutationLifeCycles(current, finishedWork) {
  44141. switch (finishedWork.tag) {
  44142. case FunctionComponent:
  44143. case ForwardRef:
  44144. case SimpleMemoComponent:
  44145. case Block:
  44146. {
  44147. return;
  44148. }
  44149. case ClassComponent:
  44150. {
  44151. if (finishedWork.effectTag & Snapshot) {
  44152. if (current !== null) {
  44153. var prevProps = current.memoizedProps;
  44154. var prevState = current.memoizedState;
  44155. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  44156. var instance = finishedWork.stateNode; // We could update instance props and state here,
  44157. // but instead we rely on them being set during last render.
  44158. // TODO: revisit this when we implement resuming.
  44159. {
  44160. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  44161. if (instance.props !== finishedWork.memoizedProps) {
  44162. 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');
  44163. }
  44164. if (instance.state !== finishedWork.memoizedState) {
  44165. 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');
  44166. }
  44167. }
  44168. }
  44169. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  44170. {
  44171. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  44172. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  44173. didWarnSet.add(finishedWork.type);
  44174. error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  44175. }
  44176. }
  44177. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  44178. stopPhaseTimer();
  44179. }
  44180. }
  44181. return;
  44182. }
  44183. case HostRoot:
  44184. case HostComponent:
  44185. case HostText:
  44186. case HostPortal:
  44187. case IncompleteClassComponent:
  44188. // Nothing to do for these component types
  44189. return;
  44190. }
  44191. {
  44192. {
  44193. 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." );
  44194. }
  44195. }
  44196. }
  44197. function commitHookEffectListUnmount(tag, finishedWork) {
  44198. var updateQueue = finishedWork.updateQueue;
  44199. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  44200. if (lastEffect !== null) {
  44201. var firstEffect = lastEffect.next;
  44202. var effect = firstEffect;
  44203. do {
  44204. if ((effect.tag & tag) === tag) {
  44205. // Unmount
  44206. var destroy = effect.destroy;
  44207. effect.destroy = undefined;
  44208. if (destroy !== undefined) {
  44209. destroy();
  44210. }
  44211. }
  44212. effect = effect.next;
  44213. } while (effect !== firstEffect);
  44214. }
  44215. }
  44216. function commitHookEffectListMount(tag, finishedWork) {
  44217. var updateQueue = finishedWork.updateQueue;
  44218. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  44219. if (lastEffect !== null) {
  44220. var firstEffect = lastEffect.next;
  44221. var effect = firstEffect;
  44222. do {
  44223. if ((effect.tag & tag) === tag) {
  44224. // Mount
  44225. var create = effect.create;
  44226. effect.destroy = create();
  44227. {
  44228. var destroy = effect.destroy;
  44229. if (destroy !== undefined && typeof destroy !== 'function') {
  44230. var addendum = void 0;
  44231. if (destroy === null) {
  44232. addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
  44233. } else if (typeof destroy.then === 'function') {
  44234. 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';
  44235. } else {
  44236. addendum = ' You returned: ' + destroy;
  44237. }
  44238. error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
  44239. }
  44240. }
  44241. }
  44242. effect = effect.next;
  44243. } while (effect !== firstEffect);
  44244. }
  44245. }
  44246. function commitPassiveHookEffects(finishedWork) {
  44247. if ((finishedWork.effectTag & Passive) !== NoEffect) {
  44248. switch (finishedWork.tag) {
  44249. case FunctionComponent:
  44250. case ForwardRef:
  44251. case SimpleMemoComponent:
  44252. case Block:
  44253. {
  44254. // TODO (#17945) We should call all passive destroy functions (for all fibers)
  44255. // before calling any create functions. The current approach only serializes
  44256. // these for a single fiber.
  44257. commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork);
  44258. commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
  44259. break;
  44260. }
  44261. }
  44262. }
  44263. }
  44264. function commitLifeCycles(finishedRoot, current, finishedWork, committedExpirationTime) {
  44265. switch (finishedWork.tag) {
  44266. case FunctionComponent:
  44267. case ForwardRef:
  44268. case SimpleMemoComponent:
  44269. case Block:
  44270. {
  44271. // At this point layout effects have already been destroyed (during mutation phase).
  44272. // This is done to prevent sibling component effects from interfering with each other,
  44273. // e.g. a destroy function in one component should never override a ref set
  44274. // by a create function in another component during the same commit.
  44275. commitHookEffectListMount(Layout | HasEffect, finishedWork);
  44276. return;
  44277. }
  44278. case ClassComponent:
  44279. {
  44280. var instance = finishedWork.stateNode;
  44281. if (finishedWork.effectTag & Update) {
  44282. if (current === null) {
  44283. startPhaseTimer(finishedWork, 'componentDidMount'); // We could update instance props and state here,
  44284. // but instead we rely on them being set during last render.
  44285. // TODO: revisit this when we implement resuming.
  44286. {
  44287. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  44288. if (instance.props !== finishedWork.memoizedProps) {
  44289. 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');
  44290. }
  44291. if (instance.state !== finishedWork.memoizedState) {
  44292. 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');
  44293. }
  44294. }
  44295. }
  44296. instance.componentDidMount();
  44297. stopPhaseTimer();
  44298. } else {
  44299. var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
  44300. var prevState = current.memoizedState;
  44301. startPhaseTimer(finishedWork, 'componentDidUpdate'); // We could update instance props and state here,
  44302. // but instead we rely on them being set during last render.
  44303. // TODO: revisit this when we implement resuming.
  44304. {
  44305. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  44306. if (instance.props !== finishedWork.memoizedProps) {
  44307. 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');
  44308. }
  44309. if (instance.state !== finishedWork.memoizedState) {
  44310. 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');
  44311. }
  44312. }
  44313. }
  44314. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  44315. stopPhaseTimer();
  44316. }
  44317. }
  44318. var updateQueue = finishedWork.updateQueue;
  44319. if (updateQueue !== null) {
  44320. {
  44321. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  44322. if (instance.props !== finishedWork.memoizedProps) {
  44323. 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');
  44324. }
  44325. if (instance.state !== finishedWork.memoizedState) {
  44326. 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');
  44327. }
  44328. }
  44329. } // We could update instance props and state here,
  44330. // but instead we rely on them being set during last render.
  44331. // TODO: revisit this when we implement resuming.
  44332. commitUpdateQueue(finishedWork, updateQueue, instance);
  44333. }
  44334. return;
  44335. }
  44336. case HostRoot:
  44337. {
  44338. var _updateQueue = finishedWork.updateQueue;
  44339. if (_updateQueue !== null) {
  44340. var _instance = null;
  44341. if (finishedWork.child !== null) {
  44342. switch (finishedWork.child.tag) {
  44343. case HostComponent:
  44344. _instance = getPublicInstance(finishedWork.child.stateNode);
  44345. break;
  44346. case ClassComponent:
  44347. _instance = finishedWork.child.stateNode;
  44348. break;
  44349. }
  44350. }
  44351. commitUpdateQueue(finishedWork, _updateQueue, _instance);
  44352. }
  44353. return;
  44354. }
  44355. case HostComponent:
  44356. {
  44357. var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted
  44358. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  44359. // These effects should only be committed when components are first mounted,
  44360. // aka when there is no current/alternate.
  44361. if (current === null && finishedWork.effectTag & Update) {
  44362. var type = finishedWork.type;
  44363. var props = finishedWork.memoizedProps;
  44364. commitMount(_instance2, type, props);
  44365. }
  44366. return;
  44367. }
  44368. case HostText:
  44369. {
  44370. // We have no life-cycles associated with text.
  44371. return;
  44372. }
  44373. case HostPortal:
  44374. {
  44375. // We have no life-cycles associated with portals.
  44376. return;
  44377. }
  44378. case Profiler:
  44379. {
  44380. {
  44381. var onRender = finishedWork.memoizedProps.onRender;
  44382. if (typeof onRender === 'function') {
  44383. {
  44384. onRender(finishedWork.memoizedProps.id, current === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  44385. }
  44386. }
  44387. }
  44388. return;
  44389. }
  44390. case SuspenseComponent:
  44391. {
  44392. commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
  44393. return;
  44394. }
  44395. case SuspenseListComponent:
  44396. case IncompleteClassComponent:
  44397. case FundamentalComponent:
  44398. case ScopeComponent:
  44399. return;
  44400. }
  44401. {
  44402. {
  44403. 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." );
  44404. }
  44405. }
  44406. }
  44407. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  44408. {
  44409. // We only have the top Fiber that was inserted but we need to recurse down its
  44410. // children to find all the terminal nodes.
  44411. var node = finishedWork;
  44412. while (true) {
  44413. if (node.tag === HostComponent) {
  44414. var instance = node.stateNode;
  44415. if (isHidden) {
  44416. hideInstance(instance);
  44417. } else {
  44418. unhideInstance(node.stateNode, node.memoizedProps);
  44419. }
  44420. } else if (node.tag === HostText) {
  44421. var _instance3 = node.stateNode;
  44422. if (isHidden) {
  44423. hideTextInstance(_instance3);
  44424. } else {
  44425. unhideTextInstance(_instance3, node.memoizedProps);
  44426. }
  44427. } else if (node.tag === SuspenseComponent && node.memoizedState !== null && node.memoizedState.dehydrated === null) {
  44428. // Found a nested Suspense component that timed out. Skip over the
  44429. // primary child fragment, which should remain hidden.
  44430. var fallbackChildFragment = node.child.sibling;
  44431. fallbackChildFragment.return = node;
  44432. node = fallbackChildFragment;
  44433. continue;
  44434. } else if (node.child !== null) {
  44435. node.child.return = node;
  44436. node = node.child;
  44437. continue;
  44438. }
  44439. if (node === finishedWork) {
  44440. return;
  44441. }
  44442. while (node.sibling === null) {
  44443. if (node.return === null || node.return === finishedWork) {
  44444. return;
  44445. }
  44446. node = node.return;
  44447. }
  44448. node.sibling.return = node.return;
  44449. node = node.sibling;
  44450. }
  44451. }
  44452. }
  44453. function commitAttachRef(finishedWork) {
  44454. var ref = finishedWork.ref;
  44455. if (ref !== null) {
  44456. var instance = finishedWork.stateNode;
  44457. var instanceToUse;
  44458. switch (finishedWork.tag) {
  44459. case HostComponent:
  44460. instanceToUse = getPublicInstance(instance);
  44461. break;
  44462. default:
  44463. instanceToUse = instance;
  44464. } // Moved outside to ensure DCE works with this flag
  44465. if (typeof ref === 'function') {
  44466. ref(instanceToUse);
  44467. } else {
  44468. {
  44469. if (!ref.hasOwnProperty('current')) {
  44470. error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  44471. }
  44472. }
  44473. ref.current = instanceToUse;
  44474. }
  44475. }
  44476. }
  44477. function commitDetachRef(current) {
  44478. var currentRef = current.ref;
  44479. if (currentRef !== null) {
  44480. if (typeof currentRef === 'function') {
  44481. currentRef(null);
  44482. } else {
  44483. currentRef.current = null;
  44484. }
  44485. }
  44486. } // User-originating errors (lifecycles and refs) should not interrupt
  44487. // deletion, so don't let them throw. Host-originating errors should
  44488. // interrupt deletion, so it's okay
  44489. function commitUnmount(finishedRoot, current, renderPriorityLevel) {
  44490. onCommitUnmount(current);
  44491. switch (current.tag) {
  44492. case FunctionComponent:
  44493. case ForwardRef:
  44494. case MemoComponent:
  44495. case SimpleMemoComponent:
  44496. case Block:
  44497. {
  44498. var updateQueue = current.updateQueue;
  44499. if (updateQueue !== null) {
  44500. var lastEffect = updateQueue.lastEffect;
  44501. if (lastEffect !== null) {
  44502. var firstEffect = lastEffect.next;
  44503. {
  44504. // When the owner fiber is deleted, the destroy function of a passive
  44505. // effect hook is called during the synchronous commit phase. This is
  44506. // a concession to implementation complexity. Calling it in the
  44507. // passive effect phase (like they usually are, when dependencies
  44508. // change during an update) would require either traversing the
  44509. // children of the deleted fiber again, or including unmount effects
  44510. // as part of the fiber effect list.
  44511. //
  44512. // Because this is during the sync commit phase, we need to change
  44513. // the priority.
  44514. //
  44515. // TODO: Reconsider this implementation trade off.
  44516. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  44517. runWithPriority$1(priorityLevel, function () {
  44518. var effect = firstEffect;
  44519. do {
  44520. var _destroy = effect.destroy;
  44521. if (_destroy !== undefined) {
  44522. safelyCallDestroy(current, _destroy);
  44523. }
  44524. effect = effect.next;
  44525. } while (effect !== firstEffect);
  44526. });
  44527. }
  44528. }
  44529. }
  44530. return;
  44531. }
  44532. case ClassComponent:
  44533. {
  44534. safelyDetachRef(current);
  44535. var instance = current.stateNode;
  44536. if (typeof instance.componentWillUnmount === 'function') {
  44537. safelyCallComponentWillUnmount(current, instance);
  44538. }
  44539. return;
  44540. }
  44541. case HostComponent:
  44542. {
  44543. safelyDetachRef(current);
  44544. return;
  44545. }
  44546. case HostPortal:
  44547. {
  44548. // TODO: this is recursive.
  44549. // We are also not using this parent because
  44550. // the portal will get pushed immediately.
  44551. {
  44552. unmountHostComponents(finishedRoot, current, renderPriorityLevel);
  44553. }
  44554. return;
  44555. }
  44556. case FundamentalComponent:
  44557. {
  44558. return;
  44559. }
  44560. case DehydratedFragment:
  44561. {
  44562. return;
  44563. }
  44564. case ScopeComponent:
  44565. {
  44566. return;
  44567. }
  44568. }
  44569. }
  44570. function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) {
  44571. // While we're inside a removed host node we don't want to call
  44572. // removeChild on the inner nodes because they're removed by the top
  44573. // call anyway. We also want to call componentWillUnmount on all
  44574. // composites before this host node is removed from the tree. Therefore
  44575. // we do an inner loop while we're still inside the host node.
  44576. var node = root;
  44577. while (true) {
  44578. commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because they may contain more composite or host nodes.
  44579. // Skip portals because commitUnmount() currently visits them recursively.
  44580. if (node.child !== null && ( // If we use mutation we drill down into portals using commitUnmount above.
  44581. // If we don't use mutation we drill down into portals here instead.
  44582. node.tag !== HostPortal)) {
  44583. node.child.return = node;
  44584. node = node.child;
  44585. continue;
  44586. }
  44587. if (node === root) {
  44588. return;
  44589. }
  44590. while (node.sibling === null) {
  44591. if (node.return === null || node.return === root) {
  44592. return;
  44593. }
  44594. node = node.return;
  44595. }
  44596. node.sibling.return = node.return;
  44597. node = node.sibling;
  44598. }
  44599. }
  44600. function detachFiber(current) {
  44601. var alternate = current.alternate; // Cut off the return pointers to disconnect it from the tree. Ideally, we
  44602. // should clear the child pointer of the parent alternate to let this
  44603. // get GC:ed but we don't know which for sure which parent is the current
  44604. // one so we'll settle for GC:ing the subtree of this child. This child
  44605. // itself will be GC:ed when the parent updates the next time.
  44606. current.return = null;
  44607. current.child = null;
  44608. current.memoizedState = null;
  44609. current.updateQueue = null;
  44610. current.dependencies = null;
  44611. current.alternate = null;
  44612. current.firstEffect = null;
  44613. current.lastEffect = null;
  44614. current.pendingProps = null;
  44615. current.memoizedProps = null;
  44616. current.stateNode = null;
  44617. if (alternate !== null) {
  44618. detachFiber(alternate);
  44619. }
  44620. }
  44621. function getHostParentFiber(fiber) {
  44622. var parent = fiber.return;
  44623. while (parent !== null) {
  44624. if (isHostParent(parent)) {
  44625. return parent;
  44626. }
  44627. parent = parent.return;
  44628. }
  44629. {
  44630. {
  44631. throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
  44632. }
  44633. }
  44634. }
  44635. function isHostParent(fiber) {
  44636. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  44637. }
  44638. function getHostSibling(fiber) {
  44639. // We're going to search forward into the tree until we find a sibling host
  44640. // node. Unfortunately, if multiple insertions are done in a row we have to
  44641. // search past them. This leads to exponential search for the next sibling.
  44642. // TODO: Find a more efficient way to do this.
  44643. var node = fiber;
  44644. siblings: while (true) {
  44645. // If we didn't find anything, let's try the next sibling.
  44646. while (node.sibling === null) {
  44647. if (node.return === null || isHostParent(node.return)) {
  44648. // If we pop out of the root or hit the parent the fiber we are the
  44649. // last sibling.
  44650. return null;
  44651. }
  44652. node = node.return;
  44653. }
  44654. node.sibling.return = node.return;
  44655. node = node.sibling;
  44656. while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {
  44657. // If it is not host node and, we might have a host node inside it.
  44658. // Try to search down until we find one.
  44659. if (node.effectTag & Placement) {
  44660. // If we don't have a child, try the siblings instead.
  44661. continue siblings;
  44662. } // If we don't have a child, try the siblings instead.
  44663. // We also skip portals because they are not part of this host tree.
  44664. if (node.child === null || node.tag === HostPortal) {
  44665. continue siblings;
  44666. } else {
  44667. node.child.return = node;
  44668. node = node.child;
  44669. }
  44670. } // Check if this host node is stable or about to be placed.
  44671. if (!(node.effectTag & Placement)) {
  44672. // Found it!
  44673. return node.stateNode;
  44674. }
  44675. }
  44676. }
  44677. function commitPlacement(finishedWork) {
  44678. var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.
  44679. var parent;
  44680. var isContainer;
  44681. var parentStateNode = parentFiber.stateNode;
  44682. switch (parentFiber.tag) {
  44683. case HostComponent:
  44684. parent = parentStateNode;
  44685. isContainer = false;
  44686. break;
  44687. case HostRoot:
  44688. parent = parentStateNode.containerInfo;
  44689. isContainer = true;
  44690. break;
  44691. case HostPortal:
  44692. parent = parentStateNode.containerInfo;
  44693. isContainer = true;
  44694. break;
  44695. case FundamentalComponent:
  44696. // eslint-disable-next-line-no-fallthrough
  44697. default:
  44698. {
  44699. {
  44700. throw Error( "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." );
  44701. }
  44702. }
  44703. }
  44704. if (parentFiber.effectTag & ContentReset) {
  44705. // Reset the text content of the parent before doing any insertions
  44706. resetTextContent(parent); // Clear ContentReset from the effect tag
  44707. parentFiber.effectTag &= ~ContentReset;
  44708. }
  44709. var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its
  44710. // children to find all the terminal nodes.
  44711. if (isContainer) {
  44712. insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);
  44713. } else {
  44714. insertOrAppendPlacementNode(finishedWork, before, parent);
  44715. }
  44716. }
  44717. function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
  44718. var tag = node.tag;
  44719. var isHost = tag === HostComponent || tag === HostText;
  44720. if (isHost || enableFundamentalAPI ) {
  44721. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  44722. if (before) {
  44723. insertInContainerBefore(parent, stateNode, before);
  44724. } else {
  44725. appendChildToContainer(parent, stateNode);
  44726. }
  44727. } else if (tag === HostPortal) ; else {
  44728. var child = node.child;
  44729. if (child !== null) {
  44730. insertOrAppendPlacementNodeIntoContainer(child, before, parent);
  44731. var sibling = child.sibling;
  44732. while (sibling !== null) {
  44733. insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
  44734. sibling = sibling.sibling;
  44735. }
  44736. }
  44737. }
  44738. }
  44739. function insertOrAppendPlacementNode(node, before, parent) {
  44740. var tag = node.tag;
  44741. var isHost = tag === HostComponent || tag === HostText;
  44742. if (isHost || enableFundamentalAPI ) {
  44743. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  44744. if (before) {
  44745. insertBefore(parent, stateNode, before);
  44746. } else {
  44747. appendChild(parent, stateNode);
  44748. }
  44749. } else if (tag === HostPortal) ; else {
  44750. var child = node.child;
  44751. if (child !== null) {
  44752. insertOrAppendPlacementNode(child, before, parent);
  44753. var sibling = child.sibling;
  44754. while (sibling !== null) {
  44755. insertOrAppendPlacementNode(sibling, before, parent);
  44756. sibling = sibling.sibling;
  44757. }
  44758. }
  44759. }
  44760. }
  44761. function unmountHostComponents(finishedRoot, current, renderPriorityLevel) {
  44762. // We only have the top Fiber that was deleted but we need to recurse down its
  44763. // children to find all the terminal nodes.
  44764. var node = current; // Each iteration, currentParent is populated with node's host parent if not
  44765. // currentParentIsValid.
  44766. var currentParentIsValid = false; // Note: these two variables *must* always be updated together.
  44767. var currentParent;
  44768. var currentParentIsContainer;
  44769. while (true) {
  44770. if (!currentParentIsValid) {
  44771. var parent = node.return;
  44772. findParent: while (true) {
  44773. if (!(parent !== null)) {
  44774. {
  44775. throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
  44776. }
  44777. }
  44778. var parentStateNode = parent.stateNode;
  44779. switch (parent.tag) {
  44780. case HostComponent:
  44781. currentParent = parentStateNode;
  44782. currentParentIsContainer = false;
  44783. break findParent;
  44784. case HostRoot:
  44785. currentParent = parentStateNode.containerInfo;
  44786. currentParentIsContainer = true;
  44787. break findParent;
  44788. case HostPortal:
  44789. currentParent = parentStateNode.containerInfo;
  44790. currentParentIsContainer = true;
  44791. break findParent;
  44792. }
  44793. parent = parent.return;
  44794. }
  44795. currentParentIsValid = true;
  44796. }
  44797. if (node.tag === HostComponent || node.tag === HostText) {
  44798. commitNestedUnmounts(finishedRoot, node, renderPriorityLevel); // After all the children have unmounted, it is now safe to remove the
  44799. // node from the tree.
  44800. if (currentParentIsContainer) {
  44801. removeChildFromContainer(currentParent, node.stateNode);
  44802. } else {
  44803. removeChild(currentParent, node.stateNode);
  44804. } // Don't visit children because we already visited them.
  44805. } else if (node.tag === HostPortal) {
  44806. if (node.child !== null) {
  44807. // When we go into a portal, it becomes the parent to remove from.
  44808. // We will reassign it back when we pop the portal on the way up.
  44809. currentParent = node.stateNode.containerInfo;
  44810. currentParentIsContainer = true; // Visit children because portals might contain host components.
  44811. node.child.return = node;
  44812. node = node.child;
  44813. continue;
  44814. }
  44815. } else {
  44816. commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because we may find more host components below.
  44817. if (node.child !== null) {
  44818. node.child.return = node;
  44819. node = node.child;
  44820. continue;
  44821. }
  44822. }
  44823. if (node === current) {
  44824. return;
  44825. }
  44826. while (node.sibling === null) {
  44827. if (node.return === null || node.return === current) {
  44828. return;
  44829. }
  44830. node = node.return;
  44831. if (node.tag === HostPortal) {
  44832. // When we go out of the portal, we need to restore the parent.
  44833. // Since we don't keep a stack of them, we will search for it.
  44834. currentParentIsValid = false;
  44835. }
  44836. }
  44837. node.sibling.return = node.return;
  44838. node = node.sibling;
  44839. }
  44840. }
  44841. function commitDeletion(finishedRoot, current, renderPriorityLevel) {
  44842. {
  44843. // Recursively delete all host nodes from the parent.
  44844. // Detach refs and call componentWillUnmount() on the whole subtree.
  44845. unmountHostComponents(finishedRoot, current, renderPriorityLevel);
  44846. }
  44847. detachFiber(current);
  44848. }
  44849. function commitWork(current, finishedWork) {
  44850. switch (finishedWork.tag) {
  44851. case FunctionComponent:
  44852. case ForwardRef:
  44853. case MemoComponent:
  44854. case SimpleMemoComponent:
  44855. case Block:
  44856. {
  44857. // Layout effects are destroyed during the mutation phase so that all
  44858. // destroy functions for all fibers are called before any create functions.
  44859. // This prevents sibling component effects from interfering with each other,
  44860. // e.g. a destroy function in one component should never override a ref set
  44861. // by a create function in another component during the same commit.
  44862. commitHookEffectListUnmount(Layout | HasEffect, finishedWork);
  44863. return;
  44864. }
  44865. case ClassComponent:
  44866. {
  44867. return;
  44868. }
  44869. case HostComponent:
  44870. {
  44871. var instance = finishedWork.stateNode;
  44872. if (instance != null) {
  44873. // Commit the work prepared earlier.
  44874. var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
  44875. // as the newProps. The updatePayload will contain the real change in
  44876. // this case.
  44877. var oldProps = current !== null ? current.memoizedProps : newProps;
  44878. var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.
  44879. var updatePayload = finishedWork.updateQueue;
  44880. finishedWork.updateQueue = null;
  44881. if (updatePayload !== null) {
  44882. commitUpdate(instance, updatePayload, type, oldProps, newProps);
  44883. }
  44884. }
  44885. return;
  44886. }
  44887. case HostText:
  44888. {
  44889. if (!(finishedWork.stateNode !== null)) {
  44890. {
  44891. throw Error( "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." );
  44892. }
  44893. }
  44894. var textInstance = finishedWork.stateNode;
  44895. var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
  44896. // as the newProps. The updatePayload will contain the real change in
  44897. // this case.
  44898. var oldText = current !== null ? current.memoizedProps : newText;
  44899. commitTextUpdate(textInstance, oldText, newText);
  44900. return;
  44901. }
  44902. case HostRoot:
  44903. {
  44904. {
  44905. var _root = finishedWork.stateNode;
  44906. if (_root.hydrate) {
  44907. // We've just hydrated. No need to hydrate again.
  44908. _root.hydrate = false;
  44909. commitHydratedContainer(_root.containerInfo);
  44910. }
  44911. }
  44912. return;
  44913. }
  44914. case Profiler:
  44915. {
  44916. return;
  44917. }
  44918. case SuspenseComponent:
  44919. {
  44920. commitSuspenseComponent(finishedWork);
  44921. attachSuspenseRetryListeners(finishedWork);
  44922. return;
  44923. }
  44924. case SuspenseListComponent:
  44925. {
  44926. attachSuspenseRetryListeners(finishedWork);
  44927. return;
  44928. }
  44929. case IncompleteClassComponent:
  44930. {
  44931. return;
  44932. }
  44933. }
  44934. {
  44935. {
  44936. 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." );
  44937. }
  44938. }
  44939. }
  44940. function commitSuspenseComponent(finishedWork) {
  44941. var newState = finishedWork.memoizedState;
  44942. var newDidTimeout;
  44943. var primaryChildParent = finishedWork;
  44944. if (newState === null) {
  44945. newDidTimeout = false;
  44946. } else {
  44947. newDidTimeout = true;
  44948. primaryChildParent = finishedWork.child;
  44949. markCommitTimeOfFallback();
  44950. }
  44951. if ( primaryChildParent !== null) {
  44952. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  44953. }
  44954. }
  44955. function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
  44956. var newState = finishedWork.memoizedState;
  44957. if (newState === null) {
  44958. var current = finishedWork.alternate;
  44959. if (current !== null) {
  44960. var prevState = current.memoizedState;
  44961. if (prevState !== null) {
  44962. var suspenseInstance = prevState.dehydrated;
  44963. if (suspenseInstance !== null) {
  44964. commitHydratedSuspenseInstance(suspenseInstance);
  44965. }
  44966. }
  44967. }
  44968. }
  44969. }
  44970. function attachSuspenseRetryListeners(finishedWork) {
  44971. // If this boundary just timed out, then it will have a set of thenables.
  44972. // For each thenable, attach a listener so that when it resolves, React
  44973. // attempts to re-render the boundary in the primary (pre-timeout) state.
  44974. var thenables = finishedWork.updateQueue;
  44975. if (thenables !== null) {
  44976. finishedWork.updateQueue = null;
  44977. var retryCache = finishedWork.stateNode;
  44978. if (retryCache === null) {
  44979. retryCache = finishedWork.stateNode = new PossiblyWeakSet();
  44980. }
  44981. thenables.forEach(function (thenable) {
  44982. // Memoize using the boundary fiber to prevent redundant listeners.
  44983. var retry = resolveRetryThenable.bind(null, finishedWork, thenable);
  44984. if (!retryCache.has(thenable)) {
  44985. {
  44986. if (thenable.__reactDoNotTraceInteractions !== true) {
  44987. retry = tracing.unstable_wrap(retry);
  44988. }
  44989. }
  44990. retryCache.add(thenable);
  44991. thenable.then(retry, retry);
  44992. }
  44993. });
  44994. }
  44995. }
  44996. function commitResetTextContent(current) {
  44997. resetTextContent(current.stateNode);
  44998. }
  44999. var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
  45000. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  45001. var update = createUpdate(expirationTime, null); // Unmount the root by rendering null.
  45002. update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
  45003. // being called "element".
  45004. update.payload = {
  45005. element: null
  45006. };
  45007. var error = errorInfo.value;
  45008. update.callback = function () {
  45009. onUncaughtError(error);
  45010. logError(fiber, errorInfo);
  45011. };
  45012. return update;
  45013. }
  45014. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  45015. var update = createUpdate(expirationTime, null);
  45016. update.tag = CaptureUpdate;
  45017. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  45018. if (typeof getDerivedStateFromError === 'function') {
  45019. var error$1 = errorInfo.value;
  45020. update.payload = function () {
  45021. logError(fiber, errorInfo);
  45022. return getDerivedStateFromError(error$1);
  45023. };
  45024. }
  45025. var inst = fiber.stateNode;
  45026. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  45027. update.callback = function callback() {
  45028. {
  45029. markFailedErrorBoundaryForHotReloading(fiber);
  45030. }
  45031. if (typeof getDerivedStateFromError !== 'function') {
  45032. // To preserve the preexisting retry behavior of error boundaries,
  45033. // we keep track of which ones already failed during this batch.
  45034. // This gets reset before we yield back to the browser.
  45035. // TODO: Warn in strict mode if getDerivedStateFromError is
  45036. // not defined.
  45037. markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined
  45038. logError(fiber, errorInfo);
  45039. }
  45040. var error$1 = errorInfo.value;
  45041. var stack = errorInfo.stack;
  45042. this.componentDidCatch(error$1, {
  45043. componentStack: stack !== null ? stack : ''
  45044. });
  45045. {
  45046. if (typeof getDerivedStateFromError !== 'function') {
  45047. // If componentDidCatch is the only error boundary method defined,
  45048. // then it needs to call setState to recover from errors.
  45049. // If no state update is scheduled then the boundary will swallow the error.
  45050. if (fiber.expirationTime !== Sync) {
  45051. 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');
  45052. }
  45053. }
  45054. }
  45055. };
  45056. } else {
  45057. update.callback = function () {
  45058. markFailedErrorBoundaryForHotReloading(fiber);
  45059. };
  45060. }
  45061. return update;
  45062. }
  45063. function attachPingListener(root, renderExpirationTime, thenable) {
  45064. // Attach a listener to the promise to "ping" the root and retry. But
  45065. // only if one does not already exist for the current render expiration
  45066. // time (which acts like a "thread ID" here).
  45067. var pingCache = root.pingCache;
  45068. var threadIDs;
  45069. if (pingCache === null) {
  45070. pingCache = root.pingCache = new PossiblyWeakMap$1();
  45071. threadIDs = new Set();
  45072. pingCache.set(thenable, threadIDs);
  45073. } else {
  45074. threadIDs = pingCache.get(thenable);
  45075. if (threadIDs === undefined) {
  45076. threadIDs = new Set();
  45077. pingCache.set(thenable, threadIDs);
  45078. }
  45079. }
  45080. if (!threadIDs.has(renderExpirationTime)) {
  45081. // Memoize using the thread ID to prevent redundant listeners.
  45082. threadIDs.add(renderExpirationTime);
  45083. var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
  45084. thenable.then(ping, ping);
  45085. }
  45086. }
  45087. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  45088. // The source fiber did not complete.
  45089. sourceFiber.effectTag |= Incomplete; // Its effect list is no longer valid.
  45090. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  45091. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  45092. // This is a thenable.
  45093. var thenable = value;
  45094. if ((sourceFiber.mode & BlockingMode) === NoMode) {
  45095. // Reset the memoizedState to what it was before we attempted
  45096. // to render it.
  45097. var currentSource = sourceFiber.alternate;
  45098. if (currentSource) {
  45099. sourceFiber.updateQueue = currentSource.updateQueue;
  45100. sourceFiber.memoizedState = currentSource.memoizedState;
  45101. sourceFiber.expirationTime = currentSource.expirationTime;
  45102. } else {
  45103. sourceFiber.updateQueue = null;
  45104. sourceFiber.memoizedState = null;
  45105. }
  45106. }
  45107. var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view.
  45108. var _workInProgress = returnFiber;
  45109. do {
  45110. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
  45111. // Found the nearest boundary.
  45112. // Stash the promise on the boundary fiber. If the boundary times out, we'll
  45113. // attach another listener to flip the boundary back to its normal state.
  45114. var thenables = _workInProgress.updateQueue;
  45115. if (thenables === null) {
  45116. var updateQueue = new Set();
  45117. updateQueue.add(thenable);
  45118. _workInProgress.updateQueue = updateQueue;
  45119. } else {
  45120. thenables.add(thenable);
  45121. } // If the boundary is outside of blocking mode, we should *not*
  45122. // suspend the commit. Pretend as if the suspended component rendered
  45123. // null and keep rendering. In the commit phase, we'll schedule a
  45124. // subsequent synchronous update to re-render the Suspense.
  45125. //
  45126. // Note: It doesn't matter whether the component that suspended was
  45127. // inside a blocking mode tree. If the Suspense is outside of it, we
  45128. // should *not* suspend the commit.
  45129. if ((_workInProgress.mode & BlockingMode) === NoMode) {
  45130. _workInProgress.effectTag |= DidCapture; // We're going to commit this fiber even though it didn't complete.
  45131. // But we shouldn't call any lifecycle methods or callbacks. Remove
  45132. // all lifecycle effect tags.
  45133. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  45134. if (sourceFiber.tag === ClassComponent) {
  45135. var currentSourceFiber = sourceFiber.alternate;
  45136. if (currentSourceFiber === null) {
  45137. // This is a new mount. Change the tag so it's not mistaken for a
  45138. // completed class component. For example, we should not call
  45139. // componentWillUnmount if it is deleted.
  45140. sourceFiber.tag = IncompleteClassComponent;
  45141. } else {
  45142. // When we try rendering again, we should not reuse the current fiber,
  45143. // since it's known to be in an inconsistent state. Use a force update to
  45144. // prevent a bail out.
  45145. var update = createUpdate(Sync, null);
  45146. update.tag = ForceUpdate;
  45147. enqueueUpdate(sourceFiber, update);
  45148. }
  45149. } // The source fiber did not complete. Mark it with Sync priority to
  45150. // indicate that it still has pending work.
  45151. sourceFiber.expirationTime = Sync; // Exit without suspending.
  45152. return;
  45153. } // Confirmed that the boundary is in a concurrent mode tree. Continue
  45154. // with the normal suspend path.
  45155. //
  45156. // After this we'll use a set of heuristics to determine whether this
  45157. // render pass will run to completion or restart or "suspend" the commit.
  45158. // The actual logic for this is spread out in different places.
  45159. //
  45160. // This first principle is that if we're going to suspend when we complete
  45161. // a root, then we should also restart if we get an update or ping that
  45162. // might unsuspend it, and vice versa. The only reason to suspend is
  45163. // because you think you might want to restart before committing. However,
  45164. // it doesn't make sense to restart only while in the period we're suspended.
  45165. //
  45166. // Restarting too aggressively is also not good because it starves out any
  45167. // intermediate loading state. So we use heuristics to determine when.
  45168. // Suspense Heuristics
  45169. //
  45170. // If nothing threw a Promise or all the same fallbacks are already showing,
  45171. // then don't suspend/restart.
  45172. //
  45173. // If this is an initial render of a new tree of Suspense boundaries and
  45174. // those trigger a fallback, then don't suspend/restart. We want to ensure
  45175. // that we can show the initial loading state as quickly as possible.
  45176. //
  45177. // If we hit a "Delayed" case, such as when we'd switch from content back into
  45178. // a fallback, then we should always suspend/restart. SuspenseConfig applies to
  45179. // this case. If none is defined, JND is used instead.
  45180. //
  45181. // If we're already showing a fallback and it gets "retried", allowing us to show
  45182. // another level, but there's still an inner boundary that would show a fallback,
  45183. // then we suspend/restart for 500ms since the last time we showed a fallback
  45184. // anywhere in the tree. This effectively throttles progressive loading into a
  45185. // consistent train of commits. This also gives us an opportunity to restart to
  45186. // get to the completed state slightly earlier.
  45187. //
  45188. // If there's ambiguity due to batching it's resolved in preference of:
  45189. // 1) "delayed", 2) "initial render", 3) "retry".
  45190. //
  45191. // We want to ensure that a "busy" state doesn't get force committed. We want to
  45192. // ensure that new initial loading states can commit as soon as possible.
  45193. attachPingListener(root, renderExpirationTime, thenable);
  45194. _workInProgress.effectTag |= ShouldCapture;
  45195. _workInProgress.expirationTime = renderExpirationTime;
  45196. return;
  45197. } // This boundary already captured during this render. Continue to the next
  45198. // boundary.
  45199. _workInProgress = _workInProgress.return;
  45200. } while (_workInProgress !== null); // No boundary was found. Fallthrough to error mode.
  45201. // TODO: Use invariant so the message is stripped in prod?
  45202. 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));
  45203. } // We didn't find a boundary that could handle this type of exception. Start
  45204. // over and traverse parent path again, this time treating the exception
  45205. // as an error.
  45206. renderDidError();
  45207. value = createCapturedValue(value, sourceFiber);
  45208. var workInProgress = returnFiber;
  45209. do {
  45210. switch (workInProgress.tag) {
  45211. case HostRoot:
  45212. {
  45213. var _errorInfo = value;
  45214. workInProgress.effectTag |= ShouldCapture;
  45215. workInProgress.expirationTime = renderExpirationTime;
  45216. var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  45217. enqueueCapturedUpdate(workInProgress, _update);
  45218. return;
  45219. }
  45220. case ClassComponent:
  45221. // Capture and retry
  45222. var errorInfo = value;
  45223. var ctor = workInProgress.type;
  45224. var instance = workInProgress.stateNode;
  45225. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  45226. workInProgress.effectTag |= ShouldCapture;
  45227. workInProgress.expirationTime = renderExpirationTime; // Schedule the error boundary to re-render using updated state
  45228. var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  45229. enqueueCapturedUpdate(workInProgress, _update2);
  45230. return;
  45231. }
  45232. break;
  45233. }
  45234. workInProgress = workInProgress.return;
  45235. } while (workInProgress !== null);
  45236. }
  45237. var ceil = Math.ceil;
  45238. var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
  45239. ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
  45240. IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
  45241. var NoContext =
  45242. /* */
  45243. 0;
  45244. var BatchedContext =
  45245. /* */
  45246. 1;
  45247. var EventContext =
  45248. /* */
  45249. 2;
  45250. var DiscreteEventContext =
  45251. /* */
  45252. 4;
  45253. var LegacyUnbatchedContext =
  45254. /* */
  45255. 8;
  45256. var RenderContext =
  45257. /* */
  45258. 16;
  45259. var CommitContext =
  45260. /* */
  45261. 32;
  45262. var RootIncomplete = 0;
  45263. var RootFatalErrored = 1;
  45264. var RootErrored = 2;
  45265. var RootSuspended = 3;
  45266. var RootSuspendedWithDelay = 4;
  45267. var RootCompleted = 5;
  45268. // Describes where we are in the React execution stack
  45269. var executionContext = NoContext; // The root we're working on
  45270. var workInProgressRoot = null; // The fiber we're working on
  45271. var workInProgress = null; // The expiration time we're rendering
  45272. var renderExpirationTime$1 = NoWork; // Whether to root completed, errored, suspended, etc.
  45273. var workInProgressRootExitStatus = RootIncomplete; // A fatal error, if one is thrown
  45274. var workInProgressRootFatalError = null; // Most recent event time among processed updates during this render.
  45275. // This is conceptually a time stamp but expressed in terms of an ExpirationTime
  45276. // because we deal mostly with expiration times in the hot path, so this avoids
  45277. // the conversion happening in the hot path.
  45278. var workInProgressRootLatestProcessedExpirationTime = Sync;
  45279. var workInProgressRootLatestSuspenseTimeout = Sync;
  45280. var workInProgressRootCanSuspendUsingConfig = null; // The work left over by components that were visited during this render. Only
  45281. // includes unprocessed updates, not work in bailed out children.
  45282. var workInProgressRootNextUnprocessedUpdateTime = NoWork; // If we're pinged while rendering we don't always restart immediately.
  45283. // This flag determines if it might be worthwhile to restart if an opportunity
  45284. // happens latere.
  45285. var workInProgressRootHasPendingPing = false; // The most recent time we committed a fallback. This lets us ensure a train
  45286. // model where we don't commit new loading states in too quick succession.
  45287. var globalMostRecentFallbackTime = 0;
  45288. var FALLBACK_THROTTLE_MS = 500;
  45289. var nextEffect = null;
  45290. var hasUncaughtError = false;
  45291. var firstUncaughtError = null;
  45292. var legacyErrorBoundariesThatAlreadyFailed = null;
  45293. var rootDoesHavePassiveEffects = false;
  45294. var rootWithPendingPassiveEffects = null;
  45295. var pendingPassiveEffectsRenderPriority = NoPriority;
  45296. var pendingPassiveEffectsExpirationTime = NoWork;
  45297. var rootsWithPendingDiscreteUpdates = null; // Use these to prevent an infinite loop of nested updates
  45298. var NESTED_UPDATE_LIMIT = 50;
  45299. var nestedUpdateCount = 0;
  45300. var rootWithNestedUpdates = null;
  45301. var NESTED_PASSIVE_UPDATE_LIMIT = 50;
  45302. var nestedPassiveUpdateCount = 0;
  45303. var interruptedBy = null; // Marks the need to reschedule pending interactions at these expiration times
  45304. // during the commit phase. This enables them to be traced across components
  45305. // that spawn new work during render. E.g. hidden boundaries, suspended SSR
  45306. // hydration or SuspenseList.
  45307. var spawnedWorkDuringRender = null; // Expiration times are computed by adding to the current time (the start
  45308. // time). However, if two updates are scheduled within the same event, we
  45309. // should treat their start times as simultaneous, even if the actual clock
  45310. // time has advanced between the first and second call.
  45311. // In other words, because expiration times determine how updates are batched,
  45312. // we want all updates of like priority that occur within the same event to
  45313. // receive the same expiration time. Otherwise we get tearing.
  45314. var currentEventTime = NoWork;
  45315. function requestCurrentTimeForUpdate() {
  45316. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  45317. // We're inside React, so it's fine to read the actual time.
  45318. return msToExpirationTime(now());
  45319. } // We're not inside React, so we may be in the middle of a browser event.
  45320. if (currentEventTime !== NoWork) {
  45321. // Use the same start time for all updates until we enter React again.
  45322. return currentEventTime;
  45323. } // This is the first update since React yielded. Compute a new start time.
  45324. currentEventTime = msToExpirationTime(now());
  45325. return currentEventTime;
  45326. }
  45327. function getCurrentTime() {
  45328. return msToExpirationTime(now());
  45329. }
  45330. function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
  45331. var mode = fiber.mode;
  45332. if ((mode & BlockingMode) === NoMode) {
  45333. return Sync;
  45334. }
  45335. var priorityLevel = getCurrentPriorityLevel();
  45336. if ((mode & ConcurrentMode) === NoMode) {
  45337. return priorityLevel === ImmediatePriority ? Sync : Batched;
  45338. }
  45339. if ((executionContext & RenderContext) !== NoContext) {
  45340. // Use whatever time we're already rendering
  45341. // TODO: Should there be a way to opt out, like with `runWithPriority`?
  45342. return renderExpirationTime$1;
  45343. }
  45344. var expirationTime;
  45345. if (suspenseConfig !== null) {
  45346. // Compute an expiration time based on the Suspense timeout.
  45347. expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  45348. } else {
  45349. // Compute an expiration time based on the Scheduler priority.
  45350. switch (priorityLevel) {
  45351. case ImmediatePriority:
  45352. expirationTime = Sync;
  45353. break;
  45354. case UserBlockingPriority$1:
  45355. // TODO: Rename this to computeUserBlockingExpiration
  45356. expirationTime = computeInteractiveExpiration(currentTime);
  45357. break;
  45358. case NormalPriority:
  45359. case LowPriority:
  45360. // TODO: Handle LowPriority
  45361. // TODO: Rename this to... something better.
  45362. expirationTime = computeAsyncExpiration(currentTime);
  45363. break;
  45364. case IdlePriority:
  45365. expirationTime = Idle;
  45366. break;
  45367. default:
  45368. {
  45369. {
  45370. throw Error( "Expected a valid priority level" );
  45371. }
  45372. }
  45373. }
  45374. } // If we're in the middle of rendering a tree, do not update at the same
  45375. // expiration time that is already rendering.
  45376. // TODO: We shouldn't have to do this if the update is on a different root.
  45377. // Refactor computeExpirationForFiber + scheduleUpdate so we have access to
  45378. // the root when we check for this condition.
  45379. if (workInProgressRoot !== null && expirationTime === renderExpirationTime$1) {
  45380. // This is a trick to move this update into a separate batch
  45381. expirationTime -= 1;
  45382. }
  45383. return expirationTime;
  45384. }
  45385. function scheduleUpdateOnFiber(fiber, expirationTime) {
  45386. checkForNestedUpdates();
  45387. warnAboutRenderPhaseUpdatesInDEV(fiber);
  45388. var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);
  45389. if (root === null) {
  45390. warnAboutUpdateOnUnmountedFiberInDEV(fiber);
  45391. return;
  45392. }
  45393. checkForInterruption(fiber, expirationTime);
  45394. recordScheduleUpdate(); // TODO: computeExpirationForFiber also reads the priority. Pass the
  45395. // priority as an argument to that function and this one.
  45396. var priorityLevel = getCurrentPriorityLevel();
  45397. if (expirationTime === Sync) {
  45398. if ( // Check if we're inside unbatchedUpdates
  45399. (executionContext & LegacyUnbatchedContext) !== NoContext && // Check if we're not already rendering
  45400. (executionContext & (RenderContext | CommitContext)) === NoContext) {
  45401. // Register pending interactions on the root to avoid losing traced interaction data.
  45402. schedulePendingInteractions(root, expirationTime); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
  45403. // root inside of batchedUpdates should be synchronous, but layout updates
  45404. // should be deferred until the end of the batch.
  45405. performSyncWorkOnRoot(root);
  45406. } else {
  45407. ensureRootIsScheduled(root);
  45408. schedulePendingInteractions(root, expirationTime);
  45409. if (executionContext === NoContext) {
  45410. // Flush the synchronous work now, unless we're already working or inside
  45411. // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
  45412. // scheduleCallbackForFiber to preserve the ability to schedule a callback
  45413. // without immediately flushing it. We only do this for user-initiated
  45414. // updates, to preserve historical behavior of legacy mode.
  45415. flushSyncCallbackQueue();
  45416. }
  45417. }
  45418. } else {
  45419. ensureRootIsScheduled(root);
  45420. schedulePendingInteractions(root, expirationTime);
  45421. }
  45422. if ((executionContext & DiscreteEventContext) !== NoContext && ( // Only updates at user-blocking priority or greater are considered
  45423. // discrete, even inside a discrete event.
  45424. priorityLevel === UserBlockingPriority$1 || priorityLevel === ImmediatePriority)) {
  45425. // This is the result of a discrete event. Track the lowest priority
  45426. // discrete update per root so we can flush them early, if needed.
  45427. if (rootsWithPendingDiscreteUpdates === null) {
  45428. rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
  45429. } else {
  45430. var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);
  45431. if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
  45432. rootsWithPendingDiscreteUpdates.set(root, expirationTime);
  45433. }
  45434. }
  45435. }
  45436. }
  45437. var scheduleWork = scheduleUpdateOnFiber; // This is split into a separate function so we can mark a fiber with pending
  45438. // work without treating it as a typical update that originates from an event;
  45439. // e.g. retrying a Suspense boundary isn't an update, but it does schedule work
  45440. // on a fiber.
  45441. function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
  45442. // Update the source fiber's expiration time
  45443. if (fiber.expirationTime < expirationTime) {
  45444. fiber.expirationTime = expirationTime;
  45445. }
  45446. var alternate = fiber.alternate;
  45447. if (alternate !== null && alternate.expirationTime < expirationTime) {
  45448. alternate.expirationTime = expirationTime;
  45449. } // Walk the parent path to the root and update the child expiration time.
  45450. var node = fiber.return;
  45451. var root = null;
  45452. if (node === null && fiber.tag === HostRoot) {
  45453. root = fiber.stateNode;
  45454. } else {
  45455. while (node !== null) {
  45456. alternate = node.alternate;
  45457. if (node.childExpirationTime < expirationTime) {
  45458. node.childExpirationTime = expirationTime;
  45459. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  45460. alternate.childExpirationTime = expirationTime;
  45461. }
  45462. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  45463. alternate.childExpirationTime = expirationTime;
  45464. }
  45465. if (node.return === null && node.tag === HostRoot) {
  45466. root = node.stateNode;
  45467. break;
  45468. }
  45469. node = node.return;
  45470. }
  45471. }
  45472. if (root !== null) {
  45473. if (workInProgressRoot === root) {
  45474. // Received an update to a tree that's in the middle of rendering. Mark
  45475. // that's unprocessed work on this root.
  45476. markUnprocessedUpdateTime(expirationTime);
  45477. if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
  45478. // The root already suspended with a delay, which means this render
  45479. // definitely won't finish. Since we have a new update, let's mark it as
  45480. // suspended now, right before marking the incoming update. This has the
  45481. // effect of interrupting the current render and switching to the update.
  45482. // TODO: This happens to work when receiving an update during the render
  45483. // phase, because of the trick inside computeExpirationForFiber to
  45484. // subtract 1 from `renderExpirationTime` to move it into a
  45485. // separate bucket. But we should probably model it with an exception,
  45486. // using the same mechanism we use to force hydration of a subtree.
  45487. // TODO: This does not account for low pri updates that were already
  45488. // scheduled before the root started rendering. Need to track the next
  45489. // pending expiration time (perhaps by backtracking the return path) and
  45490. // then trigger a restart in the `renderDidSuspendDelayIfPossible` path.
  45491. markRootSuspendedAtTime(root, renderExpirationTime$1);
  45492. }
  45493. } // Mark that the root has a pending update.
  45494. markRootUpdatedAtTime(root, expirationTime);
  45495. }
  45496. return root;
  45497. }
  45498. function getNextRootExpirationTimeToWorkOn(root) {
  45499. // Determines the next expiration time that the root should render, taking
  45500. // into account levels that may be suspended, or levels that may have
  45501. // received a ping.
  45502. var lastExpiredTime = root.lastExpiredTime;
  45503. if (lastExpiredTime !== NoWork) {
  45504. return lastExpiredTime;
  45505. } // "Pending" refers to any update that hasn't committed yet, including if it
  45506. // suspended. The "suspended" range is therefore a subset.
  45507. var firstPendingTime = root.firstPendingTime;
  45508. if (!isRootSuspendedAtTime(root, firstPendingTime)) {
  45509. // The highest priority pending time is not suspended. Let's work on that.
  45510. return firstPendingTime;
  45511. } // If the first pending time is suspended, check if there's a lower priority
  45512. // pending level that we know about. Or check if we received a ping. Work
  45513. // on whichever is higher priority.
  45514. var lastPingedTime = root.lastPingedTime;
  45515. var nextKnownPendingLevel = root.nextKnownPendingLevel;
  45516. var nextLevel = lastPingedTime > nextKnownPendingLevel ? lastPingedTime : nextKnownPendingLevel;
  45517. if ( nextLevel <= Idle && firstPendingTime !== nextLevel) {
  45518. // Don't work on Idle/Never priority unless everything else is committed.
  45519. return NoWork;
  45520. }
  45521. return nextLevel;
  45522. } // Use this function to schedule a task for a root. There's only one task per
  45523. // root; if a task was already scheduled, we'll check to make sure the
  45524. // expiration time of the existing task is the same as the expiration time of
  45525. // the next level that the root has work on. This function is called on every
  45526. // update, and right before exiting a task.
  45527. function ensureRootIsScheduled(root) {
  45528. var lastExpiredTime = root.lastExpiredTime;
  45529. if (lastExpiredTime !== NoWork) {
  45530. // Special case: Expired work should flush synchronously.
  45531. root.callbackExpirationTime = Sync;
  45532. root.callbackPriority = ImmediatePriority;
  45533. root.callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
  45534. return;
  45535. }
  45536. var expirationTime = getNextRootExpirationTimeToWorkOn(root);
  45537. var existingCallbackNode = root.callbackNode;
  45538. if (expirationTime === NoWork) {
  45539. // There's nothing to work on.
  45540. if (existingCallbackNode !== null) {
  45541. root.callbackNode = null;
  45542. root.callbackExpirationTime = NoWork;
  45543. root.callbackPriority = NoPriority;
  45544. }
  45545. return;
  45546. } // TODO: If this is an update, we already read the current time. Pass the
  45547. // time as an argument.
  45548. var currentTime = requestCurrentTimeForUpdate();
  45549. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime); // If there's an existing render task, confirm it has the correct priority and
  45550. // expiration time. Otherwise, we'll cancel it and schedule a new one.
  45551. if (existingCallbackNode !== null) {
  45552. var existingCallbackPriority = root.callbackPriority;
  45553. var existingCallbackExpirationTime = root.callbackExpirationTime;
  45554. if ( // Callback must have the exact same expiration time.
  45555. existingCallbackExpirationTime === expirationTime && // Callback must have greater or equal priority.
  45556. existingCallbackPriority >= priorityLevel) {
  45557. // Existing callback is sufficient.
  45558. return;
  45559. } // Need to schedule a new task.
  45560. // TODO: Instead of scheduling a new task, we should be able to change the
  45561. // priority of the existing one.
  45562. cancelCallback(existingCallbackNode);
  45563. }
  45564. root.callbackExpirationTime = expirationTime;
  45565. root.callbackPriority = priorityLevel;
  45566. var callbackNode;
  45567. if (expirationTime === Sync) {
  45568. // Sync React callbacks are scheduled on a special internal queue
  45569. callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
  45570. } else {
  45571. callbackNode = scheduleCallback(priorityLevel, performConcurrentWorkOnRoot.bind(null, root), // Compute a task timeout based on the expiration time. This also affects
  45572. // ordering because tasks are processed in timeout order.
  45573. {
  45574. timeout: expirationTimeToMs(expirationTime) - now()
  45575. });
  45576. }
  45577. root.callbackNode = callbackNode;
  45578. } // This is the entry point for every concurrent task, i.e. anything that
  45579. // goes through Scheduler.
  45580. function performConcurrentWorkOnRoot(root, didTimeout) {
  45581. // Since we know we're in a React event, we can clear the current
  45582. // event time. The next update will compute a new event time.
  45583. currentEventTime = NoWork;
  45584. if (didTimeout) {
  45585. // The render task took too long to complete. Mark the current time as
  45586. // expired to synchronously render all expired work in a single batch.
  45587. var currentTime = requestCurrentTimeForUpdate();
  45588. markRootExpiredAtTime(root, currentTime); // This will schedule a synchronous callback.
  45589. ensureRootIsScheduled(root);
  45590. return null;
  45591. } // Determine the next expiration time to work on, using the fields stored
  45592. // on the root.
  45593. var expirationTime = getNextRootExpirationTimeToWorkOn(root);
  45594. if (expirationTime !== NoWork) {
  45595. var originalCallbackNode = root.callbackNode;
  45596. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  45597. {
  45598. throw Error( "Should not already be working." );
  45599. }
  45600. }
  45601. flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
  45602. // and prepare a fresh one. Otherwise we'll continue where we left off.
  45603. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
  45604. prepareFreshStack(root, expirationTime);
  45605. startWorkOnPendingInteractions(root, expirationTime);
  45606. } // If we have a work-in-progress fiber, it means there's still work to do
  45607. // in this root.
  45608. if (workInProgress !== null) {
  45609. var prevExecutionContext = executionContext;
  45610. executionContext |= RenderContext;
  45611. var prevDispatcher = pushDispatcher();
  45612. var prevInteractions = pushInteractions(root);
  45613. startWorkLoopTimer(workInProgress);
  45614. do {
  45615. try {
  45616. workLoopConcurrent();
  45617. break;
  45618. } catch (thrownValue) {
  45619. handleError(root, thrownValue);
  45620. }
  45621. } while (true);
  45622. resetContextDependencies();
  45623. executionContext = prevExecutionContext;
  45624. popDispatcher(prevDispatcher);
  45625. {
  45626. popInteractions(prevInteractions);
  45627. }
  45628. if (workInProgressRootExitStatus === RootFatalErrored) {
  45629. var fatalError = workInProgressRootFatalError;
  45630. stopInterruptedWorkLoopTimer();
  45631. prepareFreshStack(root, expirationTime);
  45632. markRootSuspendedAtTime(root, expirationTime);
  45633. ensureRootIsScheduled(root);
  45634. throw fatalError;
  45635. }
  45636. if (workInProgress !== null) {
  45637. // There's still work left over. Exit without committing.
  45638. stopInterruptedWorkLoopTimer();
  45639. } else {
  45640. // We now have a consistent tree. The next step is either to commit it,
  45641. // or, if something suspended, wait to commit it after a timeout.
  45642. stopFinishedWorkLoopTimer();
  45643. var finishedWork = root.finishedWork = root.current.alternate;
  45644. root.finishedExpirationTime = expirationTime;
  45645. finishConcurrentRender(root, finishedWork, workInProgressRootExitStatus, expirationTime);
  45646. }
  45647. ensureRootIsScheduled(root);
  45648. if (root.callbackNode === originalCallbackNode) {
  45649. // The task node scheduled for this root is the same one that's
  45650. // currently executed. Need to return a continuation.
  45651. return performConcurrentWorkOnRoot.bind(null, root);
  45652. }
  45653. }
  45654. }
  45655. return null;
  45656. }
  45657. function finishConcurrentRender(root, finishedWork, exitStatus, expirationTime) {
  45658. // Set this to null to indicate there's no in-progress render.
  45659. workInProgressRoot = null;
  45660. switch (exitStatus) {
  45661. case RootIncomplete:
  45662. case RootFatalErrored:
  45663. {
  45664. {
  45665. {
  45666. throw Error( "Root did not complete. This is a bug in React." );
  45667. }
  45668. }
  45669. }
  45670. // Flow knows about invariant, so it complains if I add a break
  45671. // statement, but eslint doesn't know about invariant, so it complains
  45672. // if I do. eslint-disable-next-line no-fallthrough
  45673. case RootErrored:
  45674. {
  45675. // If this was an async render, the error may have happened due to
  45676. // a mutation in a concurrent event. Try rendering one more time,
  45677. // synchronously, to see if the error goes away. If there are
  45678. // lower priority updates, let's include those, too, in case they
  45679. // fix the inconsistency. Render at Idle to include all updates.
  45680. // If it was Idle or Never or some not-yet-invented time, render
  45681. // at that time.
  45682. markRootExpiredAtTime(root, expirationTime > Idle ? Idle : expirationTime); // We assume that this second render pass will be synchronous
  45683. // and therefore not hit this path again.
  45684. break;
  45685. }
  45686. case RootSuspended:
  45687. {
  45688. markRootSuspendedAtTime(root, expirationTime);
  45689. var lastSuspendedTime = root.lastSuspendedTime;
  45690. if (expirationTime === lastSuspendedTime) {
  45691. root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
  45692. } // We have an acceptable loading state. We need to figure out if we
  45693. // should immediately commit it or wait a bit.
  45694. // If we have processed new updates during this render, we may now
  45695. // have a new loading state ready. We want to ensure that we commit
  45696. // that as soon as possible.
  45697. var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;
  45698. if (hasNotProcessedNewUpdates && // do not delay if we're inside an act() scope
  45699. !( IsThisRendererActing.current)) {
  45700. // If we have not processed any new updates during this pass, then
  45701. // this is either a retry of an existing fallback state or a
  45702. // hidden tree. Hidden trees shouldn't be batched with other work
  45703. // and after that's fixed it can only be a retry. We're going to
  45704. // throttle committing retries so that we don't show too many
  45705. // loading states too quickly.
  45706. var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.
  45707. if (msUntilTimeout > 10) {
  45708. if (workInProgressRootHasPendingPing) {
  45709. var lastPingedTime = root.lastPingedTime;
  45710. if (lastPingedTime === NoWork || lastPingedTime >= expirationTime) {
  45711. // This render was pinged but we didn't get to restart
  45712. // earlier so try restarting now instead.
  45713. root.lastPingedTime = expirationTime;
  45714. prepareFreshStack(root, expirationTime);
  45715. break;
  45716. }
  45717. }
  45718. var nextTime = getNextRootExpirationTimeToWorkOn(root);
  45719. if (nextTime !== NoWork && nextTime !== expirationTime) {
  45720. // There's additional work on this root.
  45721. break;
  45722. }
  45723. if (lastSuspendedTime !== NoWork && lastSuspendedTime !== expirationTime) {
  45724. // We should prefer to render the fallback of at the last
  45725. // suspended level. Ping the last suspended level to try
  45726. // rendering it again.
  45727. root.lastPingedTime = lastSuspendedTime;
  45728. break;
  45729. } // The render is suspended, it hasn't timed out, and there's no
  45730. // lower priority work to do. Instead of committing the fallback
  45731. // immediately, wait for more data to arrive.
  45732. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
  45733. break;
  45734. }
  45735. } // The work expired. Commit immediately.
  45736. commitRoot(root);
  45737. break;
  45738. }
  45739. case RootSuspendedWithDelay:
  45740. {
  45741. markRootSuspendedAtTime(root, expirationTime);
  45742. var _lastSuspendedTime = root.lastSuspendedTime;
  45743. if (expirationTime === _lastSuspendedTime) {
  45744. root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
  45745. }
  45746. if ( // do not delay if we're inside an act() scope
  45747. !( IsThisRendererActing.current)) {
  45748. // We're suspended in a state that should be avoided. We'll try to
  45749. // avoid committing it for as long as the timeouts let us.
  45750. if (workInProgressRootHasPendingPing) {
  45751. var _lastPingedTime = root.lastPingedTime;
  45752. if (_lastPingedTime === NoWork || _lastPingedTime >= expirationTime) {
  45753. // This render was pinged but we didn't get to restart earlier
  45754. // so try restarting now instead.
  45755. root.lastPingedTime = expirationTime;
  45756. prepareFreshStack(root, expirationTime);
  45757. break;
  45758. }
  45759. }
  45760. var _nextTime = getNextRootExpirationTimeToWorkOn(root);
  45761. if (_nextTime !== NoWork && _nextTime !== expirationTime) {
  45762. // There's additional work on this root.
  45763. break;
  45764. }
  45765. if (_lastSuspendedTime !== NoWork && _lastSuspendedTime !== expirationTime) {
  45766. // We should prefer to render the fallback of at the last
  45767. // suspended level. Ping the last suspended level to try
  45768. // rendering it again.
  45769. root.lastPingedTime = _lastSuspendedTime;
  45770. break;
  45771. }
  45772. var _msUntilTimeout;
  45773. if (workInProgressRootLatestSuspenseTimeout !== Sync) {
  45774. // We have processed a suspense config whose expiration time we
  45775. // can use as the timeout.
  45776. _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
  45777. } else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
  45778. // This should never normally happen because only new updates
  45779. // cause delayed states, so we should have processed something.
  45780. // However, this could also happen in an offscreen tree.
  45781. _msUntilTimeout = 0;
  45782. } else {
  45783. // If we don't have a suspense config, we're going to use a
  45784. // heuristic to determine how long we can suspend.
  45785. var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
  45786. var currentTimeMs = now();
  45787. var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
  45788. var timeElapsed = currentTimeMs - eventTimeMs;
  45789. if (timeElapsed < 0) {
  45790. // We get this wrong some time since we estimate the time.
  45791. timeElapsed = 0;
  45792. }
  45793. _msUntilTimeout = jnd(timeElapsed) - timeElapsed; // Clamp the timeout to the expiration time. TODO: Once the
  45794. // event time is exact instead of inferred from expiration time
  45795. // we don't need this.
  45796. if (timeUntilExpirationMs < _msUntilTimeout) {
  45797. _msUntilTimeout = timeUntilExpirationMs;
  45798. }
  45799. } // Don't bother with a very short suspense time.
  45800. if (_msUntilTimeout > 10) {
  45801. // The render is suspended, it hasn't timed out, and there's no
  45802. // lower priority work to do. Instead of committing the fallback
  45803. // immediately, wait for more data to arrive.
  45804. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
  45805. break;
  45806. }
  45807. } // The work expired. Commit immediately.
  45808. commitRoot(root);
  45809. break;
  45810. }
  45811. case RootCompleted:
  45812. {
  45813. // The work completed. Ready to commit.
  45814. if ( // do not delay if we're inside an act() scope
  45815. !( IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
  45816. // If we have exceeded the minimum loading delay, which probably
  45817. // means we have shown a spinner already, we might have to suspend
  45818. // a bit longer to ensure that the spinner is shown for
  45819. // enough time.
  45820. var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);
  45821. if (_msUntilTimeout2 > 10) {
  45822. markRootSuspendedAtTime(root, expirationTime);
  45823. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
  45824. break;
  45825. }
  45826. }
  45827. commitRoot(root);
  45828. break;
  45829. }
  45830. default:
  45831. {
  45832. {
  45833. {
  45834. throw Error( "Unknown root exit status." );
  45835. }
  45836. }
  45837. }
  45838. }
  45839. } // This is the entry point for synchronous tasks that don't go
  45840. // through Scheduler
  45841. function performSyncWorkOnRoot(root) {
  45842. // Check if there's expired work on this root. Otherwise, render at Sync.
  45843. var lastExpiredTime = root.lastExpiredTime;
  45844. var expirationTime = lastExpiredTime !== NoWork ? lastExpiredTime : Sync;
  45845. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  45846. {
  45847. throw Error( "Should not already be working." );
  45848. }
  45849. }
  45850. flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
  45851. // and prepare a fresh one. Otherwise we'll continue where we left off.
  45852. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
  45853. prepareFreshStack(root, expirationTime);
  45854. startWorkOnPendingInteractions(root, expirationTime);
  45855. } // If we have a work-in-progress fiber, it means there's still work to do
  45856. // in this root.
  45857. if (workInProgress !== null) {
  45858. var prevExecutionContext = executionContext;
  45859. executionContext |= RenderContext;
  45860. var prevDispatcher = pushDispatcher();
  45861. var prevInteractions = pushInteractions(root);
  45862. startWorkLoopTimer(workInProgress);
  45863. do {
  45864. try {
  45865. workLoopSync();
  45866. break;
  45867. } catch (thrownValue) {
  45868. handleError(root, thrownValue);
  45869. }
  45870. } while (true);
  45871. resetContextDependencies();
  45872. executionContext = prevExecutionContext;
  45873. popDispatcher(prevDispatcher);
  45874. {
  45875. popInteractions(prevInteractions);
  45876. }
  45877. if (workInProgressRootExitStatus === RootFatalErrored) {
  45878. var fatalError = workInProgressRootFatalError;
  45879. stopInterruptedWorkLoopTimer();
  45880. prepareFreshStack(root, expirationTime);
  45881. markRootSuspendedAtTime(root, expirationTime);
  45882. ensureRootIsScheduled(root);
  45883. throw fatalError;
  45884. }
  45885. if (workInProgress !== null) {
  45886. // This is a sync render, so we should have finished the whole tree.
  45887. {
  45888. {
  45889. throw Error( "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." );
  45890. }
  45891. }
  45892. } else {
  45893. // We now have a consistent tree. Because this is a sync render, we
  45894. // will commit it even if something suspended.
  45895. stopFinishedWorkLoopTimer();
  45896. root.finishedWork = root.current.alternate;
  45897. root.finishedExpirationTime = expirationTime;
  45898. finishSyncRender(root);
  45899. } // Before exiting, make sure there's a callback scheduled for the next
  45900. // pending level.
  45901. ensureRootIsScheduled(root);
  45902. }
  45903. return null;
  45904. }
  45905. function finishSyncRender(root) {
  45906. // Set this to null to indicate there's no in-progress render.
  45907. workInProgressRoot = null;
  45908. commitRoot(root);
  45909. }
  45910. function flushDiscreteUpdates() {
  45911. // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  45912. // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  45913. // those two cases. Need to fix this before exposing flushDiscreteUpdates
  45914. // as a public API.
  45915. if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
  45916. {
  45917. if ((executionContext & RenderContext) !== NoContext) {
  45918. error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
  45919. }
  45920. } // We're already rendering, so we can't synchronously flush pending work.
  45921. // This is probably a nested event dispatch triggered by a lifecycle/effect,
  45922. // like `el.focus()`. Exit.
  45923. return;
  45924. }
  45925. flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that
  45926. // they fire before the next serial event.
  45927. flushPassiveEffects();
  45928. }
  45929. function syncUpdates(fn, a, b, c) {
  45930. return runWithPriority$1(ImmediatePriority, fn.bind(null, a, b, c));
  45931. }
  45932. function flushPendingDiscreteUpdates() {
  45933. if (rootsWithPendingDiscreteUpdates !== null) {
  45934. // For each root with pending discrete updates, schedule a callback to
  45935. // immediately flush them.
  45936. var roots = rootsWithPendingDiscreteUpdates;
  45937. rootsWithPendingDiscreteUpdates = null;
  45938. roots.forEach(function (expirationTime, root) {
  45939. markRootExpiredAtTime(root, expirationTime);
  45940. ensureRootIsScheduled(root);
  45941. }); // Now flush the immediate queue.
  45942. flushSyncCallbackQueue();
  45943. }
  45944. }
  45945. function batchedUpdates$1(fn, a) {
  45946. var prevExecutionContext = executionContext;
  45947. executionContext |= BatchedContext;
  45948. try {
  45949. return fn(a);
  45950. } finally {
  45951. executionContext = prevExecutionContext;
  45952. if (executionContext === NoContext) {
  45953. // Flush the immediate callbacks that were scheduled during this batch
  45954. flushSyncCallbackQueue();
  45955. }
  45956. }
  45957. }
  45958. function batchedEventUpdates$1(fn, a) {
  45959. var prevExecutionContext = executionContext;
  45960. executionContext |= EventContext;
  45961. try {
  45962. return fn(a);
  45963. } finally {
  45964. executionContext = prevExecutionContext;
  45965. if (executionContext === NoContext) {
  45966. // Flush the immediate callbacks that were scheduled during this batch
  45967. flushSyncCallbackQueue();
  45968. }
  45969. }
  45970. }
  45971. function discreteUpdates$1(fn, a, b, c, d) {
  45972. var prevExecutionContext = executionContext;
  45973. executionContext |= DiscreteEventContext;
  45974. try {
  45975. // Should this
  45976. return runWithPriority$1(UserBlockingPriority$1, fn.bind(null, a, b, c, d));
  45977. } finally {
  45978. executionContext = prevExecutionContext;
  45979. if (executionContext === NoContext) {
  45980. // Flush the immediate callbacks that were scheduled during this batch
  45981. flushSyncCallbackQueue();
  45982. }
  45983. }
  45984. }
  45985. function unbatchedUpdates(fn, a) {
  45986. var prevExecutionContext = executionContext;
  45987. executionContext &= ~BatchedContext;
  45988. executionContext |= LegacyUnbatchedContext;
  45989. try {
  45990. return fn(a);
  45991. } finally {
  45992. executionContext = prevExecutionContext;
  45993. if (executionContext === NoContext) {
  45994. // Flush the immediate callbacks that were scheduled during this batch
  45995. flushSyncCallbackQueue();
  45996. }
  45997. }
  45998. }
  45999. function flushSync(fn, a) {
  46000. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  46001. {
  46002. {
  46003. throw Error( "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering." );
  46004. }
  46005. }
  46006. }
  46007. var prevExecutionContext = executionContext;
  46008. executionContext |= BatchedContext;
  46009. try {
  46010. return runWithPriority$1(ImmediatePriority, fn.bind(null, a));
  46011. } finally {
  46012. executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
  46013. // Note that this will happen even if batchedUpdates is higher up
  46014. // the stack.
  46015. flushSyncCallbackQueue();
  46016. }
  46017. }
  46018. function prepareFreshStack(root, expirationTime) {
  46019. root.finishedWork = null;
  46020. root.finishedExpirationTime = NoWork;
  46021. var timeoutHandle = root.timeoutHandle;
  46022. if (timeoutHandle !== noTimeout) {
  46023. // The root previous suspended and scheduled a timeout to commit a fallback
  46024. // state. Now that we have additional work, cancel the timeout.
  46025. root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  46026. cancelTimeout(timeoutHandle);
  46027. }
  46028. if (workInProgress !== null) {
  46029. var interruptedWork = workInProgress.return;
  46030. while (interruptedWork !== null) {
  46031. unwindInterruptedWork(interruptedWork);
  46032. interruptedWork = interruptedWork.return;
  46033. }
  46034. }
  46035. workInProgressRoot = root;
  46036. workInProgress = createWorkInProgress(root.current, null);
  46037. renderExpirationTime$1 = expirationTime;
  46038. workInProgressRootExitStatus = RootIncomplete;
  46039. workInProgressRootFatalError = null;
  46040. workInProgressRootLatestProcessedExpirationTime = Sync;
  46041. workInProgressRootLatestSuspenseTimeout = Sync;
  46042. workInProgressRootCanSuspendUsingConfig = null;
  46043. workInProgressRootNextUnprocessedUpdateTime = NoWork;
  46044. workInProgressRootHasPendingPing = false;
  46045. {
  46046. spawnedWorkDuringRender = null;
  46047. }
  46048. {
  46049. ReactStrictModeWarnings.discardPendingWarnings();
  46050. }
  46051. }
  46052. function handleError(root, thrownValue) {
  46053. do {
  46054. try {
  46055. // Reset module-level state that was set during the render phase.
  46056. resetContextDependencies();
  46057. resetHooksAfterThrow();
  46058. resetCurrentFiber();
  46059. if (workInProgress === null || workInProgress.return === null) {
  46060. // Expected to be working on a non-root fiber. This is a fatal error
  46061. // because there's no ancestor that can handle it; the root is
  46062. // supposed to capture all errors that weren't caught by an error
  46063. // boundary.
  46064. workInProgressRootExitStatus = RootFatalErrored;
  46065. workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
  46066. // sibling, or the parent if there are no siblings. But since the root
  46067. // has no siblings nor a parent, we set it to null. Usually this is
  46068. // handled by `completeUnitOfWork` or `unwindWork`, but since we're
  46069. // interntionally not calling those, we need set it here.
  46070. // TODO: Consider calling `unwindWork` to pop the contexts.
  46071. workInProgress = null;
  46072. return null;
  46073. }
  46074. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  46075. // Record the time spent rendering before an error was thrown. This
  46076. // avoids inaccurate Profiler durations in the case of a
  46077. // suspended render.
  46078. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
  46079. }
  46080. throwException(root, workInProgress.return, workInProgress, thrownValue, renderExpirationTime$1);
  46081. workInProgress = completeUnitOfWork(workInProgress);
  46082. } catch (yetAnotherThrownValue) {
  46083. // Something in the return path also threw.
  46084. thrownValue = yetAnotherThrownValue;
  46085. continue;
  46086. } // Return to the normal work loop.
  46087. return;
  46088. } while (true);
  46089. }
  46090. function pushDispatcher(root) {
  46091. var prevDispatcher = ReactCurrentDispatcher$1.current;
  46092. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  46093. if (prevDispatcher === null) {
  46094. // The React isomorphic package does not include a default dispatcher.
  46095. // Instead the first renderer will lazily attach one, in order to give
  46096. // nicer error messages.
  46097. return ContextOnlyDispatcher;
  46098. } else {
  46099. return prevDispatcher;
  46100. }
  46101. }
  46102. function popDispatcher(prevDispatcher) {
  46103. ReactCurrentDispatcher$1.current = prevDispatcher;
  46104. }
  46105. function pushInteractions(root) {
  46106. {
  46107. var prevInteractions = tracing.__interactionsRef.current;
  46108. tracing.__interactionsRef.current = root.memoizedInteractions;
  46109. return prevInteractions;
  46110. }
  46111. }
  46112. function popInteractions(prevInteractions) {
  46113. {
  46114. tracing.__interactionsRef.current = prevInteractions;
  46115. }
  46116. }
  46117. function markCommitTimeOfFallback() {
  46118. globalMostRecentFallbackTime = now();
  46119. }
  46120. function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
  46121. if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Idle) {
  46122. workInProgressRootLatestProcessedExpirationTime = expirationTime;
  46123. }
  46124. if (suspenseConfig !== null) {
  46125. if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Idle) {
  46126. workInProgressRootLatestSuspenseTimeout = expirationTime; // Most of the time we only have one config and getting wrong is not bad.
  46127. workInProgressRootCanSuspendUsingConfig = suspenseConfig;
  46128. }
  46129. }
  46130. }
  46131. function markUnprocessedUpdateTime(expirationTime) {
  46132. if (expirationTime > workInProgressRootNextUnprocessedUpdateTime) {
  46133. workInProgressRootNextUnprocessedUpdateTime = expirationTime;
  46134. }
  46135. }
  46136. function renderDidSuspend() {
  46137. if (workInProgressRootExitStatus === RootIncomplete) {
  46138. workInProgressRootExitStatus = RootSuspended;
  46139. }
  46140. }
  46141. function renderDidSuspendDelayIfPossible() {
  46142. if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
  46143. workInProgressRootExitStatus = RootSuspendedWithDelay;
  46144. } // Check if there's a lower priority update somewhere else in the tree.
  46145. if (workInProgressRootNextUnprocessedUpdateTime !== NoWork && workInProgressRoot !== null) {
  46146. // Mark the current render as suspended, and then mark that there's a
  46147. // pending update.
  46148. // TODO: This should immediately interrupt the current render, instead
  46149. // of waiting until the next time we yield.
  46150. markRootSuspendedAtTime(workInProgressRoot, renderExpirationTime$1);
  46151. markRootUpdatedAtTime(workInProgressRoot, workInProgressRootNextUnprocessedUpdateTime);
  46152. }
  46153. }
  46154. function renderDidError() {
  46155. if (workInProgressRootExitStatus !== RootCompleted) {
  46156. workInProgressRootExitStatus = RootErrored;
  46157. }
  46158. } // Called during render to determine if anything has suspended.
  46159. // Returns false if we're not sure.
  46160. function renderHasNotSuspendedYet() {
  46161. // If something errored or completed, we can't really be sure,
  46162. // so those are false.
  46163. return workInProgressRootExitStatus === RootIncomplete;
  46164. }
  46165. function inferTimeFromExpirationTime(expirationTime) {
  46166. // We don't know exactly when the update was scheduled, but we can infer an
  46167. // approximate start time from the expiration time.
  46168. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  46169. return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  46170. }
  46171. function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
  46172. // We don't know exactly when the update was scheduled, but we can infer an
  46173. // approximate start time from the expiration time by subtracting the timeout
  46174. // that was added to the event time.
  46175. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  46176. return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  46177. } // The work loop is an extremely hot path. Tell Closure not to inline it.
  46178. /** @noinline */
  46179. function workLoopSync() {
  46180. // Already timed out, so perform work without checking if we need to yield.
  46181. while (workInProgress !== null) {
  46182. workInProgress = performUnitOfWork(workInProgress);
  46183. }
  46184. }
  46185. /** @noinline */
  46186. function workLoopConcurrent() {
  46187. // Perform work until Scheduler asks us to yield
  46188. while (workInProgress !== null && !shouldYield()) {
  46189. workInProgress = performUnitOfWork(workInProgress);
  46190. }
  46191. }
  46192. function performUnitOfWork(unitOfWork) {
  46193. // The current, flushed, state of this fiber is the alternate. Ideally
  46194. // nothing should rely on this, but relying on it here means that we don't
  46195. // need an additional field on the work in progress.
  46196. var current = unitOfWork.alternate;
  46197. startWorkTimer(unitOfWork);
  46198. setCurrentFiber(unitOfWork);
  46199. var next;
  46200. if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
  46201. startProfilerTimer(unitOfWork);
  46202. next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
  46203. stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  46204. } else {
  46205. next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
  46206. }
  46207. resetCurrentFiber();
  46208. unitOfWork.memoizedProps = unitOfWork.pendingProps;
  46209. if (next === null) {
  46210. // If this doesn't spawn new work, complete the current work.
  46211. next = completeUnitOfWork(unitOfWork);
  46212. }
  46213. ReactCurrentOwner$2.current = null;
  46214. return next;
  46215. }
  46216. function completeUnitOfWork(unitOfWork) {
  46217. // Attempt to complete the current unit of work, then move to the next
  46218. // sibling. If there are no more siblings, return to the parent fiber.
  46219. workInProgress = unitOfWork;
  46220. do {
  46221. // The current, flushed, state of this fiber is the alternate. Ideally
  46222. // nothing should rely on this, but relying on it here means that we don't
  46223. // need an additional field on the work in progress.
  46224. var current = workInProgress.alternate;
  46225. var returnFiber = workInProgress.return; // Check if the work completed or if something threw.
  46226. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  46227. setCurrentFiber(workInProgress);
  46228. var next = void 0;
  46229. if ( (workInProgress.mode & ProfileMode) === NoMode) {
  46230. next = completeWork(current, workInProgress, renderExpirationTime$1);
  46231. } else {
  46232. startProfilerTimer(workInProgress);
  46233. next = completeWork(current, workInProgress, renderExpirationTime$1); // Update render duration assuming we didn't error.
  46234. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  46235. }
  46236. stopWorkTimer(workInProgress);
  46237. resetCurrentFiber();
  46238. resetChildExpirationTime(workInProgress);
  46239. if (next !== null) {
  46240. // Completing this fiber spawned new work. Work on that next.
  46241. return next;
  46242. }
  46243. if (returnFiber !== null && // Do not append effects to parents if a sibling failed to complete
  46244. (returnFiber.effectTag & Incomplete) === NoEffect) {
  46245. // Append all the effects of the subtree and this fiber onto the effect
  46246. // list of the parent. The completion order of the children affects the
  46247. // side-effect order.
  46248. if (returnFiber.firstEffect === null) {
  46249. returnFiber.firstEffect = workInProgress.firstEffect;
  46250. }
  46251. if (workInProgress.lastEffect !== null) {
  46252. if (returnFiber.lastEffect !== null) {
  46253. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  46254. }
  46255. returnFiber.lastEffect = workInProgress.lastEffect;
  46256. } // If this fiber had side-effects, we append it AFTER the children's
  46257. // side-effects. We can perform certain side-effects earlier if needed,
  46258. // by doing multiple passes over the effect list. We don't want to
  46259. // schedule our own side-effect on our own list because if end up
  46260. // reusing children we'll schedule this effect onto itself since we're
  46261. // at the end.
  46262. var effectTag = workInProgress.effectTag; // Skip both NoWork and PerformedWork tags when creating the effect
  46263. // list. PerformedWork effect is read by React DevTools but shouldn't be
  46264. // committed.
  46265. if (effectTag > PerformedWork) {
  46266. if (returnFiber.lastEffect !== null) {
  46267. returnFiber.lastEffect.nextEffect = workInProgress;
  46268. } else {
  46269. returnFiber.firstEffect = workInProgress;
  46270. }
  46271. returnFiber.lastEffect = workInProgress;
  46272. }
  46273. }
  46274. } else {
  46275. // This fiber did not complete because something threw. Pop values off
  46276. // the stack without entering the complete phase. If this is a boundary,
  46277. // capture values if possible.
  46278. var _next = unwindWork(workInProgress); // Because this fiber did not complete, don't reset its expiration time.
  46279. if ( (workInProgress.mode & ProfileMode) !== NoMode) {
  46280. // Record the render duration for the fiber that errored.
  46281. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false); // Include the time spent working on failed children before continuing.
  46282. var actualDuration = workInProgress.actualDuration;
  46283. var child = workInProgress.child;
  46284. while (child !== null) {
  46285. actualDuration += child.actualDuration;
  46286. child = child.sibling;
  46287. }
  46288. workInProgress.actualDuration = actualDuration;
  46289. }
  46290. if (_next !== null) {
  46291. // If completing this work spawned new work, do that next. We'll come
  46292. // back here again.
  46293. // Since we're restarting, remove anything that is not a host effect
  46294. // from the effect tag.
  46295. // TODO: The name stopFailedWorkTimer is misleading because Suspense
  46296. // also captures and restarts.
  46297. stopFailedWorkTimer(workInProgress);
  46298. _next.effectTag &= HostEffectMask;
  46299. return _next;
  46300. }
  46301. stopWorkTimer(workInProgress);
  46302. if (returnFiber !== null) {
  46303. // Mark the parent fiber as incomplete and clear its effect list.
  46304. returnFiber.firstEffect = returnFiber.lastEffect = null;
  46305. returnFiber.effectTag |= Incomplete;
  46306. }
  46307. }
  46308. var siblingFiber = workInProgress.sibling;
  46309. if (siblingFiber !== null) {
  46310. // If there is more work to do in this returnFiber, do that next.
  46311. return siblingFiber;
  46312. } // Otherwise, return to the parent
  46313. workInProgress = returnFiber;
  46314. } while (workInProgress !== null); // We've reached the root.
  46315. if (workInProgressRootExitStatus === RootIncomplete) {
  46316. workInProgressRootExitStatus = RootCompleted;
  46317. }
  46318. return null;
  46319. }
  46320. function getRemainingExpirationTime(fiber) {
  46321. var updateExpirationTime = fiber.expirationTime;
  46322. var childExpirationTime = fiber.childExpirationTime;
  46323. return updateExpirationTime > childExpirationTime ? updateExpirationTime : childExpirationTime;
  46324. }
  46325. function resetChildExpirationTime(completedWork) {
  46326. if (renderExpirationTime$1 !== Never && completedWork.childExpirationTime === Never) {
  46327. // The children of this component are hidden. Don't bubble their
  46328. // expiration times.
  46329. return;
  46330. }
  46331. var newChildExpirationTime = NoWork; // Bubble up the earliest expiration time.
  46332. if ( (completedWork.mode & ProfileMode) !== NoMode) {
  46333. // In profiling mode, resetChildExpirationTime is also used to reset
  46334. // profiler durations.
  46335. var actualDuration = completedWork.actualDuration;
  46336. var treeBaseDuration = completedWork.selfBaseDuration; // When a fiber is cloned, its actualDuration is reset to 0. This value will
  46337. // only be updated if work is done on the fiber (i.e. it doesn't bailout).
  46338. // When work is done, it should bubble to the parent's actualDuration. If
  46339. // the fiber has not been cloned though, (meaning no work was done), then
  46340. // this value will reflect the amount of time spent working on a previous
  46341. // render. In that case it should not bubble. We determine whether it was
  46342. // cloned by comparing the child pointer.
  46343. var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
  46344. var child = completedWork.child;
  46345. while (child !== null) {
  46346. var childUpdateExpirationTime = child.expirationTime;
  46347. var childChildExpirationTime = child.childExpirationTime;
  46348. if (childUpdateExpirationTime > newChildExpirationTime) {
  46349. newChildExpirationTime = childUpdateExpirationTime;
  46350. }
  46351. if (childChildExpirationTime > newChildExpirationTime) {
  46352. newChildExpirationTime = childChildExpirationTime;
  46353. }
  46354. if (shouldBubbleActualDurations) {
  46355. actualDuration += child.actualDuration;
  46356. }
  46357. treeBaseDuration += child.treeBaseDuration;
  46358. child = child.sibling;
  46359. }
  46360. completedWork.actualDuration = actualDuration;
  46361. completedWork.treeBaseDuration = treeBaseDuration;
  46362. } else {
  46363. var _child = completedWork.child;
  46364. while (_child !== null) {
  46365. var _childUpdateExpirationTime = _child.expirationTime;
  46366. var _childChildExpirationTime = _child.childExpirationTime;
  46367. if (_childUpdateExpirationTime > newChildExpirationTime) {
  46368. newChildExpirationTime = _childUpdateExpirationTime;
  46369. }
  46370. if (_childChildExpirationTime > newChildExpirationTime) {
  46371. newChildExpirationTime = _childChildExpirationTime;
  46372. }
  46373. _child = _child.sibling;
  46374. }
  46375. }
  46376. completedWork.childExpirationTime = newChildExpirationTime;
  46377. }
  46378. function commitRoot(root) {
  46379. var renderPriorityLevel = getCurrentPriorityLevel();
  46380. runWithPriority$1(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
  46381. return null;
  46382. }
  46383. function commitRootImpl(root, renderPriorityLevel) {
  46384. do {
  46385. // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
  46386. // means `flushPassiveEffects` will sometimes result in additional
  46387. // passive effects. So we need to keep flushing in a loop until there are
  46388. // no more pending effects.
  46389. // TODO: Might be better if `flushPassiveEffects` did not automatically
  46390. // flush synchronous work at the end, to avoid factoring hazards like this.
  46391. flushPassiveEffects();
  46392. } while (rootWithPendingPassiveEffects !== null);
  46393. flushRenderPhaseStrictModeWarningsInDEV();
  46394. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  46395. {
  46396. throw Error( "Should not already be working." );
  46397. }
  46398. }
  46399. var finishedWork = root.finishedWork;
  46400. var expirationTime = root.finishedExpirationTime;
  46401. if (finishedWork === null) {
  46402. return null;
  46403. }
  46404. root.finishedWork = null;
  46405. root.finishedExpirationTime = NoWork;
  46406. if (!(finishedWork !== root.current)) {
  46407. {
  46408. throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." );
  46409. }
  46410. } // commitRoot never returns a continuation; it always finishes synchronously.
  46411. // So we can clear these now to allow a new callback to be scheduled.
  46412. root.callbackNode = null;
  46413. root.callbackExpirationTime = NoWork;
  46414. root.callbackPriority = NoPriority;
  46415. root.nextKnownPendingLevel = NoWork;
  46416. startCommitTimer(); // Update the first and last pending times on this root. The new first
  46417. // pending time is whatever is left on the root fiber.
  46418. var remainingExpirationTimeBeforeCommit = getRemainingExpirationTime(finishedWork);
  46419. markRootFinishedAtTime(root, expirationTime, remainingExpirationTimeBeforeCommit);
  46420. if (root === workInProgressRoot) {
  46421. // We can reset these now that they are finished.
  46422. workInProgressRoot = null;
  46423. workInProgress = null;
  46424. renderExpirationTime$1 = NoWork;
  46425. } // This indicates that the last root we worked on is not the same one that
  46426. // we're committing now. This most commonly happens when a suspended root
  46427. // times out.
  46428. // Get the list of effects.
  46429. var firstEffect;
  46430. if (finishedWork.effectTag > PerformedWork) {
  46431. // A fiber's effect list consists only of its children, not itself. So if
  46432. // the root has an effect, we need to add it to the end of the list. The
  46433. // resulting list is the set that would belong to the root's parent, if it
  46434. // had one; that is, all the effects in the tree including the root.
  46435. if (finishedWork.lastEffect !== null) {
  46436. finishedWork.lastEffect.nextEffect = finishedWork;
  46437. firstEffect = finishedWork.firstEffect;
  46438. } else {
  46439. firstEffect = finishedWork;
  46440. }
  46441. } else {
  46442. // There is no effect on the root.
  46443. firstEffect = finishedWork.firstEffect;
  46444. }
  46445. if (firstEffect !== null) {
  46446. var prevExecutionContext = executionContext;
  46447. executionContext |= CommitContext;
  46448. var prevInteractions = pushInteractions(root); // Reset this to null before calling lifecycles
  46449. ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
  46450. // of the effect list for each phase: all mutation effects come before all
  46451. // layout effects, and so on.
  46452. // The first phase a "before mutation" phase. We use this phase to read the
  46453. // state of the host tree right before we mutate it. This is where
  46454. // getSnapshotBeforeUpdate is called.
  46455. startCommitSnapshotEffectsTimer();
  46456. prepareForCommit(root.containerInfo);
  46457. nextEffect = firstEffect;
  46458. do {
  46459. {
  46460. invokeGuardedCallback(null, commitBeforeMutationEffects, null);
  46461. if (hasCaughtError()) {
  46462. if (!(nextEffect !== null)) {
  46463. {
  46464. throw Error( "Should be working on an effect." );
  46465. }
  46466. }
  46467. var error = clearCaughtError();
  46468. captureCommitPhaseError(nextEffect, error);
  46469. nextEffect = nextEffect.nextEffect;
  46470. }
  46471. }
  46472. } while (nextEffect !== null);
  46473. stopCommitSnapshotEffectsTimer();
  46474. {
  46475. // Mark the current commit time to be shared by all Profilers in this
  46476. // batch. This enables them to be grouped later.
  46477. recordCommitTime();
  46478. } // The next phase is the mutation phase, where we mutate the host tree.
  46479. startCommitHostEffectsTimer();
  46480. nextEffect = firstEffect;
  46481. do {
  46482. {
  46483. invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel);
  46484. if (hasCaughtError()) {
  46485. if (!(nextEffect !== null)) {
  46486. {
  46487. throw Error( "Should be working on an effect." );
  46488. }
  46489. }
  46490. var _error = clearCaughtError();
  46491. captureCommitPhaseError(nextEffect, _error);
  46492. nextEffect = nextEffect.nextEffect;
  46493. }
  46494. }
  46495. } while (nextEffect !== null);
  46496. stopCommitHostEffectsTimer();
  46497. resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
  46498. // the mutation phase, so that the previous tree is still current during
  46499. // componentWillUnmount, but before the layout phase, so that the finished
  46500. // work is current during componentDidMount/Update.
  46501. root.current = finishedWork; // The next phase is the layout phase, where we call effects that read
  46502. // the host tree after it's been mutated. The idiomatic use case for this is
  46503. // layout, but class component lifecycles also fire here for legacy reasons.
  46504. startCommitLifeCyclesTimer();
  46505. nextEffect = firstEffect;
  46506. do {
  46507. {
  46508. invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);
  46509. if (hasCaughtError()) {
  46510. if (!(nextEffect !== null)) {
  46511. {
  46512. throw Error( "Should be working on an effect." );
  46513. }
  46514. }
  46515. var _error2 = clearCaughtError();
  46516. captureCommitPhaseError(nextEffect, _error2);
  46517. nextEffect = nextEffect.nextEffect;
  46518. }
  46519. }
  46520. } while (nextEffect !== null);
  46521. stopCommitLifeCyclesTimer();
  46522. nextEffect = null; // Tell Scheduler to yield at the end of the frame, so the browser has an
  46523. // opportunity to paint.
  46524. requestPaint();
  46525. {
  46526. popInteractions(prevInteractions);
  46527. }
  46528. executionContext = prevExecutionContext;
  46529. } else {
  46530. // No effects.
  46531. root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
  46532. // no effects.
  46533. // TODO: Maybe there's a better way to report this.
  46534. startCommitSnapshotEffectsTimer();
  46535. stopCommitSnapshotEffectsTimer();
  46536. {
  46537. recordCommitTime();
  46538. }
  46539. startCommitHostEffectsTimer();
  46540. stopCommitHostEffectsTimer();
  46541. startCommitLifeCyclesTimer();
  46542. stopCommitLifeCyclesTimer();
  46543. }
  46544. stopCommitTimer();
  46545. var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
  46546. if (rootDoesHavePassiveEffects) {
  46547. // This commit has passive effects. Stash a reference to them. But don't
  46548. // schedule a callback until after flushing layout work.
  46549. rootDoesHavePassiveEffects = false;
  46550. rootWithPendingPassiveEffects = root;
  46551. pendingPassiveEffectsExpirationTime = expirationTime;
  46552. pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  46553. } else {
  46554. // We are done with the effect chain at this point so let's clear the
  46555. // nextEffect pointers to assist with GC. If we have passive effects, we'll
  46556. // clear this in flushPassiveEffects.
  46557. nextEffect = firstEffect;
  46558. while (nextEffect !== null) {
  46559. var nextNextEffect = nextEffect.nextEffect;
  46560. nextEffect.nextEffect = null;
  46561. nextEffect = nextNextEffect;
  46562. }
  46563. } // Check if there's remaining work on this root
  46564. var remainingExpirationTime = root.firstPendingTime;
  46565. if (remainingExpirationTime !== NoWork) {
  46566. {
  46567. if (spawnedWorkDuringRender !== null) {
  46568. var expirationTimes = spawnedWorkDuringRender;
  46569. spawnedWorkDuringRender = null;
  46570. for (var i = 0; i < expirationTimes.length; i++) {
  46571. scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
  46572. }
  46573. }
  46574. schedulePendingInteractions(root, remainingExpirationTime);
  46575. }
  46576. } else {
  46577. // If there's no remaining work, we can clear the set of already failed
  46578. // error boundaries.
  46579. legacyErrorBoundariesThatAlreadyFailed = null;
  46580. }
  46581. {
  46582. if (!rootDidHavePassiveEffects) {
  46583. // If there are no passive effects, then we can complete the pending interactions.
  46584. // Otherwise, we'll wait until after the passive effects are flushed.
  46585. // Wait to do this until after remaining work has been scheduled,
  46586. // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
  46587. finishPendingInteractions(root, expirationTime);
  46588. }
  46589. }
  46590. if (remainingExpirationTime === Sync) {
  46591. // Count the number of times the root synchronously re-renders without
  46592. // finishing. If there are too many, it indicates an infinite update loop.
  46593. if (root === rootWithNestedUpdates) {
  46594. nestedUpdateCount++;
  46595. } else {
  46596. nestedUpdateCount = 0;
  46597. rootWithNestedUpdates = root;
  46598. }
  46599. } else {
  46600. nestedUpdateCount = 0;
  46601. }
  46602. onCommitRoot(finishedWork.stateNode, expirationTime); // Always call this before exiting `commitRoot`, to ensure that any
  46603. // additional work on this root is scheduled.
  46604. ensureRootIsScheduled(root);
  46605. if (hasUncaughtError) {
  46606. hasUncaughtError = false;
  46607. var _error3 = firstUncaughtError;
  46608. firstUncaughtError = null;
  46609. throw _error3;
  46610. }
  46611. if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
  46612. // This is a legacy edge case. We just committed the initial mount of
  46613. // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
  46614. // synchronously, but layout updates should be deferred until the end
  46615. // of the batch.
  46616. return null;
  46617. } // If layout work was scheduled, flush it now.
  46618. flushSyncCallbackQueue();
  46619. return null;
  46620. }
  46621. function commitBeforeMutationEffects() {
  46622. while (nextEffect !== null) {
  46623. var effectTag = nextEffect.effectTag;
  46624. if ((effectTag & Snapshot) !== NoEffect) {
  46625. setCurrentFiber(nextEffect);
  46626. recordEffect();
  46627. var current = nextEffect.alternate;
  46628. commitBeforeMutationLifeCycles(current, nextEffect);
  46629. resetCurrentFiber();
  46630. }
  46631. if ((effectTag & Passive) !== NoEffect) {
  46632. // If there are passive effects, schedule a callback to flush at
  46633. // the earliest opportunity.
  46634. if (!rootDoesHavePassiveEffects) {
  46635. rootDoesHavePassiveEffects = true;
  46636. scheduleCallback(NormalPriority, function () {
  46637. flushPassiveEffects();
  46638. return null;
  46639. });
  46640. }
  46641. }
  46642. nextEffect = nextEffect.nextEffect;
  46643. }
  46644. }
  46645. function commitMutationEffects(root, renderPriorityLevel) {
  46646. // TODO: Should probably move the bulk of this function to commitWork.
  46647. while (nextEffect !== null) {
  46648. setCurrentFiber(nextEffect);
  46649. var effectTag = nextEffect.effectTag;
  46650. if (effectTag & ContentReset) {
  46651. commitResetTextContent(nextEffect);
  46652. }
  46653. if (effectTag & Ref) {
  46654. var current = nextEffect.alternate;
  46655. if (current !== null) {
  46656. commitDetachRef(current);
  46657. }
  46658. } // The following switch statement is only concerned about placement,
  46659. // updates, and deletions. To avoid needing to add a case for every possible
  46660. // bitmap value, we remove the secondary effects from the effect tag and
  46661. // switch on that value.
  46662. var primaryEffectTag = effectTag & (Placement | Update | Deletion | Hydrating);
  46663. switch (primaryEffectTag) {
  46664. case Placement:
  46665. {
  46666. commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
  46667. // inserted, before any life-cycles like componentDidMount gets called.
  46668. // TODO: findDOMNode doesn't rely on this any more but isMounted does
  46669. // and isMounted is deprecated anyway so we should be able to kill this.
  46670. nextEffect.effectTag &= ~Placement;
  46671. break;
  46672. }
  46673. case PlacementAndUpdate:
  46674. {
  46675. // Placement
  46676. commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
  46677. // inserted, before any life-cycles like componentDidMount gets called.
  46678. nextEffect.effectTag &= ~Placement; // Update
  46679. var _current = nextEffect.alternate;
  46680. commitWork(_current, nextEffect);
  46681. break;
  46682. }
  46683. case Hydrating:
  46684. {
  46685. nextEffect.effectTag &= ~Hydrating;
  46686. break;
  46687. }
  46688. case HydratingAndUpdate:
  46689. {
  46690. nextEffect.effectTag &= ~Hydrating; // Update
  46691. var _current2 = nextEffect.alternate;
  46692. commitWork(_current2, nextEffect);
  46693. break;
  46694. }
  46695. case Update:
  46696. {
  46697. var _current3 = nextEffect.alternate;
  46698. commitWork(_current3, nextEffect);
  46699. break;
  46700. }
  46701. case Deletion:
  46702. {
  46703. commitDeletion(root, nextEffect, renderPriorityLevel);
  46704. break;
  46705. }
  46706. } // TODO: Only record a mutation effect if primaryEffectTag is non-zero.
  46707. recordEffect();
  46708. resetCurrentFiber();
  46709. nextEffect = nextEffect.nextEffect;
  46710. }
  46711. }
  46712. function commitLayoutEffects(root, committedExpirationTime) {
  46713. // TODO: Should probably move the bulk of this function to commitWork.
  46714. while (nextEffect !== null) {
  46715. setCurrentFiber(nextEffect);
  46716. var effectTag = nextEffect.effectTag;
  46717. if (effectTag & (Update | Callback)) {
  46718. recordEffect();
  46719. var current = nextEffect.alternate;
  46720. commitLifeCycles(root, current, nextEffect);
  46721. }
  46722. if (effectTag & Ref) {
  46723. recordEffect();
  46724. commitAttachRef(nextEffect);
  46725. }
  46726. resetCurrentFiber();
  46727. nextEffect = nextEffect.nextEffect;
  46728. }
  46729. }
  46730. function flushPassiveEffects() {
  46731. if (pendingPassiveEffectsRenderPriority !== NoPriority) {
  46732. var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority ? NormalPriority : pendingPassiveEffectsRenderPriority;
  46733. pendingPassiveEffectsRenderPriority = NoPriority;
  46734. return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
  46735. }
  46736. }
  46737. function flushPassiveEffectsImpl() {
  46738. if (rootWithPendingPassiveEffects === null) {
  46739. return false;
  46740. }
  46741. var root = rootWithPendingPassiveEffects;
  46742. var expirationTime = pendingPassiveEffectsExpirationTime;
  46743. rootWithPendingPassiveEffects = null;
  46744. pendingPassiveEffectsExpirationTime = NoWork;
  46745. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  46746. {
  46747. throw Error( "Cannot flush passive effects while already rendering." );
  46748. }
  46749. }
  46750. var prevExecutionContext = executionContext;
  46751. executionContext |= CommitContext;
  46752. var prevInteractions = pushInteractions(root);
  46753. {
  46754. // Note: This currently assumes there are no passive effects on the root fiber
  46755. // because the root is not part of its own effect list.
  46756. // This could change in the future.
  46757. var _effect2 = root.current.firstEffect;
  46758. while (_effect2 !== null) {
  46759. {
  46760. setCurrentFiber(_effect2);
  46761. invokeGuardedCallback(null, commitPassiveHookEffects, null, _effect2);
  46762. if (hasCaughtError()) {
  46763. if (!(_effect2 !== null)) {
  46764. {
  46765. throw Error( "Should be working on an effect." );
  46766. }
  46767. }
  46768. var _error5 = clearCaughtError();
  46769. captureCommitPhaseError(_effect2, _error5);
  46770. }
  46771. resetCurrentFiber();
  46772. }
  46773. var nextNextEffect = _effect2.nextEffect; // Remove nextEffect pointer to assist GC
  46774. _effect2.nextEffect = null;
  46775. _effect2 = nextNextEffect;
  46776. }
  46777. }
  46778. {
  46779. popInteractions(prevInteractions);
  46780. finishPendingInteractions(root, expirationTime);
  46781. }
  46782. executionContext = prevExecutionContext;
  46783. flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this
  46784. // exceeds the limit, we'll fire a warning.
  46785. nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  46786. return true;
  46787. }
  46788. function isAlreadyFailedLegacyErrorBoundary(instance) {
  46789. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  46790. }
  46791. function markLegacyErrorBoundaryAsFailed(instance) {
  46792. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  46793. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  46794. } else {
  46795. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  46796. }
  46797. }
  46798. function prepareToThrowUncaughtError(error) {
  46799. if (!hasUncaughtError) {
  46800. hasUncaughtError = true;
  46801. firstUncaughtError = error;
  46802. }
  46803. }
  46804. var onUncaughtError = prepareToThrowUncaughtError;
  46805. function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  46806. var errorInfo = createCapturedValue(error, sourceFiber);
  46807. var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
  46808. enqueueUpdate(rootFiber, update);
  46809. var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);
  46810. if (root !== null) {
  46811. ensureRootIsScheduled(root);
  46812. schedulePendingInteractions(root, Sync);
  46813. }
  46814. }
  46815. function captureCommitPhaseError(sourceFiber, error) {
  46816. if (sourceFiber.tag === HostRoot) {
  46817. // Error was thrown at the root. There is no parent, so the root
  46818. // itself should capture it.
  46819. captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
  46820. return;
  46821. }
  46822. var fiber = sourceFiber.return;
  46823. while (fiber !== null) {
  46824. if (fiber.tag === HostRoot) {
  46825. captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
  46826. return;
  46827. } else if (fiber.tag === ClassComponent) {
  46828. var ctor = fiber.type;
  46829. var instance = fiber.stateNode;
  46830. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  46831. var errorInfo = createCapturedValue(error, sourceFiber);
  46832. var update = createClassErrorUpdate(fiber, errorInfo, // TODO: This is always sync
  46833. Sync);
  46834. enqueueUpdate(fiber, update);
  46835. var root = markUpdateTimeFromFiberToRoot(fiber, Sync);
  46836. if (root !== null) {
  46837. ensureRootIsScheduled(root);
  46838. schedulePendingInteractions(root, Sync);
  46839. }
  46840. return;
  46841. }
  46842. }
  46843. fiber = fiber.return;
  46844. }
  46845. }
  46846. function pingSuspendedRoot(root, thenable, suspendedTime) {
  46847. var pingCache = root.pingCache;
  46848. if (pingCache !== null) {
  46849. // The thenable resolved, so we no longer need to memoize, because it will
  46850. // never be thrown again.
  46851. pingCache.delete(thenable);
  46852. }
  46853. if (workInProgressRoot === root && renderExpirationTime$1 === suspendedTime) {
  46854. // Received a ping at the same priority level at which we're currently
  46855. // rendering. We might want to restart this render. This should mirror
  46856. // the logic of whether or not a root suspends once it completes.
  46857. // TODO: If we're rendering sync either due to Sync, Batched or expired,
  46858. // we should probably never restart.
  46859. // If we're suspended with delay, we'll always suspend so we can always
  46860. // restart. If we're suspended without any updates, it might be a retry.
  46861. // If it's early in the retry we can restart. We can't know for sure
  46862. // whether we'll eventually process an update during this render pass,
  46863. // but it's somewhat unlikely that we get to a ping before that, since
  46864. // getting to the root most update is usually very fast.
  46865. if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
  46866. // Restart from the root. Don't need to schedule a ping because
  46867. // we're already working on this tree.
  46868. prepareFreshStack(root, renderExpirationTime$1);
  46869. } else {
  46870. // Even though we can't restart right now, we might get an
  46871. // opportunity later. So we mark this render as having a ping.
  46872. workInProgressRootHasPendingPing = true;
  46873. }
  46874. return;
  46875. }
  46876. if (!isRootSuspendedAtTime(root, suspendedTime)) {
  46877. // The root is no longer suspended at this time.
  46878. return;
  46879. }
  46880. var lastPingedTime = root.lastPingedTime;
  46881. if (lastPingedTime !== NoWork && lastPingedTime < suspendedTime) {
  46882. // There's already a lower priority ping scheduled.
  46883. return;
  46884. } // Mark the time at which this ping was scheduled.
  46885. root.lastPingedTime = suspendedTime;
  46886. ensureRootIsScheduled(root);
  46887. schedulePendingInteractions(root, suspendedTime);
  46888. }
  46889. function retryTimedOutBoundary(boundaryFiber, retryTime) {
  46890. // The boundary fiber (a Suspense component or SuspenseList component)
  46891. // previously was rendered in its fallback state. One of the promises that
  46892. // suspended it has resolved, which means at least part of the tree was
  46893. // likely unblocked. Try rendering again, at a new expiration time.
  46894. if (retryTime === NoWork) {
  46895. var suspenseConfig = null; // Retries don't carry over the already committed update.
  46896. var currentTime = requestCurrentTimeForUpdate();
  46897. retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
  46898. } // TODO: Special case idle priority?
  46899. var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
  46900. if (root !== null) {
  46901. ensureRootIsScheduled(root);
  46902. schedulePendingInteractions(root, retryTime);
  46903. }
  46904. }
  46905. function resolveRetryThenable(boundaryFiber, thenable) {
  46906. var retryTime = NoWork; // Default
  46907. var retryCache;
  46908. {
  46909. retryCache = boundaryFiber.stateNode;
  46910. }
  46911. if (retryCache !== null) {
  46912. // The thenable resolved, so we no longer need to memoize, because it will
  46913. // never be thrown again.
  46914. retryCache.delete(thenable);
  46915. }
  46916. retryTimedOutBoundary(boundaryFiber, retryTime);
  46917. } // Computes the next Just Noticeable Difference (JND) boundary.
  46918. // The theory is that a person can't tell the difference between small differences in time.
  46919. // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
  46920. // difference in the experience. However, waiting for longer might mean that we can avoid
  46921. // showing an intermediate loading state. The longer we have already waited, the harder it
  46922. // is to tell small differences in time. Therefore, the longer we've already waited,
  46923. // the longer we can wait additionally. At some point we have to give up though.
  46924. // We pick a train model where the next boundary commits at a consistent schedule.
  46925. // These particular numbers are vague estimates. We expect to adjust them based on research.
  46926. function jnd(timeElapsed) {
  46927. return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
  46928. }
  46929. function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
  46930. var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;
  46931. if (busyMinDurationMs <= 0) {
  46932. return 0;
  46933. }
  46934. var busyDelayMs = suspenseConfig.busyDelayMs | 0; // Compute the time until this render pass would expire.
  46935. var currentTimeMs = now();
  46936. var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
  46937. var timeElapsed = currentTimeMs - eventTimeMs;
  46938. if (timeElapsed <= busyDelayMs) {
  46939. // If we haven't yet waited longer than the initial delay, we don't
  46940. // have to wait any additional time.
  46941. return 0;
  46942. }
  46943. var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed; // This is the value that is passed to `setTimeout`.
  46944. return msUntilTimeout;
  46945. }
  46946. function checkForNestedUpdates() {
  46947. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  46948. nestedUpdateCount = 0;
  46949. rootWithNestedUpdates = null;
  46950. {
  46951. {
  46952. 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." );
  46953. }
  46954. }
  46955. }
  46956. {
  46957. if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
  46958. nestedPassiveUpdateCount = 0;
  46959. 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.');
  46960. }
  46961. }
  46962. }
  46963. function flushRenderPhaseStrictModeWarningsInDEV() {
  46964. {
  46965. ReactStrictModeWarnings.flushLegacyContextWarning();
  46966. {
  46967. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  46968. }
  46969. }
  46970. }
  46971. function stopFinishedWorkLoopTimer() {
  46972. var didCompleteRoot = true;
  46973. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  46974. interruptedBy = null;
  46975. }
  46976. function stopInterruptedWorkLoopTimer() {
  46977. // TODO: Track which fiber caused the interruption.
  46978. var didCompleteRoot = false;
  46979. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  46980. interruptedBy = null;
  46981. }
  46982. function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
  46983. if ( workInProgressRoot !== null && updateExpirationTime > renderExpirationTime$1) {
  46984. interruptedBy = fiberThatReceivedUpdate;
  46985. }
  46986. }
  46987. var didWarnStateUpdateForUnmountedComponent = null;
  46988. function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  46989. {
  46990. var tag = fiber.tag;
  46991. if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
  46992. // Only warn for user-defined components, not internal ones like Suspense.
  46993. return;
  46994. }
  46995. // the problematic code almost always lies inside that component.
  46996. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  46997. if (didWarnStateUpdateForUnmountedComponent !== null) {
  46998. if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
  46999. return;
  47000. }
  47001. didWarnStateUpdateForUnmountedComponent.add(componentName);
  47002. } else {
  47003. didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
  47004. }
  47005. 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));
  47006. }
  47007. }
  47008. var beginWork$1;
  47009. {
  47010. var dummyFiber = null;
  47011. beginWork$1 = function (current, unitOfWork, expirationTime) {
  47012. // If a component throws an error, we replay it again in a synchronously
  47013. // dispatched event, so that the debugger will treat it as an uncaught
  47014. // error See ReactErrorUtils for more information.
  47015. // Before entering the begin phase, copy the work-in-progress onto a dummy
  47016. // fiber. If beginWork throws, we'll use this to reset the state.
  47017. var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
  47018. try {
  47019. return beginWork(current, unitOfWork, expirationTime);
  47020. } catch (originalError) {
  47021. if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
  47022. // Don't replay promises. Treat everything else like an error.
  47023. throw originalError;
  47024. } // Keep this code in sync with handleError; any changes here must have
  47025. // corresponding changes there.
  47026. resetContextDependencies();
  47027. resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
  47028. // same fiber again.
  47029. // Unwind the failed stack frame
  47030. unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber.
  47031. assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
  47032. if ( unitOfWork.mode & ProfileMode) {
  47033. // Reset the profiler timer.
  47034. startProfilerTimer(unitOfWork);
  47035. } // Run beginWork again.
  47036. invokeGuardedCallback(null, beginWork, null, current, unitOfWork, expirationTime);
  47037. if (hasCaughtError()) {
  47038. var replayError = clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
  47039. // Rethrow this error instead of the original one.
  47040. throw replayError;
  47041. } else {
  47042. // This branch is reachable if the render phase is impure.
  47043. throw originalError;
  47044. }
  47045. }
  47046. };
  47047. }
  47048. var didWarnAboutUpdateInRender = false;
  47049. var didWarnAboutUpdateInRenderForAnotherComponent;
  47050. {
  47051. didWarnAboutUpdateInRenderForAnotherComponent = new Set();
  47052. }
  47053. function warnAboutRenderPhaseUpdatesInDEV(fiber) {
  47054. {
  47055. if (isRendering && (executionContext & RenderContext) !== NoContext) {
  47056. switch (fiber.tag) {
  47057. case FunctionComponent:
  47058. case ForwardRef:
  47059. case SimpleMemoComponent:
  47060. {
  47061. var renderingComponentName = workInProgress && getComponentName(workInProgress.type) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.
  47062. var dedupeKey = renderingComponentName;
  47063. if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
  47064. didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
  47065. var setStateComponentName = getComponentName(fiber.type) || 'Unknown';
  47066. 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);
  47067. }
  47068. break;
  47069. }
  47070. case ClassComponent:
  47071. {
  47072. if (!didWarnAboutUpdateInRender) {
  47073. error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');
  47074. didWarnAboutUpdateInRender = true;
  47075. }
  47076. break;
  47077. }
  47078. }
  47079. }
  47080. }
  47081. } // a 'shared' variable that changes when act() opens/closes in tests.
  47082. var IsThisRendererActing = {
  47083. current: false
  47084. };
  47085. function warnIfNotScopedWithMatchingAct(fiber) {
  47086. {
  47087. if ( IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
  47088. 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));
  47089. }
  47090. }
  47091. }
  47092. function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  47093. {
  47094. if ( (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  47095. 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));
  47096. }
  47097. }
  47098. }
  47099. function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  47100. {
  47101. if ( executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  47102. 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));
  47103. }
  47104. }
  47105. }
  47106. var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler.
  47107. var didWarnAboutUnmockedScheduler = false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked
  47108. // scheduler is the actual recommendation. The alternative could be a testing build,
  47109. // a new lib, or whatever; we dunno just yet. This message is for early adopters
  47110. // to get their tests right.
  47111. function warnIfUnmockedScheduler(fiber) {
  47112. {
  47113. if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
  47114. if (fiber.mode & BlockingMode || fiber.mode & ConcurrentMode) {
  47115. didWarnAboutUnmockedScheduler = true;
  47116. 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');
  47117. }
  47118. }
  47119. }
  47120. }
  47121. function computeThreadID(root, expirationTime) {
  47122. // Interaction threads are unique per root and expiration time.
  47123. return expirationTime * 1000 + root.interactionThreadID;
  47124. }
  47125. function markSpawnedWork(expirationTime) {
  47126. if (spawnedWorkDuringRender === null) {
  47127. spawnedWorkDuringRender = [expirationTime];
  47128. } else {
  47129. spawnedWorkDuringRender.push(expirationTime);
  47130. }
  47131. }
  47132. function scheduleInteractions(root, expirationTime, interactions) {
  47133. if (interactions.size > 0) {
  47134. var pendingInteractionMap = root.pendingInteractionMap;
  47135. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  47136. if (pendingInteractions != null) {
  47137. interactions.forEach(function (interaction) {
  47138. if (!pendingInteractions.has(interaction)) {
  47139. // Update the pending async work count for previously unscheduled interaction.
  47140. interaction.__count++;
  47141. }
  47142. pendingInteractions.add(interaction);
  47143. });
  47144. } else {
  47145. pendingInteractionMap.set(expirationTime, new Set(interactions)); // Update the pending async work count for the current interactions.
  47146. interactions.forEach(function (interaction) {
  47147. interaction.__count++;
  47148. });
  47149. }
  47150. var subscriber = tracing.__subscriberRef.current;
  47151. if (subscriber !== null) {
  47152. var threadID = computeThreadID(root, expirationTime);
  47153. subscriber.onWorkScheduled(interactions, threadID);
  47154. }
  47155. }
  47156. }
  47157. function schedulePendingInteractions(root, expirationTime) {
  47158. scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
  47159. }
  47160. function startWorkOnPendingInteractions(root, expirationTime) {
  47161. // we can accurately attribute time spent working on it, And so that cascading
  47162. // work triggered during the render phase will be associated with it.
  47163. var interactions = new Set();
  47164. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  47165. if (scheduledExpirationTime >= expirationTime) {
  47166. scheduledInteractions.forEach(function (interaction) {
  47167. return interactions.add(interaction);
  47168. });
  47169. }
  47170. }); // Store the current set of interactions on the FiberRoot for a few reasons:
  47171. // We can re-use it in hot functions like performConcurrentWorkOnRoot()
  47172. // without having to recalculate it. We will also use it in commitWork() to
  47173. // pass to any Profiler onRender() hooks. This also provides DevTools with a
  47174. // way to access it when the onCommitRoot() hook is called.
  47175. root.memoizedInteractions = interactions;
  47176. if (interactions.size > 0) {
  47177. var subscriber = tracing.__subscriberRef.current;
  47178. if (subscriber !== null) {
  47179. var threadID = computeThreadID(root, expirationTime);
  47180. try {
  47181. subscriber.onWorkStarted(interactions, threadID);
  47182. } catch (error) {
  47183. // If the subscriber throws, rethrow it in a separate task
  47184. scheduleCallback(ImmediatePriority, function () {
  47185. throw error;
  47186. });
  47187. }
  47188. }
  47189. }
  47190. }
  47191. function finishPendingInteractions(root, committedExpirationTime) {
  47192. var earliestRemainingTimeAfterCommit = root.firstPendingTime;
  47193. var subscriber;
  47194. try {
  47195. subscriber = tracing.__subscriberRef.current;
  47196. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  47197. var threadID = computeThreadID(root, committedExpirationTime);
  47198. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  47199. }
  47200. } catch (error) {
  47201. // If the subscriber throws, rethrow it in a separate task
  47202. scheduleCallback(ImmediatePriority, function () {
  47203. throw error;
  47204. });
  47205. } finally {
  47206. // Clear completed interactions from the pending Map.
  47207. // Unless the render was suspended or cascading work was scheduled,
  47208. // In which case– leave pending interactions until the subsequent render.
  47209. var pendingInteractionMap = root.pendingInteractionMap;
  47210. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  47211. // Only decrement the pending interaction count if we're done.
  47212. // If there's still work at the current priority,
  47213. // That indicates that we are waiting for suspense data.
  47214. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  47215. pendingInteractionMap.delete(scheduledExpirationTime);
  47216. scheduledInteractions.forEach(function (interaction) {
  47217. interaction.__count--;
  47218. if (subscriber !== null && interaction.__count === 0) {
  47219. try {
  47220. subscriber.onInteractionScheduledWorkCompleted(interaction);
  47221. } catch (error) {
  47222. // If the subscriber throws, rethrow it in a separate task
  47223. scheduleCallback(ImmediatePriority, function () {
  47224. throw error;
  47225. });
  47226. }
  47227. }
  47228. });
  47229. }
  47230. });
  47231. }
  47232. }
  47233. var onScheduleFiberRoot = null;
  47234. var onCommitFiberRoot = null;
  47235. var onCommitFiberUnmount = null;
  47236. var hasLoggedError = false;
  47237. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  47238. function injectInternals(internals) {
  47239. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  47240. // No DevTools
  47241. return false;
  47242. }
  47243. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  47244. if (hook.isDisabled) {
  47245. // This isn't a real property on the hook, but it can be set to opt out
  47246. // of DevTools integration and associated warnings and logs.
  47247. // https://github.com/facebook/react/issues/3877
  47248. return true;
  47249. }
  47250. if (!hook.supportsFiber) {
  47251. {
  47252. 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');
  47253. } // DevTools exists, even though it doesn't support Fiber.
  47254. return true;
  47255. }
  47256. try {
  47257. var rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.
  47258. if (true) {
  47259. // Only used by Fast Refresh
  47260. if (typeof hook.onScheduleFiberRoot === 'function') {
  47261. onScheduleFiberRoot = function (root, children) {
  47262. try {
  47263. hook.onScheduleFiberRoot(rendererID, root, children);
  47264. } catch (err) {
  47265. if ( true && !hasLoggedError) {
  47266. hasLoggedError = true;
  47267. error('React instrumentation encountered an error: %s', err);
  47268. }
  47269. }
  47270. };
  47271. }
  47272. }
  47273. onCommitFiberRoot = function (root, expirationTime) {
  47274. try {
  47275. var didError = (root.current.effectTag & DidCapture) === DidCapture;
  47276. if (enableProfilerTimer) {
  47277. var currentTime = getCurrentTime();
  47278. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
  47279. hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
  47280. } else {
  47281. hook.onCommitFiberRoot(rendererID, root, undefined, didError);
  47282. }
  47283. } catch (err) {
  47284. if (true) {
  47285. if (!hasLoggedError) {
  47286. hasLoggedError = true;
  47287. error('React instrumentation encountered an error: %s', err);
  47288. }
  47289. }
  47290. }
  47291. };
  47292. onCommitFiberUnmount = function (fiber) {
  47293. try {
  47294. hook.onCommitFiberUnmount(rendererID, fiber);
  47295. } catch (err) {
  47296. if (true) {
  47297. if (!hasLoggedError) {
  47298. hasLoggedError = true;
  47299. error('React instrumentation encountered an error: %s', err);
  47300. }
  47301. }
  47302. }
  47303. };
  47304. } catch (err) {
  47305. // Catch all errors because it is unsafe to throw during initialization.
  47306. {
  47307. error('React instrumentation encountered an error: %s.', err);
  47308. }
  47309. } // DevTools exists
  47310. return true;
  47311. }
  47312. function onScheduleRoot(root, children) {
  47313. if (typeof onScheduleFiberRoot === 'function') {
  47314. onScheduleFiberRoot(root, children);
  47315. }
  47316. }
  47317. function onCommitRoot(root, expirationTime) {
  47318. if (typeof onCommitFiberRoot === 'function') {
  47319. onCommitFiberRoot(root, expirationTime);
  47320. }
  47321. }
  47322. function onCommitUnmount(fiber) {
  47323. if (typeof onCommitFiberUnmount === 'function') {
  47324. onCommitFiberUnmount(fiber);
  47325. }
  47326. }
  47327. var hasBadMapPolyfill;
  47328. {
  47329. hasBadMapPolyfill = false;
  47330. try {
  47331. var nonExtensibleObject = Object.preventExtensions({});
  47332. var testMap = new Map([[nonExtensibleObject, null]]);
  47333. var testSet = new Set([nonExtensibleObject]); // This is necessary for Rollup to not consider these unused.
  47334. // https://github.com/rollup/rollup/issues/1771
  47335. // TODO: we can remove these if Rollup fixes the bug.
  47336. testMap.set(0, 0);
  47337. testSet.add(0);
  47338. } catch (e) {
  47339. // TODO: Consider warning about bad polyfills
  47340. hasBadMapPolyfill = true;
  47341. }
  47342. }
  47343. var debugCounter = 1;
  47344. function FiberNode(tag, pendingProps, key, mode) {
  47345. // Instance
  47346. this.tag = tag;
  47347. this.key = key;
  47348. this.elementType = null;
  47349. this.type = null;
  47350. this.stateNode = null; // Fiber
  47351. this.return = null;
  47352. this.child = null;
  47353. this.sibling = null;
  47354. this.index = 0;
  47355. this.ref = null;
  47356. this.pendingProps = pendingProps;
  47357. this.memoizedProps = null;
  47358. this.updateQueue = null;
  47359. this.memoizedState = null;
  47360. this.dependencies = null;
  47361. this.mode = mode; // Effects
  47362. this.effectTag = NoEffect;
  47363. this.nextEffect = null;
  47364. this.firstEffect = null;
  47365. this.lastEffect = null;
  47366. this.expirationTime = NoWork;
  47367. this.childExpirationTime = NoWork;
  47368. this.alternate = null;
  47369. {
  47370. // Note: The following is done to avoid a v8 performance cliff.
  47371. //
  47372. // Initializing the fields below to smis and later updating them with
  47373. // double values will cause Fibers to end up having separate shapes.
  47374. // This behavior/bug has something to do with Object.preventExtension().
  47375. // Fortunately this only impacts DEV builds.
  47376. // Unfortunately it makes React unusably slow for some applications.
  47377. // To work around this, initialize the fields below with doubles.
  47378. //
  47379. // Learn more about this here:
  47380. // https://github.com/facebook/react/issues/14365
  47381. // https://bugs.chromium.org/p/v8/issues/detail?id=8538
  47382. this.actualDuration = Number.NaN;
  47383. this.actualStartTime = Number.NaN;
  47384. this.selfBaseDuration = Number.NaN;
  47385. this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
  47386. // This won't trigger the performance cliff mentioned above,
  47387. // and it simplifies other profiler code (including DevTools).
  47388. this.actualDuration = 0;
  47389. this.actualStartTime = -1;
  47390. this.selfBaseDuration = 0;
  47391. this.treeBaseDuration = 0;
  47392. } // This is normally DEV-only except www when it adds listeners.
  47393. // TODO: remove the User Timing integration in favor of Root Events.
  47394. {
  47395. this._debugID = debugCounter++;
  47396. this._debugIsCurrentlyTiming = false;
  47397. }
  47398. {
  47399. this._debugSource = null;
  47400. this._debugOwner = null;
  47401. this._debugNeedsRemount = false;
  47402. this._debugHookTypes = null;
  47403. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  47404. Object.preventExtensions(this);
  47405. }
  47406. }
  47407. } // This is a constructor function, rather than a POJO constructor, still
  47408. // please ensure we do the following:
  47409. // 1) Nobody should add any instance methods on this. Instance methods can be
  47410. // more difficult to predict when they get optimized and they are almost
  47411. // never inlined properly in static compilers.
  47412. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  47413. // always know when it is a fiber.
  47414. // 3) We might want to experiment with using numeric keys since they are easier
  47415. // to optimize in a non-JIT environment.
  47416. // 4) We can easily go from a constructor to a createFiber object literal if that
  47417. // is faster.
  47418. // 5) It should be easy to port this to a C struct and keep a C implementation
  47419. // compatible.
  47420. var createFiber = function (tag, pendingProps, key, mode) {
  47421. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  47422. return new FiberNode(tag, pendingProps, key, mode);
  47423. };
  47424. function shouldConstruct(Component) {
  47425. var prototype = Component.prototype;
  47426. return !!(prototype && prototype.isReactComponent);
  47427. }
  47428. function isSimpleFunctionComponent(type) {
  47429. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  47430. }
  47431. function resolveLazyComponentTag(Component) {
  47432. if (typeof Component === 'function') {
  47433. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  47434. } else if (Component !== undefined && Component !== null) {
  47435. var $$typeof = Component.$$typeof;
  47436. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  47437. return ForwardRef;
  47438. }
  47439. if ($$typeof === REACT_MEMO_TYPE) {
  47440. return MemoComponent;
  47441. }
  47442. }
  47443. return IndeterminateComponent;
  47444. } // This is used to create an alternate fiber to do work on.
  47445. function createWorkInProgress(current, pendingProps) {
  47446. var workInProgress = current.alternate;
  47447. if (workInProgress === null) {
  47448. // We use a double buffering pooling technique because we know that we'll
  47449. // only ever need at most two versions of a tree. We pool the "other" unused
  47450. // node that we're free to reuse. This is lazily created to avoid allocating
  47451. // extra objects for things that are never updated. It also allow us to
  47452. // reclaim the extra memory if needed.
  47453. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  47454. workInProgress.elementType = current.elementType;
  47455. workInProgress.type = current.type;
  47456. workInProgress.stateNode = current.stateNode;
  47457. {
  47458. // DEV-only fields
  47459. {
  47460. workInProgress._debugID = current._debugID;
  47461. }
  47462. workInProgress._debugSource = current._debugSource;
  47463. workInProgress._debugOwner = current._debugOwner;
  47464. workInProgress._debugHookTypes = current._debugHookTypes;
  47465. }
  47466. workInProgress.alternate = current;
  47467. current.alternate = workInProgress;
  47468. } else {
  47469. workInProgress.pendingProps = pendingProps; // We already have an alternate.
  47470. // Reset the effect tag.
  47471. workInProgress.effectTag = NoEffect; // The effect list is no longer valid.
  47472. workInProgress.nextEffect = null;
  47473. workInProgress.firstEffect = null;
  47474. workInProgress.lastEffect = null;
  47475. {
  47476. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  47477. // This prevents time from endlessly accumulating in new commits.
  47478. // This has the downside of resetting values for different priority renders,
  47479. // But works for yielding (the common case) and should support resuming.
  47480. workInProgress.actualDuration = 0;
  47481. workInProgress.actualStartTime = -1;
  47482. }
  47483. }
  47484. workInProgress.childExpirationTime = current.childExpirationTime;
  47485. workInProgress.expirationTime = current.expirationTime;
  47486. workInProgress.child = current.child;
  47487. workInProgress.memoizedProps = current.memoizedProps;
  47488. workInProgress.memoizedState = current.memoizedState;
  47489. workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
  47490. // it cannot be shared with the current fiber.
  47491. var currentDependencies = current.dependencies;
  47492. workInProgress.dependencies = currentDependencies === null ? null : {
  47493. expirationTime: currentDependencies.expirationTime,
  47494. firstContext: currentDependencies.firstContext,
  47495. responders: currentDependencies.responders
  47496. }; // These will be overridden during the parent's reconciliation
  47497. workInProgress.sibling = current.sibling;
  47498. workInProgress.index = current.index;
  47499. workInProgress.ref = current.ref;
  47500. {
  47501. workInProgress.selfBaseDuration = current.selfBaseDuration;
  47502. workInProgress.treeBaseDuration = current.treeBaseDuration;
  47503. }
  47504. {
  47505. workInProgress._debugNeedsRemount = current._debugNeedsRemount;
  47506. switch (workInProgress.tag) {
  47507. case IndeterminateComponent:
  47508. case FunctionComponent:
  47509. case SimpleMemoComponent:
  47510. workInProgress.type = resolveFunctionForHotReloading(current.type);
  47511. break;
  47512. case ClassComponent:
  47513. workInProgress.type = resolveClassForHotReloading(current.type);
  47514. break;
  47515. case ForwardRef:
  47516. workInProgress.type = resolveForwardRefForHotReloading(current.type);
  47517. break;
  47518. }
  47519. }
  47520. return workInProgress;
  47521. } // Used to reuse a Fiber for a second pass.
  47522. function resetWorkInProgress(workInProgress, renderExpirationTime) {
  47523. // This resets the Fiber to what createFiber or createWorkInProgress would
  47524. // have set the values to before during the first pass. Ideally this wouldn't
  47525. // be necessary but unfortunately many code paths reads from the workInProgress
  47526. // when they should be reading from current and writing to workInProgress.
  47527. // We assume pendingProps, index, key, ref, return are still untouched to
  47528. // avoid doing another reconciliation.
  47529. // Reset the effect tag but keep any Placement tags, since that's something
  47530. // that child fiber is setting, not the reconciliation.
  47531. workInProgress.effectTag &= Placement; // The effect list is no longer valid.
  47532. workInProgress.nextEffect = null;
  47533. workInProgress.firstEffect = null;
  47534. workInProgress.lastEffect = null;
  47535. var current = workInProgress.alternate;
  47536. if (current === null) {
  47537. // Reset to createFiber's initial values.
  47538. workInProgress.childExpirationTime = NoWork;
  47539. workInProgress.expirationTime = renderExpirationTime;
  47540. workInProgress.child = null;
  47541. workInProgress.memoizedProps = null;
  47542. workInProgress.memoizedState = null;
  47543. workInProgress.updateQueue = null;
  47544. workInProgress.dependencies = null;
  47545. {
  47546. // Note: We don't reset the actualTime counts. It's useful to accumulate
  47547. // actual time across multiple render passes.
  47548. workInProgress.selfBaseDuration = 0;
  47549. workInProgress.treeBaseDuration = 0;
  47550. }
  47551. } else {
  47552. // Reset to the cloned values that createWorkInProgress would've.
  47553. workInProgress.childExpirationTime = current.childExpirationTime;
  47554. workInProgress.expirationTime = current.expirationTime;
  47555. workInProgress.child = current.child;
  47556. workInProgress.memoizedProps = current.memoizedProps;
  47557. workInProgress.memoizedState = current.memoizedState;
  47558. workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
  47559. // it cannot be shared with the current fiber.
  47560. var currentDependencies = current.dependencies;
  47561. workInProgress.dependencies = currentDependencies === null ? null : {
  47562. expirationTime: currentDependencies.expirationTime,
  47563. firstContext: currentDependencies.firstContext,
  47564. responders: currentDependencies.responders
  47565. };
  47566. {
  47567. // Note: We don't reset the actualTime counts. It's useful to accumulate
  47568. // actual time across multiple render passes.
  47569. workInProgress.selfBaseDuration = current.selfBaseDuration;
  47570. workInProgress.treeBaseDuration = current.treeBaseDuration;
  47571. }
  47572. }
  47573. return workInProgress;
  47574. }
  47575. function createHostRootFiber(tag) {
  47576. var mode;
  47577. if (tag === ConcurrentRoot) {
  47578. mode = ConcurrentMode | BlockingMode | StrictMode;
  47579. } else if (tag === BlockingRoot) {
  47580. mode = BlockingMode | StrictMode;
  47581. } else {
  47582. mode = NoMode;
  47583. }
  47584. if ( isDevToolsPresent) {
  47585. // Always collect profile timings when DevTools are present.
  47586. // This enables DevTools to start capturing timing at any point–
  47587. // Without some nodes in the tree having empty base times.
  47588. mode |= ProfileMode;
  47589. }
  47590. return createFiber(HostRoot, null, null, mode);
  47591. }
  47592. function createFiberFromTypeAndProps(type, // React$ElementType
  47593. key, pendingProps, owner, mode, expirationTime) {
  47594. var fiber;
  47595. var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  47596. var resolvedType = type;
  47597. if (typeof type === 'function') {
  47598. if (shouldConstruct(type)) {
  47599. fiberTag = ClassComponent;
  47600. {
  47601. resolvedType = resolveClassForHotReloading(resolvedType);
  47602. }
  47603. } else {
  47604. {
  47605. resolvedType = resolveFunctionForHotReloading(resolvedType);
  47606. }
  47607. }
  47608. } else if (typeof type === 'string') {
  47609. fiberTag = HostComponent;
  47610. } else {
  47611. getTag: switch (type) {
  47612. case REACT_FRAGMENT_TYPE:
  47613. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  47614. case REACT_CONCURRENT_MODE_TYPE:
  47615. fiberTag = Mode;
  47616. mode |= ConcurrentMode | BlockingMode | StrictMode;
  47617. break;
  47618. case REACT_STRICT_MODE_TYPE:
  47619. fiberTag = Mode;
  47620. mode |= StrictMode;
  47621. break;
  47622. case REACT_PROFILER_TYPE:
  47623. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  47624. case REACT_SUSPENSE_TYPE:
  47625. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  47626. case REACT_SUSPENSE_LIST_TYPE:
  47627. return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);
  47628. default:
  47629. {
  47630. if (typeof type === 'object' && type !== null) {
  47631. switch (type.$$typeof) {
  47632. case REACT_PROVIDER_TYPE:
  47633. fiberTag = ContextProvider;
  47634. break getTag;
  47635. case REACT_CONTEXT_TYPE:
  47636. // This is a consumer
  47637. fiberTag = ContextConsumer;
  47638. break getTag;
  47639. case REACT_FORWARD_REF_TYPE:
  47640. fiberTag = ForwardRef;
  47641. {
  47642. resolvedType = resolveForwardRefForHotReloading(resolvedType);
  47643. }
  47644. break getTag;
  47645. case REACT_MEMO_TYPE:
  47646. fiberTag = MemoComponent;
  47647. break getTag;
  47648. case REACT_LAZY_TYPE:
  47649. fiberTag = LazyComponent;
  47650. resolvedType = null;
  47651. break getTag;
  47652. case REACT_BLOCK_TYPE:
  47653. fiberTag = Block;
  47654. break getTag;
  47655. }
  47656. }
  47657. var info = '';
  47658. {
  47659. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  47660. 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.';
  47661. }
  47662. var ownerName = owner ? getComponentName(owner.type) : null;
  47663. if (ownerName) {
  47664. info += '\n\nCheck the render method of `' + ownerName + '`.';
  47665. }
  47666. }
  47667. {
  47668. {
  47669. 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 );
  47670. }
  47671. }
  47672. }
  47673. }
  47674. }
  47675. fiber = createFiber(fiberTag, pendingProps, key, mode);
  47676. fiber.elementType = type;
  47677. fiber.type = resolvedType;
  47678. fiber.expirationTime = expirationTime;
  47679. return fiber;
  47680. }
  47681. function createFiberFromElement(element, mode, expirationTime) {
  47682. var owner = null;
  47683. {
  47684. owner = element._owner;
  47685. }
  47686. var type = element.type;
  47687. var key = element.key;
  47688. var pendingProps = element.props;
  47689. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  47690. {
  47691. fiber._debugSource = element._source;
  47692. fiber._debugOwner = element._owner;
  47693. }
  47694. return fiber;
  47695. }
  47696. function createFiberFromFragment(elements, mode, expirationTime, key) {
  47697. var fiber = createFiber(Fragment, elements, key, mode);
  47698. fiber.expirationTime = expirationTime;
  47699. return fiber;
  47700. }
  47701. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  47702. {
  47703. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  47704. error('Profiler must specify an "id" string and "onRender" function as props');
  47705. }
  47706. }
  47707. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  47708. fiber.elementType = REACT_PROFILER_TYPE;
  47709. fiber.type = REACT_PROFILER_TYPE;
  47710. fiber.expirationTime = expirationTime;
  47711. return fiber;
  47712. }
  47713. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  47714. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  47715. // This needs to be fixed in getComponentName so that it relies on the tag
  47716. // instead.
  47717. fiber.type = REACT_SUSPENSE_TYPE;
  47718. fiber.elementType = REACT_SUSPENSE_TYPE;
  47719. fiber.expirationTime = expirationTime;
  47720. return fiber;
  47721. }
  47722. function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
  47723. var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
  47724. {
  47725. // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
  47726. // This needs to be fixed in getComponentName so that it relies on the tag
  47727. // instead.
  47728. fiber.type = REACT_SUSPENSE_LIST_TYPE;
  47729. }
  47730. fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  47731. fiber.expirationTime = expirationTime;
  47732. return fiber;
  47733. }
  47734. function createFiberFromText(content, mode, expirationTime) {
  47735. var fiber = createFiber(HostText, content, null, mode);
  47736. fiber.expirationTime = expirationTime;
  47737. return fiber;
  47738. }
  47739. function createFiberFromHostInstanceForDeletion() {
  47740. var fiber = createFiber(HostComponent, null, null, NoMode); // TODO: These should not need a type.
  47741. fiber.elementType = 'DELETED';
  47742. fiber.type = 'DELETED';
  47743. return fiber;
  47744. }
  47745. function createFiberFromPortal(portal, mode, expirationTime) {
  47746. var pendingProps = portal.children !== null ? portal.children : [];
  47747. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  47748. fiber.expirationTime = expirationTime;
  47749. fiber.stateNode = {
  47750. containerInfo: portal.containerInfo,
  47751. pendingChildren: null,
  47752. // Used by persistent updates
  47753. implementation: portal.implementation
  47754. };
  47755. return fiber;
  47756. } // Used for stashing WIP properties to replay failed work in DEV.
  47757. function assignFiberPropertiesInDEV(target, source) {
  47758. if (target === null) {
  47759. // This Fiber's initial properties will always be overwritten.
  47760. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  47761. target = createFiber(IndeterminateComponent, null, null, NoMode);
  47762. } // This is intentionally written as a list of all properties.
  47763. // We tried to use Object.assign() instead but this is called in
  47764. // the hottest path, and Object.assign() was too slow:
  47765. // https://github.com/facebook/react/issues/12502
  47766. // This code is DEV-only so size is not a concern.
  47767. target.tag = source.tag;
  47768. target.key = source.key;
  47769. target.elementType = source.elementType;
  47770. target.type = source.type;
  47771. target.stateNode = source.stateNode;
  47772. target.return = source.return;
  47773. target.child = source.child;
  47774. target.sibling = source.sibling;
  47775. target.index = source.index;
  47776. target.ref = source.ref;
  47777. target.pendingProps = source.pendingProps;
  47778. target.memoizedProps = source.memoizedProps;
  47779. target.updateQueue = source.updateQueue;
  47780. target.memoizedState = source.memoizedState;
  47781. target.dependencies = source.dependencies;
  47782. target.mode = source.mode;
  47783. target.effectTag = source.effectTag;
  47784. target.nextEffect = source.nextEffect;
  47785. target.firstEffect = source.firstEffect;
  47786. target.lastEffect = source.lastEffect;
  47787. target.expirationTime = source.expirationTime;
  47788. target.childExpirationTime = source.childExpirationTime;
  47789. target.alternate = source.alternate;
  47790. {
  47791. target.actualDuration = source.actualDuration;
  47792. target.actualStartTime = source.actualStartTime;
  47793. target.selfBaseDuration = source.selfBaseDuration;
  47794. target.treeBaseDuration = source.treeBaseDuration;
  47795. }
  47796. {
  47797. target._debugID = source._debugID;
  47798. }
  47799. target._debugSource = source._debugSource;
  47800. target._debugOwner = source._debugOwner;
  47801. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  47802. target._debugNeedsRemount = source._debugNeedsRemount;
  47803. target._debugHookTypes = source._debugHookTypes;
  47804. return target;
  47805. }
  47806. function FiberRootNode(containerInfo, tag, hydrate) {
  47807. this.tag = tag;
  47808. this.current = null;
  47809. this.containerInfo = containerInfo;
  47810. this.pendingChildren = null;
  47811. this.pingCache = null;
  47812. this.finishedExpirationTime = NoWork;
  47813. this.finishedWork = null;
  47814. this.timeoutHandle = noTimeout;
  47815. this.context = null;
  47816. this.pendingContext = null;
  47817. this.hydrate = hydrate;
  47818. this.callbackNode = null;
  47819. this.callbackPriority = NoPriority;
  47820. this.firstPendingTime = NoWork;
  47821. this.firstSuspendedTime = NoWork;
  47822. this.lastSuspendedTime = NoWork;
  47823. this.nextKnownPendingLevel = NoWork;
  47824. this.lastPingedTime = NoWork;
  47825. this.lastExpiredTime = NoWork;
  47826. {
  47827. this.interactionThreadID = tracing.unstable_getThreadID();
  47828. this.memoizedInteractions = new Set();
  47829. this.pendingInteractionMap = new Map();
  47830. }
  47831. }
  47832. function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
  47833. var root = new FiberRootNode(containerInfo, tag, hydrate);
  47834. // stateNode is any.
  47835. var uninitializedFiber = createHostRootFiber(tag);
  47836. root.current = uninitializedFiber;
  47837. uninitializedFiber.stateNode = root;
  47838. initializeUpdateQueue(uninitializedFiber);
  47839. return root;
  47840. }
  47841. function isRootSuspendedAtTime(root, expirationTime) {
  47842. var firstSuspendedTime = root.firstSuspendedTime;
  47843. var lastSuspendedTime = root.lastSuspendedTime;
  47844. return firstSuspendedTime !== NoWork && firstSuspendedTime >= expirationTime && lastSuspendedTime <= expirationTime;
  47845. }
  47846. function markRootSuspendedAtTime(root, expirationTime) {
  47847. var firstSuspendedTime = root.firstSuspendedTime;
  47848. var lastSuspendedTime = root.lastSuspendedTime;
  47849. if (firstSuspendedTime < expirationTime) {
  47850. root.firstSuspendedTime = expirationTime;
  47851. }
  47852. if (lastSuspendedTime > expirationTime || firstSuspendedTime === NoWork) {
  47853. root.lastSuspendedTime = expirationTime;
  47854. }
  47855. if (expirationTime <= root.lastPingedTime) {
  47856. root.lastPingedTime = NoWork;
  47857. }
  47858. if (expirationTime <= root.lastExpiredTime) {
  47859. root.lastExpiredTime = NoWork;
  47860. }
  47861. }
  47862. function markRootUpdatedAtTime(root, expirationTime) {
  47863. // Update the range of pending times
  47864. var firstPendingTime = root.firstPendingTime;
  47865. if (expirationTime > firstPendingTime) {
  47866. root.firstPendingTime = expirationTime;
  47867. } // Update the range of suspended times. Treat everything lower priority or
  47868. // equal to this update as unsuspended.
  47869. var firstSuspendedTime = root.firstSuspendedTime;
  47870. if (firstSuspendedTime !== NoWork) {
  47871. if (expirationTime >= firstSuspendedTime) {
  47872. // The entire suspended range is now unsuspended.
  47873. root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
  47874. } else if (expirationTime >= root.lastSuspendedTime) {
  47875. root.lastSuspendedTime = expirationTime + 1;
  47876. } // This is a pending level. Check if it's higher priority than the next
  47877. // known pending level.
  47878. if (expirationTime > root.nextKnownPendingLevel) {
  47879. root.nextKnownPendingLevel = expirationTime;
  47880. }
  47881. }
  47882. }
  47883. function markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime) {
  47884. // Update the range of pending times
  47885. root.firstPendingTime = remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or
  47886. // equal to this update as unsuspended.
  47887. if (finishedExpirationTime <= root.lastSuspendedTime) {
  47888. // The entire suspended range is now unsuspended.
  47889. root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
  47890. } else if (finishedExpirationTime <= root.firstSuspendedTime) {
  47891. // Part of the suspended range is now unsuspended. Narrow the range to
  47892. // include everything between the unsuspended time (non-inclusive) and the
  47893. // last suspended time.
  47894. root.firstSuspendedTime = finishedExpirationTime - 1;
  47895. }
  47896. if (finishedExpirationTime <= root.lastPingedTime) {
  47897. // Clear the pinged time
  47898. root.lastPingedTime = NoWork;
  47899. }
  47900. if (finishedExpirationTime <= root.lastExpiredTime) {
  47901. // Clear the expired time
  47902. root.lastExpiredTime = NoWork;
  47903. }
  47904. }
  47905. function markRootExpiredAtTime(root, expirationTime) {
  47906. var lastExpiredTime = root.lastExpiredTime;
  47907. if (lastExpiredTime === NoWork || lastExpiredTime > expirationTime) {
  47908. root.lastExpiredTime = expirationTime;
  47909. }
  47910. }
  47911. var didWarnAboutNestedUpdates;
  47912. var didWarnAboutFindNodeInStrictMode;
  47913. {
  47914. didWarnAboutNestedUpdates = false;
  47915. didWarnAboutFindNodeInStrictMode = {};
  47916. }
  47917. function getContextForSubtree(parentComponent) {
  47918. if (!parentComponent) {
  47919. return emptyContextObject;
  47920. }
  47921. var fiber = get(parentComponent);
  47922. var parentContext = findCurrentUnmaskedContext(fiber);
  47923. if (fiber.tag === ClassComponent) {
  47924. var Component = fiber.type;
  47925. if (isContextProvider(Component)) {
  47926. return processChildContext(fiber, Component, parentContext);
  47927. }
  47928. }
  47929. return parentContext;
  47930. }
  47931. function findHostInstanceWithWarning(component, methodName) {
  47932. {
  47933. var fiber = get(component);
  47934. if (fiber === undefined) {
  47935. if (typeof component.render === 'function') {
  47936. {
  47937. {
  47938. throw Error( "Unable to find node on an unmounted component." );
  47939. }
  47940. }
  47941. } else {
  47942. {
  47943. {
  47944. throw Error( "Argument appears to not be a ReactComponent. Keys: " + Object.keys(component) );
  47945. }
  47946. }
  47947. }
  47948. }
  47949. var hostFiber = findCurrentHostFiber(fiber);
  47950. if (hostFiber === null) {
  47951. return null;
  47952. }
  47953. if (hostFiber.mode & StrictMode) {
  47954. var componentName = getComponentName(fiber.type) || 'Component';
  47955. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  47956. didWarnAboutFindNodeInStrictMode[componentName] = true;
  47957. if (fiber.mode & StrictMode) {
  47958. 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));
  47959. } else {
  47960. 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));
  47961. }
  47962. }
  47963. }
  47964. return hostFiber.stateNode;
  47965. }
  47966. }
  47967. function createContainer(containerInfo, tag, hydrate, hydrationCallbacks) {
  47968. return createFiberRoot(containerInfo, tag, hydrate);
  47969. }
  47970. function updateContainer(element, container, parentComponent, callback) {
  47971. {
  47972. onScheduleRoot(container, element);
  47973. }
  47974. var current$1 = container.current;
  47975. var currentTime = requestCurrentTimeForUpdate();
  47976. {
  47977. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  47978. if ('undefined' !== typeof jest) {
  47979. warnIfUnmockedScheduler(current$1);
  47980. warnIfNotScopedWithMatchingAct(current$1);
  47981. }
  47982. }
  47983. var suspenseConfig = requestCurrentSuspenseConfig();
  47984. var expirationTime = computeExpirationForFiber(currentTime, current$1, suspenseConfig);
  47985. var context = getContextForSubtree(parentComponent);
  47986. if (container.context === null) {
  47987. container.context = context;
  47988. } else {
  47989. container.pendingContext = context;
  47990. }
  47991. {
  47992. if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
  47993. didWarnAboutNestedUpdates = true;
  47994. 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');
  47995. }
  47996. }
  47997. var update = createUpdate(expirationTime, suspenseConfig); // Caution: React DevTools currently depends on this property
  47998. // being called "element".
  47999. update.payload = {
  48000. element: element
  48001. };
  48002. callback = callback === undefined ? null : callback;
  48003. if (callback !== null) {
  48004. {
  48005. if (typeof callback !== 'function') {
  48006. error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
  48007. }
  48008. }
  48009. update.callback = callback;
  48010. }
  48011. enqueueUpdate(current$1, update);
  48012. scheduleWork(current$1, expirationTime);
  48013. return expirationTime;
  48014. }
  48015. function getPublicRootInstance(container) {
  48016. var containerFiber = container.current;
  48017. if (!containerFiber.child) {
  48018. return null;
  48019. }
  48020. switch (containerFiber.child.tag) {
  48021. case HostComponent:
  48022. return getPublicInstance(containerFiber.child.stateNode);
  48023. default:
  48024. return containerFiber.child.stateNode;
  48025. }
  48026. }
  48027. function markRetryTimeImpl(fiber, retryTime) {
  48028. var suspenseState = fiber.memoizedState;
  48029. if (suspenseState !== null && suspenseState.dehydrated !== null) {
  48030. if (suspenseState.retryTime < retryTime) {
  48031. suspenseState.retryTime = retryTime;
  48032. }
  48033. }
  48034. } // Increases the priority of thennables when they resolve within this boundary.
  48035. function markRetryTimeIfNotHydrated(fiber, retryTime) {
  48036. markRetryTimeImpl(fiber, retryTime);
  48037. var alternate = fiber.alternate;
  48038. if (alternate) {
  48039. markRetryTimeImpl(alternate, retryTime);
  48040. }
  48041. }
  48042. function attemptUserBlockingHydration$1(fiber) {
  48043. if (fiber.tag !== SuspenseComponent) {
  48044. // We ignore HostRoots here because we can't increase
  48045. // their priority and they should not suspend on I/O,
  48046. // since you have to wrap anything that might suspend in
  48047. // Suspense.
  48048. return;
  48049. }
  48050. var expTime = computeInteractiveExpiration(requestCurrentTimeForUpdate());
  48051. scheduleWork(fiber, expTime);
  48052. markRetryTimeIfNotHydrated(fiber, expTime);
  48053. }
  48054. function attemptContinuousHydration$1(fiber) {
  48055. if (fiber.tag !== SuspenseComponent) {
  48056. // We ignore HostRoots here because we can't increase
  48057. // their priority and they should not suspend on I/O,
  48058. // since you have to wrap anything that might suspend in
  48059. // Suspense.
  48060. return;
  48061. }
  48062. scheduleWork(fiber, ContinuousHydration);
  48063. markRetryTimeIfNotHydrated(fiber, ContinuousHydration);
  48064. }
  48065. function attemptHydrationAtCurrentPriority$1(fiber) {
  48066. if (fiber.tag !== SuspenseComponent) {
  48067. // We ignore HostRoots here because we can't increase
  48068. // their priority other than synchronously flush it.
  48069. return;
  48070. }
  48071. var currentTime = requestCurrentTimeForUpdate();
  48072. var expTime = computeExpirationForFiber(currentTime, fiber, null);
  48073. scheduleWork(fiber, expTime);
  48074. markRetryTimeIfNotHydrated(fiber, expTime);
  48075. }
  48076. function findHostInstanceWithNoPortals(fiber) {
  48077. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  48078. if (hostFiber === null) {
  48079. return null;
  48080. }
  48081. if (hostFiber.tag === FundamentalComponent) {
  48082. return hostFiber.stateNode.instance;
  48083. }
  48084. return hostFiber.stateNode;
  48085. }
  48086. var shouldSuspendImpl = function (fiber) {
  48087. return false;
  48088. };
  48089. function shouldSuspend(fiber) {
  48090. return shouldSuspendImpl(fiber);
  48091. }
  48092. var overrideHookState = null;
  48093. var overrideProps = null;
  48094. var scheduleUpdate = null;
  48095. var setSuspenseHandler = null;
  48096. {
  48097. var copyWithSetImpl = function (obj, path, idx, value) {
  48098. if (idx >= path.length) {
  48099. return value;
  48100. }
  48101. var key = path[idx];
  48102. var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); // $FlowFixMe number or string is fine here
  48103. updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
  48104. return updated;
  48105. };
  48106. var copyWithSet = function (obj, path, value) {
  48107. return copyWithSetImpl(obj, path, 0, value);
  48108. }; // Support DevTools editable values for useState and useReducer.
  48109. overrideHookState = function (fiber, id, path, value) {
  48110. // For now, the "id" of stateful hooks is just the stateful hook index.
  48111. // This may change in the future with e.g. nested hooks.
  48112. var currentHook = fiber.memoizedState;
  48113. while (currentHook !== null && id > 0) {
  48114. currentHook = currentHook.next;
  48115. id--;
  48116. }
  48117. if (currentHook !== null) {
  48118. var newState = copyWithSet(currentHook.memoizedState, path, value);
  48119. currentHook.memoizedState = newState;
  48120. currentHook.baseState = newState; // We aren't actually adding an update to the queue,
  48121. // because there is no update we can add for useReducer hooks that won't trigger an error.
  48122. // (There's no appropriate action type for DevTools overrides.)
  48123. // As a result though, React will see the scheduled update as a noop and bailout.
  48124. // Shallow cloning props works as a workaround for now to bypass the bailout check.
  48125. fiber.memoizedProps = _assign({}, fiber.memoizedProps);
  48126. scheduleWork(fiber, Sync);
  48127. }
  48128. }; // Support DevTools props for function components, forwardRef, memo, host components, etc.
  48129. overrideProps = function (fiber, path, value) {
  48130. fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
  48131. if (fiber.alternate) {
  48132. fiber.alternate.pendingProps = fiber.pendingProps;
  48133. }
  48134. scheduleWork(fiber, Sync);
  48135. };
  48136. scheduleUpdate = function (fiber) {
  48137. scheduleWork(fiber, Sync);
  48138. };
  48139. setSuspenseHandler = function (newShouldSuspendImpl) {
  48140. shouldSuspendImpl = newShouldSuspendImpl;
  48141. };
  48142. }
  48143. function injectIntoDevTools(devToolsConfig) {
  48144. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  48145. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  48146. return injectInternals(_assign({}, devToolsConfig, {
  48147. overrideHookState: overrideHookState,
  48148. overrideProps: overrideProps,
  48149. setSuspenseHandler: setSuspenseHandler,
  48150. scheduleUpdate: scheduleUpdate,
  48151. currentDispatcherRef: ReactCurrentDispatcher,
  48152. findHostInstanceByFiber: function (fiber) {
  48153. var hostFiber = findCurrentHostFiber(fiber);
  48154. if (hostFiber === null) {
  48155. return null;
  48156. }
  48157. return hostFiber.stateNode;
  48158. },
  48159. findFiberByHostInstance: function (instance) {
  48160. if (!findFiberByHostInstance) {
  48161. // Might not be implemented by the renderer.
  48162. return null;
  48163. }
  48164. return findFiberByHostInstance(instance);
  48165. },
  48166. // React Refresh
  48167. findHostInstancesForRefresh: findHostInstancesForRefresh ,
  48168. scheduleRefresh: scheduleRefresh ,
  48169. scheduleRoot: scheduleRoot ,
  48170. setRefreshHandler: setRefreshHandler ,
  48171. // Enables DevTools to append owner stacks to error messages in DEV mode.
  48172. getCurrentFiber: function () {
  48173. return current;
  48174. }
  48175. }));
  48176. }
  48177. var IsSomeRendererActing$1 = ReactSharedInternals.IsSomeRendererActing;
  48178. function ReactDOMRoot(container, options) {
  48179. this._internalRoot = createRootImpl(container, ConcurrentRoot, options);
  48180. }
  48181. function ReactDOMBlockingRoot(container, tag, options) {
  48182. this._internalRoot = createRootImpl(container, tag, options);
  48183. }
  48184. ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function (children) {
  48185. var root = this._internalRoot;
  48186. {
  48187. if (typeof arguments[1] === 'function') {
  48188. error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
  48189. }
  48190. var container = root.containerInfo;
  48191. if (container.nodeType !== COMMENT_NODE) {
  48192. var hostInstance = findHostInstanceWithNoPortals(root.current);
  48193. if (hostInstance) {
  48194. if (hostInstance.parentNode !== container) {
  48195. 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.");
  48196. }
  48197. }
  48198. }
  48199. }
  48200. updateContainer(children, root, null, null);
  48201. };
  48202. ReactDOMRoot.prototype.unmount = ReactDOMBlockingRoot.prototype.unmount = function () {
  48203. {
  48204. if (typeof arguments[0] === 'function') {
  48205. error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
  48206. }
  48207. }
  48208. var root = this._internalRoot;
  48209. var container = root.containerInfo;
  48210. updateContainer(null, root, null, function () {
  48211. unmarkContainerAsRoot(container);
  48212. });
  48213. };
  48214. function createRootImpl(container, tag, options) {
  48215. // Tag is either LegacyRoot or Concurrent Root
  48216. var hydrate = options != null && options.hydrate === true;
  48217. var hydrationCallbacks = options != null && options.hydrationOptions || null;
  48218. var root = createContainer(container, tag, hydrate);
  48219. markContainerAsRoot(root.current, container);
  48220. if (hydrate && tag !== LegacyRoot) {
  48221. var doc = container.nodeType === DOCUMENT_NODE ? container : container.ownerDocument;
  48222. eagerlyTrapReplayableEvents(container, doc);
  48223. }
  48224. return root;
  48225. }
  48226. function createLegacyRoot(container, options) {
  48227. return new ReactDOMBlockingRoot(container, LegacyRoot, options);
  48228. }
  48229. function isValidContainer(node) {
  48230. 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 '));
  48231. }
  48232. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  48233. var topLevelUpdateWarnings;
  48234. var warnedAboutHydrateAPI = false;
  48235. {
  48236. topLevelUpdateWarnings = function (container) {
  48237. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  48238. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  48239. if (hostInstance) {
  48240. if (hostInstance.parentNode !== container) {
  48241. 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.');
  48242. }
  48243. }
  48244. }
  48245. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  48246. var rootEl = getReactRootElementInContainer(container);
  48247. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  48248. if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
  48249. 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.');
  48250. }
  48251. if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
  48252. 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.');
  48253. }
  48254. };
  48255. }
  48256. function getReactRootElementInContainer(container) {
  48257. if (!container) {
  48258. return null;
  48259. }
  48260. if (container.nodeType === DOCUMENT_NODE) {
  48261. return container.documentElement;
  48262. } else {
  48263. return container.firstChild;
  48264. }
  48265. }
  48266. function shouldHydrateDueToLegacyHeuristic(container) {
  48267. var rootElement = getReactRootElementInContainer(container);
  48268. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  48269. }
  48270. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  48271. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content.
  48272. if (!shouldHydrate) {
  48273. var warned = false;
  48274. var rootSibling;
  48275. while (rootSibling = container.lastChild) {
  48276. {
  48277. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  48278. warned = true;
  48279. 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.');
  48280. }
  48281. }
  48282. container.removeChild(rootSibling);
  48283. }
  48284. }
  48285. {
  48286. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  48287. warnedAboutHydrateAPI = true;
  48288. 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.');
  48289. }
  48290. }
  48291. return createLegacyRoot(container, shouldHydrate ? {
  48292. hydrate: true
  48293. } : undefined);
  48294. }
  48295. function warnOnInvalidCallback$1(callback, callerName) {
  48296. {
  48297. if (callback !== null && typeof callback !== 'function') {
  48298. error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  48299. }
  48300. }
  48301. }
  48302. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  48303. {
  48304. topLevelUpdateWarnings(container);
  48305. warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
  48306. } // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  48307. // member of intersection type." Whyyyyyy.
  48308. var root = container._reactRootContainer;
  48309. var fiberRoot;
  48310. if (!root) {
  48311. // Initial mount
  48312. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  48313. fiberRoot = root._internalRoot;
  48314. if (typeof callback === 'function') {
  48315. var originalCallback = callback;
  48316. callback = function () {
  48317. var instance = getPublicRootInstance(fiberRoot);
  48318. originalCallback.call(instance);
  48319. };
  48320. } // Initial mount should not be batched.
  48321. unbatchedUpdates(function () {
  48322. updateContainer(children, fiberRoot, parentComponent, callback);
  48323. });
  48324. } else {
  48325. fiberRoot = root._internalRoot;
  48326. if (typeof callback === 'function') {
  48327. var _originalCallback = callback;
  48328. callback = function () {
  48329. var instance = getPublicRootInstance(fiberRoot);
  48330. _originalCallback.call(instance);
  48331. };
  48332. } // Update
  48333. updateContainer(children, fiberRoot, parentComponent, callback);
  48334. }
  48335. return getPublicRootInstance(fiberRoot);
  48336. }
  48337. function findDOMNode(componentOrElement) {
  48338. {
  48339. var owner = ReactCurrentOwner$3.current;
  48340. if (owner !== null && owner.stateNode !== null) {
  48341. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  48342. if (!warnedAboutRefsInRender) {
  48343. 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');
  48344. }
  48345. owner.stateNode._warnedAboutRefsInRender = true;
  48346. }
  48347. }
  48348. if (componentOrElement == null) {
  48349. return null;
  48350. }
  48351. if (componentOrElement.nodeType === ELEMENT_NODE) {
  48352. return componentOrElement;
  48353. }
  48354. {
  48355. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  48356. }
  48357. }
  48358. function hydrate(element, container, callback) {
  48359. if (!isValidContainer(container)) {
  48360. {
  48361. throw Error( "Target container is not a DOM element." );
  48362. }
  48363. }
  48364. {
  48365. var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
  48366. if (isModernRoot) {
  48367. 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)?');
  48368. }
  48369. } // TODO: throw or warn if we couldn't hydrate?
  48370. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  48371. }
  48372. function render(element, container, callback) {
  48373. if (!isValidContainer(container)) {
  48374. {
  48375. throw Error( "Target container is not a DOM element." );
  48376. }
  48377. }
  48378. {
  48379. var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
  48380. if (isModernRoot) {
  48381. 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)?');
  48382. }
  48383. }
  48384. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  48385. }
  48386. function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  48387. if (!isValidContainer(containerNode)) {
  48388. {
  48389. throw Error( "Target container is not a DOM element." );
  48390. }
  48391. }
  48392. if (!(parentComponent != null && has(parentComponent))) {
  48393. {
  48394. throw Error( "parentComponent must be a valid React Component" );
  48395. }
  48396. }
  48397. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  48398. }
  48399. function unmountComponentAtNode(container) {
  48400. if (!isValidContainer(container)) {
  48401. {
  48402. throw Error( "unmountComponentAtNode(...): Target container is not a DOM element." );
  48403. }
  48404. }
  48405. {
  48406. var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
  48407. if (isModernRoot) {
  48408. 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()?');
  48409. }
  48410. }
  48411. if (container._reactRootContainer) {
  48412. {
  48413. var rootEl = getReactRootElementInContainer(container);
  48414. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  48415. if (renderedByDifferentReact) {
  48416. error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
  48417. }
  48418. } // Unmount should not be batched.
  48419. unbatchedUpdates(function () {
  48420. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  48421. // $FlowFixMe This should probably use `delete container._reactRootContainer`
  48422. container._reactRootContainer = null;
  48423. unmarkContainerAsRoot(container);
  48424. });
  48425. }); // If you call unmountComponentAtNode twice in quick succession, you'll
  48426. // get `true` twice. That's probably fine?
  48427. return true;
  48428. } else {
  48429. {
  48430. var _rootEl = getReactRootElementInContainer(container);
  48431. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl)); // Check if the container itself is a React root node.
  48432. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  48433. if (hasNonRootReactChild) {
  48434. 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.');
  48435. }
  48436. }
  48437. return false;
  48438. }
  48439. }
  48440. function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
  48441. implementation) {
  48442. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  48443. return {
  48444. // This tag allow us to uniquely identify this as a React Portal
  48445. $$typeof: REACT_PORTAL_TYPE,
  48446. key: key == null ? null : '' + key,
  48447. children: children,
  48448. containerInfo: containerInfo,
  48449. implementation: implementation
  48450. };
  48451. }
  48452. var ReactVersion = '16.13.1';
  48453. setAttemptUserBlockingHydration(attemptUserBlockingHydration$1);
  48454. setAttemptContinuousHydration(attemptContinuousHydration$1);
  48455. setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
  48456. var didWarnAboutUnstableCreatePortal = false;
  48457. {
  48458. if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype
  48459. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype
  48460. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  48461. 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');
  48462. }
  48463. }
  48464. setRestoreImplementation(restoreControlledState$3);
  48465. setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
  48466. function createPortal$1(children, container) {
  48467. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  48468. if (!isValidContainer(container)) {
  48469. {
  48470. throw Error( "Target container is not a DOM element." );
  48471. }
  48472. } // TODO: pass ReactDOM portal implementation as third argument
  48473. // $FlowFixMe The Flow type is opaque but there's no way to actually create it.
  48474. return createPortal(children, container, null, key);
  48475. }
  48476. function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  48477. return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
  48478. }
  48479. function unstable_createPortal(children, container) {
  48480. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  48481. {
  48482. if (!didWarnAboutUnstableCreatePortal) {
  48483. didWarnAboutUnstableCreatePortal = true;
  48484. 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.');
  48485. }
  48486. }
  48487. return createPortal$1(children, container, key);
  48488. }
  48489. var Internals = {
  48490. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  48491. // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
  48492. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
  48493. };
  48494. var foundDevTools = injectIntoDevTools({
  48495. findFiberByHostInstance: getClosestInstanceFromNode,
  48496. bundleType: 1 ,
  48497. version: ReactVersion,
  48498. rendererPackageName: 'react-dom'
  48499. });
  48500. {
  48501. if (!foundDevTools && canUseDOM && window.top === window.self) {
  48502. // If we're in Chrome or Firefox, provide a download link if not installed.
  48503. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  48504. var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.
  48505. if (/^(https?|file):$/.test(protocol)) {
  48506. // eslint-disable-next-line react-internal/no-production-logging
  48507. 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');
  48508. }
  48509. }
  48510. }
  48511. }
  48512. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
  48513. exports.createPortal = createPortal$1;
  48514. exports.findDOMNode = findDOMNode;
  48515. exports.flushSync = flushSync;
  48516. exports.hydrate = hydrate;
  48517. exports.render = render;
  48518. exports.unmountComponentAtNode = unmountComponentAtNode;
  48519. exports.unstable_batchedUpdates = batchedUpdates$1;
  48520. exports.unstable_createPortal = unstable_createPortal;
  48521. exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
  48522. exports.version = ReactVersion;
  48523. })();
  48524. }
  48525. /***/ }),
  48526. /***/ "../../node_modules/react-dom/index.js":
  48527. /*!***********************************************************!*\
  48528. !*** C:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  48529. \***********************************************************/
  48530. /*! no static exports found */
  48531. /***/ (function(module, exports, __webpack_require__) {
  48532. "use strict";
  48533. function checkDCE() {
  48534. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  48535. if (
  48536. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  48537. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  48538. ) {
  48539. return;
  48540. }
  48541. if (true) {
  48542. // This branch is unreachable because this function is only called
  48543. // in production, but the condition is true only in development.
  48544. // Therefore if the branch is still here, dead code elimination wasn't
  48545. // properly applied.
  48546. // Don't change the message. React DevTools relies on it. Also make sure
  48547. // this message doesn't occur elsewhere in this function, or it will cause
  48548. // a false positive.
  48549. throw new Error('^_^');
  48550. }
  48551. try {
  48552. // Verify that the code above has been dead code eliminated (DCE'd).
  48553. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  48554. } catch (err) {
  48555. // DevTools shouldn't crash React, no matter what.
  48556. // We should still report in case we break this code.
  48557. console.error(err);
  48558. }
  48559. }
  48560. if (false) {} else {
  48561. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  48562. }
  48563. /***/ }),
  48564. /***/ "../../node_modules/react-is/cjs/react-is.development.js":
  48565. /*!*****************************************************************************!*\
  48566. !*** C:/Repos/Babylon.js/node_modules/react-is/cjs/react-is.development.js ***!
  48567. \*****************************************************************************/
  48568. /*! no static exports found */
  48569. /***/ (function(module, exports, __webpack_require__) {
  48570. "use strict";
  48571. /** @license React v16.13.1
  48572. * react-is.development.js
  48573. *
  48574. * Copyright (c) Facebook, Inc. and its affiliates.
  48575. *
  48576. * This source code is licensed under the MIT license found in the
  48577. * LICENSE file in the root directory of this source tree.
  48578. */
  48579. if (true) {
  48580. (function() {
  48581. 'use strict';
  48582. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  48583. // nor polyfill, then a plain number is used for performance.
  48584. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  48585. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  48586. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  48587. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  48588. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  48589. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  48590. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  48591. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  48592. // (unstable) APIs that have been removed. Can we remove the symbols?
  48593. var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
  48594. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  48595. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  48596. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  48597. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  48598. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  48599. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  48600. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
  48601. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  48602. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  48603. var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
  48604. function isValidElementType(type) {
  48605. return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  48606. 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);
  48607. }
  48608. function typeOf(object) {
  48609. if (typeof object === 'object' && object !== null) {
  48610. var $$typeof = object.$$typeof;
  48611. switch ($$typeof) {
  48612. case REACT_ELEMENT_TYPE:
  48613. var type = object.type;
  48614. switch (type) {
  48615. case REACT_ASYNC_MODE_TYPE:
  48616. case REACT_CONCURRENT_MODE_TYPE:
  48617. case REACT_FRAGMENT_TYPE:
  48618. case REACT_PROFILER_TYPE:
  48619. case REACT_STRICT_MODE_TYPE:
  48620. case REACT_SUSPENSE_TYPE:
  48621. return type;
  48622. default:
  48623. var $$typeofType = type && type.$$typeof;
  48624. switch ($$typeofType) {
  48625. case REACT_CONTEXT_TYPE:
  48626. case REACT_FORWARD_REF_TYPE:
  48627. case REACT_LAZY_TYPE:
  48628. case REACT_MEMO_TYPE:
  48629. case REACT_PROVIDER_TYPE:
  48630. return $$typeofType;
  48631. default:
  48632. return $$typeof;
  48633. }
  48634. }
  48635. case REACT_PORTAL_TYPE:
  48636. return $$typeof;
  48637. }
  48638. }
  48639. return undefined;
  48640. } // AsyncMode is deprecated along with isAsyncMode
  48641. var AsyncMode = REACT_ASYNC_MODE_TYPE;
  48642. var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  48643. var ContextConsumer = REACT_CONTEXT_TYPE;
  48644. var ContextProvider = REACT_PROVIDER_TYPE;
  48645. var Element = REACT_ELEMENT_TYPE;
  48646. var ForwardRef = REACT_FORWARD_REF_TYPE;
  48647. var Fragment = REACT_FRAGMENT_TYPE;
  48648. var Lazy = REACT_LAZY_TYPE;
  48649. var Memo = REACT_MEMO_TYPE;
  48650. var Portal = REACT_PORTAL_TYPE;
  48651. var Profiler = REACT_PROFILER_TYPE;
  48652. var StrictMode = REACT_STRICT_MODE_TYPE;
  48653. var Suspense = REACT_SUSPENSE_TYPE;
  48654. var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
  48655. function isAsyncMode(object) {
  48656. {
  48657. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  48658. hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
  48659. 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.');
  48660. }
  48661. }
  48662. return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
  48663. }
  48664. function isConcurrentMode(object) {
  48665. return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
  48666. }
  48667. function isContextConsumer(object) {
  48668. return typeOf(object) === REACT_CONTEXT_TYPE;
  48669. }
  48670. function isContextProvider(object) {
  48671. return typeOf(object) === REACT_PROVIDER_TYPE;
  48672. }
  48673. function isElement(object) {
  48674. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  48675. }
  48676. function isForwardRef(object) {
  48677. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  48678. }
  48679. function isFragment(object) {
  48680. return typeOf(object) === REACT_FRAGMENT_TYPE;
  48681. }
  48682. function isLazy(object) {
  48683. return typeOf(object) === REACT_LAZY_TYPE;
  48684. }
  48685. function isMemo(object) {
  48686. return typeOf(object) === REACT_MEMO_TYPE;
  48687. }
  48688. function isPortal(object) {
  48689. return typeOf(object) === REACT_PORTAL_TYPE;
  48690. }
  48691. function isProfiler(object) {
  48692. return typeOf(object) === REACT_PROFILER_TYPE;
  48693. }
  48694. function isStrictMode(object) {
  48695. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  48696. }
  48697. function isSuspense(object) {
  48698. return typeOf(object) === REACT_SUSPENSE_TYPE;
  48699. }
  48700. exports.AsyncMode = AsyncMode;
  48701. exports.ConcurrentMode = ConcurrentMode;
  48702. exports.ContextConsumer = ContextConsumer;
  48703. exports.ContextProvider = ContextProvider;
  48704. exports.Element = Element;
  48705. exports.ForwardRef = ForwardRef;
  48706. exports.Fragment = Fragment;
  48707. exports.Lazy = Lazy;
  48708. exports.Memo = Memo;
  48709. exports.Portal = Portal;
  48710. exports.Profiler = Profiler;
  48711. exports.StrictMode = StrictMode;
  48712. exports.Suspense = Suspense;
  48713. exports.isAsyncMode = isAsyncMode;
  48714. exports.isConcurrentMode = isConcurrentMode;
  48715. exports.isContextConsumer = isContextConsumer;
  48716. exports.isContextProvider = isContextProvider;
  48717. exports.isElement = isElement;
  48718. exports.isForwardRef = isForwardRef;
  48719. exports.isFragment = isFragment;
  48720. exports.isLazy = isLazy;
  48721. exports.isMemo = isMemo;
  48722. exports.isPortal = isPortal;
  48723. exports.isProfiler = isProfiler;
  48724. exports.isStrictMode = isStrictMode;
  48725. exports.isSuspense = isSuspense;
  48726. exports.isValidElementType = isValidElementType;
  48727. exports.typeOf = typeOf;
  48728. })();
  48729. }
  48730. /***/ }),
  48731. /***/ "../../node_modules/react-is/index.js":
  48732. /*!**********************************************************!*\
  48733. !*** C:/Repos/Babylon.js/node_modules/react-is/index.js ***!
  48734. \**********************************************************/
  48735. /*! no static exports found */
  48736. /***/ (function(module, exports, __webpack_require__) {
  48737. "use strict";
  48738. if (false) {} else {
  48739. module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-is/cjs/react-is.development.js");
  48740. }
  48741. /***/ }),
  48742. /***/ "../../node_modules/react/cjs/react.development.js":
  48743. /*!***********************************************************************!*\
  48744. !*** C:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  48745. \***********************************************************************/
  48746. /*! no static exports found */
  48747. /***/ (function(module, exports, __webpack_require__) {
  48748. "use strict";
  48749. /** @license React v16.13.1
  48750. * react.development.js
  48751. *
  48752. * Copyright (c) Facebook, Inc. and its affiliates.
  48753. *
  48754. * This source code is licensed under the MIT license found in the
  48755. * LICENSE file in the root directory of this source tree.
  48756. */
  48757. if (true) {
  48758. (function() {
  48759. 'use strict';
  48760. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  48761. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  48762. var ReactVersion = '16.13.1';
  48763. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  48764. // nor polyfill, then a plain number is used for performance.
  48765. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  48766. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  48767. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  48768. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  48769. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  48770. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  48771. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  48772. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  48773. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  48774. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  48775. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  48776. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  48777. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  48778. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  48779. var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
  48780. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  48781. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  48782. var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
  48783. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  48784. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  48785. function getIteratorFn(maybeIterable) {
  48786. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  48787. return null;
  48788. }
  48789. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  48790. if (typeof maybeIterator === 'function') {
  48791. return maybeIterator;
  48792. }
  48793. return null;
  48794. }
  48795. /**
  48796. * Keeps track of the current dispatcher.
  48797. */
  48798. var ReactCurrentDispatcher = {
  48799. /**
  48800. * @internal
  48801. * @type {ReactComponent}
  48802. */
  48803. current: null
  48804. };
  48805. /**
  48806. * Keeps track of the current batch's configuration such as how long an update
  48807. * should suspend for if it needs to.
  48808. */
  48809. var ReactCurrentBatchConfig = {
  48810. suspense: null
  48811. };
  48812. /**
  48813. * Keeps track of the current owner.
  48814. *
  48815. * The current owner is the component who should own any components that are
  48816. * currently being constructed.
  48817. */
  48818. var ReactCurrentOwner = {
  48819. /**
  48820. * @internal
  48821. * @type {ReactComponent}
  48822. */
  48823. current: null
  48824. };
  48825. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  48826. function describeComponentFrame (name, source, ownerName) {
  48827. var sourceInfo = '';
  48828. if (source) {
  48829. var path = source.fileName;
  48830. var fileName = path.replace(BEFORE_SLASH_RE, '');
  48831. {
  48832. // In DEV, include code for a common special case:
  48833. // prefer "folder/index.js" instead of just "index.js".
  48834. if (/^index\./.test(fileName)) {
  48835. var match = path.match(BEFORE_SLASH_RE);
  48836. if (match) {
  48837. var pathBeforeSlash = match[1];
  48838. if (pathBeforeSlash) {
  48839. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  48840. fileName = folderName + '/' + fileName;
  48841. }
  48842. }
  48843. }
  48844. }
  48845. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  48846. } else if (ownerName) {
  48847. sourceInfo = ' (created by ' + ownerName + ')';
  48848. }
  48849. return '\n in ' + (name || 'Unknown') + sourceInfo;
  48850. }
  48851. var Resolved = 1;
  48852. function refineResolvedLazyComponent(lazyComponent) {
  48853. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  48854. }
  48855. function getWrappedName(outerType, innerType, wrapperName) {
  48856. var functionName = innerType.displayName || innerType.name || '';
  48857. return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
  48858. }
  48859. function getComponentName(type) {
  48860. if (type == null) {
  48861. // Host root, text node or just invalid type.
  48862. return null;
  48863. }
  48864. {
  48865. if (typeof type.tag === 'number') {
  48866. error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  48867. }
  48868. }
  48869. if (typeof type === 'function') {
  48870. return type.displayName || type.name || null;
  48871. }
  48872. if (typeof type === 'string') {
  48873. return type;
  48874. }
  48875. switch (type) {
  48876. case REACT_FRAGMENT_TYPE:
  48877. return 'Fragment';
  48878. case REACT_PORTAL_TYPE:
  48879. return 'Portal';
  48880. case REACT_PROFILER_TYPE:
  48881. return "Profiler";
  48882. case REACT_STRICT_MODE_TYPE:
  48883. return 'StrictMode';
  48884. case REACT_SUSPENSE_TYPE:
  48885. return 'Suspense';
  48886. case REACT_SUSPENSE_LIST_TYPE:
  48887. return 'SuspenseList';
  48888. }
  48889. if (typeof type === 'object') {
  48890. switch (type.$$typeof) {
  48891. case REACT_CONTEXT_TYPE:
  48892. return 'Context.Consumer';
  48893. case REACT_PROVIDER_TYPE:
  48894. return 'Context.Provider';
  48895. case REACT_FORWARD_REF_TYPE:
  48896. return getWrappedName(type, type.render, 'ForwardRef');
  48897. case REACT_MEMO_TYPE:
  48898. return getComponentName(type.type);
  48899. case REACT_BLOCK_TYPE:
  48900. return getComponentName(type.render);
  48901. case REACT_LAZY_TYPE:
  48902. {
  48903. var thenable = type;
  48904. var resolvedThenable = refineResolvedLazyComponent(thenable);
  48905. if (resolvedThenable) {
  48906. return getComponentName(resolvedThenable);
  48907. }
  48908. break;
  48909. }
  48910. }
  48911. }
  48912. return null;
  48913. }
  48914. var ReactDebugCurrentFrame = {};
  48915. var currentlyValidatingElement = null;
  48916. function setCurrentlyValidatingElement(element) {
  48917. {
  48918. currentlyValidatingElement = element;
  48919. }
  48920. }
  48921. {
  48922. // Stack implementation injected by the current renderer.
  48923. ReactDebugCurrentFrame.getCurrentStack = null;
  48924. ReactDebugCurrentFrame.getStackAddendum = function () {
  48925. var stack = ''; // Add an extra top frame while an element is being validated
  48926. if (currentlyValidatingElement) {
  48927. var name = getComponentName(currentlyValidatingElement.type);
  48928. var owner = currentlyValidatingElement._owner;
  48929. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  48930. } // Delegate to the injected renderer-specific implementation
  48931. var impl = ReactDebugCurrentFrame.getCurrentStack;
  48932. if (impl) {
  48933. stack += impl() || '';
  48934. }
  48935. return stack;
  48936. };
  48937. }
  48938. /**
  48939. * Used by act() to track whether you're inside an act() scope.
  48940. */
  48941. var IsSomeRendererActing = {
  48942. current: false
  48943. };
  48944. var ReactSharedInternals = {
  48945. ReactCurrentDispatcher: ReactCurrentDispatcher,
  48946. ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  48947. ReactCurrentOwner: ReactCurrentOwner,
  48948. IsSomeRendererActing: IsSomeRendererActing,
  48949. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  48950. assign: _assign
  48951. };
  48952. {
  48953. _assign(ReactSharedInternals, {
  48954. // These should not be included in production.
  48955. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  48956. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  48957. // TODO: remove in React 17.0.
  48958. ReactComponentTreeHook: {}
  48959. });
  48960. }
  48961. // by calls to these methods by a Babel plugin.
  48962. //
  48963. // In PROD (or in packages without access to React internals),
  48964. // they are left as they are instead.
  48965. function warn(format) {
  48966. {
  48967. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  48968. args[_key - 1] = arguments[_key];
  48969. }
  48970. printWarning('warn', format, args);
  48971. }
  48972. }
  48973. function error(format) {
  48974. {
  48975. for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  48976. args[_key2 - 1] = arguments[_key2];
  48977. }
  48978. printWarning('error', format, args);
  48979. }
  48980. }
  48981. function printWarning(level, format, args) {
  48982. // When changing this logic, you might want to also
  48983. // update consoleWithStackDev.www.js as well.
  48984. {
  48985. var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
  48986. if (!hasExistingStack) {
  48987. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  48988. var stack = ReactDebugCurrentFrame.getStackAddendum();
  48989. if (stack !== '') {
  48990. format += '%s';
  48991. args = args.concat([stack]);
  48992. }
  48993. }
  48994. var argsWithFormat = args.map(function (item) {
  48995. return '' + item;
  48996. }); // Careful: RN currently depends on this prefix
  48997. argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
  48998. // breaks IE9: https://github.com/facebook/react/issues/13610
  48999. // eslint-disable-next-line react-internal/no-production-logging
  49000. Function.prototype.apply.call(console[level], console, argsWithFormat);
  49001. try {
  49002. // --- Welcome to debugging React ---
  49003. // This error was thrown as a convenience so that you can use this stack
  49004. // to find the callsite that caused this warning to fire.
  49005. var argIndex = 0;
  49006. var message = 'Warning: ' + format.replace(/%s/g, function () {
  49007. return args[argIndex++];
  49008. });
  49009. throw new Error(message);
  49010. } catch (x) {}
  49011. }
  49012. }
  49013. var didWarnStateUpdateForUnmountedComponent = {};
  49014. function warnNoop(publicInstance, callerName) {
  49015. {
  49016. var _constructor = publicInstance.constructor;
  49017. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  49018. var warningKey = componentName + "." + callerName;
  49019. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  49020. return;
  49021. }
  49022. 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);
  49023. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  49024. }
  49025. }
  49026. /**
  49027. * This is the abstract API for an update queue.
  49028. */
  49029. var ReactNoopUpdateQueue = {
  49030. /**
  49031. * Checks whether or not this composite component is mounted.
  49032. * @param {ReactClass} publicInstance The instance we want to test.
  49033. * @return {boolean} True if mounted, false otherwise.
  49034. * @protected
  49035. * @final
  49036. */
  49037. isMounted: function (publicInstance) {
  49038. return false;
  49039. },
  49040. /**
  49041. * Forces an update. This should only be invoked when it is known with
  49042. * certainty that we are **not** in a DOM transaction.
  49043. *
  49044. * You may want to call this when you know that some deeper aspect of the
  49045. * component's state has changed but `setState` was not called.
  49046. *
  49047. * This will not invoke `shouldComponentUpdate`, but it will invoke
  49048. * `componentWillUpdate` and `componentDidUpdate`.
  49049. *
  49050. * @param {ReactClass} publicInstance The instance that should rerender.
  49051. * @param {?function} callback Called after component is updated.
  49052. * @param {?string} callerName name of the calling function in the public API.
  49053. * @internal
  49054. */
  49055. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  49056. warnNoop(publicInstance, 'forceUpdate');
  49057. },
  49058. /**
  49059. * Replaces all of the state. Always use this or `setState` to mutate state.
  49060. * You should treat `this.state` as immutable.
  49061. *
  49062. * There is no guarantee that `this.state` will be immediately updated, so
  49063. * accessing `this.state` after calling this method may return the old value.
  49064. *
  49065. * @param {ReactClass} publicInstance The instance that should rerender.
  49066. * @param {object} completeState Next state.
  49067. * @param {?function} callback Called after component is updated.
  49068. * @param {?string} callerName name of the calling function in the public API.
  49069. * @internal
  49070. */
  49071. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  49072. warnNoop(publicInstance, 'replaceState');
  49073. },
  49074. /**
  49075. * Sets a subset of the state. This only exists because _pendingState is
  49076. * internal. This provides a merging strategy that is not available to deep
  49077. * properties which is confusing. TODO: Expose pendingState or don't use it
  49078. * during the merge.
  49079. *
  49080. * @param {ReactClass} publicInstance The instance that should rerender.
  49081. * @param {object} partialState Next partial state to be merged with state.
  49082. * @param {?function} callback Called after component is updated.
  49083. * @param {?string} Name of the calling function in the public API.
  49084. * @internal
  49085. */
  49086. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  49087. warnNoop(publicInstance, 'setState');
  49088. }
  49089. };
  49090. var emptyObject = {};
  49091. {
  49092. Object.freeze(emptyObject);
  49093. }
  49094. /**
  49095. * Base class helpers for the updating state of a component.
  49096. */
  49097. function Component(props, context, updater) {
  49098. this.props = props;
  49099. this.context = context; // If a component has string refs, we will assign a different object later.
  49100. this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
  49101. // renderer.
  49102. this.updater = updater || ReactNoopUpdateQueue;
  49103. }
  49104. Component.prototype.isReactComponent = {};
  49105. /**
  49106. * Sets a subset of the state. Always use this to mutate
  49107. * state. You should treat `this.state` as immutable.
  49108. *
  49109. * There is no guarantee that `this.state` will be immediately updated, so
  49110. * accessing `this.state` after calling this method may return the old value.
  49111. *
  49112. * There is no guarantee that calls to `setState` will run synchronously,
  49113. * as they may eventually be batched together. You can provide an optional
  49114. * callback that will be executed when the call to setState is actually
  49115. * completed.
  49116. *
  49117. * When a function is provided to setState, it will be called at some point in
  49118. * the future (not synchronously). It will be called with the up to date
  49119. * component arguments (state, props, context). These values can be different
  49120. * from this.* because your function may be called after receiveProps but before
  49121. * shouldComponentUpdate, and this new state, props, and context will not yet be
  49122. * assigned to this.
  49123. *
  49124. * @param {object|function} partialState Next partial state or function to
  49125. * produce next partial state to be merged with current state.
  49126. * @param {?function} callback Called after state is updated.
  49127. * @final
  49128. * @protected
  49129. */
  49130. Component.prototype.setState = function (partialState, callback) {
  49131. if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
  49132. {
  49133. throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
  49134. }
  49135. }
  49136. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  49137. };
  49138. /**
  49139. * Forces an update. This should only be invoked when it is known with
  49140. * certainty that we are **not** in a DOM transaction.
  49141. *
  49142. * You may want to call this when you know that some deeper aspect of the
  49143. * component's state has changed but `setState` was not called.
  49144. *
  49145. * This will not invoke `shouldComponentUpdate`, but it will invoke
  49146. * `componentWillUpdate` and `componentDidUpdate`.
  49147. *
  49148. * @param {?function} callback Called after update is complete.
  49149. * @final
  49150. * @protected
  49151. */
  49152. Component.prototype.forceUpdate = function (callback) {
  49153. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  49154. };
  49155. /**
  49156. * Deprecated APIs. These APIs used to exist on classic React classes but since
  49157. * we would like to deprecate them, we're not going to move them over to this
  49158. * modern base class. Instead, we define a getter that warns if it's accessed.
  49159. */
  49160. {
  49161. var deprecatedAPIs = {
  49162. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  49163. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  49164. };
  49165. var defineDeprecationWarning = function (methodName, info) {
  49166. Object.defineProperty(Component.prototype, methodName, {
  49167. get: function () {
  49168. warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  49169. return undefined;
  49170. }
  49171. });
  49172. };
  49173. for (var fnName in deprecatedAPIs) {
  49174. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  49175. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  49176. }
  49177. }
  49178. }
  49179. function ComponentDummy() {}
  49180. ComponentDummy.prototype = Component.prototype;
  49181. /**
  49182. * Convenience component with default shallow equality check for sCU.
  49183. */
  49184. function PureComponent(props, context, updater) {
  49185. this.props = props;
  49186. this.context = context; // If a component has string refs, we will assign a different object later.
  49187. this.refs = emptyObject;
  49188. this.updater = updater || ReactNoopUpdateQueue;
  49189. }
  49190. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  49191. pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
  49192. _assign(pureComponentPrototype, Component.prototype);
  49193. pureComponentPrototype.isPureReactComponent = true;
  49194. // an immutable object with a single mutable value
  49195. function createRef() {
  49196. var refObject = {
  49197. current: null
  49198. };
  49199. {
  49200. Object.seal(refObject);
  49201. }
  49202. return refObject;
  49203. }
  49204. var hasOwnProperty = Object.prototype.hasOwnProperty;
  49205. var RESERVED_PROPS = {
  49206. key: true,
  49207. ref: true,
  49208. __self: true,
  49209. __source: true
  49210. };
  49211. var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
  49212. {
  49213. didWarnAboutStringRefs = {};
  49214. }
  49215. function hasValidRef(config) {
  49216. {
  49217. if (hasOwnProperty.call(config, 'ref')) {
  49218. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  49219. if (getter && getter.isReactWarning) {
  49220. return false;
  49221. }
  49222. }
  49223. }
  49224. return config.ref !== undefined;
  49225. }
  49226. function hasValidKey(config) {
  49227. {
  49228. if (hasOwnProperty.call(config, 'key')) {
  49229. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  49230. if (getter && getter.isReactWarning) {
  49231. return false;
  49232. }
  49233. }
  49234. }
  49235. return config.key !== undefined;
  49236. }
  49237. function defineKeyPropWarningGetter(props, displayName) {
  49238. var warnAboutAccessingKey = function () {
  49239. {
  49240. if (!specialPropKeyWarningShown) {
  49241. specialPropKeyWarningShown = true;
  49242. 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);
  49243. }
  49244. }
  49245. };
  49246. warnAboutAccessingKey.isReactWarning = true;
  49247. Object.defineProperty(props, 'key', {
  49248. get: warnAboutAccessingKey,
  49249. configurable: true
  49250. });
  49251. }
  49252. function defineRefPropWarningGetter(props, displayName) {
  49253. var warnAboutAccessingRef = function () {
  49254. {
  49255. if (!specialPropRefWarningShown) {
  49256. specialPropRefWarningShown = true;
  49257. 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);
  49258. }
  49259. }
  49260. };
  49261. warnAboutAccessingRef.isReactWarning = true;
  49262. Object.defineProperty(props, 'ref', {
  49263. get: warnAboutAccessingRef,
  49264. configurable: true
  49265. });
  49266. }
  49267. function warnIfStringRefCannotBeAutoConverted(config) {
  49268. {
  49269. if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
  49270. var componentName = getComponentName(ReactCurrentOwner.current.type);
  49271. if (!didWarnAboutStringRefs[componentName]) {
  49272. 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);
  49273. didWarnAboutStringRefs[componentName] = true;
  49274. }
  49275. }
  49276. }
  49277. }
  49278. /**
  49279. * Factory method to create a new React element. This no longer adheres to
  49280. * the class pattern, so do not use new to call it. Also, instanceof check
  49281. * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
  49282. * if something is a React Element.
  49283. *
  49284. * @param {*} type
  49285. * @param {*} props
  49286. * @param {*} key
  49287. * @param {string|object} ref
  49288. * @param {*} owner
  49289. * @param {*} self A *temporary* helper to detect places where `this` is
  49290. * different from the `owner` when React.createElement is called, so that we
  49291. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  49292. * functions, and as long as `this` and owner are the same, there will be no
  49293. * change in behavior.
  49294. * @param {*} source An annotation object (added by a transpiler or otherwise)
  49295. * indicating filename, line number, and/or other information.
  49296. * @internal
  49297. */
  49298. var ReactElement = function (type, key, ref, self, source, owner, props) {
  49299. var element = {
  49300. // This tag allows us to uniquely identify this as a React Element
  49301. $$typeof: REACT_ELEMENT_TYPE,
  49302. // Built-in properties that belong on the element
  49303. type: type,
  49304. key: key,
  49305. ref: ref,
  49306. props: props,
  49307. // Record the component responsible for creating this element.
  49308. _owner: owner
  49309. };
  49310. {
  49311. // The validation flag is currently mutative. We put it on
  49312. // an external backing store so that we can freeze the whole object.
  49313. // This can be replaced with a WeakMap once they are implemented in
  49314. // commonly used development environments.
  49315. element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
  49316. // the validation flag non-enumerable (where possible, which should
  49317. // include every environment we run tests in), so the test framework
  49318. // ignores it.
  49319. Object.defineProperty(element._store, 'validated', {
  49320. configurable: false,
  49321. enumerable: false,
  49322. writable: true,
  49323. value: false
  49324. }); // self and source are DEV only properties.
  49325. Object.defineProperty(element, '_self', {
  49326. configurable: false,
  49327. enumerable: false,
  49328. writable: false,
  49329. value: self
  49330. }); // Two elements created in two different places should be considered
  49331. // equal for testing purposes and therefore we hide it from enumeration.
  49332. Object.defineProperty(element, '_source', {
  49333. configurable: false,
  49334. enumerable: false,
  49335. writable: false,
  49336. value: source
  49337. });
  49338. if (Object.freeze) {
  49339. Object.freeze(element.props);
  49340. Object.freeze(element);
  49341. }
  49342. }
  49343. return element;
  49344. };
  49345. /**
  49346. * Create and return a new ReactElement of the given type.
  49347. * See https://reactjs.org/docs/react-api.html#createelement
  49348. */
  49349. function createElement(type, config, children) {
  49350. var propName; // Reserved names are extracted
  49351. var props = {};
  49352. var key = null;
  49353. var ref = null;
  49354. var self = null;
  49355. var source = null;
  49356. if (config != null) {
  49357. if (hasValidRef(config)) {
  49358. ref = config.ref;
  49359. {
  49360. warnIfStringRefCannotBeAutoConverted(config);
  49361. }
  49362. }
  49363. if (hasValidKey(config)) {
  49364. key = '' + config.key;
  49365. }
  49366. self = config.__self === undefined ? null : config.__self;
  49367. source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
  49368. for (propName in config) {
  49369. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  49370. props[propName] = config[propName];
  49371. }
  49372. }
  49373. } // Children can be more than one argument, and those are transferred onto
  49374. // the newly allocated props object.
  49375. var childrenLength = arguments.length - 2;
  49376. if (childrenLength === 1) {
  49377. props.children = children;
  49378. } else if (childrenLength > 1) {
  49379. var childArray = Array(childrenLength);
  49380. for (var i = 0; i < childrenLength; i++) {
  49381. childArray[i] = arguments[i + 2];
  49382. }
  49383. {
  49384. if (Object.freeze) {
  49385. Object.freeze(childArray);
  49386. }
  49387. }
  49388. props.children = childArray;
  49389. } // Resolve default props
  49390. if (type && type.defaultProps) {
  49391. var defaultProps = type.defaultProps;
  49392. for (propName in defaultProps) {
  49393. if (props[propName] === undefined) {
  49394. props[propName] = defaultProps[propName];
  49395. }
  49396. }
  49397. }
  49398. {
  49399. if (key || ref) {
  49400. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  49401. if (key) {
  49402. defineKeyPropWarningGetter(props, displayName);
  49403. }
  49404. if (ref) {
  49405. defineRefPropWarningGetter(props, displayName);
  49406. }
  49407. }
  49408. }
  49409. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  49410. }
  49411. function cloneAndReplaceKey(oldElement, newKey) {
  49412. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  49413. return newElement;
  49414. }
  49415. /**
  49416. * Clone and return a new ReactElement using element as the starting point.
  49417. * See https://reactjs.org/docs/react-api.html#cloneelement
  49418. */
  49419. function cloneElement(element, config, children) {
  49420. if (!!(element === null || element === undefined)) {
  49421. {
  49422. throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
  49423. }
  49424. }
  49425. var propName; // Original props are copied
  49426. var props = _assign({}, element.props); // Reserved names are extracted
  49427. var key = element.key;
  49428. var ref = element.ref; // Self is preserved since the owner is preserved.
  49429. var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
  49430. // transpiler, and the original source is probably a better indicator of the
  49431. // true owner.
  49432. var source = element._source; // Owner will be preserved, unless ref is overridden
  49433. var owner = element._owner;
  49434. if (config != null) {
  49435. if (hasValidRef(config)) {
  49436. // Silently steal the ref from the parent.
  49437. ref = config.ref;
  49438. owner = ReactCurrentOwner.current;
  49439. }
  49440. if (hasValidKey(config)) {
  49441. key = '' + config.key;
  49442. } // Remaining properties override existing props
  49443. var defaultProps;
  49444. if (element.type && element.type.defaultProps) {
  49445. defaultProps = element.type.defaultProps;
  49446. }
  49447. for (propName in config) {
  49448. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  49449. if (config[propName] === undefined && defaultProps !== undefined) {
  49450. // Resolve default props
  49451. props[propName] = defaultProps[propName];
  49452. } else {
  49453. props[propName] = config[propName];
  49454. }
  49455. }
  49456. }
  49457. } // Children can be more than one argument, and those are transferred onto
  49458. // the newly allocated props object.
  49459. var childrenLength = arguments.length - 2;
  49460. if (childrenLength === 1) {
  49461. props.children = children;
  49462. } else if (childrenLength > 1) {
  49463. var childArray = Array(childrenLength);
  49464. for (var i = 0; i < childrenLength; i++) {
  49465. childArray[i] = arguments[i + 2];
  49466. }
  49467. props.children = childArray;
  49468. }
  49469. return ReactElement(element.type, key, ref, self, source, owner, props);
  49470. }
  49471. /**
  49472. * Verifies the object is a ReactElement.
  49473. * See https://reactjs.org/docs/react-api.html#isvalidelement
  49474. * @param {?object} object
  49475. * @return {boolean} True if `object` is a ReactElement.
  49476. * @final
  49477. */
  49478. function isValidElement(object) {
  49479. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  49480. }
  49481. var SEPARATOR = '.';
  49482. var SUBSEPARATOR = ':';
  49483. /**
  49484. * Escape and wrap key so it is safe to use as a reactid
  49485. *
  49486. * @param {string} key to be escaped.
  49487. * @return {string} the escaped key.
  49488. */
  49489. function escape(key) {
  49490. var escapeRegex = /[=:]/g;
  49491. var escaperLookup = {
  49492. '=': '=0',
  49493. ':': '=2'
  49494. };
  49495. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  49496. return escaperLookup[match];
  49497. });
  49498. return '$' + escapedString;
  49499. }
  49500. /**
  49501. * TODO: Test that a single child and an array with one item have the same key
  49502. * pattern.
  49503. */
  49504. var didWarnAboutMaps = false;
  49505. var userProvidedKeyEscapeRegex = /\/+/g;
  49506. function escapeUserProvidedKey(text) {
  49507. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  49508. }
  49509. var POOL_SIZE = 10;
  49510. var traverseContextPool = [];
  49511. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  49512. if (traverseContextPool.length) {
  49513. var traverseContext = traverseContextPool.pop();
  49514. traverseContext.result = mapResult;
  49515. traverseContext.keyPrefix = keyPrefix;
  49516. traverseContext.func = mapFunction;
  49517. traverseContext.context = mapContext;
  49518. traverseContext.count = 0;
  49519. return traverseContext;
  49520. } else {
  49521. return {
  49522. result: mapResult,
  49523. keyPrefix: keyPrefix,
  49524. func: mapFunction,
  49525. context: mapContext,
  49526. count: 0
  49527. };
  49528. }
  49529. }
  49530. function releaseTraverseContext(traverseContext) {
  49531. traverseContext.result = null;
  49532. traverseContext.keyPrefix = null;
  49533. traverseContext.func = null;
  49534. traverseContext.context = null;
  49535. traverseContext.count = 0;
  49536. if (traverseContextPool.length < POOL_SIZE) {
  49537. traverseContextPool.push(traverseContext);
  49538. }
  49539. }
  49540. /**
  49541. * @param {?*} children Children tree container.
  49542. * @param {!string} nameSoFar Name of the key path so far.
  49543. * @param {!function} callback Callback to invoke with each child found.
  49544. * @param {?*} traverseContext Used to pass information throughout the traversal
  49545. * process.
  49546. * @return {!number} The number of children in this subtree.
  49547. */
  49548. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  49549. var type = typeof children;
  49550. if (type === 'undefined' || type === 'boolean') {
  49551. // All of the above are perceived as null.
  49552. children = null;
  49553. }
  49554. var invokeCallback = false;
  49555. if (children === null) {
  49556. invokeCallback = true;
  49557. } else {
  49558. switch (type) {
  49559. case 'string':
  49560. case 'number':
  49561. invokeCallback = true;
  49562. break;
  49563. case 'object':
  49564. switch (children.$$typeof) {
  49565. case REACT_ELEMENT_TYPE:
  49566. case REACT_PORTAL_TYPE:
  49567. invokeCallback = true;
  49568. }
  49569. }
  49570. }
  49571. if (invokeCallback) {
  49572. callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
  49573. // so that it's consistent if the number of children grows.
  49574. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  49575. return 1;
  49576. }
  49577. var child;
  49578. var nextName;
  49579. var subtreeCount = 0; // Count of children found in the current subtree.
  49580. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  49581. if (Array.isArray(children)) {
  49582. for (var i = 0; i < children.length; i++) {
  49583. child = children[i];
  49584. nextName = nextNamePrefix + getComponentKey(child, i);
  49585. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  49586. }
  49587. } else {
  49588. var iteratorFn = getIteratorFn(children);
  49589. if (typeof iteratorFn === 'function') {
  49590. {
  49591. // Warn about using Maps as children
  49592. if (iteratorFn === children.entries) {
  49593. if (!didWarnAboutMaps) {
  49594. 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.');
  49595. }
  49596. didWarnAboutMaps = true;
  49597. }
  49598. }
  49599. var iterator = iteratorFn.call(children);
  49600. var step;
  49601. var ii = 0;
  49602. while (!(step = iterator.next()).done) {
  49603. child = step.value;
  49604. nextName = nextNamePrefix + getComponentKey(child, ii++);
  49605. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  49606. }
  49607. } else if (type === 'object') {
  49608. var addendum = '';
  49609. {
  49610. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  49611. }
  49612. var childrenString = '' + children;
  49613. {
  49614. {
  49615. throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
  49616. }
  49617. }
  49618. }
  49619. }
  49620. return subtreeCount;
  49621. }
  49622. /**
  49623. * Traverses children that are typically specified as `props.children`, but
  49624. * might also be specified through attributes:
  49625. *
  49626. * - `traverseAllChildren(this.props.children, ...)`
  49627. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  49628. *
  49629. * The `traverseContext` is an optional argument that is passed through the
  49630. * entire traversal. It can be used to store accumulations or anything else that
  49631. * the callback might find relevant.
  49632. *
  49633. * @param {?*} children Children tree object.
  49634. * @param {!function} callback To invoke upon traversing each child.
  49635. * @param {?*} traverseContext Context for traversal.
  49636. * @return {!number} The number of children in this subtree.
  49637. */
  49638. function traverseAllChildren(children, callback, traverseContext) {
  49639. if (children == null) {
  49640. return 0;
  49641. }
  49642. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  49643. }
  49644. /**
  49645. * Generate a key string that identifies a component within a set.
  49646. *
  49647. * @param {*} component A component that could contain a manual key.
  49648. * @param {number} index Index that is used if a manual key is not provided.
  49649. * @return {string}
  49650. */
  49651. function getComponentKey(component, index) {
  49652. // Do some typechecking here since we call this blindly. We want to ensure
  49653. // that we don't block potential future ES APIs.
  49654. if (typeof component === 'object' && component !== null && component.key != null) {
  49655. // Explicit key
  49656. return escape(component.key);
  49657. } // Implicit key determined by the index in the set
  49658. return index.toString(36);
  49659. }
  49660. function forEachSingleChild(bookKeeping, child, name) {
  49661. var func = bookKeeping.func,
  49662. context = bookKeeping.context;
  49663. func.call(context, child, bookKeeping.count++);
  49664. }
  49665. /**
  49666. * Iterates through children that are typically specified as `props.children`.
  49667. *
  49668. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  49669. *
  49670. * The provided forEachFunc(child, index) will be called for each
  49671. * leaf child.
  49672. *
  49673. * @param {?*} children Children tree container.
  49674. * @param {function(*, int)} forEachFunc
  49675. * @param {*} forEachContext Context for forEachContext.
  49676. */
  49677. function forEachChildren(children, forEachFunc, forEachContext) {
  49678. if (children == null) {
  49679. return children;
  49680. }
  49681. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  49682. traverseAllChildren(children, forEachSingleChild, traverseContext);
  49683. releaseTraverseContext(traverseContext);
  49684. }
  49685. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  49686. var result = bookKeeping.result,
  49687. keyPrefix = bookKeeping.keyPrefix,
  49688. func = bookKeeping.func,
  49689. context = bookKeeping.context;
  49690. var mappedChild = func.call(context, child, bookKeeping.count++);
  49691. if (Array.isArray(mappedChild)) {
  49692. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  49693. return c;
  49694. });
  49695. } else if (mappedChild != null) {
  49696. if (isValidElement(mappedChild)) {
  49697. mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
  49698. // traverseAllChildren used to do for objects as children
  49699. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  49700. }
  49701. result.push(mappedChild);
  49702. }
  49703. }
  49704. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  49705. var escapedPrefix = '';
  49706. if (prefix != null) {
  49707. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  49708. }
  49709. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  49710. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  49711. releaseTraverseContext(traverseContext);
  49712. }
  49713. /**
  49714. * Maps children that are typically specified as `props.children`.
  49715. *
  49716. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  49717. *
  49718. * The provided mapFunction(child, key, index) will be called for each
  49719. * leaf child.
  49720. *
  49721. * @param {?*} children Children tree container.
  49722. * @param {function(*, int)} func The map function.
  49723. * @param {*} context Context for mapFunction.
  49724. * @return {object} Object containing the ordered map of results.
  49725. */
  49726. function mapChildren(children, func, context) {
  49727. if (children == null) {
  49728. return children;
  49729. }
  49730. var result = [];
  49731. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  49732. return result;
  49733. }
  49734. /**
  49735. * Count the number of children that are typically specified as
  49736. * `props.children`.
  49737. *
  49738. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  49739. *
  49740. * @param {?*} children Children tree container.
  49741. * @return {number} The number of children.
  49742. */
  49743. function countChildren(children) {
  49744. return traverseAllChildren(children, function () {
  49745. return null;
  49746. }, null);
  49747. }
  49748. /**
  49749. * Flatten a children object (typically specified as `props.children`) and
  49750. * return an array with appropriately re-keyed children.
  49751. *
  49752. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  49753. */
  49754. function toArray(children) {
  49755. var result = [];
  49756. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  49757. return child;
  49758. });
  49759. return result;
  49760. }
  49761. /**
  49762. * Returns the first child in a collection of children and verifies that there
  49763. * is only one child in the collection.
  49764. *
  49765. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  49766. *
  49767. * The current implementation of this function assumes that a single child gets
  49768. * passed without a wrapper, but the purpose of this helper function is to
  49769. * abstract away the particular structure of children.
  49770. *
  49771. * @param {?object} children Child collection structure.
  49772. * @return {ReactElement} The first and only `ReactElement` contained in the
  49773. * structure.
  49774. */
  49775. function onlyChild(children) {
  49776. if (!isValidElement(children)) {
  49777. {
  49778. throw Error( "React.Children.only expected to receive a single React element child." );
  49779. }
  49780. }
  49781. return children;
  49782. }
  49783. function createContext(defaultValue, calculateChangedBits) {
  49784. if (calculateChangedBits === undefined) {
  49785. calculateChangedBits = null;
  49786. } else {
  49787. {
  49788. if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
  49789. error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
  49790. }
  49791. }
  49792. }
  49793. var context = {
  49794. $$typeof: REACT_CONTEXT_TYPE,
  49795. _calculateChangedBits: calculateChangedBits,
  49796. // As a workaround to support multiple concurrent renderers, we categorize
  49797. // some renderers as primary and others as secondary. We only expect
  49798. // there to be two concurrent renderers at most: React Native (primary) and
  49799. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  49800. // Secondary renderers store their context values on separate fields.
  49801. _currentValue: defaultValue,
  49802. _currentValue2: defaultValue,
  49803. // Used to track how many concurrent renderers this context currently
  49804. // supports within in a single renderer. Such as parallel server rendering.
  49805. _threadCount: 0,
  49806. // These are circular
  49807. Provider: null,
  49808. Consumer: null
  49809. };
  49810. context.Provider = {
  49811. $$typeof: REACT_PROVIDER_TYPE,
  49812. _context: context
  49813. };
  49814. var hasWarnedAboutUsingNestedContextConsumers = false;
  49815. var hasWarnedAboutUsingConsumerProvider = false;
  49816. {
  49817. // A separate object, but proxies back to the original context object for
  49818. // backwards compatibility. It has a different $$typeof, so we can properly
  49819. // warn for the incorrect usage of Context as a Consumer.
  49820. var Consumer = {
  49821. $$typeof: REACT_CONTEXT_TYPE,
  49822. _context: context,
  49823. _calculateChangedBits: context._calculateChangedBits
  49824. }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  49825. Object.defineProperties(Consumer, {
  49826. Provider: {
  49827. get: function () {
  49828. if (!hasWarnedAboutUsingConsumerProvider) {
  49829. hasWarnedAboutUsingConsumerProvider = true;
  49830. 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?');
  49831. }
  49832. return context.Provider;
  49833. },
  49834. set: function (_Provider) {
  49835. context.Provider = _Provider;
  49836. }
  49837. },
  49838. _currentValue: {
  49839. get: function () {
  49840. return context._currentValue;
  49841. },
  49842. set: function (_currentValue) {
  49843. context._currentValue = _currentValue;
  49844. }
  49845. },
  49846. _currentValue2: {
  49847. get: function () {
  49848. return context._currentValue2;
  49849. },
  49850. set: function (_currentValue2) {
  49851. context._currentValue2 = _currentValue2;
  49852. }
  49853. },
  49854. _threadCount: {
  49855. get: function () {
  49856. return context._threadCount;
  49857. },
  49858. set: function (_threadCount) {
  49859. context._threadCount = _threadCount;
  49860. }
  49861. },
  49862. Consumer: {
  49863. get: function () {
  49864. if (!hasWarnedAboutUsingNestedContextConsumers) {
  49865. hasWarnedAboutUsingNestedContextConsumers = true;
  49866. 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?');
  49867. }
  49868. return context.Consumer;
  49869. }
  49870. }
  49871. }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  49872. context.Consumer = Consumer;
  49873. }
  49874. {
  49875. context._currentRenderer = null;
  49876. context._currentRenderer2 = null;
  49877. }
  49878. return context;
  49879. }
  49880. function lazy(ctor) {
  49881. var lazyType = {
  49882. $$typeof: REACT_LAZY_TYPE,
  49883. _ctor: ctor,
  49884. // React uses these fields to store the result.
  49885. _status: -1,
  49886. _result: null
  49887. };
  49888. {
  49889. // In production, this would just set it on the object.
  49890. var defaultProps;
  49891. var propTypes;
  49892. Object.defineProperties(lazyType, {
  49893. defaultProps: {
  49894. configurable: true,
  49895. get: function () {
  49896. return defaultProps;
  49897. },
  49898. set: function (newDefaultProps) {
  49899. 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.');
  49900. defaultProps = newDefaultProps; // Match production behavior more closely:
  49901. Object.defineProperty(lazyType, 'defaultProps', {
  49902. enumerable: true
  49903. });
  49904. }
  49905. },
  49906. propTypes: {
  49907. configurable: true,
  49908. get: function () {
  49909. return propTypes;
  49910. },
  49911. set: function (newPropTypes) {
  49912. 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.');
  49913. propTypes = newPropTypes; // Match production behavior more closely:
  49914. Object.defineProperty(lazyType, 'propTypes', {
  49915. enumerable: true
  49916. });
  49917. }
  49918. }
  49919. });
  49920. }
  49921. return lazyType;
  49922. }
  49923. function forwardRef(render) {
  49924. {
  49925. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  49926. error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  49927. } else if (typeof render !== 'function') {
  49928. error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  49929. } else {
  49930. if (render.length !== 0 && render.length !== 2) {
  49931. 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.');
  49932. }
  49933. }
  49934. if (render != null) {
  49935. if (render.defaultProps != null || render.propTypes != null) {
  49936. error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
  49937. }
  49938. }
  49939. }
  49940. return {
  49941. $$typeof: REACT_FORWARD_REF_TYPE,
  49942. render: render
  49943. };
  49944. }
  49945. function isValidElementType(type) {
  49946. return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  49947. 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);
  49948. }
  49949. function memo(type, compare) {
  49950. {
  49951. if (!isValidElementType(type)) {
  49952. error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  49953. }
  49954. }
  49955. return {
  49956. $$typeof: REACT_MEMO_TYPE,
  49957. type: type,
  49958. compare: compare === undefined ? null : compare
  49959. };
  49960. }
  49961. function resolveDispatcher() {
  49962. var dispatcher = ReactCurrentDispatcher.current;
  49963. if (!(dispatcher !== null)) {
  49964. {
  49965. 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." );
  49966. }
  49967. }
  49968. return dispatcher;
  49969. }
  49970. function useContext(Context, unstable_observedBits) {
  49971. var dispatcher = resolveDispatcher();
  49972. {
  49973. if (unstable_observedBits !== undefined) {
  49974. 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' : '');
  49975. } // TODO: add a more generic warning for invalid values.
  49976. if (Context._context !== undefined) {
  49977. var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
  49978. // and nobody should be using this in existing code.
  49979. if (realContext.Consumer === Context) {
  49980. 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?');
  49981. } else if (realContext.Provider === Context) {
  49982. error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  49983. }
  49984. }
  49985. }
  49986. return dispatcher.useContext(Context, unstable_observedBits);
  49987. }
  49988. function useState(initialState) {
  49989. var dispatcher = resolveDispatcher();
  49990. return dispatcher.useState(initialState);
  49991. }
  49992. function useReducer(reducer, initialArg, init) {
  49993. var dispatcher = resolveDispatcher();
  49994. return dispatcher.useReducer(reducer, initialArg, init);
  49995. }
  49996. function useRef(initialValue) {
  49997. var dispatcher = resolveDispatcher();
  49998. return dispatcher.useRef(initialValue);
  49999. }
  50000. function useEffect(create, deps) {
  50001. var dispatcher = resolveDispatcher();
  50002. return dispatcher.useEffect(create, deps);
  50003. }
  50004. function useLayoutEffect(create, deps) {
  50005. var dispatcher = resolveDispatcher();
  50006. return dispatcher.useLayoutEffect(create, deps);
  50007. }
  50008. function useCallback(callback, deps) {
  50009. var dispatcher = resolveDispatcher();
  50010. return dispatcher.useCallback(callback, deps);
  50011. }
  50012. function useMemo(create, deps) {
  50013. var dispatcher = resolveDispatcher();
  50014. return dispatcher.useMemo(create, deps);
  50015. }
  50016. function useImperativeHandle(ref, create, deps) {
  50017. var dispatcher = resolveDispatcher();
  50018. return dispatcher.useImperativeHandle(ref, create, deps);
  50019. }
  50020. function useDebugValue(value, formatterFn) {
  50021. {
  50022. var dispatcher = resolveDispatcher();
  50023. return dispatcher.useDebugValue(value, formatterFn);
  50024. }
  50025. }
  50026. var propTypesMisspellWarningShown;
  50027. {
  50028. propTypesMisspellWarningShown = false;
  50029. }
  50030. function getDeclarationErrorAddendum() {
  50031. if (ReactCurrentOwner.current) {
  50032. var name = getComponentName(ReactCurrentOwner.current.type);
  50033. if (name) {
  50034. return '\n\nCheck the render method of `' + name + '`.';
  50035. }
  50036. }
  50037. return '';
  50038. }
  50039. function getSourceInfoErrorAddendum(source) {
  50040. if (source !== undefined) {
  50041. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  50042. var lineNumber = source.lineNumber;
  50043. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  50044. }
  50045. return '';
  50046. }
  50047. function getSourceInfoErrorAddendumForProps(elementProps) {
  50048. if (elementProps !== null && elementProps !== undefined) {
  50049. return getSourceInfoErrorAddendum(elementProps.__source);
  50050. }
  50051. return '';
  50052. }
  50053. /**
  50054. * Warn if there's no key explicitly set on dynamic arrays of children or
  50055. * object keys are not valid. This allows us to keep track of children between
  50056. * updates.
  50057. */
  50058. var ownerHasKeyUseWarning = {};
  50059. function getCurrentComponentErrorInfo(parentType) {
  50060. var info = getDeclarationErrorAddendum();
  50061. if (!info) {
  50062. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  50063. if (parentName) {
  50064. info = "\n\nCheck the top-level render call using <" + parentName + ">.";
  50065. }
  50066. }
  50067. return info;
  50068. }
  50069. /**
  50070. * Warn if the element doesn't have an explicit key assigned to it.
  50071. * This element is in an array. The array could grow and shrink or be
  50072. * reordered. All children that haven't already been validated are required to
  50073. * have a "key" property assigned to it. Error statuses are cached so a warning
  50074. * will only be shown once.
  50075. *
  50076. * @internal
  50077. * @param {ReactElement} element Element that requires a key.
  50078. * @param {*} parentType element's parent's type.
  50079. */
  50080. function validateExplicitKey(element, parentType) {
  50081. if (!element._store || element._store.validated || element.key != null) {
  50082. return;
  50083. }
  50084. element._store.validated = true;
  50085. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  50086. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  50087. return;
  50088. }
  50089. ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
  50090. // property, it may be the creator of the child that's responsible for
  50091. // assigning it a key.
  50092. var childOwner = '';
  50093. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  50094. // Give the component that originally created this child.
  50095. childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
  50096. }
  50097. setCurrentlyValidatingElement(element);
  50098. {
  50099. 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);
  50100. }
  50101. setCurrentlyValidatingElement(null);
  50102. }
  50103. /**
  50104. * Ensure that every element either is passed in a static location, in an
  50105. * array with an explicit keys property defined, or in an object literal
  50106. * with valid key property.
  50107. *
  50108. * @internal
  50109. * @param {ReactNode} node Statically passed child of any type.
  50110. * @param {*} parentType node's parent's type.
  50111. */
  50112. function validateChildKeys(node, parentType) {
  50113. if (typeof node !== 'object') {
  50114. return;
  50115. }
  50116. if (Array.isArray(node)) {
  50117. for (var i = 0; i < node.length; i++) {
  50118. var child = node[i];
  50119. if (isValidElement(child)) {
  50120. validateExplicitKey(child, parentType);
  50121. }
  50122. }
  50123. } else if (isValidElement(node)) {
  50124. // This element was passed in a valid location.
  50125. if (node._store) {
  50126. node._store.validated = true;
  50127. }
  50128. } else if (node) {
  50129. var iteratorFn = getIteratorFn(node);
  50130. if (typeof iteratorFn === 'function') {
  50131. // Entry iterators used to provide implicit keys,
  50132. // but now we print a separate warning for them later.
  50133. if (iteratorFn !== node.entries) {
  50134. var iterator = iteratorFn.call(node);
  50135. var step;
  50136. while (!(step = iterator.next()).done) {
  50137. if (isValidElement(step.value)) {
  50138. validateExplicitKey(step.value, parentType);
  50139. }
  50140. }
  50141. }
  50142. }
  50143. }
  50144. }
  50145. /**
  50146. * Given an element, validate that its props follow the propTypes definition,
  50147. * provided by the type.
  50148. *
  50149. * @param {ReactElement} element
  50150. */
  50151. function validatePropTypes(element) {
  50152. {
  50153. var type = element.type;
  50154. if (type === null || type === undefined || typeof type === 'string') {
  50155. return;
  50156. }
  50157. var name = getComponentName(type);
  50158. var propTypes;
  50159. if (typeof type === 'function') {
  50160. propTypes = type.propTypes;
  50161. } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
  50162. // Inner props are checked in the reconciler.
  50163. type.$$typeof === REACT_MEMO_TYPE)) {
  50164. propTypes = type.propTypes;
  50165. } else {
  50166. return;
  50167. }
  50168. if (propTypes) {
  50169. setCurrentlyValidatingElement(element);
  50170. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  50171. setCurrentlyValidatingElement(null);
  50172. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  50173. propTypesMisspellWarningShown = true;
  50174. error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  50175. }
  50176. if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
  50177. error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
  50178. }
  50179. }
  50180. }
  50181. /**
  50182. * Given a fragment, validate that it can only be provided with fragment props
  50183. * @param {ReactElement} fragment
  50184. */
  50185. function validateFragmentProps(fragment) {
  50186. {
  50187. setCurrentlyValidatingElement(fragment);
  50188. var keys = Object.keys(fragment.props);
  50189. for (var i = 0; i < keys.length; i++) {
  50190. var key = keys[i];
  50191. if (key !== 'children' && key !== 'key') {
  50192. error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  50193. break;
  50194. }
  50195. }
  50196. if (fragment.ref !== null) {
  50197. error('Invalid attribute `ref` supplied to `React.Fragment`.');
  50198. }
  50199. setCurrentlyValidatingElement(null);
  50200. }
  50201. }
  50202. function createElementWithValidation(type, props, children) {
  50203. var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
  50204. // succeed and there will likely be errors in render.
  50205. if (!validType) {
  50206. var info = '';
  50207. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  50208. 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.";
  50209. }
  50210. var sourceInfo = getSourceInfoErrorAddendumForProps(props);
  50211. if (sourceInfo) {
  50212. info += sourceInfo;
  50213. } else {
  50214. info += getDeclarationErrorAddendum();
  50215. }
  50216. var typeString;
  50217. if (type === null) {
  50218. typeString = 'null';
  50219. } else if (Array.isArray(type)) {
  50220. typeString = 'array';
  50221. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  50222. typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
  50223. info = ' Did you accidentally export a JSX literal instead of a component?';
  50224. } else {
  50225. typeString = typeof type;
  50226. }
  50227. {
  50228. 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);
  50229. }
  50230. }
  50231. var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
  50232. // TODO: Drop this when these are no longer allowed as the type argument.
  50233. if (element == null) {
  50234. return element;
  50235. } // Skip key warning if the type isn't valid since our key validation logic
  50236. // doesn't expect a non-string/function type and can throw confusing errors.
  50237. // We don't want exception behavior to differ between dev and prod.
  50238. // (Rendering will throw with a helpful message and as soon as the type is
  50239. // fixed, the key warnings will appear.)
  50240. if (validType) {
  50241. for (var i = 2; i < arguments.length; i++) {
  50242. validateChildKeys(arguments[i], type);
  50243. }
  50244. }
  50245. if (type === REACT_FRAGMENT_TYPE) {
  50246. validateFragmentProps(element);
  50247. } else {
  50248. validatePropTypes(element);
  50249. }
  50250. return element;
  50251. }
  50252. var didWarnAboutDeprecatedCreateFactory = false;
  50253. function createFactoryWithValidation(type) {
  50254. var validatedFactory = createElementWithValidation.bind(null, type);
  50255. validatedFactory.type = type;
  50256. {
  50257. if (!didWarnAboutDeprecatedCreateFactory) {
  50258. didWarnAboutDeprecatedCreateFactory = true;
  50259. warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
  50260. } // Legacy hook: remove it
  50261. Object.defineProperty(validatedFactory, 'type', {
  50262. enumerable: false,
  50263. get: function () {
  50264. warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  50265. Object.defineProperty(this, 'type', {
  50266. value: type
  50267. });
  50268. return type;
  50269. }
  50270. });
  50271. }
  50272. return validatedFactory;
  50273. }
  50274. function cloneElementWithValidation(element, props, children) {
  50275. var newElement = cloneElement.apply(this, arguments);
  50276. for (var i = 2; i < arguments.length; i++) {
  50277. validateChildKeys(arguments[i], newElement.type);
  50278. }
  50279. validatePropTypes(newElement);
  50280. return newElement;
  50281. }
  50282. {
  50283. try {
  50284. var frozenObject = Object.freeze({});
  50285. var testMap = new Map([[frozenObject, null]]);
  50286. var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
  50287. // https://github.com/rollup/rollup/issues/1771
  50288. // TODO: we can remove these if Rollup fixes the bug.
  50289. testMap.set(0, 0);
  50290. testSet.add(0);
  50291. } catch (e) {
  50292. }
  50293. }
  50294. var createElement$1 = createElementWithValidation ;
  50295. var cloneElement$1 = cloneElementWithValidation ;
  50296. var createFactory = createFactoryWithValidation ;
  50297. var Children = {
  50298. map: mapChildren,
  50299. forEach: forEachChildren,
  50300. count: countChildren,
  50301. toArray: toArray,
  50302. only: onlyChild
  50303. };
  50304. exports.Children = Children;
  50305. exports.Component = Component;
  50306. exports.Fragment = REACT_FRAGMENT_TYPE;
  50307. exports.Profiler = REACT_PROFILER_TYPE;
  50308. exports.PureComponent = PureComponent;
  50309. exports.StrictMode = REACT_STRICT_MODE_TYPE;
  50310. exports.Suspense = REACT_SUSPENSE_TYPE;
  50311. exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
  50312. exports.cloneElement = cloneElement$1;
  50313. exports.createContext = createContext;
  50314. exports.createElement = createElement$1;
  50315. exports.createFactory = createFactory;
  50316. exports.createRef = createRef;
  50317. exports.forwardRef = forwardRef;
  50318. exports.isValidElement = isValidElement;
  50319. exports.lazy = lazy;
  50320. exports.memo = memo;
  50321. exports.useCallback = useCallback;
  50322. exports.useContext = useContext;
  50323. exports.useDebugValue = useDebugValue;
  50324. exports.useEffect = useEffect;
  50325. exports.useImperativeHandle = useImperativeHandle;
  50326. exports.useLayoutEffect = useLayoutEffect;
  50327. exports.useMemo = useMemo;
  50328. exports.useReducer = useReducer;
  50329. exports.useRef = useRef;
  50330. exports.useState = useState;
  50331. exports.version = ReactVersion;
  50332. })();
  50333. }
  50334. /***/ }),
  50335. /***/ "../../node_modules/react/index.js":
  50336. /*!*******************************************************!*\
  50337. !*** C:/Repos/Babylon.js/node_modules/react/index.js ***!
  50338. \*******************************************************/
  50339. /*! no static exports found */
  50340. /***/ (function(module, exports, __webpack_require__) {
  50341. "use strict";
  50342. if (false) {} else {
  50343. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  50344. }
  50345. /***/ }),
  50346. /***/ "../../node_modules/reactcss/lib/autoprefix.js":
  50347. /*!*******************************************************************!*\
  50348. !*** C:/Repos/Babylon.js/node_modules/reactcss/lib/autoprefix.js ***!
  50349. \*******************************************************************/
  50350. /*! no static exports found */
  50351. /***/ (function(module, exports, __webpack_require__) {
  50352. "use strict";
  50353. Object.defineProperty(exports, "__esModule", {
  50354. value: true
  50355. });
  50356. exports.autoprefix = undefined;
  50357. var _forOwn2 = __webpack_require__(/*! lodash/forOwn */ "../../node_modules/lodash/forOwn.js");
  50358. var _forOwn3 = _interopRequireDefault(_forOwn2);
  50359. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  50360. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50361. var transforms = {
  50362. borderRadius: function borderRadius(value) {
  50363. return {
  50364. msBorderRadius: value,
  50365. MozBorderRadius: value,
  50366. OBorderRadius: value,
  50367. WebkitBorderRadius: value,
  50368. borderRadius: value
  50369. };
  50370. },
  50371. boxShadow: function boxShadow(value) {
  50372. return {
  50373. msBoxShadow: value,
  50374. MozBoxShadow: value,
  50375. OBoxShadow: value,
  50376. WebkitBoxShadow: value,
  50377. boxShadow: value
  50378. };
  50379. },
  50380. userSelect: function userSelect(value) {
  50381. return {
  50382. WebkitTouchCallout: value,
  50383. KhtmlUserSelect: value,
  50384. MozUserSelect: value,
  50385. msUserSelect: value,
  50386. WebkitUserSelect: value,
  50387. userSelect: value
  50388. };
  50389. },
  50390. flex: function flex(value) {
  50391. return {
  50392. WebkitBoxFlex: value,
  50393. MozBoxFlex: value,
  50394. WebkitFlex: value,
  50395. msFlex: value,
  50396. flex: value
  50397. };
  50398. },
  50399. flexBasis: function flexBasis(value) {
  50400. return {
  50401. WebkitFlexBasis: value,
  50402. flexBasis: value
  50403. };
  50404. },
  50405. justifyContent: function justifyContent(value) {
  50406. return {
  50407. WebkitJustifyContent: value,
  50408. justifyContent: value
  50409. };
  50410. },
  50411. transition: function transition(value) {
  50412. return {
  50413. msTransition: value,
  50414. MozTransition: value,
  50415. OTransition: value,
  50416. WebkitTransition: value,
  50417. transition: value
  50418. };
  50419. },
  50420. transform: function transform(value) {
  50421. return {
  50422. msTransform: value,
  50423. MozTransform: value,
  50424. OTransform: value,
  50425. WebkitTransform: value,
  50426. transform: value
  50427. };
  50428. },
  50429. absolute: function absolute(value) {
  50430. var direction = value && value.split(' ');
  50431. return {
  50432. position: 'absolute',
  50433. top: direction && direction[0],
  50434. right: direction && direction[1],
  50435. bottom: direction && direction[2],
  50436. left: direction && direction[3]
  50437. };
  50438. },
  50439. extend: function extend(name, otherElementStyles) {
  50440. var otherStyle = otherElementStyles[name];
  50441. if (otherStyle) {
  50442. return otherStyle;
  50443. }
  50444. return {
  50445. 'extend': name
  50446. };
  50447. }
  50448. };
  50449. var autoprefix = exports.autoprefix = function autoprefix(elements) {
  50450. var prefixed = {};
  50451. (0, _forOwn3.default)(elements, function (styles, element) {
  50452. var expanded = {};
  50453. (0, _forOwn3.default)(styles, function (value, key) {
  50454. var transform = transforms[key];
  50455. if (transform) {
  50456. expanded = _extends({}, expanded, transform(value));
  50457. } else {
  50458. expanded[key] = value;
  50459. }
  50460. });
  50461. prefixed[element] = expanded;
  50462. });
  50463. return prefixed;
  50464. };
  50465. exports.default = autoprefix;
  50466. /***/ }),
  50467. /***/ "../../node_modules/reactcss/lib/components/active.js":
  50468. /*!**************************************************************************!*\
  50469. !*** C:/Repos/Babylon.js/node_modules/reactcss/lib/components/active.js ***!
  50470. \**************************************************************************/
  50471. /*! no static exports found */
  50472. /***/ (function(module, exports, __webpack_require__) {
  50473. "use strict";
  50474. Object.defineProperty(exports, "__esModule", {
  50475. value: true
  50476. });
  50477. exports.active = undefined;
  50478. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  50479. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  50480. var _react2 = _interopRequireDefault(_react);
  50481. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50482. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50483. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50484. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50485. var active = exports.active = function active(Component) {
  50486. var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  50487. return function (_React$Component) {
  50488. _inherits(Active, _React$Component);
  50489. function Active() {
  50490. var _ref;
  50491. var _temp, _this, _ret;
  50492. _classCallCheck(this, Active);
  50493. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  50494. args[_key] = arguments[_key];
  50495. }
  50496. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Active.__proto__ || Object.getPrototypeOf(Active)).call.apply(_ref, [this].concat(args))), _this), _this.state = { active: false }, _this.handleMouseDown = function () {
  50497. return _this.setState({ active: true });
  50498. }, _this.handleMouseUp = function () {
  50499. return _this.setState({ active: false });
  50500. }, _this.render = function () {
  50501. return _react2.default.createElement(
  50502. Span,
  50503. { onMouseDown: _this.handleMouseDown, onMouseUp: _this.handleMouseUp },
  50504. _react2.default.createElement(Component, _extends({}, _this.props, _this.state))
  50505. );
  50506. }, _temp), _possibleConstructorReturn(_this, _ret);
  50507. }
  50508. return Active;
  50509. }(_react2.default.Component);
  50510. };
  50511. exports.default = active;
  50512. /***/ }),
  50513. /***/ "../../node_modules/reactcss/lib/components/hover.js":
  50514. /*!*************************************************************************!*\
  50515. !*** C:/Repos/Babylon.js/node_modules/reactcss/lib/components/hover.js ***!
  50516. \*************************************************************************/
  50517. /*! no static exports found */
  50518. /***/ (function(module, exports, __webpack_require__) {
  50519. "use strict";
  50520. Object.defineProperty(exports, "__esModule", {
  50521. value: true
  50522. });
  50523. exports.hover = undefined;
  50524. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  50525. var _react = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  50526. var _react2 = _interopRequireDefault(_react);
  50527. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50528. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50529. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50530. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50531. var hover = exports.hover = function hover(Component) {
  50532. var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  50533. return function (_React$Component) {
  50534. _inherits(Hover, _React$Component);
  50535. function Hover() {
  50536. var _ref;
  50537. var _temp, _this, _ret;
  50538. _classCallCheck(this, Hover);
  50539. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  50540. args[_key] = arguments[_key];
  50541. }
  50542. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Hover.__proto__ || Object.getPrototypeOf(Hover)).call.apply(_ref, [this].concat(args))), _this), _this.state = { hover: false }, _this.handleMouseOver = function () {
  50543. return _this.setState({ hover: true });
  50544. }, _this.handleMouseOut = function () {
  50545. return _this.setState({ hover: false });
  50546. }, _this.render = function () {
  50547. return _react2.default.createElement(
  50548. Span,
  50549. { onMouseOver: _this.handleMouseOver, onMouseOut: _this.handleMouseOut },
  50550. _react2.default.createElement(Component, _extends({}, _this.props, _this.state))
  50551. );
  50552. }, _temp), _possibleConstructorReturn(_this, _ret);
  50553. }
  50554. return Hover;
  50555. }(_react2.default.Component);
  50556. };
  50557. exports.default = hover;
  50558. /***/ }),
  50559. /***/ "../../node_modules/reactcss/lib/flattenNames.js":
  50560. /*!*********************************************************************!*\
  50561. !*** C:/Repos/Babylon.js/node_modules/reactcss/lib/flattenNames.js ***!
  50562. \*********************************************************************/
  50563. /*! no static exports found */
  50564. /***/ (function(module, exports, __webpack_require__) {
  50565. "use strict";
  50566. Object.defineProperty(exports, "__esModule", {
  50567. value: true
  50568. });
  50569. exports.flattenNames = undefined;
  50570. var _isString2 = __webpack_require__(/*! lodash/isString */ "../../node_modules/lodash/isString.js");
  50571. var _isString3 = _interopRequireDefault(_isString2);
  50572. var _forOwn2 = __webpack_require__(/*! lodash/forOwn */ "../../node_modules/lodash/forOwn.js");
  50573. var _forOwn3 = _interopRequireDefault(_forOwn2);
  50574. var _isPlainObject2 = __webpack_require__(/*! lodash/isPlainObject */ "../../node_modules/lodash/isPlainObject.js");
  50575. var _isPlainObject3 = _interopRequireDefault(_isPlainObject2);
  50576. var _map2 = __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js");
  50577. var _map3 = _interopRequireDefault(_map2);
  50578. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50579. var flattenNames = exports.flattenNames = function flattenNames() {
  50580. var things = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  50581. var names = [];
  50582. (0, _map3.default)(things, function (thing) {
  50583. if (Array.isArray(thing)) {
  50584. flattenNames(thing).map(function (name) {
  50585. return names.push(name);
  50586. });
  50587. } else if ((0, _isPlainObject3.default)(thing)) {
  50588. (0, _forOwn3.default)(thing, function (value, key) {
  50589. value === true && names.push(key);
  50590. names.push(key + '-' + value);
  50591. });
  50592. } else if ((0, _isString3.default)(thing)) {
  50593. names.push(thing);
  50594. }
  50595. });
  50596. return names;
  50597. };
  50598. exports.default = flattenNames;
  50599. /***/ }),
  50600. /***/ "../../node_modules/reactcss/lib/index.js":
  50601. /*!**************************************************************!*\
  50602. !*** C:/Repos/Babylon.js/node_modules/reactcss/lib/index.js ***!
  50603. \**************************************************************/
  50604. /*! no static exports found */
  50605. /***/ (function(module, exports, __webpack_require__) {
  50606. "use strict";
  50607. Object.defineProperty(exports, "__esModule", {
  50608. value: true
  50609. });
  50610. exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
  50611. var _flattenNames = __webpack_require__(/*! ./flattenNames */ "../../node_modules/reactcss/lib/flattenNames.js");
  50612. var _flattenNames2 = _interopRequireDefault(_flattenNames);
  50613. var _mergeClasses = __webpack_require__(/*! ./mergeClasses */ "../../node_modules/reactcss/lib/mergeClasses.js");
  50614. var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
  50615. var _autoprefix = __webpack_require__(/*! ./autoprefix */ "../../node_modules/reactcss/lib/autoprefix.js");
  50616. var _autoprefix2 = _interopRequireDefault(_autoprefix);
  50617. var _hover2 = __webpack_require__(/*! ./components/hover */ "../../node_modules/reactcss/lib/components/hover.js");
  50618. var _hover3 = _interopRequireDefault(_hover2);
  50619. var _active = __webpack_require__(/*! ./components/active */ "../../node_modules/reactcss/lib/components/active.js");
  50620. var _active2 = _interopRequireDefault(_active);
  50621. var _loop2 = __webpack_require__(/*! ./loop */ "../../node_modules/reactcss/lib/loop.js");
  50622. var _loop3 = _interopRequireDefault(_loop2);
  50623. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50624. exports.hover = _hover3.default;
  50625. exports.handleHover = _hover3.default;
  50626. exports.handleActive = _active2.default;
  50627. exports.loop = _loop3.default;
  50628. var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
  50629. for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  50630. activations[_key - 1] = arguments[_key];
  50631. }
  50632. var activeNames = (0, _flattenNames2.default)(activations);
  50633. var merged = (0, _mergeClasses2.default)(classes, activeNames);
  50634. return (0, _autoprefix2.default)(merged);
  50635. };
  50636. exports.default = ReactCSS;
  50637. /***/ }),
  50638. /***/ "../../node_modules/reactcss/lib/loop.js":
  50639. /*!*************************************************************!*\
  50640. !*** C:/Repos/Babylon.js/node_modules/reactcss/lib/loop.js ***!
  50641. \*************************************************************/
  50642. /*! no static exports found */
  50643. /***/ (function(module, exports, __webpack_require__) {
  50644. "use strict";
  50645. Object.defineProperty(exports, "__esModule", {
  50646. value: true
  50647. });
  50648. var loopable = function loopable(i, length) {
  50649. var props = {};
  50650. var setProp = function setProp(name) {
  50651. var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  50652. props[name] = value;
  50653. };
  50654. i === 0 && setProp('first-child');
  50655. i === length - 1 && setProp('last-child');
  50656. (i === 0 || i % 2 === 0) && setProp('even');
  50657. Math.abs(i % 2) === 1 && setProp('odd');
  50658. setProp('nth-child', i);
  50659. return props;
  50660. };
  50661. exports.default = loopable;
  50662. /***/ }),
  50663. /***/ "../../node_modules/reactcss/lib/mergeClasses.js":
  50664. /*!*********************************************************************!*\
  50665. !*** C:/Repos/Babylon.js/node_modules/reactcss/lib/mergeClasses.js ***!
  50666. \*********************************************************************/
  50667. /*! no static exports found */
  50668. /***/ (function(module, exports, __webpack_require__) {
  50669. "use strict";
  50670. Object.defineProperty(exports, "__esModule", {
  50671. value: true
  50672. });
  50673. exports.mergeClasses = undefined;
  50674. var _forOwn2 = __webpack_require__(/*! lodash/forOwn */ "../../node_modules/lodash/forOwn.js");
  50675. var _forOwn3 = _interopRequireDefault(_forOwn2);
  50676. var _cloneDeep2 = __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js");
  50677. var _cloneDeep3 = _interopRequireDefault(_cloneDeep2);
  50678. var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  50679. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50680. var mergeClasses = exports.mergeClasses = function mergeClasses(classes) {
  50681. var activeNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  50682. var styles = classes.default && (0, _cloneDeep3.default)(classes.default) || {};
  50683. activeNames.map(function (name) {
  50684. var toMerge = classes[name];
  50685. if (toMerge) {
  50686. (0, _forOwn3.default)(toMerge, function (value, key) {
  50687. if (!styles[key]) {
  50688. styles[key] = {};
  50689. }
  50690. styles[key] = _extends({}, styles[key], toMerge[key]);
  50691. });
  50692. }
  50693. return name;
  50694. });
  50695. return styles;
  50696. };
  50697. exports.default = mergeClasses;
  50698. /***/ }),
  50699. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  50700. /*!***************************************************************************************!*\
  50701. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  50702. \***************************************************************************************/
  50703. /*! no static exports found */
  50704. /***/ (function(module, exports, __webpack_require__) {
  50705. "use strict";
  50706. /** @license React v0.19.1
  50707. * scheduler-tracing.development.js
  50708. *
  50709. * Copyright (c) Facebook, Inc. and its affiliates.
  50710. *
  50711. * This source code is licensed under the MIT license found in the
  50712. * LICENSE file in the root directory of this source tree.
  50713. */
  50714. if (true) {
  50715. (function() {
  50716. 'use strict';
  50717. var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.
  50718. var interactionIDCounter = 0;
  50719. var threadIDCounter = 0; // Set of currently traced interactions.
  50720. // Interactions "stack"–
  50721. // Meaning that newly traced interactions are appended to the previously active set.
  50722. // When an interaction goes out of scope, the previous set (if any) is restored.
  50723. exports.__interactionsRef = null; // Listener(s) to notify when interactions begin and end.
  50724. exports.__subscriberRef = null;
  50725. {
  50726. exports.__interactionsRef = {
  50727. current: new Set()
  50728. };
  50729. exports.__subscriberRef = {
  50730. current: null
  50731. };
  50732. }
  50733. function unstable_clear(callback) {
  50734. var prevInteractions = exports.__interactionsRef.current;
  50735. exports.__interactionsRef.current = new Set();
  50736. try {
  50737. return callback();
  50738. } finally {
  50739. exports.__interactionsRef.current = prevInteractions;
  50740. }
  50741. }
  50742. function unstable_getCurrent() {
  50743. {
  50744. return exports.__interactionsRef.current;
  50745. }
  50746. }
  50747. function unstable_getThreadID() {
  50748. return ++threadIDCounter;
  50749. }
  50750. function unstable_trace(name, timestamp, callback) {
  50751. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  50752. var interaction = {
  50753. __count: 1,
  50754. id: interactionIDCounter++,
  50755. name: name,
  50756. timestamp: timestamp
  50757. };
  50758. var prevInteractions = exports.__interactionsRef.current; // Traced interactions should stack/accumulate.
  50759. // To do that, clone the current interactions.
  50760. // The previous set will be restored upon completion.
  50761. var interactions = new Set(prevInteractions);
  50762. interactions.add(interaction);
  50763. exports.__interactionsRef.current = interactions;
  50764. var subscriber = exports.__subscriberRef.current;
  50765. var returnValue;
  50766. try {
  50767. if (subscriber !== null) {
  50768. subscriber.onInteractionTraced(interaction);
  50769. }
  50770. } finally {
  50771. try {
  50772. if (subscriber !== null) {
  50773. subscriber.onWorkStarted(interactions, threadID);
  50774. }
  50775. } finally {
  50776. try {
  50777. returnValue = callback();
  50778. } finally {
  50779. exports.__interactionsRef.current = prevInteractions;
  50780. try {
  50781. if (subscriber !== null) {
  50782. subscriber.onWorkStopped(interactions, threadID);
  50783. }
  50784. } finally {
  50785. interaction.__count--; // If no async work was scheduled for this interaction,
  50786. // Notify subscribers that it's completed.
  50787. if (subscriber !== null && interaction.__count === 0) {
  50788. subscriber.onInteractionScheduledWorkCompleted(interaction);
  50789. }
  50790. }
  50791. }
  50792. }
  50793. }
  50794. return returnValue;
  50795. }
  50796. function unstable_wrap(callback) {
  50797. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  50798. var wrappedInteractions = exports.__interactionsRef.current;
  50799. var subscriber = exports.__subscriberRef.current;
  50800. if (subscriber !== null) {
  50801. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  50802. } // Update the pending async work count for the current interactions.
  50803. // Update after calling subscribers in case of error.
  50804. wrappedInteractions.forEach(function (interaction) {
  50805. interaction.__count++;
  50806. });
  50807. var hasRun = false;
  50808. function wrapped() {
  50809. var prevInteractions = exports.__interactionsRef.current;
  50810. exports.__interactionsRef.current = wrappedInteractions;
  50811. subscriber = exports.__subscriberRef.current;
  50812. try {
  50813. var returnValue;
  50814. try {
  50815. if (subscriber !== null) {
  50816. subscriber.onWorkStarted(wrappedInteractions, threadID);
  50817. }
  50818. } finally {
  50819. try {
  50820. returnValue = callback.apply(undefined, arguments);
  50821. } finally {
  50822. exports.__interactionsRef.current = prevInteractions;
  50823. if (subscriber !== null) {
  50824. subscriber.onWorkStopped(wrappedInteractions, threadID);
  50825. }
  50826. }
  50827. }
  50828. return returnValue;
  50829. } finally {
  50830. if (!hasRun) {
  50831. // We only expect a wrapped function to be executed once,
  50832. // But in the event that it's executed more than once–
  50833. // Only decrement the outstanding interaction counts once.
  50834. hasRun = true; // Update pending async counts for all wrapped interactions.
  50835. // If this was the last scheduled async work for any of them,
  50836. // Mark them as completed.
  50837. wrappedInteractions.forEach(function (interaction) {
  50838. interaction.__count--;
  50839. if (subscriber !== null && interaction.__count === 0) {
  50840. subscriber.onInteractionScheduledWorkCompleted(interaction);
  50841. }
  50842. });
  50843. }
  50844. }
  50845. }
  50846. wrapped.cancel = function cancel() {
  50847. subscriber = exports.__subscriberRef.current;
  50848. try {
  50849. if (subscriber !== null) {
  50850. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  50851. }
  50852. } finally {
  50853. // Update pending async counts for all wrapped interactions.
  50854. // If this was the last scheduled async work for any of them,
  50855. // Mark them as completed.
  50856. wrappedInteractions.forEach(function (interaction) {
  50857. interaction.__count--;
  50858. if (subscriber && interaction.__count === 0) {
  50859. subscriber.onInteractionScheduledWorkCompleted(interaction);
  50860. }
  50861. });
  50862. }
  50863. };
  50864. return wrapped;
  50865. }
  50866. var subscribers = null;
  50867. {
  50868. subscribers = new Set();
  50869. }
  50870. function unstable_subscribe(subscriber) {
  50871. {
  50872. subscribers.add(subscriber);
  50873. if (subscribers.size === 1) {
  50874. exports.__subscriberRef.current = {
  50875. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  50876. onInteractionTraced: onInteractionTraced,
  50877. onWorkCanceled: onWorkCanceled,
  50878. onWorkScheduled: onWorkScheduled,
  50879. onWorkStarted: onWorkStarted,
  50880. onWorkStopped: onWorkStopped
  50881. };
  50882. }
  50883. }
  50884. }
  50885. function unstable_unsubscribe(subscriber) {
  50886. {
  50887. subscribers.delete(subscriber);
  50888. if (subscribers.size === 0) {
  50889. exports.__subscriberRef.current = null;
  50890. }
  50891. }
  50892. }
  50893. function onInteractionTraced(interaction) {
  50894. var didCatchError = false;
  50895. var caughtError = null;
  50896. subscribers.forEach(function (subscriber) {
  50897. try {
  50898. subscriber.onInteractionTraced(interaction);
  50899. } catch (error) {
  50900. if (!didCatchError) {
  50901. didCatchError = true;
  50902. caughtError = error;
  50903. }
  50904. }
  50905. });
  50906. if (didCatchError) {
  50907. throw caughtError;
  50908. }
  50909. }
  50910. function onInteractionScheduledWorkCompleted(interaction) {
  50911. var didCatchError = false;
  50912. var caughtError = null;
  50913. subscribers.forEach(function (subscriber) {
  50914. try {
  50915. subscriber.onInteractionScheduledWorkCompleted(interaction);
  50916. } catch (error) {
  50917. if (!didCatchError) {
  50918. didCatchError = true;
  50919. caughtError = error;
  50920. }
  50921. }
  50922. });
  50923. if (didCatchError) {
  50924. throw caughtError;
  50925. }
  50926. }
  50927. function onWorkScheduled(interactions, threadID) {
  50928. var didCatchError = false;
  50929. var caughtError = null;
  50930. subscribers.forEach(function (subscriber) {
  50931. try {
  50932. subscriber.onWorkScheduled(interactions, threadID);
  50933. } catch (error) {
  50934. if (!didCatchError) {
  50935. didCatchError = true;
  50936. caughtError = error;
  50937. }
  50938. }
  50939. });
  50940. if (didCatchError) {
  50941. throw caughtError;
  50942. }
  50943. }
  50944. function onWorkStarted(interactions, threadID) {
  50945. var didCatchError = false;
  50946. var caughtError = null;
  50947. subscribers.forEach(function (subscriber) {
  50948. try {
  50949. subscriber.onWorkStarted(interactions, threadID);
  50950. } catch (error) {
  50951. if (!didCatchError) {
  50952. didCatchError = true;
  50953. caughtError = error;
  50954. }
  50955. }
  50956. });
  50957. if (didCatchError) {
  50958. throw caughtError;
  50959. }
  50960. }
  50961. function onWorkStopped(interactions, threadID) {
  50962. var didCatchError = false;
  50963. var caughtError = null;
  50964. subscribers.forEach(function (subscriber) {
  50965. try {
  50966. subscriber.onWorkStopped(interactions, threadID);
  50967. } catch (error) {
  50968. if (!didCatchError) {
  50969. didCatchError = true;
  50970. caughtError = error;
  50971. }
  50972. }
  50973. });
  50974. if (didCatchError) {
  50975. throw caughtError;
  50976. }
  50977. }
  50978. function onWorkCanceled(interactions, threadID) {
  50979. var didCatchError = false;
  50980. var caughtError = null;
  50981. subscribers.forEach(function (subscriber) {
  50982. try {
  50983. subscriber.onWorkCanceled(interactions, threadID);
  50984. } catch (error) {
  50985. if (!didCatchError) {
  50986. didCatchError = true;
  50987. caughtError = error;
  50988. }
  50989. }
  50990. });
  50991. if (didCatchError) {
  50992. throw caughtError;
  50993. }
  50994. }
  50995. exports.unstable_clear = unstable_clear;
  50996. exports.unstable_getCurrent = unstable_getCurrent;
  50997. exports.unstable_getThreadID = unstable_getThreadID;
  50998. exports.unstable_subscribe = unstable_subscribe;
  50999. exports.unstable_trace = unstable_trace;
  51000. exports.unstable_unsubscribe = unstable_unsubscribe;
  51001. exports.unstable_wrap = unstable_wrap;
  51002. })();
  51003. }
  51004. /***/ }),
  51005. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  51006. /*!*******************************************************************************!*\
  51007. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  51008. \*******************************************************************************/
  51009. /*! no static exports found */
  51010. /***/ (function(module, exports, __webpack_require__) {
  51011. "use strict";
  51012. /** @license React v0.19.1
  51013. * scheduler.development.js
  51014. *
  51015. * Copyright (c) Facebook, Inc. and its affiliates.
  51016. *
  51017. * This source code is licensed under the MIT license found in the
  51018. * LICENSE file in the root directory of this source tree.
  51019. */
  51020. if (true) {
  51021. (function() {
  51022. 'use strict';
  51023. var enableSchedulerDebugging = false;
  51024. var enableProfiling = true;
  51025. var requestHostCallback;
  51026. var requestHostTimeout;
  51027. var cancelHostTimeout;
  51028. var shouldYieldToHost;
  51029. var requestPaint;
  51030. if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
  51031. // implementation using setTimeout.
  51032. typeof window === 'undefined' || // Check if MessageChannel is supported, too.
  51033. typeof MessageChannel !== 'function') {
  51034. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  51035. // fallback to a naive implementation.
  51036. var _callback = null;
  51037. var _timeoutID = null;
  51038. var _flushCallback = function () {
  51039. if (_callback !== null) {
  51040. try {
  51041. var currentTime = exports.unstable_now();
  51042. var hasRemainingTime = true;
  51043. _callback(hasRemainingTime, currentTime);
  51044. _callback = null;
  51045. } catch (e) {
  51046. setTimeout(_flushCallback, 0);
  51047. throw e;
  51048. }
  51049. }
  51050. };
  51051. var initialTime = Date.now();
  51052. exports.unstable_now = function () {
  51053. return Date.now() - initialTime;
  51054. };
  51055. requestHostCallback = function (cb) {
  51056. if (_callback !== null) {
  51057. // Protect against re-entrancy.
  51058. setTimeout(requestHostCallback, 0, cb);
  51059. } else {
  51060. _callback = cb;
  51061. setTimeout(_flushCallback, 0);
  51062. }
  51063. };
  51064. requestHostTimeout = function (cb, ms) {
  51065. _timeoutID = setTimeout(cb, ms);
  51066. };
  51067. cancelHostTimeout = function () {
  51068. clearTimeout(_timeoutID);
  51069. };
  51070. shouldYieldToHost = function () {
  51071. return false;
  51072. };
  51073. requestPaint = exports.unstable_forceFrameRate = function () {};
  51074. } else {
  51075. // Capture local references to native APIs, in case a polyfill overrides them.
  51076. var performance = window.performance;
  51077. var _Date = window.Date;
  51078. var _setTimeout = window.setTimeout;
  51079. var _clearTimeout = window.clearTimeout;
  51080. if (typeof console !== 'undefined') {
  51081. // TODO: Scheduler no longer requires these methods to be polyfilled. But
  51082. // maybe we want to continue warning if they don't exist, to preserve the
  51083. // option to rely on it in the future?
  51084. var requestAnimationFrame = window.requestAnimationFrame;
  51085. var cancelAnimationFrame = window.cancelAnimationFrame; // TODO: Remove fb.me link
  51086. if (typeof requestAnimationFrame !== 'function') {
  51087. // Using console['error'] to evade Babel and ESLint
  51088. console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  51089. }
  51090. if (typeof cancelAnimationFrame !== 'function') {
  51091. // Using console['error'] to evade Babel and ESLint
  51092. console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  51093. }
  51094. }
  51095. if (typeof performance === 'object' && typeof performance.now === 'function') {
  51096. exports.unstable_now = function () {
  51097. return performance.now();
  51098. };
  51099. } else {
  51100. var _initialTime = _Date.now();
  51101. exports.unstable_now = function () {
  51102. return _Date.now() - _initialTime;
  51103. };
  51104. }
  51105. var isMessageLoopRunning = false;
  51106. var scheduledHostCallback = null;
  51107. var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
  51108. // thread, like user events. By default, it yields multiple times per frame.
  51109. // It does not attempt to align with frame boundaries, since most tasks don't
  51110. // need to be frame aligned; for those that do, use requestAnimationFrame.
  51111. var yieldInterval = 5;
  51112. var deadline = 0; // TODO: Make this configurable
  51113. {
  51114. // `isInputPending` is not available. Since we have no way of knowing if
  51115. // there's pending input, always yield at the end of the frame.
  51116. shouldYieldToHost = function () {
  51117. return exports.unstable_now() >= deadline;
  51118. }; // Since we yield every frame regardless, `requestPaint` has no effect.
  51119. requestPaint = function () {};
  51120. }
  51121. exports.unstable_forceFrameRate = function (fps) {
  51122. if (fps < 0 || fps > 125) {
  51123. // Using console['error'] to evade Babel and ESLint
  51124. console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
  51125. return;
  51126. }
  51127. if (fps > 0) {
  51128. yieldInterval = Math.floor(1000 / fps);
  51129. } else {
  51130. // reset the framerate
  51131. yieldInterval = 5;
  51132. }
  51133. };
  51134. var performWorkUntilDeadline = function () {
  51135. if (scheduledHostCallback !== null) {
  51136. var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
  51137. // cycle. This means there's always time remaining at the beginning of
  51138. // the message event.
  51139. deadline = currentTime + yieldInterval;
  51140. var hasTimeRemaining = true;
  51141. try {
  51142. var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
  51143. if (!hasMoreWork) {
  51144. isMessageLoopRunning = false;
  51145. scheduledHostCallback = null;
  51146. } else {
  51147. // If there's more work, schedule the next message event at the end
  51148. // of the preceding one.
  51149. port.postMessage(null);
  51150. }
  51151. } catch (error) {
  51152. // If a scheduler task throws, exit the current browser task so the
  51153. // error can be observed.
  51154. port.postMessage(null);
  51155. throw error;
  51156. }
  51157. } else {
  51158. isMessageLoopRunning = false;
  51159. } // Yielding to the browser will give it a chance to paint, so we can
  51160. };
  51161. var channel = new MessageChannel();
  51162. var port = channel.port2;
  51163. channel.port1.onmessage = performWorkUntilDeadline;
  51164. requestHostCallback = function (callback) {
  51165. scheduledHostCallback = callback;
  51166. if (!isMessageLoopRunning) {
  51167. isMessageLoopRunning = true;
  51168. port.postMessage(null);
  51169. }
  51170. };
  51171. requestHostTimeout = function (callback, ms) {
  51172. taskTimeoutID = _setTimeout(function () {
  51173. callback(exports.unstable_now());
  51174. }, ms);
  51175. };
  51176. cancelHostTimeout = function () {
  51177. _clearTimeout(taskTimeoutID);
  51178. taskTimeoutID = -1;
  51179. };
  51180. }
  51181. function push(heap, node) {
  51182. var index = heap.length;
  51183. heap.push(node);
  51184. siftUp(heap, node, index);
  51185. }
  51186. function peek(heap) {
  51187. var first = heap[0];
  51188. return first === undefined ? null : first;
  51189. }
  51190. function pop(heap) {
  51191. var first = heap[0];
  51192. if (first !== undefined) {
  51193. var last = heap.pop();
  51194. if (last !== first) {
  51195. heap[0] = last;
  51196. siftDown(heap, last, 0);
  51197. }
  51198. return first;
  51199. } else {
  51200. return null;
  51201. }
  51202. }
  51203. function siftUp(heap, node, i) {
  51204. var index = i;
  51205. while (true) {
  51206. var parentIndex = index - 1 >>> 1;
  51207. var parent = heap[parentIndex];
  51208. if (parent !== undefined && compare(parent, node) > 0) {
  51209. // The parent is larger. Swap positions.
  51210. heap[parentIndex] = node;
  51211. heap[index] = parent;
  51212. index = parentIndex;
  51213. } else {
  51214. // The parent is smaller. Exit.
  51215. return;
  51216. }
  51217. }
  51218. }
  51219. function siftDown(heap, node, i) {
  51220. var index = i;
  51221. var length = heap.length;
  51222. while (index < length) {
  51223. var leftIndex = (index + 1) * 2 - 1;
  51224. var left = heap[leftIndex];
  51225. var rightIndex = leftIndex + 1;
  51226. var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
  51227. if (left !== undefined && compare(left, node) < 0) {
  51228. if (right !== undefined && compare(right, left) < 0) {
  51229. heap[index] = right;
  51230. heap[rightIndex] = node;
  51231. index = rightIndex;
  51232. } else {
  51233. heap[index] = left;
  51234. heap[leftIndex] = node;
  51235. index = leftIndex;
  51236. }
  51237. } else if (right !== undefined && compare(right, node) < 0) {
  51238. heap[index] = right;
  51239. heap[rightIndex] = node;
  51240. index = rightIndex;
  51241. } else {
  51242. // Neither child is smaller. Exit.
  51243. return;
  51244. }
  51245. }
  51246. }
  51247. function compare(a, b) {
  51248. // Compare sort index first, then task id.
  51249. var diff = a.sortIndex - b.sortIndex;
  51250. return diff !== 0 ? diff : a.id - b.id;
  51251. }
  51252. // TODO: Use symbols?
  51253. var NoPriority = 0;
  51254. var ImmediatePriority = 1;
  51255. var UserBlockingPriority = 2;
  51256. var NormalPriority = 3;
  51257. var LowPriority = 4;
  51258. var IdlePriority = 5;
  51259. var runIdCounter = 0;
  51260. var mainThreadIdCounter = 0;
  51261. var profilingStateSize = 4;
  51262. var sharedProfilingBuffer = // $FlowFixMe Flow doesn't know about SharedArrayBuffer
  51263. typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer
  51264. typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9
  51265. ;
  51266. var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks
  51267. var PRIORITY = 0;
  51268. var CURRENT_TASK_ID = 1;
  51269. var CURRENT_RUN_ID = 2;
  51270. var QUEUE_SIZE = 3;
  51271. {
  51272. profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue
  51273. // array might include canceled tasks.
  51274. profilingState[QUEUE_SIZE] = 0;
  51275. profilingState[CURRENT_TASK_ID] = 0;
  51276. } // Bytes per element is 4
  51277. var INITIAL_EVENT_LOG_SIZE = 131072;
  51278. var MAX_EVENT_LOG_SIZE = 524288; // Equivalent to 2 megabytes
  51279. var eventLogSize = 0;
  51280. var eventLogBuffer = null;
  51281. var eventLog = null;
  51282. var eventLogIndex = 0;
  51283. var TaskStartEvent = 1;
  51284. var TaskCompleteEvent = 2;
  51285. var TaskErrorEvent = 3;
  51286. var TaskCancelEvent = 4;
  51287. var TaskRunEvent = 5;
  51288. var TaskYieldEvent = 6;
  51289. var SchedulerSuspendEvent = 7;
  51290. var SchedulerResumeEvent = 8;
  51291. function logEvent(entries) {
  51292. if (eventLog !== null) {
  51293. var offset = eventLogIndex;
  51294. eventLogIndex += entries.length;
  51295. if (eventLogIndex + 1 > eventLogSize) {
  51296. eventLogSize *= 2;
  51297. if (eventLogSize > MAX_EVENT_LOG_SIZE) {
  51298. // Using console['error'] to evade Babel and ESLint
  51299. console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
  51300. stopLoggingProfilingEvents();
  51301. return;
  51302. }
  51303. var newEventLog = new Int32Array(eventLogSize * 4);
  51304. newEventLog.set(eventLog);
  51305. eventLogBuffer = newEventLog.buffer;
  51306. eventLog = newEventLog;
  51307. }
  51308. eventLog.set(entries, offset);
  51309. }
  51310. }
  51311. function startLoggingProfilingEvents() {
  51312. eventLogSize = INITIAL_EVENT_LOG_SIZE;
  51313. eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
  51314. eventLog = new Int32Array(eventLogBuffer);
  51315. eventLogIndex = 0;
  51316. }
  51317. function stopLoggingProfilingEvents() {
  51318. var buffer = eventLogBuffer;
  51319. eventLogSize = 0;
  51320. eventLogBuffer = null;
  51321. eventLog = null;
  51322. eventLogIndex = 0;
  51323. return buffer;
  51324. }
  51325. function markTaskStart(task, ms) {
  51326. {
  51327. profilingState[QUEUE_SIZE]++;
  51328. if (eventLog !== null) {
  51329. // performance.now returns a float, representing milliseconds. When the
  51330. // event is logged, it's coerced to an int. Convert to microseconds to
  51331. // maintain extra degrees of precision.
  51332. logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
  51333. }
  51334. }
  51335. }
  51336. function markTaskCompleted(task, ms) {
  51337. {
  51338. profilingState[PRIORITY] = NoPriority;
  51339. profilingState[CURRENT_TASK_ID] = 0;
  51340. profilingState[QUEUE_SIZE]--;
  51341. if (eventLog !== null) {
  51342. logEvent([TaskCompleteEvent, ms * 1000, task.id]);
  51343. }
  51344. }
  51345. }
  51346. function markTaskCanceled(task, ms) {
  51347. {
  51348. profilingState[QUEUE_SIZE]--;
  51349. if (eventLog !== null) {
  51350. logEvent([TaskCancelEvent, ms * 1000, task.id]);
  51351. }
  51352. }
  51353. }
  51354. function markTaskErrored(task, ms) {
  51355. {
  51356. profilingState[PRIORITY] = NoPriority;
  51357. profilingState[CURRENT_TASK_ID] = 0;
  51358. profilingState[QUEUE_SIZE]--;
  51359. if (eventLog !== null) {
  51360. logEvent([TaskErrorEvent, ms * 1000, task.id]);
  51361. }
  51362. }
  51363. }
  51364. function markTaskRun(task, ms) {
  51365. {
  51366. runIdCounter++;
  51367. profilingState[PRIORITY] = task.priorityLevel;
  51368. profilingState[CURRENT_TASK_ID] = task.id;
  51369. profilingState[CURRENT_RUN_ID] = runIdCounter;
  51370. if (eventLog !== null) {
  51371. logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
  51372. }
  51373. }
  51374. }
  51375. function markTaskYield(task, ms) {
  51376. {
  51377. profilingState[PRIORITY] = NoPriority;
  51378. profilingState[CURRENT_TASK_ID] = 0;
  51379. profilingState[CURRENT_RUN_ID] = 0;
  51380. if (eventLog !== null) {
  51381. logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
  51382. }
  51383. }
  51384. }
  51385. function markSchedulerSuspended(ms) {
  51386. {
  51387. mainThreadIdCounter++;
  51388. if (eventLog !== null) {
  51389. logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
  51390. }
  51391. }
  51392. }
  51393. function markSchedulerUnsuspended(ms) {
  51394. {
  51395. if (eventLog !== null) {
  51396. logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
  51397. }
  51398. }
  51399. }
  51400. /* eslint-disable no-var */
  51401. // Math.pow(2, 30) - 1
  51402. // 0b111111111111111111111111111111
  51403. var maxSigned31BitInt = 1073741823; // Times out immediately
  51404. var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
  51405. var USER_BLOCKING_PRIORITY = 250;
  51406. var NORMAL_PRIORITY_TIMEOUT = 5000;
  51407. var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
  51408. var IDLE_PRIORITY = maxSigned31BitInt; // Tasks are stored on a min heap
  51409. var taskQueue = [];
  51410. var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
  51411. var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
  51412. var currentTask = null;
  51413. var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.
  51414. var isPerformingWork = false;
  51415. var isHostCallbackScheduled = false;
  51416. var isHostTimeoutScheduled = false;
  51417. function advanceTimers(currentTime) {
  51418. // Check for tasks that are no longer delayed and add them to the queue.
  51419. var timer = peek(timerQueue);
  51420. while (timer !== null) {
  51421. if (timer.callback === null) {
  51422. // Timer was cancelled.
  51423. pop(timerQueue);
  51424. } else if (timer.startTime <= currentTime) {
  51425. // Timer fired. Transfer to the task queue.
  51426. pop(timerQueue);
  51427. timer.sortIndex = timer.expirationTime;
  51428. push(taskQueue, timer);
  51429. {
  51430. markTaskStart(timer, currentTime);
  51431. timer.isQueued = true;
  51432. }
  51433. } else {
  51434. // Remaining timers are pending.
  51435. return;
  51436. }
  51437. timer = peek(timerQueue);
  51438. }
  51439. }
  51440. function handleTimeout(currentTime) {
  51441. isHostTimeoutScheduled = false;
  51442. advanceTimers(currentTime);
  51443. if (!isHostCallbackScheduled) {
  51444. if (peek(taskQueue) !== null) {
  51445. isHostCallbackScheduled = true;
  51446. requestHostCallback(flushWork);
  51447. } else {
  51448. var firstTimer = peek(timerQueue);
  51449. if (firstTimer !== null) {
  51450. requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
  51451. }
  51452. }
  51453. }
  51454. }
  51455. function flushWork(hasTimeRemaining, initialTime) {
  51456. {
  51457. markSchedulerUnsuspended(initialTime);
  51458. } // We'll need a host callback the next time work is scheduled.
  51459. isHostCallbackScheduled = false;
  51460. if (isHostTimeoutScheduled) {
  51461. // We scheduled a timeout but it's no longer needed. Cancel it.
  51462. isHostTimeoutScheduled = false;
  51463. cancelHostTimeout();
  51464. }
  51465. isPerformingWork = true;
  51466. var previousPriorityLevel = currentPriorityLevel;
  51467. try {
  51468. if (enableProfiling) {
  51469. try {
  51470. return workLoop(hasTimeRemaining, initialTime);
  51471. } catch (error) {
  51472. if (currentTask !== null) {
  51473. var currentTime = exports.unstable_now();
  51474. markTaskErrored(currentTask, currentTime);
  51475. currentTask.isQueued = false;
  51476. }
  51477. throw error;
  51478. }
  51479. } else {
  51480. // No catch in prod codepath.
  51481. return workLoop(hasTimeRemaining, initialTime);
  51482. }
  51483. } finally {
  51484. currentTask = null;
  51485. currentPriorityLevel = previousPriorityLevel;
  51486. isPerformingWork = false;
  51487. {
  51488. var _currentTime = exports.unstable_now();
  51489. markSchedulerSuspended(_currentTime);
  51490. }
  51491. }
  51492. }
  51493. function workLoop(hasTimeRemaining, initialTime) {
  51494. var currentTime = initialTime;
  51495. advanceTimers(currentTime);
  51496. currentTask = peek(taskQueue);
  51497. while (currentTask !== null && !(enableSchedulerDebugging )) {
  51498. if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
  51499. // This currentTask hasn't expired, and we've reached the deadline.
  51500. break;
  51501. }
  51502. var callback = currentTask.callback;
  51503. if (callback !== null) {
  51504. currentTask.callback = null;
  51505. currentPriorityLevel = currentTask.priorityLevel;
  51506. var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
  51507. markTaskRun(currentTask, currentTime);
  51508. var continuationCallback = callback(didUserCallbackTimeout);
  51509. currentTime = exports.unstable_now();
  51510. if (typeof continuationCallback === 'function') {
  51511. currentTask.callback = continuationCallback;
  51512. markTaskYield(currentTask, currentTime);
  51513. } else {
  51514. {
  51515. markTaskCompleted(currentTask, currentTime);
  51516. currentTask.isQueued = false;
  51517. }
  51518. if (currentTask === peek(taskQueue)) {
  51519. pop(taskQueue);
  51520. }
  51521. }
  51522. advanceTimers(currentTime);
  51523. } else {
  51524. pop(taskQueue);
  51525. }
  51526. currentTask = peek(taskQueue);
  51527. } // Return whether there's additional work
  51528. if (currentTask !== null) {
  51529. return true;
  51530. } else {
  51531. var firstTimer = peek(timerQueue);
  51532. if (firstTimer !== null) {
  51533. requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
  51534. }
  51535. return false;
  51536. }
  51537. }
  51538. function unstable_runWithPriority(priorityLevel, eventHandler) {
  51539. switch (priorityLevel) {
  51540. case ImmediatePriority:
  51541. case UserBlockingPriority:
  51542. case NormalPriority:
  51543. case LowPriority:
  51544. case IdlePriority:
  51545. break;
  51546. default:
  51547. priorityLevel = NormalPriority;
  51548. }
  51549. var previousPriorityLevel = currentPriorityLevel;
  51550. currentPriorityLevel = priorityLevel;
  51551. try {
  51552. return eventHandler();
  51553. } finally {
  51554. currentPriorityLevel = previousPriorityLevel;
  51555. }
  51556. }
  51557. function unstable_next(eventHandler) {
  51558. var priorityLevel;
  51559. switch (currentPriorityLevel) {
  51560. case ImmediatePriority:
  51561. case UserBlockingPriority:
  51562. case NormalPriority:
  51563. // Shift down to normal priority
  51564. priorityLevel = NormalPriority;
  51565. break;
  51566. default:
  51567. // Anything lower than normal priority should remain at the current level.
  51568. priorityLevel = currentPriorityLevel;
  51569. break;
  51570. }
  51571. var previousPriorityLevel = currentPriorityLevel;
  51572. currentPriorityLevel = priorityLevel;
  51573. try {
  51574. return eventHandler();
  51575. } finally {
  51576. currentPriorityLevel = previousPriorityLevel;
  51577. }
  51578. }
  51579. function unstable_wrapCallback(callback) {
  51580. var parentPriorityLevel = currentPriorityLevel;
  51581. return function () {
  51582. // This is a fork of runWithPriority, inlined for performance.
  51583. var previousPriorityLevel = currentPriorityLevel;
  51584. currentPriorityLevel = parentPriorityLevel;
  51585. try {
  51586. return callback.apply(this, arguments);
  51587. } finally {
  51588. currentPriorityLevel = previousPriorityLevel;
  51589. }
  51590. };
  51591. }
  51592. function timeoutForPriorityLevel(priorityLevel) {
  51593. switch (priorityLevel) {
  51594. case ImmediatePriority:
  51595. return IMMEDIATE_PRIORITY_TIMEOUT;
  51596. case UserBlockingPriority:
  51597. return USER_BLOCKING_PRIORITY;
  51598. case IdlePriority:
  51599. return IDLE_PRIORITY;
  51600. case LowPriority:
  51601. return LOW_PRIORITY_TIMEOUT;
  51602. case NormalPriority:
  51603. default:
  51604. return NORMAL_PRIORITY_TIMEOUT;
  51605. }
  51606. }
  51607. function unstable_scheduleCallback(priorityLevel, callback, options) {
  51608. var currentTime = exports.unstable_now();
  51609. var startTime;
  51610. var timeout;
  51611. if (typeof options === 'object' && options !== null) {
  51612. var delay = options.delay;
  51613. if (typeof delay === 'number' && delay > 0) {
  51614. startTime = currentTime + delay;
  51615. } else {
  51616. startTime = currentTime;
  51617. }
  51618. timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
  51619. } else {
  51620. timeout = timeoutForPriorityLevel(priorityLevel);
  51621. startTime = currentTime;
  51622. }
  51623. var expirationTime = startTime + timeout;
  51624. var newTask = {
  51625. id: taskIdCounter++,
  51626. callback: callback,
  51627. priorityLevel: priorityLevel,
  51628. startTime: startTime,
  51629. expirationTime: expirationTime,
  51630. sortIndex: -1
  51631. };
  51632. {
  51633. newTask.isQueued = false;
  51634. }
  51635. if (startTime > currentTime) {
  51636. // This is a delayed task.
  51637. newTask.sortIndex = startTime;
  51638. push(timerQueue, newTask);
  51639. if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
  51640. // All tasks are delayed, and this is the task with the earliest delay.
  51641. if (isHostTimeoutScheduled) {
  51642. // Cancel an existing timeout.
  51643. cancelHostTimeout();
  51644. } else {
  51645. isHostTimeoutScheduled = true;
  51646. } // Schedule a timeout.
  51647. requestHostTimeout(handleTimeout, startTime - currentTime);
  51648. }
  51649. } else {
  51650. newTask.sortIndex = expirationTime;
  51651. push(taskQueue, newTask);
  51652. {
  51653. markTaskStart(newTask, currentTime);
  51654. newTask.isQueued = true;
  51655. } // Schedule a host callback, if needed. If we're already performing work,
  51656. // wait until the next time we yield.
  51657. if (!isHostCallbackScheduled && !isPerformingWork) {
  51658. isHostCallbackScheduled = true;
  51659. requestHostCallback(flushWork);
  51660. }
  51661. }
  51662. return newTask;
  51663. }
  51664. function unstable_pauseExecution() {
  51665. }
  51666. function unstable_continueExecution() {
  51667. if (!isHostCallbackScheduled && !isPerformingWork) {
  51668. isHostCallbackScheduled = true;
  51669. requestHostCallback(flushWork);
  51670. }
  51671. }
  51672. function unstable_getFirstCallbackNode() {
  51673. return peek(taskQueue);
  51674. }
  51675. function unstable_cancelCallback(task) {
  51676. {
  51677. if (task.isQueued) {
  51678. var currentTime = exports.unstable_now();
  51679. markTaskCanceled(task, currentTime);
  51680. task.isQueued = false;
  51681. }
  51682. } // Null out the callback to indicate the task has been canceled. (Can't
  51683. // remove from the queue because you can't remove arbitrary nodes from an
  51684. // array based heap, only the first one.)
  51685. task.callback = null;
  51686. }
  51687. function unstable_getCurrentPriorityLevel() {
  51688. return currentPriorityLevel;
  51689. }
  51690. function unstable_shouldYield() {
  51691. var currentTime = exports.unstable_now();
  51692. advanceTimers(currentTime);
  51693. var firstTask = peek(taskQueue);
  51694. return firstTask !== currentTask && currentTask !== null && firstTask !== null && firstTask.callback !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
  51695. }
  51696. var unstable_requestPaint = requestPaint;
  51697. var unstable_Profiling = {
  51698. startLoggingProfilingEvents: startLoggingProfilingEvents,
  51699. stopLoggingProfilingEvents: stopLoggingProfilingEvents,
  51700. sharedProfilingBuffer: sharedProfilingBuffer
  51701. } ;
  51702. exports.unstable_IdlePriority = IdlePriority;
  51703. exports.unstable_ImmediatePriority = ImmediatePriority;
  51704. exports.unstable_LowPriority = LowPriority;
  51705. exports.unstable_NormalPriority = NormalPriority;
  51706. exports.unstable_Profiling = unstable_Profiling;
  51707. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  51708. exports.unstable_cancelCallback = unstable_cancelCallback;
  51709. exports.unstable_continueExecution = unstable_continueExecution;
  51710. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  51711. exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
  51712. exports.unstable_next = unstable_next;
  51713. exports.unstable_pauseExecution = unstable_pauseExecution;
  51714. exports.unstable_requestPaint = unstable_requestPaint;
  51715. exports.unstable_runWithPriority = unstable_runWithPriority;
  51716. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  51717. exports.unstable_shouldYield = unstable_shouldYield;
  51718. exports.unstable_wrapCallback = unstable_wrapCallback;
  51719. })();
  51720. }
  51721. /***/ }),
  51722. /***/ "../../node_modules/scheduler/index.js":
  51723. /*!***********************************************************!*\
  51724. !*** C:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  51725. \***********************************************************/
  51726. /*! no static exports found */
  51727. /***/ (function(module, exports, __webpack_require__) {
  51728. "use strict";
  51729. if (false) {} else {
  51730. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  51731. }
  51732. /***/ }),
  51733. /***/ "../../node_modules/scheduler/tracing.js":
  51734. /*!*************************************************************!*\
  51735. !*** C:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  51736. \*************************************************************/
  51737. /*! no static exports found */
  51738. /***/ (function(module, exports, __webpack_require__) {
  51739. "use strict";
  51740. if (false) {} else {
  51741. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  51742. }
  51743. /***/ }),
  51744. /***/ "../../node_modules/setimmediate/setImmediate.js":
  51745. /*!*********************************************************************!*\
  51746. !*** C:/Repos/Babylon.js/node_modules/setimmediate/setImmediate.js ***!
  51747. \*********************************************************************/
  51748. /*! no static exports found */
  51749. /***/ (function(module, exports, __webpack_require__) {
  51750. /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
  51751. "use strict";
  51752. if (global.setImmediate) {
  51753. return;
  51754. }
  51755. var nextHandle = 1; // Spec says greater than zero
  51756. var tasksByHandle = {};
  51757. var currentlyRunningATask = false;
  51758. var doc = global.document;
  51759. var registerImmediate;
  51760. function setImmediate(callback) {
  51761. // Callback can either be a function or a string
  51762. if (typeof callback !== "function") {
  51763. callback = new Function("" + callback);
  51764. }
  51765. // Copy function arguments
  51766. var args = new Array(arguments.length - 1);
  51767. for (var i = 0; i < args.length; i++) {
  51768. args[i] = arguments[i + 1];
  51769. }
  51770. // Store and register the task
  51771. var task = { callback: callback, args: args };
  51772. tasksByHandle[nextHandle] = task;
  51773. registerImmediate(nextHandle);
  51774. return nextHandle++;
  51775. }
  51776. function clearImmediate(handle) {
  51777. delete tasksByHandle[handle];
  51778. }
  51779. function run(task) {
  51780. var callback = task.callback;
  51781. var args = task.args;
  51782. switch (args.length) {
  51783. case 0:
  51784. callback();
  51785. break;
  51786. case 1:
  51787. callback(args[0]);
  51788. break;
  51789. case 2:
  51790. callback(args[0], args[1]);
  51791. break;
  51792. case 3:
  51793. callback(args[0], args[1], args[2]);
  51794. break;
  51795. default:
  51796. callback.apply(undefined, args);
  51797. break;
  51798. }
  51799. }
  51800. function runIfPresent(handle) {
  51801. // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
  51802. // So if we're currently running a task, we'll need to delay this invocation.
  51803. if (currentlyRunningATask) {
  51804. // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
  51805. // "too much recursion" error.
  51806. setTimeout(runIfPresent, 0, handle);
  51807. } else {
  51808. var task = tasksByHandle[handle];
  51809. if (task) {
  51810. currentlyRunningATask = true;
  51811. try {
  51812. run(task);
  51813. } finally {
  51814. clearImmediate(handle);
  51815. currentlyRunningATask = false;
  51816. }
  51817. }
  51818. }
  51819. }
  51820. function installNextTickImplementation() {
  51821. registerImmediate = function(handle) {
  51822. process.nextTick(function () { runIfPresent(handle); });
  51823. };
  51824. }
  51825. function canUsePostMessage() {
  51826. // The test against `importScripts` prevents this implementation from being installed inside a web worker,
  51827. // where `global.postMessage` means something completely different and can't be used for this purpose.
  51828. if (global.postMessage && !global.importScripts) {
  51829. var postMessageIsAsynchronous = true;
  51830. var oldOnMessage = global.onmessage;
  51831. global.onmessage = function() {
  51832. postMessageIsAsynchronous = false;
  51833. };
  51834. global.postMessage("", "*");
  51835. global.onmessage = oldOnMessage;
  51836. return postMessageIsAsynchronous;
  51837. }
  51838. }
  51839. function installPostMessageImplementation() {
  51840. // Installs an event handler on `global` for the `message` event: see
  51841. // * https://developer.mozilla.org/en/DOM/window.postMessage
  51842. // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  51843. var messagePrefix = "setImmediate$" + Math.random() + "$";
  51844. var onGlobalMessage = function(event) {
  51845. if (event.source === global &&
  51846. typeof event.data === "string" &&
  51847. event.data.indexOf(messagePrefix) === 0) {
  51848. runIfPresent(+event.data.slice(messagePrefix.length));
  51849. }
  51850. };
  51851. if (global.addEventListener) {
  51852. global.addEventListener("message", onGlobalMessage, false);
  51853. } else {
  51854. global.attachEvent("onmessage", onGlobalMessage);
  51855. }
  51856. registerImmediate = function(handle) {
  51857. global.postMessage(messagePrefix + handle, "*");
  51858. };
  51859. }
  51860. function installMessageChannelImplementation() {
  51861. var channel = new MessageChannel();
  51862. channel.port1.onmessage = function(event) {
  51863. var handle = event.data;
  51864. runIfPresent(handle);
  51865. };
  51866. registerImmediate = function(handle) {
  51867. channel.port2.postMessage(handle);
  51868. };
  51869. }
  51870. function installReadyStateChangeImplementation() {
  51871. var html = doc.documentElement;
  51872. registerImmediate = function(handle) {
  51873. // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
  51874. // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
  51875. var script = doc.createElement("script");
  51876. script.onreadystatechange = function () {
  51877. runIfPresent(handle);
  51878. script.onreadystatechange = null;
  51879. html.removeChild(script);
  51880. script = null;
  51881. };
  51882. html.appendChild(script);
  51883. };
  51884. }
  51885. function installSetTimeoutImplementation() {
  51886. registerImmediate = function(handle) {
  51887. setTimeout(runIfPresent, 0, handle);
  51888. };
  51889. }
  51890. // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
  51891. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
  51892. attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  51893. // Don't get fooled by e.g. browserify environments.
  51894. if ({}.toString.call(global.process) === "[object process]") {
  51895. // For Node.js before 0.9
  51896. installNextTickImplementation();
  51897. } else if (canUsePostMessage()) {
  51898. // For non-IE10 modern browsers
  51899. installPostMessageImplementation();
  51900. } else if (global.MessageChannel) {
  51901. // For web workers, where supported
  51902. installMessageChannelImplementation();
  51903. } else if (doc && "onreadystatechange" in doc.createElement("script")) {
  51904. // For IE 6–8
  51905. installReadyStateChangeImplementation();
  51906. } else {
  51907. // For older browsers
  51908. installSetTimeoutImplementation();
  51909. }
  51910. attachTo.setImmediate = setImmediate;
  51911. attachTo.clearImmediate = clearImmediate;
  51912. }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
  51913. /* 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")))
  51914. /***/ }),
  51915. /***/ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
  51916. /*!**********************************************************************************************!*\
  51917. !*** C:/Repos/Babylon.js/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
  51918. \**********************************************************************************************/
  51919. /*! no static exports found */
  51920. /***/ (function(module, exports, __webpack_require__) {
  51921. "use strict";
  51922. var isOldIE = function isOldIE() {
  51923. var memo;
  51924. return function memorize() {
  51925. if (typeof memo === 'undefined') {
  51926. // Test for IE <= 9 as proposed by Browserhacks
  51927. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  51928. // Tests for existence of standard globals is to allow style-loader
  51929. // to operate correctly into non-standard environments
  51930. // @see https://github.com/webpack-contrib/style-loader/issues/177
  51931. memo = Boolean(window && document && document.all && !window.atob);
  51932. }
  51933. return memo;
  51934. };
  51935. }();
  51936. var getTarget = function getTarget() {
  51937. var memo = {};
  51938. return function memorize(target) {
  51939. if (typeof memo[target] === 'undefined') {
  51940. var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
  51941. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  51942. try {
  51943. // This will throw an exception if access to iframe is blocked
  51944. // due to cross-origin restrictions
  51945. styleTarget = styleTarget.contentDocument.head;
  51946. } catch (e) {
  51947. // istanbul ignore next
  51948. styleTarget = null;
  51949. }
  51950. }
  51951. memo[target] = styleTarget;
  51952. }
  51953. return memo[target];
  51954. };
  51955. }();
  51956. var stylesInDom = [];
  51957. function getIndexByIdentifier(identifier) {
  51958. var result = -1;
  51959. for (var i = 0; i < stylesInDom.length; i++) {
  51960. if (stylesInDom[i].identifier === identifier) {
  51961. result = i;
  51962. break;
  51963. }
  51964. }
  51965. return result;
  51966. }
  51967. function modulesToDom(list, options) {
  51968. var idCountMap = {};
  51969. var identifiers = [];
  51970. for (var i = 0; i < list.length; i++) {
  51971. var item = list[i];
  51972. var id = options.base ? item[0] + options.base : item[0];
  51973. var count = idCountMap[id] || 0;
  51974. var identifier = "".concat(id, " ").concat(count);
  51975. idCountMap[id] = count + 1;
  51976. var index = getIndexByIdentifier(identifier);
  51977. var obj = {
  51978. css: item[1],
  51979. media: item[2],
  51980. sourceMap: item[3]
  51981. };
  51982. if (index !== -1) {
  51983. stylesInDom[index].references++;
  51984. stylesInDom[index].updater(obj);
  51985. } else {
  51986. stylesInDom.push({
  51987. identifier: identifier,
  51988. updater: addStyle(obj, options),
  51989. references: 1
  51990. });
  51991. }
  51992. identifiers.push(identifier);
  51993. }
  51994. return identifiers;
  51995. }
  51996. function insertStyleElement(options) {
  51997. var style = document.createElement('style');
  51998. var attributes = options.attributes || {};
  51999. if (typeof attributes.nonce === 'undefined') {
  52000. var nonce = true ? __webpack_require__.nc : undefined;
  52001. if (nonce) {
  52002. attributes.nonce = nonce;
  52003. }
  52004. }
  52005. Object.keys(attributes).forEach(function (key) {
  52006. style.setAttribute(key, attributes[key]);
  52007. });
  52008. if (typeof options.insert === 'function') {
  52009. options.insert(style);
  52010. } else {
  52011. var target = getTarget(options.insert || 'head');
  52012. if (!target) {
  52013. throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  52014. }
  52015. target.appendChild(style);
  52016. }
  52017. return style;
  52018. }
  52019. function removeStyleElement(style) {
  52020. // istanbul ignore if
  52021. if (style.parentNode === null) {
  52022. return false;
  52023. }
  52024. style.parentNode.removeChild(style);
  52025. }
  52026. /* istanbul ignore next */
  52027. var replaceText = function replaceText() {
  52028. var textStore = [];
  52029. return function replace(index, replacement) {
  52030. textStore[index] = replacement;
  52031. return textStore.filter(Boolean).join('\n');
  52032. };
  52033. }();
  52034. function applyToSingletonTag(style, index, remove, obj) {
  52035. var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
  52036. /* istanbul ignore if */
  52037. if (style.styleSheet) {
  52038. style.styleSheet.cssText = replaceText(index, css);
  52039. } else {
  52040. var cssNode = document.createTextNode(css);
  52041. var childNodes = style.childNodes;
  52042. if (childNodes[index]) {
  52043. style.removeChild(childNodes[index]);
  52044. }
  52045. if (childNodes.length) {
  52046. style.insertBefore(cssNode, childNodes[index]);
  52047. } else {
  52048. style.appendChild(cssNode);
  52049. }
  52050. }
  52051. }
  52052. function applyToTag(style, options, obj) {
  52053. var css = obj.css;
  52054. var media = obj.media;
  52055. var sourceMap = obj.sourceMap;
  52056. if (media) {
  52057. style.setAttribute('media', media);
  52058. } else {
  52059. style.removeAttribute('media');
  52060. }
  52061. if (sourceMap && btoa) {
  52062. css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  52063. } // For old IE
  52064. /* istanbul ignore if */
  52065. if (style.styleSheet) {
  52066. style.styleSheet.cssText = css;
  52067. } else {
  52068. while (style.firstChild) {
  52069. style.removeChild(style.firstChild);
  52070. }
  52071. style.appendChild(document.createTextNode(css));
  52072. }
  52073. }
  52074. var singleton = null;
  52075. var singletonCounter = 0;
  52076. function addStyle(obj, options) {
  52077. var style;
  52078. var update;
  52079. var remove;
  52080. if (options.singleton) {
  52081. var styleIndex = singletonCounter++;
  52082. style = singleton || (singleton = insertStyleElement(options));
  52083. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  52084. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  52085. } else {
  52086. style = insertStyleElement(options);
  52087. update = applyToTag.bind(null, style, options);
  52088. remove = function remove() {
  52089. removeStyleElement(style);
  52090. };
  52091. }
  52092. update(obj);
  52093. return function updateStyle(newObj) {
  52094. if (newObj) {
  52095. if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
  52096. return;
  52097. }
  52098. update(obj = newObj);
  52099. } else {
  52100. remove();
  52101. }
  52102. };
  52103. }
  52104. module.exports = function (list, options) {
  52105. options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  52106. // tags it will allow on a page
  52107. if (!options.singleton && typeof options.singleton !== 'boolean') {
  52108. options.singleton = isOldIE();
  52109. }
  52110. list = list || [];
  52111. var lastIdentifiers = modulesToDom(list, options);
  52112. return function update(newList) {
  52113. newList = newList || [];
  52114. if (Object.prototype.toString.call(newList) !== '[object Array]') {
  52115. return;
  52116. }
  52117. for (var i = 0; i < lastIdentifiers.length; i++) {
  52118. var identifier = lastIdentifiers[i];
  52119. var index = getIndexByIdentifier(identifier);
  52120. stylesInDom[index].references--;
  52121. }
  52122. var newLastIdentifiers = modulesToDom(newList, options);
  52123. for (var _i = 0; _i < lastIdentifiers.length; _i++) {
  52124. var _identifier = lastIdentifiers[_i];
  52125. var _index = getIndexByIdentifier(_identifier);
  52126. if (stylesInDom[_index].references === 0) {
  52127. stylesInDom[_index].updater();
  52128. stylesInDom.splice(_index, 1);
  52129. }
  52130. }
  52131. lastIdentifiers = newLastIdentifiers;
  52132. };
  52133. };
  52134. /***/ }),
  52135. /***/ "../../node_modules/timers-browserify/main.js":
  52136. /*!******************************************************************!*\
  52137. !*** C:/Repos/Babylon.js/node_modules/timers-browserify/main.js ***!
  52138. \******************************************************************/
  52139. /*! no static exports found */
  52140. /***/ (function(module, exports, __webpack_require__) {
  52141. /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
  52142. (typeof self !== "undefined" && self) ||
  52143. window;
  52144. var apply = Function.prototype.apply;
  52145. // DOM APIs, for completeness
  52146. exports.setTimeout = function() {
  52147. return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
  52148. };
  52149. exports.setInterval = function() {
  52150. return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
  52151. };
  52152. exports.clearTimeout =
  52153. exports.clearInterval = function(timeout) {
  52154. if (timeout) {
  52155. timeout.close();
  52156. }
  52157. };
  52158. function Timeout(id, clearFn) {
  52159. this._id = id;
  52160. this._clearFn = clearFn;
  52161. }
  52162. Timeout.prototype.unref = Timeout.prototype.ref = function() {};
  52163. Timeout.prototype.close = function() {
  52164. this._clearFn.call(scope, this._id);
  52165. };
  52166. // Does not start the time, just sets up the members needed.
  52167. exports.enroll = function(item, msecs) {
  52168. clearTimeout(item._idleTimeoutId);
  52169. item._idleTimeout = msecs;
  52170. };
  52171. exports.unenroll = function(item) {
  52172. clearTimeout(item._idleTimeoutId);
  52173. item._idleTimeout = -1;
  52174. };
  52175. exports._unrefActive = exports.active = function(item) {
  52176. clearTimeout(item._idleTimeoutId);
  52177. var msecs = item._idleTimeout;
  52178. if (msecs >= 0) {
  52179. item._idleTimeoutId = setTimeout(function onTimeout() {
  52180. if (item._onTimeout)
  52181. item._onTimeout();
  52182. }, msecs);
  52183. }
  52184. };
  52185. // setimmediate attaches itself to the global object
  52186. __webpack_require__(/*! setimmediate */ "../../node_modules/setimmediate/setImmediate.js");
  52187. // On some exotic environments, it's not clear which object `setimmediate` was
  52188. // able to install onto. Search each possibility in the same order as the
  52189. // `setimmediate` library.
  52190. exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
  52191. (typeof global !== "undefined" && global.setImmediate) ||
  52192. (this && this.setImmediate);
  52193. exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
  52194. (typeof global !== "undefined" && global.clearImmediate) ||
  52195. (this && this.clearImmediate);
  52196. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  52197. /***/ }),
  52198. /***/ "../../node_modules/tinycolor2/tinycolor.js":
  52199. /*!****************************************************************!*\
  52200. !*** C:/Repos/Babylon.js/node_modules/tinycolor2/tinycolor.js ***!
  52201. \****************************************************************/
  52202. /*! no static exports found */
  52203. /***/ (function(module, exports, __webpack_require__) {
  52204. var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2
  52205. // https://github.com/bgrins/TinyColor
  52206. // Brian Grinstead, MIT License
  52207. (function(Math) {
  52208. var trimLeft = /^\s+/,
  52209. trimRight = /\s+$/,
  52210. tinyCounter = 0,
  52211. mathRound = Math.round,
  52212. mathMin = Math.min,
  52213. mathMax = Math.max,
  52214. mathRandom = Math.random;
  52215. function tinycolor (color, opts) {
  52216. color = (color) ? color : '';
  52217. opts = opts || { };
  52218. // If input is already a tinycolor, return itself
  52219. if (color instanceof tinycolor) {
  52220. return color;
  52221. }
  52222. // If we are called as a function, call using new instead
  52223. if (!(this instanceof tinycolor)) {
  52224. return new tinycolor(color, opts);
  52225. }
  52226. var rgb = inputToRGB(color);
  52227. this._originalInput = color,
  52228. this._r = rgb.r,
  52229. this._g = rgb.g,
  52230. this._b = rgb.b,
  52231. this._a = rgb.a,
  52232. this._roundA = mathRound(100*this._a) / 100,
  52233. this._format = opts.format || rgb.format;
  52234. this._gradientType = opts.gradientType;
  52235. // Don't let the range of [0,255] come back in [0,1].
  52236. // Potentially lose a little bit of precision here, but will fix issues where
  52237. // .5 gets interpreted as half of the total, instead of half of 1
  52238. // If it was supposed to be 128, this was already taken care of by `inputToRgb`
  52239. if (this._r < 1) { this._r = mathRound(this._r); }
  52240. if (this._g < 1) { this._g = mathRound(this._g); }
  52241. if (this._b < 1) { this._b = mathRound(this._b); }
  52242. this._ok = rgb.ok;
  52243. this._tc_id = tinyCounter++;
  52244. }
  52245. tinycolor.prototype = {
  52246. isDark: function() {
  52247. return this.getBrightness() < 128;
  52248. },
  52249. isLight: function() {
  52250. return !this.isDark();
  52251. },
  52252. isValid: function() {
  52253. return this._ok;
  52254. },
  52255. getOriginalInput: function() {
  52256. return this._originalInput;
  52257. },
  52258. getFormat: function() {
  52259. return this._format;
  52260. },
  52261. getAlpha: function() {
  52262. return this._a;
  52263. },
  52264. getBrightness: function() {
  52265. //http://www.w3.org/TR/AERT#color-contrast
  52266. var rgb = this.toRgb();
  52267. return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
  52268. },
  52269. getLuminance: function() {
  52270. //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
  52271. var rgb = this.toRgb();
  52272. var RsRGB, GsRGB, BsRGB, R, G, B;
  52273. RsRGB = rgb.r/255;
  52274. GsRGB = rgb.g/255;
  52275. BsRGB = rgb.b/255;
  52276. if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);}
  52277. if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);}
  52278. if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);}
  52279. return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);
  52280. },
  52281. setAlpha: function(value) {
  52282. this._a = boundAlpha(value);
  52283. this._roundA = mathRound(100*this._a) / 100;
  52284. return this;
  52285. },
  52286. toHsv: function() {
  52287. var hsv = rgbToHsv(this._r, this._g, this._b);
  52288. return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };
  52289. },
  52290. toHsvString: function() {
  52291. var hsv = rgbToHsv(this._r, this._g, this._b);
  52292. var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);
  52293. return (this._a == 1) ?
  52294. "hsv(" + h + ", " + s + "%, " + v + "%)" :
  52295. "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")";
  52296. },
  52297. toHsl: function() {
  52298. var hsl = rgbToHsl(this._r, this._g, this._b);
  52299. return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };
  52300. },
  52301. toHslString: function() {
  52302. var hsl = rgbToHsl(this._r, this._g, this._b);
  52303. var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);
  52304. return (this._a == 1) ?
  52305. "hsl(" + h + ", " + s + "%, " + l + "%)" :
  52306. "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")";
  52307. },
  52308. toHex: function(allow3Char) {
  52309. return rgbToHex(this._r, this._g, this._b, allow3Char);
  52310. },
  52311. toHexString: function(allow3Char) {
  52312. return '#' + this.toHex(allow3Char);
  52313. },
  52314. toHex8: function(allow4Char) {
  52315. return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
  52316. },
  52317. toHex8String: function(allow4Char) {
  52318. return '#' + this.toHex8(allow4Char);
  52319. },
  52320. toRgb: function() {
  52321. return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };
  52322. },
  52323. toRgbString: function() {
  52324. return (this._a == 1) ?
  52325. "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" :
  52326. "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";
  52327. },
  52328. toPercentageRgb: function() {
  52329. return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a };
  52330. },
  52331. toPercentageRgbString: function() {
  52332. return (this._a == 1) ?
  52333. "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" :
  52334. "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
  52335. },
  52336. toName: function() {
  52337. if (this._a === 0) {
  52338. return "transparent";
  52339. }
  52340. if (this._a < 1) {
  52341. return false;
  52342. }
  52343. return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
  52344. },
  52345. toFilter: function(secondColor) {
  52346. var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);
  52347. var secondHex8String = hex8String;
  52348. var gradientType = this._gradientType ? "GradientType = 1, " : "";
  52349. if (secondColor) {
  52350. var s = tinycolor(secondColor);
  52351. secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);
  52352. }
  52353. return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")";
  52354. },
  52355. toString: function(format) {
  52356. var formatSet = !!format;
  52357. format = format || this._format;
  52358. var formattedString = false;
  52359. var hasAlpha = this._a < 1 && this._a >= 0;
  52360. var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
  52361. if (needsAlphaFormat) {
  52362. // Special case for "transparent", all other non-alpha formats
  52363. // will return rgba when there is transparency.
  52364. if (format === "name" && this._a === 0) {
  52365. return this.toName();
  52366. }
  52367. return this.toRgbString();
  52368. }
  52369. if (format === "rgb") {
  52370. formattedString = this.toRgbString();
  52371. }
  52372. if (format === "prgb") {
  52373. formattedString = this.toPercentageRgbString();
  52374. }
  52375. if (format === "hex" || format === "hex6") {
  52376. formattedString = this.toHexString();
  52377. }
  52378. if (format === "hex3") {
  52379. formattedString = this.toHexString(true);
  52380. }
  52381. if (format === "hex4") {
  52382. formattedString = this.toHex8String(true);
  52383. }
  52384. if (format === "hex8") {
  52385. formattedString = this.toHex8String();
  52386. }
  52387. if (format === "name") {
  52388. formattedString = this.toName();
  52389. }
  52390. if (format === "hsl") {
  52391. formattedString = this.toHslString();
  52392. }
  52393. if (format === "hsv") {
  52394. formattedString = this.toHsvString();
  52395. }
  52396. return formattedString || this.toHexString();
  52397. },
  52398. clone: function() {
  52399. return tinycolor(this.toString());
  52400. },
  52401. _applyModification: function(fn, args) {
  52402. var color = fn.apply(null, [this].concat([].slice.call(args)));
  52403. this._r = color._r;
  52404. this._g = color._g;
  52405. this._b = color._b;
  52406. this.setAlpha(color._a);
  52407. return this;
  52408. },
  52409. lighten: function() {
  52410. return this._applyModification(lighten, arguments);
  52411. },
  52412. brighten: function() {
  52413. return this._applyModification(brighten, arguments);
  52414. },
  52415. darken: function() {
  52416. return this._applyModification(darken, arguments);
  52417. },
  52418. desaturate: function() {
  52419. return this._applyModification(desaturate, arguments);
  52420. },
  52421. saturate: function() {
  52422. return this._applyModification(saturate, arguments);
  52423. },
  52424. greyscale: function() {
  52425. return this._applyModification(greyscale, arguments);
  52426. },
  52427. spin: function() {
  52428. return this._applyModification(spin, arguments);
  52429. },
  52430. _applyCombination: function(fn, args) {
  52431. return fn.apply(null, [this].concat([].slice.call(args)));
  52432. },
  52433. analogous: function() {
  52434. return this._applyCombination(analogous, arguments);
  52435. },
  52436. complement: function() {
  52437. return this._applyCombination(complement, arguments);
  52438. },
  52439. monochromatic: function() {
  52440. return this._applyCombination(monochromatic, arguments);
  52441. },
  52442. splitcomplement: function() {
  52443. return this._applyCombination(splitcomplement, arguments);
  52444. },
  52445. triad: function() {
  52446. return this._applyCombination(triad, arguments);
  52447. },
  52448. tetrad: function() {
  52449. return this._applyCombination(tetrad, arguments);
  52450. }
  52451. };
  52452. // If input is an object, force 1 into "1.0" to handle ratios properly
  52453. // String input requires "1.0" as input, so 1 will be treated as 1
  52454. tinycolor.fromRatio = function(color, opts) {
  52455. if (typeof color == "object") {
  52456. var newColor = {};
  52457. for (var i in color) {
  52458. if (color.hasOwnProperty(i)) {
  52459. if (i === "a") {
  52460. newColor[i] = color[i];
  52461. }
  52462. else {
  52463. newColor[i] = convertToPercentage(color[i]);
  52464. }
  52465. }
  52466. }
  52467. color = newColor;
  52468. }
  52469. return tinycolor(color, opts);
  52470. };
  52471. // Given a string or object, convert that input to RGB
  52472. // Possible string inputs:
  52473. //
  52474. // "red"
  52475. // "#f00" or "f00"
  52476. // "#ff0000" or "ff0000"
  52477. // "#ff000000" or "ff000000"
  52478. // "rgb 255 0 0" or "rgb (255, 0, 0)"
  52479. // "rgb 1.0 0 0" or "rgb (1, 0, 0)"
  52480. // "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
  52481. // "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
  52482. // "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
  52483. // "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
  52484. // "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
  52485. //
  52486. function inputToRGB(color) {
  52487. var rgb = { r: 0, g: 0, b: 0 };
  52488. var a = 1;
  52489. var s = null;
  52490. var v = null;
  52491. var l = null;
  52492. var ok = false;
  52493. var format = false;
  52494. if (typeof color == "string") {
  52495. color = stringInputToObject(color);
  52496. }
  52497. if (typeof color == "object") {
  52498. if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
  52499. rgb = rgbToRgb(color.r, color.g, color.b);
  52500. ok = true;
  52501. format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
  52502. }
  52503. else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
  52504. s = convertToPercentage(color.s);
  52505. v = convertToPercentage(color.v);
  52506. rgb = hsvToRgb(color.h, s, v);
  52507. ok = true;
  52508. format = "hsv";
  52509. }
  52510. else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
  52511. s = convertToPercentage(color.s);
  52512. l = convertToPercentage(color.l);
  52513. rgb = hslToRgb(color.h, s, l);
  52514. ok = true;
  52515. format = "hsl";
  52516. }
  52517. if (color.hasOwnProperty("a")) {
  52518. a = color.a;
  52519. }
  52520. }
  52521. a = boundAlpha(a);
  52522. return {
  52523. ok: ok,
  52524. format: color.format || format,
  52525. r: mathMin(255, mathMax(rgb.r, 0)),
  52526. g: mathMin(255, mathMax(rgb.g, 0)),
  52527. b: mathMin(255, mathMax(rgb.b, 0)),
  52528. a: a
  52529. };
  52530. }
  52531. // Conversion Functions
  52532. // --------------------
  52533. // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
  52534. // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
  52535. // `rgbToRgb`
  52536. // Handle bounds / percentage checking to conform to CSS color spec
  52537. // <http://www.w3.org/TR/css3-color/>
  52538. // *Assumes:* r, g, b in [0, 255] or [0, 1]
  52539. // *Returns:* { r, g, b } in [0, 255]
  52540. function rgbToRgb(r, g, b){
  52541. return {
  52542. r: bound01(r, 255) * 255,
  52543. g: bound01(g, 255) * 255,
  52544. b: bound01(b, 255) * 255
  52545. };
  52546. }
  52547. // `rgbToHsl`
  52548. // Converts an RGB color value to HSL.
  52549. // *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
  52550. // *Returns:* { h, s, l } in [0,1]
  52551. function rgbToHsl(r, g, b) {
  52552. r = bound01(r, 255);
  52553. g = bound01(g, 255);
  52554. b = bound01(b, 255);
  52555. var max = mathMax(r, g, b), min = mathMin(r, g, b);
  52556. var h, s, l = (max + min) / 2;
  52557. if(max == min) {
  52558. h = s = 0; // achromatic
  52559. }
  52560. else {
  52561. var d = max - min;
  52562. s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
  52563. switch(max) {
  52564. case r: h = (g - b) / d + (g < b ? 6 : 0); break;
  52565. case g: h = (b - r) / d + 2; break;
  52566. case b: h = (r - g) / d + 4; break;
  52567. }
  52568. h /= 6;
  52569. }
  52570. return { h: h, s: s, l: l };
  52571. }
  52572. // `hslToRgb`
  52573. // Converts an HSL color value to RGB.
  52574. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
  52575. // *Returns:* { r, g, b } in the set [0, 255]
  52576. function hslToRgb(h, s, l) {
  52577. var r, g, b;
  52578. h = bound01(h, 360);
  52579. s = bound01(s, 100);
  52580. l = bound01(l, 100);
  52581. function hue2rgb(p, q, t) {
  52582. if(t < 0) t += 1;
  52583. if(t > 1) t -= 1;
  52584. if(t < 1/6) return p + (q - p) * 6 * t;
  52585. if(t < 1/2) return q;
  52586. if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
  52587. return p;
  52588. }
  52589. if(s === 0) {
  52590. r = g = b = l; // achromatic
  52591. }
  52592. else {
  52593. var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
  52594. var p = 2 * l - q;
  52595. r = hue2rgb(p, q, h + 1/3);
  52596. g = hue2rgb(p, q, h);
  52597. b = hue2rgb(p, q, h - 1/3);
  52598. }
  52599. return { r: r * 255, g: g * 255, b: b * 255 };
  52600. }
  52601. // `rgbToHsv`
  52602. // Converts an RGB color value to HSV
  52603. // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
  52604. // *Returns:* { h, s, v } in [0,1]
  52605. function rgbToHsv(r, g, b) {
  52606. r = bound01(r, 255);
  52607. g = bound01(g, 255);
  52608. b = bound01(b, 255);
  52609. var max = mathMax(r, g, b), min = mathMin(r, g, b);
  52610. var h, s, v = max;
  52611. var d = max - min;
  52612. s = max === 0 ? 0 : d / max;
  52613. if(max == min) {
  52614. h = 0; // achromatic
  52615. }
  52616. else {
  52617. switch(max) {
  52618. case r: h = (g - b) / d + (g < b ? 6 : 0); break;
  52619. case g: h = (b - r) / d + 2; break;
  52620. case b: h = (r - g) / d + 4; break;
  52621. }
  52622. h /= 6;
  52623. }
  52624. return { h: h, s: s, v: v };
  52625. }
  52626. // `hsvToRgb`
  52627. // Converts an HSV color value to RGB.
  52628. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
  52629. // *Returns:* { r, g, b } in the set [0, 255]
  52630. function hsvToRgb(h, s, v) {
  52631. h = bound01(h, 360) * 6;
  52632. s = bound01(s, 100);
  52633. v = bound01(v, 100);
  52634. var i = Math.floor(h),
  52635. f = h - i,
  52636. p = v * (1 - s),
  52637. q = v * (1 - f * s),
  52638. t = v * (1 - (1 - f) * s),
  52639. mod = i % 6,
  52640. r = [v, q, p, p, t, v][mod],
  52641. g = [t, v, v, q, p, p][mod],
  52642. b = [p, p, t, v, v, q][mod];
  52643. return { r: r * 255, g: g * 255, b: b * 255 };
  52644. }
  52645. // `rgbToHex`
  52646. // Converts an RGB color to hex
  52647. // Assumes r, g, and b are contained in the set [0, 255]
  52648. // Returns a 3 or 6 character hex
  52649. function rgbToHex(r, g, b, allow3Char) {
  52650. var hex = [
  52651. pad2(mathRound(r).toString(16)),
  52652. pad2(mathRound(g).toString(16)),
  52653. pad2(mathRound(b).toString(16))
  52654. ];
  52655. // Return a 3 character hex if possible
  52656. if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
  52657. return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
  52658. }
  52659. return hex.join("");
  52660. }
  52661. // `rgbaToHex`
  52662. // Converts an RGBA color plus alpha transparency to hex
  52663. // Assumes r, g, b are contained in the set [0, 255] and
  52664. // a in [0, 1]. Returns a 4 or 8 character rgba hex
  52665. function rgbaToHex(r, g, b, a, allow4Char) {
  52666. var hex = [
  52667. pad2(mathRound(r).toString(16)),
  52668. pad2(mathRound(g).toString(16)),
  52669. pad2(mathRound(b).toString(16)),
  52670. pad2(convertDecimalToHex(a))
  52671. ];
  52672. // Return a 4 character hex if possible
  52673. if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
  52674. return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
  52675. }
  52676. return hex.join("");
  52677. }
  52678. // `rgbaToArgbHex`
  52679. // Converts an RGBA color to an ARGB Hex8 string
  52680. // Rarely used, but required for "toFilter()"
  52681. function rgbaToArgbHex(r, g, b, a) {
  52682. var hex = [
  52683. pad2(convertDecimalToHex(a)),
  52684. pad2(mathRound(r).toString(16)),
  52685. pad2(mathRound(g).toString(16)),
  52686. pad2(mathRound(b).toString(16))
  52687. ];
  52688. return hex.join("");
  52689. }
  52690. // `equals`
  52691. // Can be called with any tinycolor input
  52692. tinycolor.equals = function (color1, color2) {
  52693. if (!color1 || !color2) { return false; }
  52694. return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
  52695. };
  52696. tinycolor.random = function() {
  52697. return tinycolor.fromRatio({
  52698. r: mathRandom(),
  52699. g: mathRandom(),
  52700. b: mathRandom()
  52701. });
  52702. };
  52703. // Modification Functions
  52704. // ----------------------
  52705. // Thanks to less.js for some of the basics here
  52706. // <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
  52707. function desaturate(color, amount) {
  52708. amount = (amount === 0) ? 0 : (amount || 10);
  52709. var hsl = tinycolor(color).toHsl();
  52710. hsl.s -= amount / 100;
  52711. hsl.s = clamp01(hsl.s);
  52712. return tinycolor(hsl);
  52713. }
  52714. function saturate(color, amount) {
  52715. amount = (amount === 0) ? 0 : (amount || 10);
  52716. var hsl = tinycolor(color).toHsl();
  52717. hsl.s += amount / 100;
  52718. hsl.s = clamp01(hsl.s);
  52719. return tinycolor(hsl);
  52720. }
  52721. function greyscale(color) {
  52722. return tinycolor(color).desaturate(100);
  52723. }
  52724. function lighten (color, amount) {
  52725. amount = (amount === 0) ? 0 : (amount || 10);
  52726. var hsl = tinycolor(color).toHsl();
  52727. hsl.l += amount / 100;
  52728. hsl.l = clamp01(hsl.l);
  52729. return tinycolor(hsl);
  52730. }
  52731. function brighten(color, amount) {
  52732. amount = (amount === 0) ? 0 : (amount || 10);
  52733. var rgb = tinycolor(color).toRgb();
  52734. rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));
  52735. rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));
  52736. rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));
  52737. return tinycolor(rgb);
  52738. }
  52739. function darken (color, amount) {
  52740. amount = (amount === 0) ? 0 : (amount || 10);
  52741. var hsl = tinycolor(color).toHsl();
  52742. hsl.l -= amount / 100;
  52743. hsl.l = clamp01(hsl.l);
  52744. return tinycolor(hsl);
  52745. }
  52746. // Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
  52747. // Values outside of this range will be wrapped into this range.
  52748. function spin(color, amount) {
  52749. var hsl = tinycolor(color).toHsl();
  52750. var hue = (hsl.h + amount) % 360;
  52751. hsl.h = hue < 0 ? 360 + hue : hue;
  52752. return tinycolor(hsl);
  52753. }
  52754. // Combination Functions
  52755. // ---------------------
  52756. // Thanks to jQuery xColor for some of the ideas behind these
  52757. // <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
  52758. function complement(color) {
  52759. var hsl = tinycolor(color).toHsl();
  52760. hsl.h = (hsl.h + 180) % 360;
  52761. return tinycolor(hsl);
  52762. }
  52763. function triad(color) {
  52764. var hsl = tinycolor(color).toHsl();
  52765. var h = hsl.h;
  52766. return [
  52767. tinycolor(color),
  52768. tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),
  52769. tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })
  52770. ];
  52771. }
  52772. function tetrad(color) {
  52773. var hsl = tinycolor(color).toHsl();
  52774. var h = hsl.h;
  52775. return [
  52776. tinycolor(color),
  52777. tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),
  52778. tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),
  52779. tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })
  52780. ];
  52781. }
  52782. function splitcomplement(color) {
  52783. var hsl = tinycolor(color).toHsl();
  52784. var h = hsl.h;
  52785. return [
  52786. tinycolor(color),
  52787. tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}),
  52788. tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l})
  52789. ];
  52790. }
  52791. function analogous(color, results, slices) {
  52792. results = results || 6;
  52793. slices = slices || 30;
  52794. var hsl = tinycolor(color).toHsl();
  52795. var part = 360 / slices;
  52796. var ret = [tinycolor(color)];
  52797. for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {
  52798. hsl.h = (hsl.h + part) % 360;
  52799. ret.push(tinycolor(hsl));
  52800. }
  52801. return ret;
  52802. }
  52803. function monochromatic(color, results) {
  52804. results = results || 6;
  52805. var hsv = tinycolor(color).toHsv();
  52806. var h = hsv.h, s = hsv.s, v = hsv.v;
  52807. var ret = [];
  52808. var modification = 1 / results;
  52809. while (results--) {
  52810. ret.push(tinycolor({ h: h, s: s, v: v}));
  52811. v = (v + modification) % 1;
  52812. }
  52813. return ret;
  52814. }
  52815. // Utility Functions
  52816. // ---------------------
  52817. tinycolor.mix = function(color1, color2, amount) {
  52818. amount = (amount === 0) ? 0 : (amount || 50);
  52819. var rgb1 = tinycolor(color1).toRgb();
  52820. var rgb2 = tinycolor(color2).toRgb();
  52821. var p = amount / 100;
  52822. var rgba = {
  52823. r: ((rgb2.r - rgb1.r) * p) + rgb1.r,
  52824. g: ((rgb2.g - rgb1.g) * p) + rgb1.g,
  52825. b: ((rgb2.b - rgb1.b) * p) + rgb1.b,
  52826. a: ((rgb2.a - rgb1.a) * p) + rgb1.a
  52827. };
  52828. return tinycolor(rgba);
  52829. };
  52830. // Readability Functions
  52831. // ---------------------
  52832. // <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
  52833. // `contrast`
  52834. // Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
  52835. tinycolor.readability = function(color1, color2) {
  52836. var c1 = tinycolor(color1);
  52837. var c2 = tinycolor(color2);
  52838. return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05);
  52839. };
  52840. // `isReadable`
  52841. // Ensure that foreground and background color combinations meet WCAG2 guidelines.
  52842. // The third argument is an optional Object.
  52843. // the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
  52844. // the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
  52845. // If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
  52846. // *Example*
  52847. // tinycolor.isReadable("#000", "#111") => false
  52848. // tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
  52849. tinycolor.isReadable = function(color1, color2, wcag2) {
  52850. var readability = tinycolor.readability(color1, color2);
  52851. var wcag2Parms, out;
  52852. out = false;
  52853. wcag2Parms = validateWCAG2Parms(wcag2);
  52854. switch (wcag2Parms.level + wcag2Parms.size) {
  52855. case "AAsmall":
  52856. case "AAAlarge":
  52857. out = readability >= 4.5;
  52858. break;
  52859. case "AAlarge":
  52860. out = readability >= 3;
  52861. break;
  52862. case "AAAsmall":
  52863. out = readability >= 7;
  52864. break;
  52865. }
  52866. return out;
  52867. };
  52868. // `mostReadable`
  52869. // Given a base color and a list of possible foreground or background
  52870. // colors for that base, returns the most readable color.
  52871. // Optionally returns Black or White if the most readable color is unreadable.
  52872. // *Example*
  52873. // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
  52874. // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff"
  52875. // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
  52876. // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
  52877. tinycolor.mostReadable = function(baseColor, colorList, args) {
  52878. var bestColor = null;
  52879. var bestScore = 0;
  52880. var readability;
  52881. var includeFallbackColors, level, size ;
  52882. args = args || {};
  52883. includeFallbackColors = args.includeFallbackColors ;
  52884. level = args.level;
  52885. size = args.size;
  52886. for (var i= 0; i < colorList.length ; i++) {
  52887. readability = tinycolor.readability(baseColor, colorList[i]);
  52888. if (readability > bestScore) {
  52889. bestScore = readability;
  52890. bestColor = tinycolor(colorList[i]);
  52891. }
  52892. }
  52893. if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) {
  52894. return bestColor;
  52895. }
  52896. else {
  52897. args.includeFallbackColors=false;
  52898. return tinycolor.mostReadable(baseColor,["#fff", "#000"],args);
  52899. }
  52900. };
  52901. // Big List of Colors
  52902. // ------------------
  52903. // <http://www.w3.org/TR/css3-color/#svg-color>
  52904. var names = tinycolor.names = {
  52905. aliceblue: "f0f8ff",
  52906. antiquewhite: "faebd7",
  52907. aqua: "0ff",
  52908. aquamarine: "7fffd4",
  52909. azure: "f0ffff",
  52910. beige: "f5f5dc",
  52911. bisque: "ffe4c4",
  52912. black: "000",
  52913. blanchedalmond: "ffebcd",
  52914. blue: "00f",
  52915. blueviolet: "8a2be2",
  52916. brown: "a52a2a",
  52917. burlywood: "deb887",
  52918. burntsienna: "ea7e5d",
  52919. cadetblue: "5f9ea0",
  52920. chartreuse: "7fff00",
  52921. chocolate: "d2691e",
  52922. coral: "ff7f50",
  52923. cornflowerblue: "6495ed",
  52924. cornsilk: "fff8dc",
  52925. crimson: "dc143c",
  52926. cyan: "0ff",
  52927. darkblue: "00008b",
  52928. darkcyan: "008b8b",
  52929. darkgoldenrod: "b8860b",
  52930. darkgray: "a9a9a9",
  52931. darkgreen: "006400",
  52932. darkgrey: "a9a9a9",
  52933. darkkhaki: "bdb76b",
  52934. darkmagenta: "8b008b",
  52935. darkolivegreen: "556b2f",
  52936. darkorange: "ff8c00",
  52937. darkorchid: "9932cc",
  52938. darkred: "8b0000",
  52939. darksalmon: "e9967a",
  52940. darkseagreen: "8fbc8f",
  52941. darkslateblue: "483d8b",
  52942. darkslategray: "2f4f4f",
  52943. darkslategrey: "2f4f4f",
  52944. darkturquoise: "00ced1",
  52945. darkviolet: "9400d3",
  52946. deeppink: "ff1493",
  52947. deepskyblue: "00bfff",
  52948. dimgray: "696969",
  52949. dimgrey: "696969",
  52950. dodgerblue: "1e90ff",
  52951. firebrick: "b22222",
  52952. floralwhite: "fffaf0",
  52953. forestgreen: "228b22",
  52954. fuchsia: "f0f",
  52955. gainsboro: "dcdcdc",
  52956. ghostwhite: "f8f8ff",
  52957. gold: "ffd700",
  52958. goldenrod: "daa520",
  52959. gray: "808080",
  52960. green: "008000",
  52961. greenyellow: "adff2f",
  52962. grey: "808080",
  52963. honeydew: "f0fff0",
  52964. hotpink: "ff69b4",
  52965. indianred: "cd5c5c",
  52966. indigo: "4b0082",
  52967. ivory: "fffff0",
  52968. khaki: "f0e68c",
  52969. lavender: "e6e6fa",
  52970. lavenderblush: "fff0f5",
  52971. lawngreen: "7cfc00",
  52972. lemonchiffon: "fffacd",
  52973. lightblue: "add8e6",
  52974. lightcoral: "f08080",
  52975. lightcyan: "e0ffff",
  52976. lightgoldenrodyellow: "fafad2",
  52977. lightgray: "d3d3d3",
  52978. lightgreen: "90ee90",
  52979. lightgrey: "d3d3d3",
  52980. lightpink: "ffb6c1",
  52981. lightsalmon: "ffa07a",
  52982. lightseagreen: "20b2aa",
  52983. lightskyblue: "87cefa",
  52984. lightslategray: "789",
  52985. lightslategrey: "789",
  52986. lightsteelblue: "b0c4de",
  52987. lightyellow: "ffffe0",
  52988. lime: "0f0",
  52989. limegreen: "32cd32",
  52990. linen: "faf0e6",
  52991. magenta: "f0f",
  52992. maroon: "800000",
  52993. mediumaquamarine: "66cdaa",
  52994. mediumblue: "0000cd",
  52995. mediumorchid: "ba55d3",
  52996. mediumpurple: "9370db",
  52997. mediumseagreen: "3cb371",
  52998. mediumslateblue: "7b68ee",
  52999. mediumspringgreen: "00fa9a",
  53000. mediumturquoise: "48d1cc",
  53001. mediumvioletred: "c71585",
  53002. midnightblue: "191970",
  53003. mintcream: "f5fffa",
  53004. mistyrose: "ffe4e1",
  53005. moccasin: "ffe4b5",
  53006. navajowhite: "ffdead",
  53007. navy: "000080",
  53008. oldlace: "fdf5e6",
  53009. olive: "808000",
  53010. olivedrab: "6b8e23",
  53011. orange: "ffa500",
  53012. orangered: "ff4500",
  53013. orchid: "da70d6",
  53014. palegoldenrod: "eee8aa",
  53015. palegreen: "98fb98",
  53016. paleturquoise: "afeeee",
  53017. palevioletred: "db7093",
  53018. papayawhip: "ffefd5",
  53019. peachpuff: "ffdab9",
  53020. peru: "cd853f",
  53021. pink: "ffc0cb",
  53022. plum: "dda0dd",
  53023. powderblue: "b0e0e6",
  53024. purple: "800080",
  53025. rebeccapurple: "663399",
  53026. red: "f00",
  53027. rosybrown: "bc8f8f",
  53028. royalblue: "4169e1",
  53029. saddlebrown: "8b4513",
  53030. salmon: "fa8072",
  53031. sandybrown: "f4a460",
  53032. seagreen: "2e8b57",
  53033. seashell: "fff5ee",
  53034. sienna: "a0522d",
  53035. silver: "c0c0c0",
  53036. skyblue: "87ceeb",
  53037. slateblue: "6a5acd",
  53038. slategray: "708090",
  53039. slategrey: "708090",
  53040. snow: "fffafa",
  53041. springgreen: "00ff7f",
  53042. steelblue: "4682b4",
  53043. tan: "d2b48c",
  53044. teal: "008080",
  53045. thistle: "d8bfd8",
  53046. tomato: "ff6347",
  53047. turquoise: "40e0d0",
  53048. violet: "ee82ee",
  53049. wheat: "f5deb3",
  53050. white: "fff",
  53051. whitesmoke: "f5f5f5",
  53052. yellow: "ff0",
  53053. yellowgreen: "9acd32"
  53054. };
  53055. // Make it easy to access colors via `hexNames[hex]`
  53056. var hexNames = tinycolor.hexNames = flip(names);
  53057. // Utilities
  53058. // ---------
  53059. // `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
  53060. function flip(o) {
  53061. var flipped = { };
  53062. for (var i in o) {
  53063. if (o.hasOwnProperty(i)) {
  53064. flipped[o[i]] = i;
  53065. }
  53066. }
  53067. return flipped;
  53068. }
  53069. // Return a valid alpha value [0,1] with all invalid values being set to 1
  53070. function boundAlpha(a) {
  53071. a = parseFloat(a);
  53072. if (isNaN(a) || a < 0 || a > 1) {
  53073. a = 1;
  53074. }
  53075. return a;
  53076. }
  53077. // Take input from [0, n] and return it as [0, 1]
  53078. function bound01(n, max) {
  53079. if (isOnePointZero(n)) { n = "100%"; }
  53080. var processPercent = isPercentage(n);
  53081. n = mathMin(max, mathMax(0, parseFloat(n)));
  53082. // Automatically convert percentage into number
  53083. if (processPercent) {
  53084. n = parseInt(n * max, 10) / 100;
  53085. }
  53086. // Handle floating point rounding errors
  53087. if ((Math.abs(n - max) < 0.000001)) {
  53088. return 1;
  53089. }
  53090. // Convert into [0, 1] range if it isn't already
  53091. return (n % max) / parseFloat(max);
  53092. }
  53093. // Force a number between 0 and 1
  53094. function clamp01(val) {
  53095. return mathMin(1, mathMax(0, val));
  53096. }
  53097. // Parse a base-16 hex value into a base-10 integer
  53098. function parseIntFromHex(val) {
  53099. return parseInt(val, 16);
  53100. }
  53101. // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
  53102. // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
  53103. function isOnePointZero(n) {
  53104. return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1;
  53105. }
  53106. // Check to see if string passed in is a percentage
  53107. function isPercentage(n) {
  53108. return typeof n === "string" && n.indexOf('%') != -1;
  53109. }
  53110. // Force a hex value to have 2 characters
  53111. function pad2(c) {
  53112. return c.length == 1 ? '0' + c : '' + c;
  53113. }
  53114. // Replace a decimal with it's percentage value
  53115. function convertToPercentage(n) {
  53116. if (n <= 1) {
  53117. n = (n * 100) + "%";
  53118. }
  53119. return n;
  53120. }
  53121. // Converts a decimal to a hex value
  53122. function convertDecimalToHex(d) {
  53123. return Math.round(parseFloat(d) * 255).toString(16);
  53124. }
  53125. // Converts a hex value to a decimal
  53126. function convertHexToDecimal(h) {
  53127. return (parseIntFromHex(h) / 255);
  53128. }
  53129. var matchers = (function() {
  53130. // <http://www.w3.org/TR/css3-values/#integers>
  53131. var CSS_INTEGER = "[-\\+]?\\d+%?";
  53132. // <http://www.w3.org/TR/css3-values/#number-value>
  53133. var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
  53134. // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
  53135. var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
  53136. // Actual matching.
  53137. // Parentheses and commas are optional, but not required.
  53138. // Whitespace can take the place of commas or opening paren
  53139. var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
  53140. var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
  53141. return {
  53142. CSS_UNIT: new RegExp(CSS_UNIT),
  53143. rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
  53144. rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
  53145. hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
  53146. hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
  53147. hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
  53148. hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
  53149. hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  53150. hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  53151. hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  53152. hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
  53153. };
  53154. })();
  53155. // `isValidCSSUnit`
  53156. // Take in a single string / number and check to see if it looks like a CSS unit
  53157. // (see `matchers` above for definition).
  53158. function isValidCSSUnit(color) {
  53159. return !!matchers.CSS_UNIT.exec(color);
  53160. }
  53161. // `stringInputToObject`
  53162. // Permissive string parsing. Take in a number of formats, and output an object
  53163. // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
  53164. function stringInputToObject(color) {
  53165. color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
  53166. var named = false;
  53167. if (names[color]) {
  53168. color = names[color];
  53169. named = true;
  53170. }
  53171. else if (color == 'transparent') {
  53172. return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  53173. }
  53174. // Try to match string input using regular expressions.
  53175. // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
  53176. // Just return an object and let the conversion functions handle that.
  53177. // This way the result will be the same whether the tinycolor is initialized with string or object.
  53178. var match;
  53179. if ((match = matchers.rgb.exec(color))) {
  53180. return { r: match[1], g: match[2], b: match[3] };
  53181. }
  53182. if ((match = matchers.rgba.exec(color))) {
  53183. return { r: match[1], g: match[2], b: match[3], a: match[4] };
  53184. }
  53185. if ((match = matchers.hsl.exec(color))) {
  53186. return { h: match[1], s: match[2], l: match[3] };
  53187. }
  53188. if ((match = matchers.hsla.exec(color))) {
  53189. return { h: match[1], s: match[2], l: match[3], a: match[4] };
  53190. }
  53191. if ((match = matchers.hsv.exec(color))) {
  53192. return { h: match[1], s: match[2], v: match[3] };
  53193. }
  53194. if ((match = matchers.hsva.exec(color))) {
  53195. return { h: match[1], s: match[2], v: match[3], a: match[4] };
  53196. }
  53197. if ((match = matchers.hex8.exec(color))) {
  53198. return {
  53199. r: parseIntFromHex(match[1]),
  53200. g: parseIntFromHex(match[2]),
  53201. b: parseIntFromHex(match[3]),
  53202. a: convertHexToDecimal(match[4]),
  53203. format: named ? "name" : "hex8"
  53204. };
  53205. }
  53206. if ((match = matchers.hex6.exec(color))) {
  53207. return {
  53208. r: parseIntFromHex(match[1]),
  53209. g: parseIntFromHex(match[2]),
  53210. b: parseIntFromHex(match[3]),
  53211. format: named ? "name" : "hex"
  53212. };
  53213. }
  53214. if ((match = matchers.hex4.exec(color))) {
  53215. return {
  53216. r: parseIntFromHex(match[1] + '' + match[1]),
  53217. g: parseIntFromHex(match[2] + '' + match[2]),
  53218. b: parseIntFromHex(match[3] + '' + match[3]),
  53219. a: convertHexToDecimal(match[4] + '' + match[4]),
  53220. format: named ? "name" : "hex8"
  53221. };
  53222. }
  53223. if ((match = matchers.hex3.exec(color))) {
  53224. return {
  53225. r: parseIntFromHex(match[1] + '' + match[1]),
  53226. g: parseIntFromHex(match[2] + '' + match[2]),
  53227. b: parseIntFromHex(match[3] + '' + match[3]),
  53228. format: named ? "name" : "hex"
  53229. };
  53230. }
  53231. return false;
  53232. }
  53233. function validateWCAG2Parms(parms) {
  53234. // return valid WCAG2 parms for isReadable.
  53235. // If input parms are invalid, return {"level":"AA", "size":"small"}
  53236. var level, size;
  53237. parms = parms || {"level":"AA", "size":"small"};
  53238. level = (parms.level || "AA").toUpperCase();
  53239. size = (parms.size || "small").toLowerCase();
  53240. if (level !== "AA" && level !== "AAA") {
  53241. level = "AA";
  53242. }
  53243. if (size !== "small" && size !== "large") {
  53244. size = "small";
  53245. }
  53246. return {"level":level, "size":size};
  53247. }
  53248. // Node: Export function
  53249. if ( true && module.exports) {
  53250. module.exports = tinycolor;
  53251. }
  53252. // AMD/requirejs: Define the module
  53253. else if (true) {
  53254. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module),
  53255. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  53256. }
  53257. // Browser: Expose to window
  53258. else {}
  53259. })(Math);
  53260. /***/ }),
  53261. /***/ "../../node_modules/tslib/tslib.es6.js":
  53262. /*!***********************************************************!*\
  53263. !*** C:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  53264. \***********************************************************/
  53265. /*! 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 */
  53266. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53267. "use strict";
  53268. __webpack_require__.r(__webpack_exports__);
  53269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  53270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  53271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  53272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  53273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  53274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  53275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  53276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  53277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
  53278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  53279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  53280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  53281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  53282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  53283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  53284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  53285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  53286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  53287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  53288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  53289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  53290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
  53291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
  53292. /*! *****************************************************************************
  53293. Copyright (c) Microsoft Corporation.
  53294. Permission to use, copy, modify, and/or distribute this software for any
  53295. purpose with or without fee is hereby granted.
  53296. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  53297. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  53298. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  53299. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  53300. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  53301. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  53302. PERFORMANCE OF THIS SOFTWARE.
  53303. ***************************************************************************** */
  53304. /* global Reflect, Promise */
  53305. var extendStatics = function(d, b) {
  53306. extendStatics = Object.setPrototypeOf ||
  53307. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  53308. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  53309. return extendStatics(d, b);
  53310. };
  53311. function __extends(d, b) {
  53312. extendStatics(d, b);
  53313. function __() { this.constructor = d; }
  53314. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  53315. }
  53316. var __assign = function() {
  53317. __assign = Object.assign || function __assign(t) {
  53318. for (var s, i = 1, n = arguments.length; i < n; i++) {
  53319. s = arguments[i];
  53320. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  53321. }
  53322. return t;
  53323. }
  53324. return __assign.apply(this, arguments);
  53325. }
  53326. function __rest(s, e) {
  53327. var t = {};
  53328. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  53329. t[p] = s[p];
  53330. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  53331. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  53332. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  53333. t[p[i]] = s[p[i]];
  53334. }
  53335. return t;
  53336. }
  53337. function __decorate(decorators, target, key, desc) {
  53338. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  53339. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  53340. 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;
  53341. return c > 3 && r && Object.defineProperty(target, key, r), r;
  53342. }
  53343. function __param(paramIndex, decorator) {
  53344. return function (target, key) { decorator(target, key, paramIndex); }
  53345. }
  53346. function __metadata(metadataKey, metadataValue) {
  53347. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  53348. }
  53349. function __awaiter(thisArg, _arguments, P, generator) {
  53350. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  53351. return new (P || (P = Promise))(function (resolve, reject) {
  53352. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  53353. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  53354. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  53355. step((generator = generator.apply(thisArg, _arguments || [])).next());
  53356. });
  53357. }
  53358. function __generator(thisArg, body) {
  53359. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  53360. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  53361. function verb(n) { return function (v) { return step([n, v]); }; }
  53362. function step(op) {
  53363. if (f) throw new TypeError("Generator is already executing.");
  53364. while (_) try {
  53365. 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;
  53366. if (y = 0, t) op = [op[0] & 2, t.value];
  53367. switch (op[0]) {
  53368. case 0: case 1: t = op; break;
  53369. case 4: _.label++; return { value: op[1], done: false };
  53370. case 5: _.label++; y = op[1]; op = [0]; continue;
  53371. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  53372. default:
  53373. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  53374. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  53375. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  53376. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  53377. if (t[2]) _.ops.pop();
  53378. _.trys.pop(); continue;
  53379. }
  53380. op = body.call(thisArg, _);
  53381. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  53382. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  53383. }
  53384. }
  53385. var __createBinding = Object.create ? (function(o, m, k, k2) {
  53386. if (k2 === undefined) k2 = k;
  53387. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  53388. }) : (function(o, m, k, k2) {
  53389. if (k2 === undefined) k2 = k;
  53390. o[k2] = m[k];
  53391. });
  53392. function __exportStar(m, o) {
  53393. for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
  53394. }
  53395. function __values(o) {
  53396. var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  53397. if (m) return m.call(o);
  53398. if (o && typeof o.length === "number") return {
  53399. next: function () {
  53400. if (o && i >= o.length) o = void 0;
  53401. return { value: o && o[i++], done: !o };
  53402. }
  53403. };
  53404. throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
  53405. }
  53406. function __read(o, n) {
  53407. var m = typeof Symbol === "function" && o[Symbol.iterator];
  53408. if (!m) return o;
  53409. var i = m.call(o), r, ar = [], e;
  53410. try {
  53411. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  53412. }
  53413. catch (error) { e = { error: error }; }
  53414. finally {
  53415. try {
  53416. if (r && !r.done && (m = i["return"])) m.call(i);
  53417. }
  53418. finally { if (e) throw e.error; }
  53419. }
  53420. return ar;
  53421. }
  53422. function __spread() {
  53423. for (var ar = [], i = 0; i < arguments.length; i++)
  53424. ar = ar.concat(__read(arguments[i]));
  53425. return ar;
  53426. }
  53427. function __spreadArrays() {
  53428. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  53429. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  53430. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  53431. r[k] = a[j];
  53432. return r;
  53433. };
  53434. function __await(v) {
  53435. return this instanceof __await ? (this.v = v, this) : new __await(v);
  53436. }
  53437. function __asyncGenerator(thisArg, _arguments, generator) {
  53438. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  53439. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  53440. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  53441. 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); }); }; }
  53442. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  53443. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  53444. function fulfill(value) { resume("next", value); }
  53445. function reject(value) { resume("throw", value); }
  53446. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  53447. }
  53448. function __asyncDelegator(o) {
  53449. var i, p;
  53450. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  53451. 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; }
  53452. }
  53453. function __asyncValues(o) {
  53454. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  53455. var m = o[Symbol.asyncIterator], i;
  53456. 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);
  53457. 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); }); }; }
  53458. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  53459. }
  53460. function __makeTemplateObject(cooked, raw) {
  53461. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  53462. return cooked;
  53463. };
  53464. var __setModuleDefault = Object.create ? (function(o, v) {
  53465. Object.defineProperty(o, "default", { enumerable: true, value: v });
  53466. }) : function(o, v) {
  53467. o["default"] = v;
  53468. };
  53469. function __importStar(mod) {
  53470. if (mod && mod.__esModule) return mod;
  53471. var result = {};
  53472. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  53473. __setModuleDefault(result, mod);
  53474. return result;
  53475. }
  53476. function __importDefault(mod) {
  53477. return (mod && mod.__esModule) ? mod : { default: mod };
  53478. }
  53479. function __classPrivateFieldGet(receiver, privateMap) {
  53480. if (!privateMap.has(receiver)) {
  53481. throw new TypeError("attempted to get private field on non-instance");
  53482. }
  53483. return privateMap.get(receiver);
  53484. }
  53485. function __classPrivateFieldSet(receiver, privateMap, value) {
  53486. if (!privateMap.has(receiver)) {
  53487. throw new TypeError("attempted to set private field on non-instance");
  53488. }
  53489. privateMap.set(receiver, value);
  53490. return value;
  53491. }
  53492. /***/ }),
  53493. /***/ "../../node_modules/webpack/buildin/global.js":
  53494. /*!***********************************!*\
  53495. !*** (webpack)/buildin/global.js ***!
  53496. \***********************************/
  53497. /*! no static exports found */
  53498. /***/ (function(module, exports) {
  53499. var g;
  53500. // This works in non-strict mode
  53501. g = (function() {
  53502. return this;
  53503. })();
  53504. try {
  53505. // This works if eval is allowed (see CSP)
  53506. g = g || new Function("return this")();
  53507. } catch (e) {
  53508. // This works if the window reference is available
  53509. if (typeof window === "object") g = window;
  53510. }
  53511. // g can still be undefined, but nothing to do about it...
  53512. // We return undefined, instead of nothing here, so it's
  53513. // easier to handle this case. if(!global) { ...}
  53514. module.exports = g;
  53515. /***/ }),
  53516. /***/ "../../node_modules/webpack/buildin/module.js":
  53517. /*!***********************************!*\
  53518. !*** (webpack)/buildin/module.js ***!
  53519. \***********************************/
  53520. /*! no static exports found */
  53521. /***/ (function(module, exports) {
  53522. module.exports = function(module) {
  53523. if (!module.webpackPolyfill) {
  53524. module.deprecate = function() {};
  53525. module.paths = [];
  53526. // module.parent = undefined by default
  53527. if (!module.children) module.children = [];
  53528. Object.defineProperty(module, "loaded", {
  53529. enumerable: true,
  53530. get: function() {
  53531. return module.l;
  53532. }
  53533. });
  53534. Object.defineProperty(module, "id", {
  53535. enumerable: true,
  53536. get: function() {
  53537. return module.i;
  53538. }
  53539. });
  53540. module.webpackPolyfill = 1;
  53541. }
  53542. return module;
  53543. };
  53544. /***/ }),
  53545. /***/ "../imgs/add.svg":
  53546. /*!***********************!*\
  53547. !*** ../imgs/add.svg ***!
  53548. \***********************/
  53549. /*! no static exports found */
  53550. /***/ (function(module, exports) {
  53551. 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"
  53552. /***/ }),
  53553. /***/ "../imgs/delete.svg":
  53554. /*!**************************!*\
  53555. !*** ../imgs/delete.svg ***!
  53556. \**************************/
  53557. /*! no static exports found */
  53558. /***/ (function(module, exports) {
  53559. 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"
  53560. /***/ }),
  53561. /***/ "../imgs/downArrow.svg":
  53562. /*!*****************************!*\
  53563. !*** ../imgs/downArrow.svg ***!
  53564. \*****************************/
  53565. /*! no static exports found */
  53566. /***/ (function(module, exports) {
  53567. 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"
  53568. /***/ }),
  53569. /***/ "./blockTools.ts":
  53570. /*!***********************!*\
  53571. !*** ./blockTools.ts ***!
  53572. \***********************/
  53573. /*! exports provided: BlockTools */
  53574. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53575. "use strict";
  53576. __webpack_require__.r(__webpack_exports__);
  53577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlockTools", function() { return BlockTools; });
  53578. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/discardBlock */ "babylonjs/Misc/dataStorage");
  53579. /* 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__);
  53580. var BlockTools = /** @class */ (function () {
  53581. function BlockTools() {
  53582. }
  53583. BlockTools.GetBlockFromString = function (data, scene, nodeMaterial) {
  53584. switch (data) {
  53585. case "DesaturateBlock":
  53586. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DesaturateBlock"]("Desaturate");
  53587. case "RefractBlock":
  53588. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RefractBlock"]("Refract");
  53589. case "ReflectBlock":
  53590. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectBlock"]("Reflect");
  53591. case "DerivativeBlock":
  53592. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DerivativeBlock"]("Derivative");
  53593. case "Rotate2dBlock":
  53594. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["Rotate2dBlock"]("Rotate2d");
  53595. case "NormalBlendBlock":
  53596. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NormalBlendBlock"]("NormalBlend");
  53597. case "WorleyNoise3DBlock":
  53598. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WorleyNoise3DBlock"]("WorleyNoise3D");
  53599. case "SimplexPerlin3DBlock":
  53600. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SimplexPerlin3DBlock"]("SimplexPerlin3D");
  53601. case "BonesBlock":
  53602. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["BonesBlock"]("Bones");
  53603. case "InstancesBlock":
  53604. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InstancesBlock"]("Instances");
  53605. case "MorphTargetsBlock":
  53606. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MorphTargetsBlock"]("MorphTargets");
  53607. case "DiscardBlock":
  53608. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DiscardBlock"]("Discard");
  53609. case "ImageProcessingBlock":
  53610. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ImageProcessingBlock"]("ImageProcessing");
  53611. case "ColorMergerBlock":
  53612. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorMergerBlock"]("ColorMerger");
  53613. case "VectorMergerBlock":
  53614. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorMergerBlock"]("VectorMerger");
  53615. case "ColorSplitterBlock":
  53616. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorSplitterBlock"]("ColorSplitter");
  53617. case "VectorSplitterBlock":
  53618. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorSplitterBlock"]("VectorSplitter");
  53619. case "TextureBlock":
  53620. 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);
  53621. case "ReflectionTextureBlock":
  53622. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionTextureBlock"]("Reflection texture");
  53623. case "LightBlock":
  53624. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightBlock"]("Lights");
  53625. case "FogBlock":
  53626. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FogBlock"]("Fog");
  53627. case "VertexOutputBlock":
  53628. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VertexOutputBlock"]("VertexOutput");
  53629. case "FragmentOutputBlock":
  53630. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FragmentOutputBlock"]("FragmentOutput");
  53631. case "AddBlock":
  53632. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AddBlock"]("Add");
  53633. case "ClampBlock":
  53634. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ClampBlock"]("Clamp");
  53635. case "ScaleBlock":
  53636. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ScaleBlock"]("Scale");
  53637. case "CrossBlock":
  53638. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["CrossBlock"]("Cross");
  53639. case "DotBlock":
  53640. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DotBlock"]("Dot");
  53641. case "PowBlock":
  53642. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PowBlock"]("Pow");
  53643. case "MultiplyBlock":
  53644. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MultiplyBlock"]("Multiply");
  53645. case "TransformBlock":
  53646. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("Transform");
  53647. case "TrigonometryBlock":
  53648. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Trigonometry");
  53649. case "RemapBlock":
  53650. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RemapBlock"]("Remap");
  53651. case "NormalizeBlock":
  53652. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NormalizeBlock"]("Normalize");
  53653. case "FresnelBlock":
  53654. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FresnelBlock"]("Fresnel");
  53655. case "LerpBlock":
  53656. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LerpBlock"]("Lerp");
  53657. case "NLerpBlock":
  53658. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NLerpBlock"]("NLerp");
  53659. case "DivideBlock":
  53660. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DivideBlock"]("Divide");
  53661. case "SubtractBlock":
  53662. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SubtractBlock"]("Subtract");
  53663. case "ModBlock":
  53664. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ModBlock"]("Mod");
  53665. case "StepBlock":
  53666. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["StepBlock"]("Step");
  53667. case "SmoothStepBlock":
  53668. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SmoothStepBlock"]("Smooth step");
  53669. case "OneMinusBlock":
  53670. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["OneMinusBlock"]("One minus");
  53671. case "ReciprocalBlock":
  53672. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReciprocalBlock"]("Reciprocal");
  53673. case "ViewDirectionBlock":
  53674. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ViewDirectionBlock"]("View direction");
  53675. case "LightInformationBlock":
  53676. var lightInformationBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightInformationBlock"]("Light information");
  53677. lightInformationBlock.light = scene.lights.length ? scene.lights[0] : null;
  53678. return lightInformationBlock;
  53679. case "MaxBlock":
  53680. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MaxBlock"]("Max");
  53681. case "MinBlock":
  53682. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MinBlock"]("Min");
  53683. case "LengthBlock":
  53684. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LengthBlock"]("Length");
  53685. case "DistanceBlock":
  53686. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DistanceBlock"]("Distance");
  53687. case "NegateBlock":
  53688. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NegateBlock"]("Negate");
  53689. case "PerturbNormalBlock":
  53690. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PerturbNormalBlock"]("Perturb normal");
  53691. case "RandomNumberBlock":
  53692. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RandomNumberBlock"]("Random number");
  53693. case "ReplaceColorBlock":
  53694. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReplaceColorBlock"]("Replace color");
  53695. case "PosterizeBlock":
  53696. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PosterizeBlock"]("Posterize");
  53697. case "ArcTan2Block":
  53698. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ArcTan2Block"]("ArcTan2");
  53699. case "GradientBlock":
  53700. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["GradientBlock"]("Gradient");
  53701. case "FrontFacingBlock":
  53702. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FrontFacingBlock"]("Front facing");
  53703. case "CosBlock": {
  53704. var cosBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Cos");
  53705. cosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Cos;
  53706. return cosBlock;
  53707. }
  53708. case "SinBlock": {
  53709. var sinBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sin");
  53710. sinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sin;
  53711. return sinBlock;
  53712. }
  53713. case "AbsBlock": {
  53714. var absBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Abs");
  53715. absBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Abs;
  53716. return absBlock;
  53717. }
  53718. case "SqrtBlock": {
  53719. var sqrtBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sqrt");
  53720. sqrtBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sqrt;
  53721. return sqrtBlock;
  53722. }
  53723. case "ArcCosBlock": {
  53724. var acosBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcCos");
  53725. acosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcCos;
  53726. return acosBlock;
  53727. }
  53728. case "ArcSinBlock": {
  53729. var asinBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcSin");
  53730. asinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcSin;
  53731. return asinBlock;
  53732. }
  53733. case "TanBlock": {
  53734. var tanBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Tan");
  53735. tanBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Tan;
  53736. return tanBlock;
  53737. }
  53738. case "ArcTanBlock": {
  53739. var atanBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcTan");
  53740. atanBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcTan;
  53741. return atanBlock;
  53742. }
  53743. case "FractBlock": {
  53744. var fractBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Fract");
  53745. fractBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Fract;
  53746. return fractBlock;
  53747. }
  53748. case "SignBlock": {
  53749. var signBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sign");
  53750. signBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sign;
  53751. return signBlock;
  53752. }
  53753. case "LogBlock": {
  53754. var logBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Log");
  53755. logBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Log;
  53756. return logBlock;
  53757. }
  53758. case "ExpBlock": {
  53759. var expBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp");
  53760. expBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp;
  53761. return expBlock;
  53762. }
  53763. case "Exp2Block": {
  53764. var exp2Block = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp2");
  53765. exp2Block.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp2;
  53766. return exp2Block;
  53767. }
  53768. case "DegreesToRadiansBlock": {
  53769. var degreesToRadiansBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Degrees to radians");
  53770. degreesToRadiansBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Radians;
  53771. return degreesToRadiansBlock;
  53772. }
  53773. case "RadiansToDegreesBlock": {
  53774. var radiansToDegreesBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Radians to degrees");
  53775. radiansToDegreesBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Degrees;
  53776. return radiansToDegreesBlock;
  53777. }
  53778. case "RoundBlock": {
  53779. var roundBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Round");
  53780. roundBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Round;
  53781. return roundBlock;
  53782. }
  53783. case "CeilingBlock": {
  53784. var ceilingBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Ceiling");
  53785. ceilingBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Ceiling;
  53786. return ceilingBlock;
  53787. }
  53788. case "FloorBlock": {
  53789. var floorBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Floor");
  53790. floorBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Floor;
  53791. return floorBlock;
  53792. }
  53793. case "SawToothWaveBlock": {
  53794. var sawToothWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("SawTooth wave");
  53795. sawToothWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].SawTooth;
  53796. return sawToothWaveBlock;
  53797. }
  53798. case "SquareWaveBlock": {
  53799. var squareWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("Square wave");
  53800. squareWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].Square;
  53801. return squareWaveBlock;
  53802. }
  53803. case "TriangleWaveBlock": {
  53804. var triangleWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("Triangle wave");
  53805. triangleWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].Triangle;
  53806. return triangleWaveBlock;
  53807. }
  53808. case "WorldMatrixBlock": {
  53809. var worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  53810. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  53811. return worldMatrixBlock;
  53812. }
  53813. case "WorldViewMatrixBlock": {
  53814. var worldViewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View");
  53815. worldViewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView);
  53816. return worldViewMatrixBlock;
  53817. }
  53818. case "WorldViewProjectionMatrixBlock": {
  53819. var worldViewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View x Projection");
  53820. worldViewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection);
  53821. return worldViewProjectionMatrixBlock;
  53822. }
  53823. case "ViewMatrixBlock": {
  53824. var viewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View");
  53825. viewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View);
  53826. return viewMatrixBlock;
  53827. }
  53828. case "ViewProjectionMatrixBlock": {
  53829. var viewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View x Projection");
  53830. viewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection);
  53831. return viewProjectionMatrixBlock;
  53832. }
  53833. case "ProjectionMatrixBlock": {
  53834. var projectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Projection");
  53835. projectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection);
  53836. return projectionMatrixBlock;
  53837. }
  53838. case "CameraPositionBlock": {
  53839. var cameraPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Camera position");
  53840. cameraPosition.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition);
  53841. return cameraPosition;
  53842. }
  53843. case "FogColorBlock": {
  53844. var FogColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Fog color");
  53845. FogColor.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor);
  53846. return FogColor;
  53847. }
  53848. case "PositionBlock": {
  53849. var meshPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  53850. meshPosition.setAsAttribute("position");
  53851. return meshPosition;
  53852. }
  53853. case "ScreenPositionBlock": {
  53854. var meshPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  53855. meshPosition.setAsAttribute("position2d");
  53856. return meshPosition;
  53857. }
  53858. case "UVBlock": {
  53859. var meshUV = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("uv");
  53860. meshUV.setAsAttribute("uv");
  53861. return meshUV;
  53862. }
  53863. case "ColorBlock": {
  53864. var meshColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("color");
  53865. meshColor.setAsAttribute("color");
  53866. return meshColor;
  53867. }
  53868. case "NormalBlock": {
  53869. var meshNormal = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  53870. meshNormal.setAsAttribute("normal");
  53871. return meshNormal;
  53872. }
  53873. case "TangentBlock": {
  53874. var meshTangent = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  53875. meshTangent.setAsAttribute("tangent");
  53876. return meshTangent;
  53877. }
  53878. case "MatrixIndicesBlock": {
  53879. var meshMatrixIndices = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesIndices");
  53880. meshMatrixIndices.setAsAttribute("matricesIndices");
  53881. return meshMatrixIndices;
  53882. }
  53883. case "MatrixWeightsBlock": {
  53884. var meshMatrixWeights = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesWeights");
  53885. meshMatrixWeights.setAsAttribute("matricesWeights");
  53886. return meshMatrixWeights;
  53887. }
  53888. case "TimeBlock": {
  53889. 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);
  53890. timeBlock.animationType = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].Time;
  53891. return timeBlock;
  53892. }
  53893. case "DeltaTimeBlock": {
  53894. var deltaTimeBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Delta time");
  53895. deltaTimeBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].DeltaTime);
  53896. return deltaTimeBlock;
  53897. }
  53898. case "WorldPositionBlock": {
  53899. var worldPositionBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "position"; });
  53900. if (!worldPositionBlock) {
  53901. worldPositionBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  53902. worldPositionBlock.setAsAttribute("position");
  53903. }
  53904. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  53905. if (!worldMatrixBlock) {
  53906. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  53907. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  53908. }
  53909. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World position");
  53910. worldPositionBlock.connectTo(transformBlock);
  53911. worldMatrixBlock.connectTo(transformBlock);
  53912. return transformBlock;
  53913. }
  53914. case "WorldNormalBlock": {
  53915. var worldNormalBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "normal"; });
  53916. if (!worldNormalBlock) {
  53917. worldNormalBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  53918. worldNormalBlock.setAsAttribute("normal");
  53919. }
  53920. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  53921. if (!worldMatrixBlock) {
  53922. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  53923. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  53924. }
  53925. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World normal");
  53926. worldNormalBlock.connectTo(transformBlock);
  53927. worldMatrixBlock.connectTo(transformBlock);
  53928. return transformBlock;
  53929. }
  53930. case "WorldTangentBlock": {
  53931. var worldTangentBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "tangent"; });
  53932. if (!worldTangentBlock) {
  53933. worldTangentBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  53934. worldTangentBlock.setAsAttribute("tangent");
  53935. }
  53936. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  53937. if (!worldMatrixBlock) {
  53938. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  53939. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  53940. }
  53941. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World tangent");
  53942. worldTangentBlock.connectTo(transformBlock);
  53943. worldMatrixBlock.connectTo(transformBlock);
  53944. return transformBlock;
  53945. }
  53946. case "PBRMetallicRoughnessBlock":
  53947. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PBRMetallicRoughnessBlock"]("PBRMetallicRoughness");
  53948. case "SheenBlock":
  53949. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SheenBlock"]("Sheen");
  53950. case "AmbientOcclusionBlock":
  53951. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AmbientOcclusionBlock"]("AmbientOcclusion");
  53952. case "ReflectivityBlock":
  53953. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectivityBlock"]("Reflectivity");
  53954. case "AnisotropyBlock":
  53955. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AnisotropyBlock"]("Anisotropy");
  53956. case "ReflectionBlock":
  53957. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionBlock"]("Reflection");
  53958. case "ClearCoatBlock":
  53959. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ClearCoatBlock"]("ClearCoat");
  53960. case "RefractionBlock":
  53961. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RefractionBlock"]("Refraction");
  53962. case "SubSurfaceBlock":
  53963. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SubSurfaceBlock"]("SubSurface");
  53964. case "CurrentScreenBlock":
  53965. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["CurrentScreenBlock"]("CurrentScreen");
  53966. case "ParticleUVBlock": {
  53967. var uv = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("uv");
  53968. uv.setAsAttribute("particle_uv");
  53969. return uv;
  53970. }
  53971. case "ParticleTextureBlock":
  53972. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ParticleTextureBlock"]("ParticleTexture");
  53973. case "ParticleColorBlock": {
  53974. var color = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Color");
  53975. color.setAsAttribute("particle_color");
  53976. return color;
  53977. }
  53978. case "ParticleTextureMaskBlock": {
  53979. var u = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("TextureMask");
  53980. u.setAsAttribute("particle_texturemask");
  53981. return u;
  53982. }
  53983. case "ParticlePositionWorldBlock": {
  53984. var pos = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("PositionWorld");
  53985. pos.setAsAttribute("particle_positionw");
  53986. return pos;
  53987. }
  53988. case "ParticleRampGradientBlock":
  53989. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ParticleRampGradientBlock"]("ParticleRampGradient");
  53990. case "ParticleBlendMultiplyBlock":
  53991. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ParticleBlendMultiplyBlock"]("ParticleBlendMultiply");
  53992. case "FragCoordBlock":
  53993. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FragCoordBlock"]("FragCoord");
  53994. case "ScreenSizeBlock":
  53995. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ScreenSizeBlock"]("ScreenSize");
  53996. }
  53997. return null;
  53998. };
  53999. BlockTools.GetColorFromConnectionNodeType = function (type) {
  54000. var color = "#880000";
  54001. switch (type) {
  54002. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  54003. color = "#cb9e27";
  54004. break;
  54005. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  54006. color = "#16bcb1";
  54007. break;
  54008. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  54009. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  54010. color = "#b786cb";
  54011. break;
  54012. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  54013. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  54014. color = "#be5126";
  54015. break;
  54016. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  54017. color = "#591990";
  54018. break;
  54019. }
  54020. return color;
  54021. };
  54022. BlockTools.GetConnectionNodeTypeFromString = function (type) {
  54023. switch (type) {
  54024. case "Float":
  54025. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float;
  54026. case "Vector2":
  54027. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2;
  54028. case "Vector3":
  54029. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3;
  54030. case "Vector4":
  54031. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4;
  54032. case "Matrix":
  54033. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix;
  54034. case "Color3":
  54035. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3;
  54036. case "Color4":
  54037. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4;
  54038. }
  54039. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].AutoDetect;
  54040. };
  54041. BlockTools.GetStringFromConnectionNodeType = function (type) {
  54042. switch (type) {
  54043. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  54044. return "Float";
  54045. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  54046. return "Vector2";
  54047. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  54048. return "Vector3";
  54049. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  54050. return "Vector4";
  54051. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  54052. return "Color3";
  54053. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  54054. return "Color4";
  54055. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  54056. return "Matrix";
  54057. }
  54058. return "";
  54059. };
  54060. return BlockTools;
  54061. }());
  54062. /***/ }),
  54063. /***/ "./components/log/log.scss":
  54064. /*!*********************************!*\
  54065. !*** ./components/log/log.scss ***!
  54066. \*********************************/
  54067. /*! no static exports found */
  54068. /***/ (function(module, exports, __webpack_require__) {
  54069. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  54070. 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");
  54071. content = content.__esModule ? content.default : content;
  54072. if (typeof content === 'string') {
  54073. content = [[module.i, content, '']];
  54074. }
  54075. var options = {};
  54076. options.insert = "head";
  54077. options.singleton = false;
  54078. var update = api(content, options);
  54079. module.exports = content.locals || {};
  54080. /***/ }),
  54081. /***/ "./components/log/logComponent.tsx":
  54082. /*!*****************************************!*\
  54083. !*** ./components/log/logComponent.tsx ***!
  54084. \*****************************************/
  54085. /*! exports provided: LogEntry, LogComponent */
  54086. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54087. "use strict";
  54088. __webpack_require__.r(__webpack_exports__);
  54089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogEntry", function() { return LogEntry; });
  54090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogComponent", function() { return LogComponent; });
  54091. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54092. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54093. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54094. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  54095. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  54096. __webpack_require__(/*! ./log.scss */ "./components/log/log.scss");
  54097. var LogEntry = /** @class */ (function () {
  54098. function LogEntry(message, isError) {
  54099. this.message = message;
  54100. this.isError = isError;
  54101. }
  54102. return LogEntry;
  54103. }());
  54104. var LogComponent = /** @class */ (function (_super) {
  54105. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LogComponent, _super);
  54106. function LogComponent(props) {
  54107. var _this = _super.call(this, props) || this;
  54108. _this.state = { logs: [] };
  54109. return _this;
  54110. }
  54111. LogComponent.prototype.componentDidMount = function () {
  54112. var _this = this;
  54113. this.props.globalState.onLogRequiredObservable.add(function (log) {
  54114. var currentLogs = _this.state.logs;
  54115. currentLogs.push(log);
  54116. _this.setState({ logs: currentLogs });
  54117. });
  54118. };
  54119. LogComponent.prototype.componentDidUpdate = function () {
  54120. var logConsole = react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"](this.refs["log-console"]);
  54121. if (!logConsole) {
  54122. return;
  54123. }
  54124. logConsole.scrollTop = logConsole.scrollHeight;
  54125. };
  54126. LogComponent.prototype.render = function () {
  54127. var today = new Date();
  54128. var h = today.getHours();
  54129. var m = today.getMinutes();
  54130. var s = today.getSeconds();
  54131. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "log-console", ref: "log-console" }, this.state.logs.map(function (l, i) {
  54132. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: i, className: "log" + (l.isError ? " error" : "") }, h + ":" + m + ":" + s + ": " + l.message));
  54133. })));
  54134. };
  54135. return LogComponent;
  54136. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54137. /***/ }),
  54138. /***/ "./components/nodeList/nodeList.scss":
  54139. /*!*******************************************!*\
  54140. !*** ./components/nodeList/nodeList.scss ***!
  54141. \*******************************************/
  54142. /*! no static exports found */
  54143. /***/ (function(module, exports, __webpack_require__) {
  54144. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  54145. 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");
  54146. content = content.__esModule ? content.default : content;
  54147. if (typeof content === 'string') {
  54148. content = [[module.i, content, '']];
  54149. }
  54150. var options = {};
  54151. options.insert = "head";
  54152. options.singleton = false;
  54153. var update = api(content, options);
  54154. module.exports = content.locals || {};
  54155. /***/ }),
  54156. /***/ "./components/nodeList/nodeListComponent.tsx":
  54157. /*!***************************************************!*\
  54158. !*** ./components/nodeList/nodeListComponent.tsx ***!
  54159. \***************************************************/
  54160. /*! exports provided: NodeListComponent */
  54161. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54162. "use strict";
  54163. __webpack_require__.r(__webpack_exports__);
  54164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  54165. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54166. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54167. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54168. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  54169. /* harmony import */ var _sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/draggableLineComponent */ "./sharedComponents/draggableLineComponent.tsx");
  54170. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialModes */ "babylonjs/Misc/dataStorage");
  54171. /* 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__);
  54172. /* harmony import */ var _sharedComponents_draggableLineWithButtonComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/draggableLineWithButtonComponent */ "./sharedComponents/draggableLineWithButtonComponent.tsx");
  54173. /* harmony import */ var _sharedComponents_lineWithFileButtonComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sharedComponents/lineWithFileButtonComponent */ "./sharedComponents/lineWithFileButtonComponent.tsx");
  54174. var addButton = __webpack_require__(/*! ../../../imgs/add.svg */ "../imgs/add.svg");
  54175. var deleteButton = __webpack_require__(/*! ../../../imgs/delete.svg */ "../imgs/delete.svg");
  54176. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  54177. var NodeListComponent = /** @class */ (function (_super) {
  54178. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NodeListComponent, _super);
  54179. function NodeListComponent(props) {
  54180. var _this = _super.call(this, props) || this;
  54181. _this.state = { filter: "" };
  54182. var frameJson = localStorage.getItem("Custom-Frame-List");
  54183. if (frameJson) {
  54184. _this._customFrameList = JSON.parse(frameJson);
  54185. }
  54186. _this._onResetRequiredObserver = _this.props.globalState.onResetRequiredObservable.add(function () {
  54187. _this.forceUpdate();
  54188. });
  54189. return _this;
  54190. }
  54191. NodeListComponent.prototype.componentWillUnmount = function () {
  54192. this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver);
  54193. };
  54194. NodeListComponent.prototype.filterContent = function (filter) {
  54195. this.setState({ filter: filter });
  54196. };
  54197. NodeListComponent.prototype.loadCustomFrame = function (file) {
  54198. var _this = this;
  54199. 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 () {
  54200. var decoder, frameData, frameName, frameToolTip, frameJson, frameList;
  54201. return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
  54202. decoder = new TextDecoder("utf-8");
  54203. frameData = JSON.parse(decoder.decode(data));
  54204. frameName = frameData.editorData.frames[0].name + "Custom";
  54205. frameToolTip = frameData.editorData.frames[0].comments || "";
  54206. try {
  54207. localStorage.setItem(frameName, JSON.stringify(frameData));
  54208. }
  54209. catch (error) {
  54210. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("Error Saving Frame");
  54211. return [2 /*return*/];
  54212. }
  54213. frameJson = localStorage.getItem("Custom-Frame-List");
  54214. frameList = {};
  54215. if (frameJson) {
  54216. frameList = JSON.parse(frameJson);
  54217. }
  54218. frameList[frameName] = frameToolTip;
  54219. localStorage.setItem("Custom-Frame-List", JSON.stringify(frameList));
  54220. this._customFrameList = frameList;
  54221. this.forceUpdate();
  54222. return [2 /*return*/];
  54223. });
  54224. }); }, undefined, true);
  54225. };
  54226. NodeListComponent.prototype.removeItem = function (value) {
  54227. var frameJson = localStorage.getItem("Custom-Frame-List");
  54228. if (frameJson) {
  54229. var frameList = JSON.parse(frameJson);
  54230. delete frameList[value];
  54231. localStorage.removeItem(value);
  54232. localStorage.setItem("Custom-Frame-List", JSON.stringify(frameList));
  54233. this._customFrameList = frameList;
  54234. this.forceUpdate();
  54235. }
  54236. };
  54237. NodeListComponent.prototype.render = function () {
  54238. var _this = this;
  54239. var customFrameNames = [];
  54240. for (var frame in this._customFrameList) {
  54241. customFrameNames.push(frame);
  54242. }
  54243. // Block types used to create the menu from
  54244. var allBlocks = {
  54245. Custom_Frames: customFrameNames,
  54246. Animation: ["BonesBlock", "MorphTargetsBlock"],
  54247. Color_Management: ["ReplaceColorBlock", "PosterizeBlock", "GradientBlock", "DesaturateBlock"],
  54248. Conversion_Blocks: ["ColorMergerBlock", "ColorSplitterBlock", "VectorMergerBlock", "VectorSplitterBlock"],
  54249. Inputs: ["Float", "Vector2", "Vector3", "Vector4", "Color3", "Color4", "TextureBlock", "ReflectionTextureBlock", "TimeBlock", "DeltaTimeBlock", "FragCoordBlock", "ScreenSizeBlock"],
  54250. Interpolation: ["LerpBlock", "StepBlock", "SmoothStepBlock", "NLerpBlock"],
  54251. Math__Standard: ["AddBlock", "DivideBlock", "MaxBlock", "MinBlock", "ModBlock", "MultiplyBlock", "NegateBlock", "OneMinusBlock", "ReciprocalBlock", "ScaleBlock", "SignBlock", "SqrtBlock", "SubtractBlock"],
  54252. Math__Scientific: ["AbsBlock", "ArcCosBlock", "ArcSinBlock", "ArcTanBlock", "ArcTan2Block", "CosBlock", "DegreesToRadiansBlock", "ExpBlock", "Exp2Block", "FractBlock", "LogBlock", "PowBlock", "RadiansToDegreesBlock", "SawToothWaveBlock", "SinBlock", "SquareWaveBlock", "TanBlock", "TriangleWaveBlock"],
  54253. Math__Vector: ["CrossBlock", "DerivativeBlock", "DistanceBlock", "DotBlock", "FresnelBlock", "LengthBlock", "ReflectBlock", "RefractBlock", "Rotate2dBlock", "TransformBlock",],
  54254. Matrices: ["Matrix", "WorldMatrixBlock", "WorldViewMatrixBlock", "WorldViewProjectionMatrixBlock", "ViewMatrixBlock", "ViewProjectionMatrixBlock", "ProjectionMatrixBlock"],
  54255. Mesh: ["InstancesBlock", "PositionBlock", "UVBlock", "ColorBlock", "NormalBlock", "PerturbNormalBlock", "NormalBlendBlock", "TangentBlock", "MatrixIndicesBlock", "MatrixWeightsBlock", "WorldPositionBlock", "WorldNormalBlock", "WorldTangentBlock", "FrontFacingBlock"],
  54256. Noises: ["RandomNumberBlock", "SimplexPerlin3DBlock", "WorleyNoise3DBlock"],
  54257. Output_Nodes: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock"],
  54258. Particle: ["ParticleBlendMultiplyBlock", "ParticleColorBlock", "ParticlePositionWorldBlock", "ParticleRampGradientBlock", "ParticleTextureBlock", "ParticleTextureMaskBlock", "ParticleUVBlock"],
  54259. PBR: ["PBRMetallicRoughnessBlock", "AmbientOcclusionBlock", "AnisotropyBlock", "ClearCoatBlock", "ReflectionBlock", "ReflectivityBlock", "RefractionBlock", "SheenBlock", "SubSurfaceBlock"],
  54260. PostProcess: ["ScreenPositionBlock", "CurrentScreenBlock"],
  54261. Procedural__Texture: ["ScreenPositionBlock"],
  54262. Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"],
  54263. Round: ["RoundBlock", "CeilingBlock", "FloorBlock"],
  54264. Scene: ["FogBlock", "CameraPositionBlock", "FogColorBlock", "ImageProcessingBlock", "LightBlock", "LightInformationBlock", "ViewDirectionBlock"],
  54265. };
  54266. switch (this.props.globalState.mode) {
  54267. case babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialModes"].Material:
  54268. delete allBlocks["PostProcess"];
  54269. delete allBlocks["Particle"];
  54270. delete allBlocks["Procedural__Texture"];
  54271. break;
  54272. case babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialModes"].PostProcess:
  54273. delete allBlocks["Animation"];
  54274. delete allBlocks["Mesh"];
  54275. delete allBlocks["Particle"];
  54276. delete allBlocks["Procedural__Texture"];
  54277. break;
  54278. case babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialModes"].ProceduralTexture:
  54279. delete allBlocks["Animation"];
  54280. delete allBlocks["Mesh"];
  54281. delete allBlocks["Particle"];
  54282. delete allBlocks["PostProcess"];
  54283. break;
  54284. case babylonjs_Materials_Node_Enums_nodeMaterialModes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialModes"].Particle:
  54285. delete allBlocks["Animation"];
  54286. delete allBlocks["Mesh"];
  54287. delete allBlocks["PostProcess"];
  54288. delete allBlocks["Procedural__Texture"];
  54289. allBlocks.Output_Nodes.splice(allBlocks.Output_Nodes.indexOf("VertexOutputBlock"), 1);
  54290. break;
  54291. }
  54292. // Create node menu
  54293. var blockMenu = [];
  54294. for (var key in allBlocks) {
  54295. var blockList = allBlocks[key].filter(function (b) { return !_this.state.filter || b.toLowerCase().indexOf(_this.state.filter.toLowerCase()) !== -1; })
  54296. .sort(function (a, b) { return a.localeCompare(b); })
  54297. .map(function (block, i) {
  54298. if (key === "Custom_Frames") {
  54299. 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); } });
  54300. }
  54301. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__["DraggableLineComponent"], { key: block, data: block, tooltip: NodeListComponent._Tooltips[block] || "" });
  54302. });
  54303. if (key === "Custom_Frames") {
  54304. 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) {
  54305. _this.loadCustomFrame(file);
  54306. } });
  54307. blockList.push(line);
  54308. }
  54309. if (blockList.length) {
  54310. 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));
  54311. }
  54312. }
  54313. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList" },
  54314. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  54315. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  54316. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "filter" },
  54317. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", placeholder: "Filter", onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, onBlur: function (evt) {
  54318. _this.props.globalState.blockKeyboardEvents = false;
  54319. }, onChange: function (evt) { return _this.filterContent(evt.target.value); } })),
  54320. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "list-container" }, blockMenu)))));
  54321. };
  54322. NodeListComponent._Tooltips = {
  54323. "BonesBlock": "Provides a world matrix for each vertex, based on skeletal (bone/joint) animation",
  54324. "MorphTargetsBlock": "Provides the final positions, normals, tangents, and uvs based on morph targets in a mesh",
  54325. "AddBlock": "Adds the left and right inputs of the same type together",
  54326. "DistanceBlock": "Provides a distance vector based on the left and right input vectors",
  54327. "DivideBlock": "Divides the left input by the right input of the same type",
  54328. "LengthBlock": "Outputs the length of an input vector",
  54329. "MaxBlock": "Outputs the largest value between the left and right inputs of the same type",
  54330. "MinBlock": "Outputs the smallest value between the left and right inputs of the same type",
  54331. "MultiplyBlock": "Multiplies the left and right inputs of the same type together",
  54332. "NegateBlock": "Multiplies the input by -1",
  54333. "OneMinusBlock": "Subtracts each channel of the input value from 1 (1 - input)",
  54334. "RandomNumberBlock": "Provides a random number based on an input seed",
  54335. "ReciprocalBlock": "Quotient of 1 divided by the input",
  54336. "ScaleBlock": "Multiplies the input channels by a float factor",
  54337. "SubtractBlock": "Subtracts the right input from the left input of the same type",
  54338. "GradientBlock": "Returns the color in the gradient represented by the target value of the input",
  54339. "PosterizeBlock": "Reduces the number of values in each channel to the number in the corresponding channel of steps",
  54340. "ReplaceColorBlock": "Replaces a reference color in value with the color in replacement blended by distance",
  54341. "ColorMergerBlock": "Combines float input channels into a color",
  54342. "ColorSplitterBlock": "Separates color input channels into individual floats",
  54343. "VectorMergerBlock": "Combines up to four input floats into a vector",
  54344. "VectorSplitterBlock": "Separates vectors input channels into individual floats",
  54345. "Color3": "A color made up of red, green, and blue channel values",
  54346. "Color4": "A color made up of red, green, blue, and alpha channel values",
  54347. "DeltaTimeBlock": "A float representing the time that has passed since the last frame was rendered",
  54348. "Float": "A floating point number representing a value with a fractional component",
  54349. "TextureBlock": "A node for reading a linked or embedded texture file",
  54350. "TimeBlock": "A float value that represents the time that has passed since the scene was loaded",
  54351. "Vector2": "a vector composed of X and Y channels",
  54352. "Vector3": "a vector composed of X, Y, and Z channels",
  54353. "Vector4": "a vector composed of X, Y, Z, and W channels",
  54354. "LerpBlock": "Outputs a value that is a mix of the left and right inputs based on the target value",
  54355. "NLerpBlock": "Outputs a value that is a mix of the left and right inputs based on the target's normalized value",
  54356. "SmoothStepBlock": "Outputs a value based on a the input value's position on a curve between the two edge values",
  54357. "StepBlock": "Outputs 1 for any input value above the edge input, outputs 0 for any input value below the edge input",
  54358. "Matrix": "A 4x4 table of related values",
  54359. "ProjectionMatrixBlock": "A matrix to remap points in 3D space to 2D plane relative to the screen",
  54360. "ViewMatrixBlock": "A matrix to remap points in 3D space to 2D plane relative to the view of the scene camera",
  54361. "ViewProjectionMatrixBlock": "A matrix to remap points in 3D space to 2D view space before remapping to 2D screen space",
  54362. "WorldMatrixBlock": "A matrix to remap points in 3D local space to 3D world space",
  54363. "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",
  54364. "ColorBlock": "Outputs the RGBA color of each vertex in the mesh",
  54365. "InstancesBlock": "Provides the world matrix for each instance to apply this material to all instances",
  54366. "MatrixIndicesBlock": "A Vector4 representing the vertex to bone skinning assignments",
  54367. "MatrixWeightsBlock": "A Vector4 representing the vertex to bone skinning weights",
  54368. "NormalBlock": "A Vector3 representing the normal of each vertex of the attached mesh",
  54369. "PositionBlock": "A Vector3 representing the position of each vertex of the attached mesh",
  54370. "TangentBlock": "A Vector3 representing the tangent of each vertex of the attached mesh",
  54371. "UVBlock": "A Vector2 representing the UV coordinates of each vertex of the attached mesh",
  54372. "WorldNormal": "A Vector4 representing the normal of each vertex of the attached mesh transformed into world space",
  54373. "WorldTangent": "A Vector4 representing the tangent of each vertex of the attached mesh transformed into world space",
  54374. "PerturbNormalBlock": "Creates high-frequency detail normal vectors based on a normal map, the world position, and world normal",
  54375. "NormalBlend": "Outputs the result of blending two normal maps together using a per-channel screen",
  54376. "WorldPosition": "A Vector4 representing the position of each vertex of the attached mesh transformed into world space",
  54377. "DiscardBlock": "A final node that will not output a pixel below the cutoff value",
  54378. "FragmentOutputBlock": "A mandatory final node for outputing the color of each pixel",
  54379. "VertexOutputBlock": "A mandatory final node for outputing the position of each vertex",
  54380. "ClampBlock": "Outputs values above the maximum or below minimum as maximum or minimum values respectively",
  54381. "NormalizeBlock": "Remaps the length of a vector or color to 1",
  54382. "RemapBlock": "Remaps input value between sourceMin and sourceMax to a new range between targetMin and targetMax",
  54383. "CeilingBlock": "Outputs fractional values as the next higher whole number",
  54384. "FloorBlock": "Outputs fractional values as the next lower whole number",
  54385. "RoundBlock": "Outputs fractional values rounded to the nearest whole number",
  54386. "ModBlock": "Outputs the value of one parameter modulo another",
  54387. "CameraPositionBlock": "Outputs a Vector3 position of the active scene camera",
  54388. "FogBlock": "Applies fog to the scene with an increasing opacity based on distance from the camera",
  54389. "FogColorBlock": "The system value for fog color pulled from the scene",
  54390. "ImageProcessingBlock": "Provides access to all of the Babylon image processing properties",
  54391. "LightBlock": "Outputs diffuse and specular contributions from one or more scene lights",
  54392. "LightInformationBlock": "Provides the direction, color and intensity of a selected light based on its world position",
  54393. "ReflectionTextureBlock": "Creates a reflection from the input texture",
  54394. "ViewDirectionBlock": "Outputs the direction vector of where the camera is aimed",
  54395. "AbsBlock": "Outputs the absolute value of the input value",
  54396. "ArcCosBlock": "Outputs the inverse of the cosine value based on the input value",
  54397. "ArcSinBlock": "Outputs the inverse of the sine value based on the input value",
  54398. "ArcTan2Block": "Outputs the inverse of the tangent value based on the input value",
  54399. "ArcTanBlock": "Outputs the inverse of the tangent value based on the input value",
  54400. "CosBlock": "Outputs the cosine value based on the input value",
  54401. "DegreesToRadiansBlock": "Converts the input degrees value to radians",
  54402. "Exp2Block": "Outputs the input value multiplied by itself 1 time. (Exponent of 2)",
  54403. "ExpBlock": "Outputs the input value multiplied by itself 9 time. (Exponent of 10)",
  54404. "FractBlock": "Outputs only the fractional value of a floating point number",
  54405. "LogBlock": "The logarithmic value based on the input value",
  54406. "PowBlock": "Outputs the input value multiplied by itself the number of times equal to the power input (Exponent of power)",
  54407. "RadiansToDegreesBlock": "Converts the input radians value to degrees",
  54408. "SawToothWaveBlock": "Outputs a sawtooth pattern value between -1 and 1 based on the input value",
  54409. "SignBlock": "returns 1 if the input is positive, 0 if input is equal to 0, or -1 if the input is negative",
  54410. "SinBlock": "Outputs the the sine value based on the input value",
  54411. "SqrtBlock": "Outputs the the square root of the input value",
  54412. "SquareWaveBlock": "Outputs a stepped pattern value between -1 and 1 based on the input value",
  54413. "TanBlock": "Outputs the the tangent value based on the input value",
  54414. "TriangleWaveBlock": "Outputs a sawtooth pattern value between 0 and 1 based on the input value",
  54415. "CrossBlock": "Outputs a vector that is perpendicular to two input vectors",
  54416. "DotBlock": "Outputs the cos of the angle between two vectors",
  54417. "FresnelBlock": "Outputs the grazing angle of the surface of the mesh, relative to a camera influenced by the bias and power inputs",
  54418. "TransformBlock": "Transforms a input vector based on the input matrix",
  54419. "DerivativeBlock": "FRAGMENT SHADER ONLY. Provides the rate of change for an input on a given axis (x,y).",
  54420. "DesaturateBlock": "Convert a color input into a grayscale representation.",
  54421. "WorldViewMatrixBlock": "A matrix to remap points in 3D local space to 3D world space, and ending in 2D camera space.",
  54422. "FrontFacingBlock": "Returns 1 if a mesh triangle faces the normal direction and 0 if it does not.",
  54423. "SimplexPerlin3DBlock": "Creates a type of gradient noise with few directional artifacts.",
  54424. "WorleyNoise3DBlock": "Creates a random pattern resembling cells.",
  54425. "ReflectBlock": "Outputs the direction of the input vector reflected across the surface normal.",
  54426. "RefractBlock": "Outputs a direction simulating a deflection of the input vector.",
  54427. "Rotate2dBlock": "Rotates UV coordinates around the W axis.",
  54428. "PBRMetallicRoughnessBlock": "PBR metallic/roughness material",
  54429. "SheenBlock": "PBR Sheen block",
  54430. "AmbientOcclusionBlock": "PBR Ambient occlusion block",
  54431. "ReflectivityBlock": "PBR Reflectivity block",
  54432. "AnisotropyBlock": "PBR Anisotropy block",
  54433. "ReflectionBlock": "PBR Reflection block",
  54434. "ClearCoatBlock": "PBR ClearCoat block",
  54435. "RefractionBlock": "PBR Refraction block",
  54436. "SubSurfaceBlock": "PBR SubSurface block",
  54437. "ScreenPositionBlock": "A Vector2 representing the position of each vertex of the screen quad (derived from UV set from the quad used to render)",
  54438. "CurrentScreenBlock": "The screen buffer used as input for the post process",
  54439. "ParticleUVBlock": "The particle uv texture coordinate",
  54440. "ParticleTextureBlock": "The particle texture",
  54441. "ParticleColorBlock": "The particle color",
  54442. "ParticleTextureMaskBlock": "The particle texture mask",
  54443. "ParticleRampGradientBlock": "The particle ramp gradient block",
  54444. "ParticleBlendMultiplyBlock": "The particle blend multiply block",
  54445. "ParticlePositionWorldBlock": "The world position of the particle",
  54446. "FragCoordBlock": "The gl_FragCoord predefined variable that contains the window relative coordinate (x, y, z, 1/w)",
  54447. "ScreenSizeBlock": "The size (in pixels) of the screen window",
  54448. };
  54449. return NodeListComponent;
  54450. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54451. /***/ }),
  54452. /***/ "./components/preview/previewAreaComponent.tsx":
  54453. /*!*****************************************************!*\
  54454. !*** ./components/preview/previewAreaComponent.tsx ***!
  54455. \*****************************************************/
  54456. /*! exports provided: PreviewAreaComponent */
  54457. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54458. "use strict";
  54459. __webpack_require__.r(__webpack_exports__);
  54460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewAreaComponent", function() { return PreviewAreaComponent; });
  54461. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  54462. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  54463. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  54464. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  54465. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__);
  54466. var doubleSided = __webpack_require__(/*! ./svgs/doubleSided.svg */ "./components/preview/svgs/doubleSided.svg");
  54467. var depthPass = __webpack_require__(/*! ./svgs/depthPass.svg */ "./components/preview/svgs/depthPass.svg");
  54468. var omni = __webpack_require__(/*! ./svgs/omni.svg */ "./components/preview/svgs/omni.svg");
  54469. var directionalRight = __webpack_require__(/*! ./svgs/directionalRight.svg */ "./components/preview/svgs/directionalRight.svg");
  54470. var directionalLeft = __webpack_require__(/*! ./svgs/directionalLeft.svg */ "./components/preview/svgs/directionalLeft.svg");
  54471. var PreviewAreaComponent = /** @class */ (function (_super) {
  54472. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PreviewAreaComponent, _super);
  54473. function PreviewAreaComponent(props) {
  54474. var _this = _super.call(this, props) || this;
  54475. _this.state = { isLoading: true };
  54476. _this._onIsLoadingChangedObserver = _this.props.globalState.onIsLoadingChanged.add(function (state) { return _this.setState({ isLoading: state }); });
  54477. _this._onResetRequiredObserver = _this.props.globalState.onResetRequiredObservable.add(function () {
  54478. _this.forceUpdate();
  54479. });
  54480. return _this;
  54481. }
  54482. PreviewAreaComponent.prototype.componentWillUnmount = function () {
  54483. this.props.globalState.onIsLoadingChanged.remove(this._onIsLoadingChangedObserver);
  54484. this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver);
  54485. };
  54486. PreviewAreaComponent.prototype.changeBackFaceCulling = function (value) {
  54487. this.props.globalState.backFaceCulling = value;
  54488. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("BackFaceCulling", value);
  54489. this.props.globalState.onBackFaceCullingChanged.notifyObservers();
  54490. this.forceUpdate();
  54491. };
  54492. PreviewAreaComponent.prototype.changeDepthPrePass = function (value) {
  54493. this.props.globalState.depthPrePass = value;
  54494. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("DepthPrePass", value);
  54495. this.props.globalState.onDepthPrePassChanged.notifyObservers();
  54496. this.forceUpdate();
  54497. };
  54498. PreviewAreaComponent.prototype.render = function () {
  54499. var _this = this;
  54500. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  54501. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview", style: { height: this.props.width + "px" } },
  54502. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "preview-canvas" }),
  54503. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "waitPanel" + (this.state.isLoading ? "" : " hidden") }, "Please wait, loading...")),
  54504. 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,
  54505. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-config-bar" },
  54506. 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" : "") },
  54507. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: doubleSided, alt: "" })),
  54508. 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" : "") },
  54509. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: depthPass, alt: "" })),
  54510. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off hemispheric light", onClick: function () {
  54511. _this.props.globalState.hemisphericLight = !_this.props.globalState.hemisphericLight;
  54512. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("HemisphericLight", _this.props.globalState.hemisphericLight);
  54513. _this.props.globalState.onLightUpdated.notifyObservers();
  54514. _this.forceUpdate();
  54515. }, className: "button hemispheric-light" + (this.props.globalState.hemisphericLight ? " selected" : "") },
  54516. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: omni, alt: "" })),
  54517. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off direction light #1", onClick: function () {
  54518. _this.props.globalState.directionalLight1 = !_this.props.globalState.directionalLight1;
  54519. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("DirectionalLight1", _this.props.globalState.directionalLight1);
  54520. _this.props.globalState.onLightUpdated.notifyObservers();
  54521. _this.forceUpdate();
  54522. }, className: "button direction-light-1" + (this.props.globalState.directionalLight1 ? " selected" : "") },
  54523. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: directionalRight, alt: "" })),
  54524. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off direction light #0", onClick: function () {
  54525. _this.props.globalState.directionalLight0 = !_this.props.globalState.directionalLight0;
  54526. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean("DirectionalLight0", _this.props.globalState.directionalLight0);
  54527. _this.props.globalState.onLightUpdated.notifyObservers();
  54528. _this.forceUpdate();
  54529. }, className: "button direction-light-0" + (this.props.globalState.directionalLight0 ? " selected" : "") },
  54530. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: directionalLeft, alt: "" }))))));
  54531. };
  54532. return PreviewAreaComponent;
  54533. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  54534. /***/ }),
  54535. /***/ "./components/preview/previewManager.ts":
  54536. /*!**********************************************!*\
  54537. !*** ./components/preview/previewManager.ts ***!
  54538. \**********************************************/
  54539. /*! exports provided: PreviewManager */
  54540. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54541. "use strict";
  54542. __webpack_require__.r(__webpack_exports__);
  54543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewManager", function() { return PreviewManager; });
  54544. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterial */ "babylonjs/Misc/dataStorage");
  54545. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__);
  54546. /* harmony import */ var _previewType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./previewType */ "./components/preview/previewType.ts");
  54547. /* harmony import */ var _log_logComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../log/logComponent */ "./components/log/logComponent.tsx");
  54548. var PreviewManager = /** @class */ (function () {
  54549. function PreviewManager(targetCanvas, globalState) {
  54550. var _this = this;
  54551. this._nodeMaterial = globalState.nodeMaterial;
  54552. this._globalState = globalState;
  54553. this._onBuildObserver = this._nodeMaterial.onBuildObservable.add(function (nodeMaterial) {
  54554. var serializationObject = nodeMaterial.serialize();
  54555. _this._updatePreview(serializationObject);
  54556. });
  54557. this._onPreviewCommandActivatedObserver = globalState.onPreviewCommandActivated.add(function (forceRefresh) {
  54558. if (forceRefresh) {
  54559. _this._currentType = -1;
  54560. }
  54561. _this._refreshPreviewMesh();
  54562. });
  54563. this._onLightUpdatedObserver = globalState.onLightUpdated.add(function () {
  54564. _this._prepareLights();
  54565. });
  54566. this._onUpdateRequiredObserver = globalState.onUpdateRequiredObservable.add(function () {
  54567. var serializationObject = _this._nodeMaterial.serialize();
  54568. _this._updatePreview(serializationObject);
  54569. });
  54570. this._onPreviewBackgroundChangedObserver = globalState.onPreviewBackgroundChanged.add(function () {
  54571. _this._scene.clearColor = _this._globalState.backgroundColor;
  54572. });
  54573. this._onAnimationCommandActivatedObserver = globalState.onAnimationCommandActivated.add(function () {
  54574. _this._handleAnimations();
  54575. });
  54576. this._onBackFaceCullingChangedObserver = globalState.onBackFaceCullingChanged.add(function () {
  54577. _this._material.backFaceCulling = _this._globalState.backFaceCulling;
  54578. });
  54579. this._onDepthPrePassChangedObserver = globalState.onDepthPrePassChanged.add(function () {
  54580. _this._material.needDepthPrePass = _this._globalState.depthPrePass;
  54581. });
  54582. this._engine = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Engine"](targetCanvas, true);
  54583. this._scene = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Scene"](this._engine);
  54584. this._scene.clearColor = this._globalState.backgroundColor;
  54585. 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);
  54586. this._camera.lowerRadiusLimit = 3;
  54587. this._camera.upperRadiusLimit = 10;
  54588. this._camera.wheelPrecision = 20;
  54589. this._camera.minZ = 0.1;
  54590. this._camera.attachControl(targetCanvas, false);
  54591. this._lightParent = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["TransformNode"]("LightParent", this._scene);
  54592. this._refreshPreviewMesh();
  54593. this._engine.runRenderLoop(function () {
  54594. _this._engine.resize();
  54595. _this._scene.render();
  54596. });
  54597. var lastOffsetX = undefined;
  54598. var lightRotationSpeed = 0.01;
  54599. this._scene.onPointerObservable.add(function (evt) {
  54600. if (_this._globalState.controlCamera) {
  54601. return;
  54602. }
  54603. if (evt.type === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERUP) {
  54604. lastOffsetX = undefined;
  54605. return;
  54606. }
  54607. if (evt.event.buttons !== 1) {
  54608. return;
  54609. }
  54610. if (lastOffsetX === undefined) {
  54611. lastOffsetX = evt.event.offsetX;
  54612. }
  54613. var rotateLighting = (lastOffsetX - evt.event.offsetX) * lightRotationSpeed;
  54614. _this._lightParent.rotation.y += rotateLighting;
  54615. lastOffsetX = evt.event.offsetX;
  54616. });
  54617. // this._scene.registerBeforeRender(() => {
  54618. // if (this._camera.alpha === cameraLastRotation) {
  54619. // return;
  54620. // }
  54621. // if (!this._globalState.controlCamera) {
  54622. // return;
  54623. // }
  54624. // var rotateLighting = (this._camera.alpha - cameraLastRotation) * lightRotationParallaxSpeed;
  54625. // this._lightParent.rotate(Vector3.Up(), rotateLighting);
  54626. // cameraLastRotation = this._camera.alpha;
  54627. // });
  54628. }
  54629. PreviewManager.prototype._handleAnimations = function () {
  54630. this._scene.stopAllAnimations();
  54631. if (this._globalState.rotatePreview) {
  54632. for (var _i = 0, _a = this._scene.rootNodes; _i < _a.length; _i++) {
  54633. var root = _a[_i];
  54634. var transformNode = root;
  54635. if (transformNode.getClassName() === "TransformNode" || transformNode.getClassName() === "Mesh" || transformNode.getClassName() === "GroundMesh") {
  54636. if (transformNode.rotationQuaternion) {
  54637. transformNode.rotation = transformNode.rotationQuaternion.toEulerAngles();
  54638. transformNode.rotationQuaternion = null;
  54639. }
  54640. 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);
  54641. }
  54642. }
  54643. }
  54644. };
  54645. PreviewManager.prototype._prepareLights = function () {
  54646. // Remove current lights
  54647. var currentLights = this._scene.lights.slice(0);
  54648. for (var _i = 0, currentLights_1 = currentLights; _i < currentLights_1.length; _i++) {
  54649. var light = currentLights_1[_i];
  54650. light.dispose();
  54651. }
  54652. // Create new lights based on settings
  54653. if (this._globalState.hemisphericLight) {
  54654. 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);
  54655. }
  54656. if (this._globalState.directionalLight0) {
  54657. 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);
  54658. dir0.intensity = 0.9;
  54659. dir0.diffuse = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9294117647058824, 0.9725490196078431, 0.996078431372549);
  54660. dir0.specular = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9294117647058824, 0.9725490196078431, 0.996078431372549);
  54661. dir0.parent = this._lightParent;
  54662. }
  54663. if (this._globalState.directionalLight1) {
  54664. 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);
  54665. dir1.intensity = 1.2;
  54666. dir1.specular = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9803921568627451, 0.9529411764705882, 0.7725490196078432);
  54667. dir1.diffuse = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9803921568627451, 0.9529411764705882, 0.7725490196078432);
  54668. dir1.parent = this._lightParent;
  54669. }
  54670. };
  54671. PreviewManager.prototype._prepareScene = function () {
  54672. var _this = this;
  54673. this._camera.useFramingBehavior = this._globalState.mode === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Material;
  54674. switch (this._globalState.mode) {
  54675. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Material: {
  54676. this._prepareLights();
  54677. var framingBehavior = this._camera.getBehaviorByName("Framing");
  54678. setTimeout(function () {
  54679. framingBehavior.framingTime = 0;
  54680. framingBehavior.elevationReturnTime = -1;
  54681. if (_this._scene.meshes.length) {
  54682. var worldExtends = _this._scene.getWorldExtends();
  54683. _this._camera.lowerRadiusLimit = null;
  54684. _this._camera.upperRadiusLimit = null;
  54685. framingBehavior.zoomOnBoundingInfo(worldExtends.min, worldExtends.max);
  54686. }
  54687. _this._camera.pinchPrecision = 200 / _this._camera.radius;
  54688. _this._camera.upperRadiusLimit = 5 * _this._camera.radius;
  54689. });
  54690. this._camera.wheelDeltaPercentage = 0.01;
  54691. this._camera.pinchDeltaPercentage = 0.01;
  54692. // Animations
  54693. this._handleAnimations();
  54694. break;
  54695. }
  54696. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].PostProcess:
  54697. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].ProceduralTexture: {
  54698. this._camera.radius = 4;
  54699. this._camera.upperRadiusLimit = 10;
  54700. break;
  54701. }
  54702. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Particle: {
  54703. 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;
  54704. this._camera.upperRadiusLimit = 5000;
  54705. break;
  54706. }
  54707. }
  54708. // Material
  54709. var serializationObject = this._nodeMaterial.serialize();
  54710. this._updatePreview(serializationObject);
  54711. };
  54712. PreviewManager.prototype._refreshPreviewMesh = function () {
  54713. var _this = this;
  54714. if (this._currentType !== this._globalState.previewType || this._currentType === _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Custom) {
  54715. this._currentType = this._globalState.previewType;
  54716. if (this._meshes && this._meshes.length) {
  54717. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  54718. var mesh = _a[_i];
  54719. mesh.dispose();
  54720. }
  54721. }
  54722. this._meshes = [];
  54723. if (this._layer) {
  54724. this._layer.dispose();
  54725. this._layer = null;
  54726. }
  54727. var lights = this._scene.lights.slice(0);
  54728. for (var _b = 0, lights_1 = lights; _b < lights_1.length; _b++) {
  54729. var light = lights_1[_b];
  54730. light.dispose();
  54731. }
  54732. this._engine.releaseEffects();
  54733. if (this._particleSystem) {
  54734. this._particleSystem.onBeforeDrawParticlesObservable.clear();
  54735. this._particleSystem.onDisposeObservable.clear();
  54736. this._particleSystem.stop();
  54737. this._particleSystem.dispose();
  54738. this._particleSystem = null;
  54739. }
  54740. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].ShowLoadingScreen = false;
  54741. this._globalState.onIsLoadingChanged.notifyObservers(true);
  54742. if (this._globalState.mode === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Material) {
  54743. switch (this._globalState.previewType) {
  54744. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Box:
  54745. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCube.glb", this._scene).then(function () {
  54746. var _a;
  54747. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  54748. _this._prepareScene();
  54749. });
  54750. return;
  54751. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Sphere:
  54752. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateSphere("dummy-sphere", 32, 2, this._scene));
  54753. break;
  54754. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Torus:
  54755. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateTorus("dummy-torus", 2, 0.5, 32, this._scene));
  54756. break;
  54757. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Cylinder:
  54758. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCylinder.glb", this._scene).then(function () {
  54759. var _a;
  54760. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  54761. _this._prepareScene();
  54762. });
  54763. return;
  54764. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Plane:
  54765. var plane = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateGround("dummy-plane", 2, 2, 128, this._scene);
  54766. plane.scaling.y = -1;
  54767. plane.rotation.x = Math.PI;
  54768. this._meshes.push(plane);
  54769. break;
  54770. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].ShaderBall:
  54771. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "shaderBall.glb", this._scene).then(function () {
  54772. var _a;
  54773. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  54774. _this._prepareScene();
  54775. });
  54776. return;
  54777. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Custom:
  54778. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("file:", this._globalState.previewFile, this._scene).then(function () {
  54779. var _a;
  54780. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  54781. _this._prepareScene();
  54782. });
  54783. return;
  54784. }
  54785. }
  54786. else if (this._globalState.mode === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].ProceduralTexture) {
  54787. this._layer = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Layer"]("proceduralLayer", null, this._scene);
  54788. }
  54789. else if (this._globalState.mode === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Particle) {
  54790. switch (this._globalState.previewType) {
  54791. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].DefaultParticleSystem:
  54792. 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);
  54793. this._particleSystem.start();
  54794. break;
  54795. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Bubbles:
  54796. this._particleSystem = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleSystem"]("particles", 4000, this._scene);
  54797. this._particleSystem.particleTexture = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Texture"]("https://assets.babylonjs.com/particles/textures/explosion/Flare.png", this._scene);
  54798. this._particleSystem.minSize = 0.1;
  54799. this._particleSystem.maxSize = 1.0;
  54800. this._particleSystem.minLifeTime = 0.5;
  54801. this._particleSystem.maxLifeTime = 5.0;
  54802. this._particleSystem.minEmitPower = 0.5;
  54803. this._particleSystem.maxEmitPower = 3.0;
  54804. 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));
  54805. this._particleSystem.emitRate = 100;
  54806. this._particleSystem.blendMode = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleSystem"].BLENDMODE_ONEONE;
  54807. this._particleSystem.color1 = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color4"](1, 1, 0, 1);
  54808. this._particleSystem.color2 = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color4"](1, 0.5, 0, 1);
  54809. this._particleSystem.gravity = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](0, -1.0, 0);
  54810. this._particleSystem.start();
  54811. break;
  54812. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Explosion:
  54813. this._loadParticleSystem(this._globalState.previewType, 1);
  54814. return;
  54815. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Fire:
  54816. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Rain:
  54817. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Smoke:
  54818. this._loadParticleSystem(this._globalState.previewType);
  54819. return;
  54820. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Custom:
  54821. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["FileTools"].ReadFile(this._globalState.previewFile, function (json) {
  54822. _this._particleSystem = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleSystem"].Parse(JSON.parse(json), _this._scene, "");
  54823. _this._particleSystem.start();
  54824. _this._prepareScene();
  54825. }, undefined, false, function (error) {
  54826. console.log(error);
  54827. });
  54828. return;
  54829. }
  54830. }
  54831. this._prepareScene();
  54832. }
  54833. };
  54834. PreviewManager.prototype._loadParticleSystem = function (particleNumber, systemIndex, prepareScene) {
  54835. var _this = this;
  54836. if (systemIndex === void 0) { systemIndex = 0; }
  54837. if (prepareScene === void 0) { prepareScene = true; }
  54838. var name = "";
  54839. switch (particleNumber) {
  54840. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Explosion:
  54841. name = "explosion";
  54842. break;
  54843. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Fire:
  54844. name = "fire";
  54845. break;
  54846. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Rain:
  54847. name = "rain";
  54848. break;
  54849. case _previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Smoke:
  54850. name = "smoke";
  54851. break;
  54852. }
  54853. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleHelper"].CreateAsync(name, this._scene).then(function (set) {
  54854. for (var i = 0; i < set.systems.length; ++i) {
  54855. if (i == systemIndex) {
  54856. _this._particleSystem = set.systems[i];
  54857. _this._particleSystem.disposeOnStop = true;
  54858. _this._particleSystem.onDisposeObservable.add(function () {
  54859. _this._loadParticleSystem(particleNumber, systemIndex, false);
  54860. });
  54861. _this._particleSystem.start();
  54862. }
  54863. else {
  54864. set.systems[i].dispose();
  54865. }
  54866. }
  54867. if (prepareScene) {
  54868. _this._prepareScene();
  54869. }
  54870. else {
  54871. var serializationObject = _this._nodeMaterial.serialize();
  54872. _this._updatePreview(serializationObject);
  54873. }
  54874. });
  54875. };
  54876. PreviewManager.prototype._forceCompilationAsync = function (material, mesh) {
  54877. return material.forceCompilationAsync(mesh);
  54878. };
  54879. PreviewManager.prototype._updatePreview = function (serializationObject) {
  54880. var _this = this;
  54881. try {
  54882. var store = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].IgnoreTexturesAtLoadTime;
  54883. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].IgnoreTexturesAtLoadTime = false;
  54884. var tempMaterial_1 = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].Parse(serializationObject, this._scene);
  54885. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].IgnoreTexturesAtLoadTime = store;
  54886. tempMaterial_1.backFaceCulling = this._globalState.backFaceCulling;
  54887. tempMaterial_1.needDepthPrePass = this._globalState.depthPrePass;
  54888. if (this._postprocess) {
  54889. this._postprocess.dispose(this._camera);
  54890. this._postprocess = null;
  54891. }
  54892. if (this._proceduralTexture) {
  54893. this._proceduralTexture.dispose();
  54894. this._proceduralTexture = null;
  54895. }
  54896. switch (this._globalState.mode) {
  54897. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].PostProcess: {
  54898. this._globalState.onIsLoadingChanged.notifyObservers(false);
  54899. this._postprocess = tempMaterial_1.createPostProcess(this._camera, 1.0, babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Constants"].TEXTURE_NEAREST_SAMPLINGMODE, this._engine);
  54900. var currentScreen_1 = tempMaterial_1.getBlockByPredicate(function (block) { return block instanceof babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["CurrentScreenBlock"]; });
  54901. if (currentScreen_1 && this._postprocess) {
  54902. this._postprocess.onApplyObservable.add(function (effect) {
  54903. effect.setTexture("textureSampler", currentScreen_1.texture);
  54904. });
  54905. }
  54906. if (this._material) {
  54907. this._material.dispose();
  54908. }
  54909. this._material = tempMaterial_1;
  54910. break;
  54911. }
  54912. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].ProceduralTexture: {
  54913. this._globalState.onIsLoadingChanged.notifyObservers(false);
  54914. this._proceduralTexture = tempMaterial_1.createProceduralTexture(512, this._scene);
  54915. if (this._material) {
  54916. this._material.dispose();
  54917. }
  54918. if (this._layer) {
  54919. this._layer.texture = this._proceduralTexture;
  54920. }
  54921. break;
  54922. }
  54923. case babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Particle: {
  54924. this._globalState.onIsLoadingChanged.notifyObservers(false);
  54925. this._particleSystem.onBeforeDrawParticlesObservable.clear();
  54926. this._particleSystem.onBeforeDrawParticlesObservable.add(function (effect) {
  54927. var textureBlock = tempMaterial_1.getBlockByPredicate(function (block) { return block instanceof babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ParticleTextureBlock"]; });
  54928. if (textureBlock && textureBlock.texture && effect) {
  54929. effect.setTexture("diffuseSampler", textureBlock.texture);
  54930. }
  54931. });
  54932. tempMaterial_1.createEffectForParticles(this._particleSystem);
  54933. if (this._material) {
  54934. this._material.dispose();
  54935. }
  54936. this._material = tempMaterial_1;
  54937. break;
  54938. }
  54939. default: {
  54940. if (this._meshes.length) {
  54941. var tasks = this._meshes.map(function (m) { return _this._forceCompilationAsync(tempMaterial_1, m); });
  54942. Promise.all(tasks).then(function () {
  54943. for (var _i = 0, _a = _this._meshes; _i < _a.length; _i++) {
  54944. var mesh = _a[_i];
  54945. mesh.material = tempMaterial_1;
  54946. }
  54947. if (_this._material) {
  54948. _this._material.dispose();
  54949. }
  54950. _this._material = tempMaterial_1;
  54951. _this._globalState.onIsLoadingChanged.notifyObservers(false);
  54952. }).catch(function (reason) {
  54953. _this._globalState.onLogRequiredObservable.notifyObservers(new _log_logComponent__WEBPACK_IMPORTED_MODULE_2__["LogEntry"]("Shader compilation error:\r\n" + reason, true));
  54954. _this._globalState.onIsLoadingChanged.notifyObservers(false);
  54955. });
  54956. }
  54957. else {
  54958. this._material = tempMaterial_1;
  54959. }
  54960. break;
  54961. }
  54962. }
  54963. }
  54964. catch (err) {
  54965. // Ignore the error
  54966. this._globalState.onIsLoadingChanged.notifyObservers(false);
  54967. }
  54968. };
  54969. PreviewManager.prototype.dispose = function () {
  54970. this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver);
  54971. this._globalState.onPreviewCommandActivated.remove(this._onPreviewCommandActivatedObserver);
  54972. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  54973. this._globalState.onAnimationCommandActivated.remove(this._onAnimationCommandActivatedObserver);
  54974. this._globalState.onPreviewBackgroundChanged.remove(this._onPreviewBackgroundChangedObserver);
  54975. this._globalState.onBackFaceCullingChanged.remove(this._onBackFaceCullingChangedObserver);
  54976. this._globalState.onDepthPrePassChanged.remove(this._onDepthPrePassChangedObserver);
  54977. this._globalState.onLightUpdated.remove(this._onLightUpdatedObserver);
  54978. if (this._material) {
  54979. this._material.dispose();
  54980. }
  54981. this._camera.dispose();
  54982. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  54983. var mesh = _a[_i];
  54984. mesh.dispose();
  54985. }
  54986. this._scene.dispose();
  54987. this._engine.dispose();
  54988. };
  54989. return PreviewManager;
  54990. }());
  54991. /***/ }),
  54992. /***/ "./components/preview/previewMeshControlComponent.tsx":
  54993. /*!************************************************************!*\
  54994. !*** ./components/preview/previewMeshControlComponent.tsx ***!
  54995. \************************************************************/
  54996. /*! exports provided: PreviewMeshControlComponent */
  54997. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54998. "use strict";
  54999. __webpack_require__.r(__webpack_exports__);
  55000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshControlComponent", function() { return PreviewMeshControlComponent; });
  55001. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55002. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55003. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55004. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  55005. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  55006. /* harmony import */ var _previewType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./previewType */ "./components/preview/previewType.ts");
  55007. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  55008. var popUpIcon = __webpack_require__(/*! ./svgs/popOut.svg */ "./components/preview/svgs/popOut.svg");
  55009. var colorPicker = __webpack_require__(/*! ./svgs/colorPicker.svg */ "./components/preview/svgs/colorPicker.svg");
  55010. var pauseIcon = __webpack_require__(/*! ./svgs/pauseIcon.svg */ "./components/preview/svgs/pauseIcon.svg");
  55011. var playIcon = __webpack_require__(/*! ./svgs/playIcon.svg */ "./components/preview/svgs/playIcon.svg");
  55012. var PreviewMeshControlComponent = /** @class */ (function (_super) {
  55013. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PreviewMeshControlComponent, _super);
  55014. function PreviewMeshControlComponent(props) {
  55015. var _this = _super.call(this, props) || this;
  55016. _this.colorInputRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55017. _this.filePickerRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55018. _this._onResetRequiredObserver = _this.props.globalState.onResetRequiredObservable.add(function () {
  55019. _this.forceUpdate();
  55020. });
  55021. return _this;
  55022. }
  55023. PreviewMeshControlComponent.prototype.componentWillUnmount = function () {
  55024. this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver);
  55025. };
  55026. PreviewMeshControlComponent.prototype.changeMeshType = function (newOne) {
  55027. if (this.props.globalState.previewType === newOne) {
  55028. return;
  55029. }
  55030. this.props.globalState.previewType = newOne;
  55031. this.props.globalState.onPreviewCommandActivated.notifyObservers(false);
  55032. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("PreviewType", newOne);
  55033. this.forceUpdate();
  55034. };
  55035. PreviewMeshControlComponent.prototype.useCustomMesh = function (evt) {
  55036. var files = evt.target.files;
  55037. if (files && files.length) {
  55038. var file = files[0];
  55039. this.props.globalState.previewFile = file;
  55040. this.props.globalState.previewType = _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom;
  55041. this.props.globalState.onPreviewCommandActivated.notifyObservers(false);
  55042. this.props.globalState.listOfCustomPreviewFiles = [file];
  55043. this.forceUpdate();
  55044. }
  55045. if (this.filePickerRef.current) {
  55046. this.filePickerRef.current.value = "";
  55047. }
  55048. };
  55049. PreviewMeshControlComponent.prototype.onPopUp = function () {
  55050. this.props.togglePreviewAreaComponent();
  55051. };
  55052. PreviewMeshControlComponent.prototype.changeAnimation = function () {
  55053. this.props.globalState.rotatePreview = !this.props.globalState.rotatePreview;
  55054. this.props.globalState.onAnimationCommandActivated.notifyObservers();
  55055. this.forceUpdate();
  55056. };
  55057. PreviewMeshControlComponent.prototype.changeBackground = function (value) {
  55058. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(value);
  55059. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("BackgroundColorR", newColor.r);
  55060. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("BackgroundColorG", newColor.g);
  55061. babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteNumber("BackgroundColorB", newColor.b);
  55062. var newBackgroundColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromColor3(newColor, 1.0);
  55063. this.props.globalState.backgroundColor = newBackgroundColor;
  55064. this.props.globalState.onPreviewBackgroundChanged.notifyObservers();
  55065. };
  55066. PreviewMeshControlComponent.prototype.changeBackgroundClick = function () {
  55067. var _a;
  55068. (_a = this.colorInputRef.current) === null || _a === void 0 ? void 0 : _a.click();
  55069. };
  55070. PreviewMeshControlComponent.prototype.render = function () {
  55071. var _this = this;
  55072. var meshTypeOptions = [
  55073. { label: "Cube", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Box },
  55074. { label: "Cylinder", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Cylinder },
  55075. { label: "Plane", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Plane },
  55076. { label: "Shader ball", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].ShaderBall },
  55077. { label: "Sphere", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Sphere },
  55078. { label: "Load...", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom + 1 }
  55079. ];
  55080. var particleTypeOptions = [
  55081. { label: "Default", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].DefaultParticleSystem },
  55082. { label: "Bubbles", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Bubbles },
  55083. { label: "Explosion", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Explosion },
  55084. { label: "Fire", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Fire },
  55085. { label: "Rain", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Rain },
  55086. { label: "Smoke", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Smoke },
  55087. { label: "Load...", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom + 1 }
  55088. ];
  55089. if (this.props.globalState.listOfCustomPreviewFiles.length > 0) {
  55090. meshTypeOptions.splice(0, 0, {
  55091. label: "Custom", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom
  55092. });
  55093. particleTypeOptions.splice(0, 0, {
  55094. label: "Custom", value: _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom
  55095. });
  55096. }
  55097. var options = this.props.globalState.mode === babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialModes"].Particle ? particleTypeOptions : meshTypeOptions;
  55098. var accept = this.props.globalState.mode === babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialModes"].Particle ? ".json" : ".gltf, .glb, .babylon, .obj";
  55099. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-mesh-bar" },
  55100. (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,
  55101. 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) {
  55102. var _a;
  55103. if (value !== _previewType__WEBPACK_IMPORTED_MODULE_3__["PreviewType"].Custom + 1) {
  55104. _this.changeMeshType(value);
  55105. }
  55106. else {
  55107. (_a = _this.filePickerRef.current) === null || _a === void 0 ? void 0 : _a.click();
  55108. }
  55109. } }),
  55110. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { style: {
  55111. display: "none"
  55112. }, title: "Preview with a custom mesh" },
  55113. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.filePickerRef, id: "file-picker", type: "file", onChange: function (evt) { return _this.useCustomMesh(evt); }, accept: accept }))),
  55114. 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,
  55115. 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: "" })),
  55116. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "color-picker-button", title: "Background color", className: "button align", onClick: function (_) { return _this.changeBackgroundClick(); } },
  55117. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: colorPicker, alt: "", id: "color-picker-image" }),
  55118. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: this.colorInputRef, id: "color-picker", type: "color", onChange: function (evt) { return _this.changeBackground(evt.target.value); } }))),
  55119. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Open preview in new window", id: "preview-new-window", onClick: function () { return _this.onPopUp(); }, className: "button" },
  55120. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: popUpIcon, alt: "" }))));
  55121. };
  55122. return PreviewMeshControlComponent;
  55123. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55124. /***/ }),
  55125. /***/ "./components/preview/previewType.ts":
  55126. /*!*******************************************!*\
  55127. !*** ./components/preview/previewType.ts ***!
  55128. \*******************************************/
  55129. /*! exports provided: PreviewType */
  55130. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55131. "use strict";
  55132. __webpack_require__.r(__webpack_exports__);
  55133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewType", function() { return PreviewType; });
  55134. var PreviewType;
  55135. (function (PreviewType) {
  55136. // Meshes
  55137. PreviewType[PreviewType["Sphere"] = 0] = "Sphere";
  55138. PreviewType[PreviewType["Box"] = 1] = "Box";
  55139. PreviewType[PreviewType["Torus"] = 2] = "Torus";
  55140. PreviewType[PreviewType["Cylinder"] = 3] = "Cylinder";
  55141. PreviewType[PreviewType["Plane"] = 4] = "Plane";
  55142. PreviewType[PreviewType["ShaderBall"] = 5] = "ShaderBall";
  55143. // Particle systems
  55144. PreviewType[PreviewType["DefaultParticleSystem"] = 6] = "DefaultParticleSystem";
  55145. PreviewType[PreviewType["Bubbles"] = 7] = "Bubbles";
  55146. PreviewType[PreviewType["Smoke"] = 8] = "Smoke";
  55147. PreviewType[PreviewType["Rain"] = 9] = "Rain";
  55148. PreviewType[PreviewType["Explosion"] = 10] = "Explosion";
  55149. PreviewType[PreviewType["Fire"] = 11] = "Fire";
  55150. PreviewType[PreviewType["Custom"] = 12] = "Custom";
  55151. })(PreviewType || (PreviewType = {}));
  55152. /***/ }),
  55153. /***/ "./components/preview/svgs/colorPicker.svg":
  55154. /*!*************************************************!*\
  55155. !*** ./components/preview/svgs/colorPicker.svg ***!
  55156. \*************************************************/
  55157. /*! no static exports found */
  55158. /***/ (function(module, exports) {
  55159. 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"
  55160. /***/ }),
  55161. /***/ "./components/preview/svgs/depthPass.svg":
  55162. /*!***********************************************!*\
  55163. !*** ./components/preview/svgs/depthPass.svg ***!
  55164. \***********************************************/
  55165. /*! no static exports found */
  55166. /***/ (function(module, exports) {
  55167. 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"
  55168. /***/ }),
  55169. /***/ "./components/preview/svgs/directionalLeft.svg":
  55170. /*!*****************************************************!*\
  55171. !*** ./components/preview/svgs/directionalLeft.svg ***!
  55172. \*****************************************************/
  55173. /*! no static exports found */
  55174. /***/ (function(module, exports) {
  55175. 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"
  55176. /***/ }),
  55177. /***/ "./components/preview/svgs/directionalRight.svg":
  55178. /*!******************************************************!*\
  55179. !*** ./components/preview/svgs/directionalRight.svg ***!
  55180. \******************************************************/
  55181. /*! no static exports found */
  55182. /***/ (function(module, exports) {
  55183. 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"
  55184. /***/ }),
  55185. /***/ "./components/preview/svgs/doubleSided.svg":
  55186. /*!*************************************************!*\
  55187. !*** ./components/preview/svgs/doubleSided.svg ***!
  55188. \*************************************************/
  55189. /*! no static exports found */
  55190. /***/ (function(module, exports) {
  55191. 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"
  55192. /***/ }),
  55193. /***/ "./components/preview/svgs/omni.svg":
  55194. /*!******************************************!*\
  55195. !*** ./components/preview/svgs/omni.svg ***!
  55196. \******************************************/
  55197. /*! no static exports found */
  55198. /***/ (function(module, exports) {
  55199. 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"
  55200. /***/ }),
  55201. /***/ "./components/preview/svgs/pauseIcon.svg":
  55202. /*!***********************************************!*\
  55203. !*** ./components/preview/svgs/pauseIcon.svg ***!
  55204. \***********************************************/
  55205. /*! no static exports found */
  55206. /***/ (function(module, exports) {
  55207. 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"
  55208. /***/ }),
  55209. /***/ "./components/preview/svgs/playIcon.svg":
  55210. /*!**********************************************!*\
  55211. !*** ./components/preview/svgs/playIcon.svg ***!
  55212. \**********************************************/
  55213. /*! no static exports found */
  55214. /***/ (function(module, exports) {
  55215. 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"
  55216. /***/ }),
  55217. /***/ "./components/preview/svgs/popOut.svg":
  55218. /*!********************************************!*\
  55219. !*** ./components/preview/svgs/popOut.svg ***!
  55220. \********************************************/
  55221. /*! no static exports found */
  55222. /***/ (function(module, exports) {
  55223. 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"
  55224. /***/ }),
  55225. /***/ "./components/propertyTab/properties/color3PropertyTabComponent.tsx":
  55226. /*!**************************************************************************!*\
  55227. !*** ./components/propertyTab/properties/color3PropertyTabComponent.tsx ***!
  55228. \**************************************************************************/
  55229. /*! exports provided: Color3PropertyTabComponent */
  55230. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55231. "use strict";
  55232. __webpack_require__.r(__webpack_exports__);
  55233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3PropertyTabComponent", function() { return Color3PropertyTabComponent; });
  55234. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55235. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55236. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55237. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  55238. var Color3PropertyTabComponent = /** @class */ (function (_super) {
  55239. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3PropertyTabComponent, _super);
  55240. function Color3PropertyTabComponent() {
  55241. return _super !== null && _super.apply(this, arguments) || this;
  55242. }
  55243. Color3PropertyTabComponent.prototype.render = function () {
  55244. var _this = this;
  55245. 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 () {
  55246. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55247. } }));
  55248. };
  55249. return Color3PropertyTabComponent;
  55250. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55251. /***/ }),
  55252. /***/ "./components/propertyTab/properties/color4PropertyTabComponent.tsx":
  55253. /*!**************************************************************************!*\
  55254. !*** ./components/propertyTab/properties/color4PropertyTabComponent.tsx ***!
  55255. \**************************************************************************/
  55256. /*! exports provided: Color4PropertyTabComponent */
  55257. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55258. "use strict";
  55259. __webpack_require__.r(__webpack_exports__);
  55260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color4PropertyTabComponent", function() { return Color4PropertyTabComponent; });
  55261. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55262. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55263. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55264. /* harmony import */ var _sharedComponents_color4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color4LineComponent */ "./sharedComponents/color4LineComponent.tsx");
  55265. var Color4PropertyTabComponent = /** @class */ (function (_super) {
  55266. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color4PropertyTabComponent, _super);
  55267. function Color4PropertyTabComponent() {
  55268. return _super !== null && _super.apply(this, arguments) || this;
  55269. }
  55270. Color4PropertyTabComponent.prototype.render = function () {
  55271. var _this = this;
  55272. 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 () {
  55273. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55274. } }));
  55275. };
  55276. return Color4PropertyTabComponent;
  55277. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55278. /***/ }),
  55279. /***/ "./components/propertyTab/properties/floatPropertyTabComponent.tsx":
  55280. /*!*************************************************************************!*\
  55281. !*** ./components/propertyTab/properties/floatPropertyTabComponent.tsx ***!
  55282. \*************************************************************************/
  55283. /*! exports provided: FloatPropertyTabComponent */
  55284. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55285. "use strict";
  55286. __webpack_require__.r(__webpack_exports__);
  55287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatPropertyTabComponent", function() { return FloatPropertyTabComponent; });
  55288. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55289. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55290. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55291. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  55292. var FloatPropertyTabComponent = /** @class */ (function (_super) {
  55293. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatPropertyTabComponent, _super);
  55294. function FloatPropertyTabComponent() {
  55295. return _super !== null && _super.apply(this, arguments) || this;
  55296. }
  55297. FloatPropertyTabComponent.prototype.render = function () {
  55298. var _this = this;
  55299. 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 () {
  55300. if (_this.props.inputBlock.isConstant) {
  55301. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  55302. }
  55303. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55304. } }));
  55305. };
  55306. return FloatPropertyTabComponent;
  55307. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55308. /***/ }),
  55309. /***/ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx":
  55310. /*!**************************************************************************!*\
  55311. !*** ./components/propertyTab/properties/matrixPropertyTabComponent.tsx ***!
  55312. \**************************************************************************/
  55313. /*! exports provided: MatrixPropertyTabComponent */
  55314. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55315. "use strict";
  55316. __webpack_require__.r(__webpack_exports__);
  55317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixPropertyTabComponent", function() { return MatrixPropertyTabComponent; });
  55318. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55319. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55320. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55321. /* harmony import */ var _sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/matrixLineComponent */ "./sharedComponents/matrixLineComponent.tsx");
  55322. var MatrixPropertyTabComponent = /** @class */ (function (_super) {
  55323. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MatrixPropertyTabComponent, _super);
  55324. function MatrixPropertyTabComponent() {
  55325. return _super !== null && _super.apply(this, arguments) || this;
  55326. }
  55327. MatrixPropertyTabComponent.prototype.render = function () {
  55328. var _this = this;
  55329. 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 () {
  55330. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55331. }, mode: this.props.inputBlock.matrixMode, onModeChange: function (mode) {
  55332. _this.props.inputBlock.matrixMode = mode;
  55333. } }));
  55334. };
  55335. return MatrixPropertyTabComponent;
  55336. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55337. /***/ }),
  55338. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  55339. /*!***************************************************************************!*\
  55340. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  55341. \***************************************************************************/
  55342. /*! exports provided: Vector2PropertyTabComponent */
  55343. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55344. "use strict";
  55345. __webpack_require__.r(__webpack_exports__);
  55346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  55347. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55348. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55349. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55350. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  55351. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  55352. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2PropertyTabComponent, _super);
  55353. function Vector2PropertyTabComponent() {
  55354. return _super !== null && _super.apply(this, arguments) || this;
  55355. }
  55356. Vector2PropertyTabComponent.prototype.render = function () {
  55357. var _this = this;
  55358. 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 () {
  55359. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55360. } }));
  55361. };
  55362. return Vector2PropertyTabComponent;
  55363. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55364. /***/ }),
  55365. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  55366. /*!***************************************************************************!*\
  55367. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  55368. \***************************************************************************/
  55369. /*! exports provided: Vector3PropertyTabComponent */
  55370. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55371. "use strict";
  55372. __webpack_require__.r(__webpack_exports__);
  55373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  55374. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55375. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55376. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55377. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  55378. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  55379. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3PropertyTabComponent, _super);
  55380. function Vector3PropertyTabComponent() {
  55381. return _super !== null && _super.apply(this, arguments) || this;
  55382. }
  55383. Vector3PropertyTabComponent.prototype.render = function () {
  55384. var _this = this;
  55385. 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 () {
  55386. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55387. } }));
  55388. };
  55389. return Vector3PropertyTabComponent;
  55390. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55391. /***/ }),
  55392. /***/ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx":
  55393. /*!***************************************************************************!*\
  55394. !*** ./components/propertyTab/properties/vector4PropertyTabComponent.tsx ***!
  55395. \***************************************************************************/
  55396. /*! exports provided: Vector4PropertyTabComponent */
  55397. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55398. "use strict";
  55399. __webpack_require__.r(__webpack_exports__);
  55400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4PropertyTabComponent", function() { return Vector4PropertyTabComponent; });
  55401. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55402. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55403. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55404. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  55405. var Vector4PropertyTabComponent = /** @class */ (function (_super) {
  55406. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4PropertyTabComponent, _super);
  55407. function Vector4PropertyTabComponent() {
  55408. return _super !== null && _super.apply(this, arguments) || this;
  55409. }
  55410. Vector4PropertyTabComponent.prototype.render = function () {
  55411. var _this = this;
  55412. 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 () {
  55413. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55414. } }));
  55415. };
  55416. return Vector4PropertyTabComponent;
  55417. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55418. /***/ }),
  55419. /***/ "./components/propertyTab/propertyTab.scss":
  55420. /*!*************************************************!*\
  55421. !*** ./components/propertyTab/propertyTab.scss ***!
  55422. \*************************************************/
  55423. /*! no static exports found */
  55424. /***/ (function(module, exports, __webpack_require__) {
  55425. var api = __webpack_require__(/*! ../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  55426. 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");
  55427. content = content.__esModule ? content.default : content;
  55428. if (typeof content === 'string') {
  55429. content = [[module.i, content, '']];
  55430. }
  55431. var options = {};
  55432. options.insert = "head";
  55433. options.singleton = false;
  55434. var update = api(content, options);
  55435. module.exports = content.locals || {};
  55436. /***/ }),
  55437. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  55438. /*!*********************************************************!*\
  55439. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  55440. \*********************************************************/
  55441. /*! exports provided: PropertyTabComponent */
  55442. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55443. "use strict";
  55444. __webpack_require__.r(__webpack_exports__);
  55445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  55446. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55447. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55448. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55449. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  55450. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  55451. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  55452. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  55453. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/dataStorage");
  55454. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  55455. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../serializationTools */ "./serializationTools.ts");
  55456. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  55457. /* harmony import */ var _diagram_graphNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../diagram/graphNode */ "./diagram/graphNode.ts");
  55458. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  55459. /* harmony import */ var _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../diagram/graphFrame */ "./diagram/graphFrame.ts");
  55460. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  55461. /* harmony import */ var _diagram_properties_framePropertyComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../diagram/properties/framePropertyComponent */ "./diagram/properties/framePropertyComponent.tsx");
  55462. /* harmony import */ var _diagram_properties_frameNodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../diagram/properties/frameNodePortPropertyComponent */ "./diagram/properties/frameNodePortPropertyComponent.tsx");
  55463. /* harmony import */ var _diagram_properties_nodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../diagram/properties/nodePortPropertyComponent */ "./diagram/properties/nodePortPropertyComponent.tsx");
  55464. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  55465. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  55466. /* harmony import */ var _sharedComponents_color4LineComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../sharedComponents/color4LineComponent */ "./sharedComponents/color4LineComponent.tsx");
  55467. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  55468. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  55469. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  55470. /* harmony import */ var _diagram_nodePort__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../diagram/nodePort */ "./diagram/nodePort.ts");
  55471. /* harmony import */ var _diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../diagram/graphCanvas */ "./diagram/graphCanvas.tsx");
  55472. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  55473. /* harmony import */ var _preview_previewType__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../preview/previewType */ "./components/preview/previewType.ts");
  55474. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  55475. var PropertyTabComponent = /** @class */ (function (_super) {
  55476. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyTabComponent, _super);
  55477. function PropertyTabComponent(props) {
  55478. var _this = _super.call(this, props) || this;
  55479. _this.state = { currentNode: null, currentFrame: null, currentFrameNodePort: null, currentNodePort: null };
  55480. _this._modeSelect = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  55481. return _this;
  55482. }
  55483. PropertyTabComponent.prototype.componentDidMount = function () {
  55484. var _this = this;
  55485. this.props.globalState.onSelectionChangedObservable.add(function (selection) {
  55486. if (selection instanceof _diagram_graphNode__WEBPACK_IMPORTED_MODULE_9__["GraphNode"]) {
  55487. _this.setState({ currentNode: selection, currentFrame: null, currentFrameNodePort: null, currentNodePort: null });
  55488. }
  55489. else if (selection instanceof _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_11__["GraphFrame"]) {
  55490. _this.setState({ currentNode: null, currentFrame: selection, currentFrameNodePort: null, currentNodePort: null });
  55491. }
  55492. else if (Object(_diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_23__["isFramePortData"])(selection)) {
  55493. _this.setState({ currentNode: null, currentFrame: selection.frame, currentFrameNodePort: selection.port, currentNodePort: null });
  55494. }
  55495. else if (selection instanceof _diagram_nodePort__WEBPACK_IMPORTED_MODULE_22__["NodePort"]) {
  55496. _this.setState({ currentNode: null, currentFrame: null, currentFrameNodePort: null, currentNodePort: selection });
  55497. }
  55498. else {
  55499. _this.setState({ currentNode: null, currentFrame: null, currentFrameNodePort: null, currentNodePort: null });
  55500. }
  55501. });
  55502. this._onBuiltObserver = this.props.globalState.onBuiltObservable.add(function () {
  55503. _this.forceUpdate();
  55504. });
  55505. };
  55506. PropertyTabComponent.prototype.componentWillUnmount = function () {
  55507. this.props.globalState.onBuiltObservable.remove(this._onBuiltObserver);
  55508. };
  55509. PropertyTabComponent.prototype.processInputBlockUpdate = function (ib) {
  55510. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55511. if (ib.isConstant) {
  55512. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  55513. }
  55514. };
  55515. PropertyTabComponent.prototype.renderInputBlock = function (block) {
  55516. var _this = this;
  55517. switch (block.type) {
  55518. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Float:
  55519. var cantDisplaySlider = (isNaN(block.min) || isNaN(block.max) || block.min === block.max);
  55520. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: block.uniqueId },
  55521. block.isBoolean &&
  55522. 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 () {
  55523. _this.processInputBlockUpdate(block);
  55524. } }),
  55525. !block.isBoolean && cantDisplaySlider &&
  55526. 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); } }),
  55527. !block.isBoolean && !cantDisplaySlider &&
  55528. 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, onChange: function () { return _this.processInputBlockUpdate(block); } })));
  55529. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55530. 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); } }));
  55531. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Color4:
  55532. 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); } }));
  55533. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  55534. 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); } }));
  55535. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  55536. 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); } }));
  55537. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  55538. 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); } }));
  55539. }
  55540. return null;
  55541. };
  55542. PropertyTabComponent.prototype.load = function (file) {
  55543. var _this = this;
  55544. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  55545. var decoder = new TextDecoder("utf-8");
  55546. _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Deserialize(JSON.parse(decoder.decode(data)), _this.props.globalState);
  55547. if (!_this.changeMode(_this.props.globalState.nodeMaterial.mode, true, false)) {
  55548. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  55549. }
  55550. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  55551. }, undefined, true);
  55552. };
  55553. PropertyTabComponent.prototype.loadFrame = function (file) {
  55554. var _this = this;
  55555. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  55556. // get Frame Data from file
  55557. var decoder = new TextDecoder("utf-8");
  55558. var frameData = JSON.parse(decoder.decode(data));
  55559. _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].AddFrameToMaterial(frameData, _this.props.globalState, _this.props.globalState.nodeMaterial);
  55560. }, undefined, true);
  55561. };
  55562. PropertyTabComponent.prototype.save = function () {
  55563. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState);
  55564. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(this.props.globalState.hostDocument, json, "nodeMaterial.json");
  55565. };
  55566. PropertyTabComponent.prototype.customSave = function () {
  55567. var _this = this;
  55568. this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Saving your material to Babylon.js snippet server...", isError: false });
  55569. this.props.globalState.customSave.action(_serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState)).then(function () {
  55570. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Material saved successfully", isError: false });
  55571. }).catch(function (err) {
  55572. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: err, isError: true });
  55573. });
  55574. };
  55575. PropertyTabComponent.prototype.saveToSnippetServer = function () {
  55576. var _this = this;
  55577. var material = this.props.globalState.nodeMaterial;
  55578. var xmlHttp = new XMLHttpRequest();
  55579. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(material, this.props.globalState);
  55580. xmlHttp.onreadystatechange = function () {
  55581. if (xmlHttp.readyState == 4) {
  55582. if (xmlHttp.status == 200) {
  55583. var snippet = JSON.parse(xmlHttp.responseText);
  55584. var oldId = material.snippetId;
  55585. material.snippetId = snippet.id;
  55586. if (snippet.version && snippet.version != "0") {
  55587. material.snippetId += "#" + snippet.version;
  55588. }
  55589. _this.forceUpdate();
  55590. if (navigator.clipboard) {
  55591. navigator.clipboard.writeText(material.snippetId);
  55592. }
  55593. var windowAsAny = window;
  55594. if (windowAsAny.Playground && oldId) {
  55595. windowAsAny.Playground.onRequestCodeChangeObservable.notifyObservers({
  55596. regex: new RegExp(oldId, "g"),
  55597. replace: material.snippetId
  55598. });
  55599. }
  55600. _this.props.globalState.hostDocument.defaultView.alert("NodeMaterial saved with ID: " + material.snippetId + " (please note that the id was also saved to your clipboard)");
  55601. }
  55602. else {
  55603. _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.");
  55604. }
  55605. }
  55606. };
  55607. xmlHttp.open("POST", babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterial"].SnippetUrl + (material.snippetId ? "/" + material.snippetId : ""), true);
  55608. xmlHttp.setRequestHeader("Content-Type", "application/json");
  55609. var dataToSend = {
  55610. payload: JSON.stringify({
  55611. nodeMaterial: json
  55612. }),
  55613. name: "",
  55614. description: "",
  55615. tags: ""
  55616. };
  55617. xmlHttp.send(JSON.stringify(dataToSend));
  55618. };
  55619. PropertyTabComponent.prototype.loadFromSnippet = function () {
  55620. var _this = this;
  55621. var material = this.props.globalState.nodeMaterial;
  55622. var scene = material.getScene();
  55623. var snippedID = window.prompt("Please enter the snippet ID to use");
  55624. if (!snippedID) {
  55625. return;
  55626. }
  55627. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  55628. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterial"].ParseFromSnippetAsync(snippedID, scene, "", material).then(function () {
  55629. material.build();
  55630. if (!_this.changeMode(_this.props.globalState.nodeMaterial.mode, true, false)) {
  55631. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  55632. }
  55633. }).catch(function (err) {
  55634. _this.props.globalState.hostDocument.defaultView.alert("Unable to load your node material: " + err);
  55635. });
  55636. };
  55637. PropertyTabComponent.prototype.changeMode = function (value, force, loadDefault) {
  55638. var _a, _b;
  55639. if (force === void 0) { force = false; }
  55640. if (loadDefault === void 0) { loadDefault = true; }
  55641. if (this.props.globalState.mode === value) {
  55642. return false;
  55643. }
  55644. if (!force && !this.props.globalState.hostDocument.defaultView.confirm('Are your sure? You will lose your current changes (if any) if they are not saved!')) {
  55645. (_a = this._modeSelect.current) === null || _a === void 0 ? void 0 : _a.setValue(this.props.globalState.mode);
  55646. return false;
  55647. }
  55648. if (force) {
  55649. (_b = this._modeSelect.current) === null || _b === void 0 ? void 0 : _b.setValue(value);
  55650. }
  55651. if (loadDefault) {
  55652. switch (value) {
  55653. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Material:
  55654. this.props.globalState.nodeMaterial.setToDefault();
  55655. break;
  55656. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].PostProcess:
  55657. this.props.globalState.nodeMaterial.setToDefaultPostProcess();
  55658. break;
  55659. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Particle:
  55660. this.props.globalState.nodeMaterial.setToDefaultParticle();
  55661. break;
  55662. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].ProceduralTexture:
  55663. this.props.globalState.nodeMaterial.setToDefaultProceduralTexture();
  55664. break;
  55665. }
  55666. }
  55667. switch (value) {
  55668. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Material:
  55669. this.props.globalState.previewType = _preview_previewType__WEBPACK_IMPORTED_MODULE_25__["PreviewType"].Sphere;
  55670. break;
  55671. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Particle:
  55672. this.props.globalState.previewType = _preview_previewType__WEBPACK_IMPORTED_MODULE_25__["PreviewType"].Bubbles;
  55673. break;
  55674. }
  55675. this.props.globalState.listOfCustomPreviewFiles = [];
  55676. this.props.globalState.previewFile = undefined;
  55677. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("PreviewType", this.props.globalState.previewType);
  55678. this.props.globalState.mode = value;
  55679. this.props.globalState.onResetRequiredObservable.notifyObservers();
  55680. return true;
  55681. };
  55682. PropertyTabComponent.prototype.render = function () {
  55683. var _this = this;
  55684. var _a, _b;
  55685. if (this.state.currentNode) {
  55686. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  55687. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  55688. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  55689. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  55690. ((_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())));
  55691. }
  55692. if (this.state.currentFrameNodePort && this.state.currentFrame) {
  55693. 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 }));
  55694. }
  55695. if (this.state.currentNodePort) {
  55696. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_properties_nodePortPropertyComponent__WEBPACK_IMPORTED_MODULE_15__["NodePortPropertyTabComponent"], { globalState: this.props.globalState, nodePort: this.state.currentNodePort }));
  55697. }
  55698. if (this.state.currentFrame) {
  55699. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_properties_framePropertyComponent__WEBPACK_IMPORTED_MODULE_13__["FramePropertyTabComponent"], { globalState: this.props.globalState, frame: this.state.currentFrame }));
  55700. }
  55701. var gridSize = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("GridSize", 20);
  55702. var modeList = [
  55703. { label: "Material", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Material },
  55704. { label: "Post Process", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].PostProcess },
  55705. { label: "Particle", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Particle },
  55706. { label: "Procedural", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].ProceduralTexture },
  55707. ];
  55708. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  55709. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  55710. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  55711. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  55712. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  55713. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  55714. 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); } }),
  55715. 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 }),
  55716. 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'); } }),
  55717. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reset to default", onClick: function () {
  55718. switch (_this.props.globalState.mode) {
  55719. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Material:
  55720. _this.props.globalState.nodeMaterial.setToDefault();
  55721. break;
  55722. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].PostProcess:
  55723. _this.props.globalState.nodeMaterial.setToDefaultPostProcess();
  55724. break;
  55725. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].Particle:
  55726. _this.props.globalState.nodeMaterial.setToDefaultParticle();
  55727. break;
  55728. case babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["NodeMaterialModes"].ProceduralTexture:
  55729. _this.props.globalState.nodeMaterial.setToDefaultProceduralTexture();
  55730. break;
  55731. }
  55732. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  55733. } })),
  55734. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "UI" },
  55735. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Zoom to fit", onClick: function () {
  55736. _this.props.globalState.onZoomToFitRequiredObservable.notifyObservers();
  55737. } }),
  55738. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reorganize", onClick: function () {
  55739. _this.props.globalState.onReOrganizedRequiredObservable.notifyObservers();
  55740. } })),
  55741. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "OPTIONS" },
  55742. 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) {
  55743. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteBoolean("EmbedTextures", value);
  55744. } }),
  55745. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_10__["SliderLineComponent"], { label: "Grid size", minimum: 0, maximum: 100, step: 5, decimalCount: 0, directValue: gridSize, onChange: function (value) {
  55746. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("GridSize", value);
  55747. _this.props.globalState.onGridSizeChanged.notifyObservers();
  55748. _this.forceUpdate();
  55749. } }),
  55750. 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) {
  55751. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteBoolean("ShowGrid", value);
  55752. _this.props.globalState.onGridSizeChanged.notifyObservers();
  55753. } })),
  55754. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "FILE" },
  55755. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.load(file); }, accept: ".json" }),
  55756. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save", onClick: function () {
  55757. _this.save();
  55758. } }),
  55759. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Generate code", onClick: function () {
  55760. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.generateCode(), "code.txt");
  55761. } }),
  55762. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Export shaders", onClick: function () {
  55763. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.compiledShaders, "shaders.txt");
  55764. } }),
  55765. this.props.globalState.customSave &&
  55766. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this.props.globalState.customSave.label, onClick: function () {
  55767. _this.customSave();
  55768. } }),
  55769. 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" })),
  55770. !this.props.globalState.customSave &&
  55771. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "SNIPPET" },
  55772. this.props.globalState.nodeMaterial.snippetId &&
  55773. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_12__["TextLineComponent"], { label: "Snippet ID", value: this.props.globalState.nodeMaterial.snippetId }),
  55774. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Load from snippet server", onClick: function () { return _this.loadFromSnippet(); } }),
  55775. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save to snippet server", onClick: function () {
  55776. _this.saveToSnippetServer();
  55777. } })),
  55778. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "INPUTS" }, this.props.globalState.nodeMaterial.getInputBlocks().map(function (ib) {
  55779. if (!ib.isUniform || ib.isSystemValue || !ib.name) {
  55780. return null;
  55781. }
  55782. return _this.renderInputBlock(ib);
  55783. })))));
  55784. };
  55785. return PropertyTabComponent;
  55786. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55787. /***/ }),
  55788. /***/ "./diagram/display/clampDisplayManager.ts":
  55789. /*!************************************************!*\
  55790. !*** ./diagram/display/clampDisplayManager.ts ***!
  55791. \************************************************/
  55792. /*! exports provided: ClampDisplayManager */
  55793. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55794. "use strict";
  55795. __webpack_require__.r(__webpack_exports__);
  55796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampDisplayManager", function() { return ClampDisplayManager; });
  55797. var ClampDisplayManager = /** @class */ (function () {
  55798. function ClampDisplayManager() {
  55799. }
  55800. ClampDisplayManager.prototype.getHeaderClass = function (block) {
  55801. return "";
  55802. };
  55803. ClampDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  55804. return false;
  55805. };
  55806. ClampDisplayManager.prototype.getHeaderText = function (block) {
  55807. return block.name;
  55808. };
  55809. ClampDisplayManager.prototype.getBackgroundColor = function (block) {
  55810. return "#4086BB";
  55811. };
  55812. ClampDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  55813. var clampBlock = block;
  55814. contentArea.classList.add("clamp-block");
  55815. contentArea.innerHTML = "[" + clampBlock.minimum + ", " + clampBlock.maximum + "]";
  55816. };
  55817. return ClampDisplayManager;
  55818. }());
  55819. /***/ }),
  55820. /***/ "./diagram/display/discardDisplayManager.ts":
  55821. /*!**************************************************!*\
  55822. !*** ./diagram/display/discardDisplayManager.ts ***!
  55823. \**************************************************/
  55824. /*! exports provided: DiscardDisplayManager */
  55825. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55826. "use strict";
  55827. __webpack_require__.r(__webpack_exports__);
  55828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiscardDisplayManager", function() { return DiscardDisplayManager; });
  55829. var DiscardDisplayManager = /** @class */ (function () {
  55830. function DiscardDisplayManager() {
  55831. }
  55832. DiscardDisplayManager.prototype.getHeaderClass = function (block) {
  55833. return "";
  55834. };
  55835. DiscardDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  55836. return true;
  55837. };
  55838. DiscardDisplayManager.prototype.getHeaderText = function (block) {
  55839. return block.name;
  55840. };
  55841. DiscardDisplayManager.prototype.getBackgroundColor = function (block) {
  55842. return "#540b0b";
  55843. };
  55844. DiscardDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  55845. contentArea.classList.add("discard-block");
  55846. };
  55847. return DiscardDisplayManager;
  55848. }());
  55849. /***/ }),
  55850. /***/ "./diagram/display/gradientDisplayManager.ts":
  55851. /*!***************************************************!*\
  55852. !*** ./diagram/display/gradientDisplayManager.ts ***!
  55853. \***************************************************/
  55854. /*! exports provided: GradientDisplayManager */
  55855. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55856. "use strict";
  55857. __webpack_require__.r(__webpack_exports__);
  55858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientDisplayManager", function() { return GradientDisplayManager; });
  55859. var GradientDisplayManager = /** @class */ (function () {
  55860. function GradientDisplayManager() {
  55861. }
  55862. GradientDisplayManager.prototype.getHeaderClass = function (block) {
  55863. return "";
  55864. };
  55865. GradientDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  55866. return false;
  55867. };
  55868. GradientDisplayManager.prototype.getHeaderText = function (block) {
  55869. return block.name;
  55870. };
  55871. GradientDisplayManager.prototype.getBackgroundColor = function (block) {
  55872. var gradientBlock = block;
  55873. var gradients = gradientBlock.colorSteps.map(function (c) { return "rgb(" + c.color.r * 255 + ", " + c.color.g * 255 + ", " + c.color.b * 255 + ") " + c.step * 100 + "%"; });
  55874. return gradients.length ? "linear-gradient(90deg, " + gradients.join(", ") + ")" : 'black';
  55875. };
  55876. GradientDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  55877. contentArea.classList.add("gradient-block");
  55878. };
  55879. return GradientDisplayManager;
  55880. }());
  55881. /***/ }),
  55882. /***/ "./diagram/display/inputDisplayManager.ts":
  55883. /*!************************************************!*\
  55884. !*** ./diagram/display/inputDisplayManager.ts ***!
  55885. \************************************************/
  55886. /*! exports provided: InputDisplayManager */
  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__, "InputDisplayManager", function() { return InputDisplayManager; });
  55891. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialSystemValues */ "babylonjs/Misc/dataStorage");
  55892. /* 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__);
  55893. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../blockTools */ "./blockTools.ts");
  55894. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  55895. var inputNameToAttributeValue = {
  55896. "position2d": "position",
  55897. "particle_uv": "uv",
  55898. "particle_color": "color",
  55899. "particle_texturemask": "textureMask",
  55900. "particle_positionw": "positionW",
  55901. };
  55902. var inputNameToAttributeName = {
  55903. "position2d": "screen",
  55904. "particle_uv": "particle",
  55905. "particle_color": "particle",
  55906. "particle_texturemask": "particle",
  55907. "particle_positionw": "particle",
  55908. };
  55909. var InputDisplayManager = /** @class */ (function () {
  55910. function InputDisplayManager() {
  55911. }
  55912. InputDisplayManager.prototype.getHeaderClass = function (block) {
  55913. var inputBlock = block;
  55914. if (inputBlock.isConstant) {
  55915. return "constant";
  55916. }
  55917. if (inputBlock.visibleInInspector) {
  55918. return "inspector";
  55919. }
  55920. return "";
  55921. };
  55922. InputDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  55923. return false;
  55924. };
  55925. InputDisplayManager.prototype.getHeaderText = function (block) {
  55926. var inputBlock = block;
  55927. var name = inputBlock.name + " (" + _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].GetBaseType(inputBlock.output.type) + ")";
  55928. if (inputBlock.isAttribute) {
  55929. name = _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].GetBaseType(inputBlock.output.type);
  55930. }
  55931. return name;
  55932. };
  55933. InputDisplayManager.prototype.getBackgroundColor = function (block) {
  55934. var color = "";
  55935. var inputBlock = block;
  55936. switch (inputBlock.type) {
  55937. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55938. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  55939. if (inputBlock.value) {
  55940. color = inputBlock.value.toHexString();
  55941. break;
  55942. }
  55943. }
  55944. default:
  55945. color = _blockTools__WEBPACK_IMPORTED_MODULE_1__["BlockTools"].GetColorFromConnectionNodeType(inputBlock.type);
  55946. break;
  55947. }
  55948. return color;
  55949. };
  55950. InputDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  55951. var _a, _b;
  55952. var value = "";
  55953. var inputBlock = block;
  55954. if (inputBlock.isAttribute) {
  55955. var attrVal = (_a = inputNameToAttributeValue[inputBlock.name]) !== null && _a !== void 0 ? _a : inputBlock.name;
  55956. var attrName = (_b = inputNameToAttributeName[inputBlock.name]) !== null && _b !== void 0 ? _b : 'mesh';
  55957. value = attrName + "." + attrVal;
  55958. }
  55959. else if (inputBlock.isSystemValue) {
  55960. switch (inputBlock.systemValue) {
  55961. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World:
  55962. value = "World";
  55963. break;
  55964. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView:
  55965. value = "World x View";
  55966. break;
  55967. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection:
  55968. value = "World x View x Projection";
  55969. break;
  55970. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View:
  55971. value = "View";
  55972. break;
  55973. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection:
  55974. value = "View x Projection";
  55975. break;
  55976. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection:
  55977. value = "Projection";
  55978. break;
  55979. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition:
  55980. value = "Camera position";
  55981. break;
  55982. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor:
  55983. value = "Fog color";
  55984. break;
  55985. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].DeltaTime:
  55986. value = "Delta time";
  55987. break;
  55988. }
  55989. }
  55990. else {
  55991. switch (inputBlock.type) {
  55992. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  55993. if (inputBlock.animationType !== babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].None) {
  55994. value = babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"][inputBlock.animationType];
  55995. }
  55996. else {
  55997. value = inputBlock.value.toFixed(2);
  55998. }
  55999. break;
  56000. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  56001. var vec2Value = inputBlock.value;
  56002. value = "(" + vec2Value.x.toFixed(2) + ", " + vec2Value.y.toFixed(2) + ")";
  56003. break;
  56004. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  56005. var vec3Value = inputBlock.value;
  56006. value = "(" + vec3Value.x.toFixed(2) + ", " + vec3Value.y.toFixed(2) + ", " + vec3Value.z.toFixed(2) + ")";
  56007. break;
  56008. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  56009. var vec4Value = inputBlock.value;
  56010. value = "(" + vec4Value.x.toFixed(2) + ", " + vec4Value.y.toFixed(2) + ", " + vec4Value.z.toFixed(2) + ", " + vec4Value.w.toFixed(2) + ")";
  56011. break;
  56012. }
  56013. }
  56014. contentArea.innerHTML = value;
  56015. contentArea.classList.add("input-block");
  56016. };
  56017. return InputDisplayManager;
  56018. }());
  56019. /***/ }),
  56020. /***/ "./diagram/display/outputDisplayManager.ts":
  56021. /*!*************************************************!*\
  56022. !*** ./diagram/display/outputDisplayManager.ts ***!
  56023. \*************************************************/
  56024. /*! exports provided: OutputDisplayManager */
  56025. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56026. "use strict";
  56027. __webpack_require__.r(__webpack_exports__);
  56028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutputDisplayManager", function() { return OutputDisplayManager; });
  56029. var OutputDisplayManager = /** @class */ (function () {
  56030. function OutputDisplayManager() {
  56031. }
  56032. OutputDisplayManager.prototype.getHeaderClass = function (block) {
  56033. return "";
  56034. };
  56035. OutputDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  56036. return true;
  56037. };
  56038. OutputDisplayManager.prototype.getHeaderText = function (block) {
  56039. return block.name;
  56040. };
  56041. OutputDisplayManager.prototype.getBackgroundColor = function (block) {
  56042. return "rgb(106, 44, 131)";
  56043. };
  56044. OutputDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  56045. contentArea.classList.add("output-block");
  56046. };
  56047. return OutputDisplayManager;
  56048. }());
  56049. /***/ }),
  56050. /***/ "./diagram/display/remapDisplayManager.ts":
  56051. /*!************************************************!*\
  56052. !*** ./diagram/display/remapDisplayManager.ts ***!
  56053. \************************************************/
  56054. /*! exports provided: RemapDisplayManager */
  56055. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56056. "use strict";
  56057. __webpack_require__.r(__webpack_exports__);
  56058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapDisplayManager", function() { return RemapDisplayManager; });
  56059. var RemapDisplayManager = /** @class */ (function () {
  56060. function RemapDisplayManager() {
  56061. }
  56062. RemapDisplayManager.prototype.getHeaderClass = function (block) {
  56063. return "";
  56064. };
  56065. RemapDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  56066. return true;
  56067. };
  56068. RemapDisplayManager.prototype.getHeaderText = function (block) {
  56069. return block.name;
  56070. };
  56071. RemapDisplayManager.prototype.getBackgroundColor = function (block) {
  56072. return "#4086BB";
  56073. };
  56074. RemapDisplayManager.prototype._extractInputValue = function (connectionPoint) {
  56075. var connectedBlock = connectionPoint.connectedPoint.ownerBlock;
  56076. if (connectedBlock.isInput) {
  56077. var inputBlock = connectedBlock;
  56078. if (inputBlock.isUniform && !inputBlock.isSystemValue) {
  56079. return inputBlock.value;
  56080. }
  56081. }
  56082. return "?";
  56083. };
  56084. RemapDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  56085. var remapBlock = block;
  56086. var sourceRangeX = remapBlock.sourceMin.isConnected ? this._extractInputValue(remapBlock.sourceMin) : remapBlock.sourceRange.x;
  56087. var sourceRangeY = remapBlock.sourceMax.isConnected ? this._extractInputValue(remapBlock.sourceMax) : remapBlock.sourceRange.y;
  56088. var targetRangeX = remapBlock.targetMin.isConnected ? this._extractInputValue(remapBlock.targetMin) : remapBlock.targetRange.x;
  56089. var targetRangeY = remapBlock.targetMax.isConnected ? this._extractInputValue(remapBlock.targetMax) : remapBlock.targetRange.y;
  56090. contentArea.classList.add("remap-block");
  56091. contentArea.innerHTML = "[" + sourceRangeX + ", " + sourceRangeY + "] -> [" + targetRangeX + ", " + targetRangeY + "]";
  56092. };
  56093. return RemapDisplayManager;
  56094. }());
  56095. /***/ }),
  56096. /***/ "./diagram/display/textureDisplayManager.ts":
  56097. /*!**************************************************!*\
  56098. !*** ./diagram/display/textureDisplayManager.ts ***!
  56099. \**************************************************/
  56100. /*! exports provided: TextureDisplayManager */
  56101. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56102. "use strict";
  56103. __webpack_require__.r(__webpack_exports__);
  56104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureDisplayManager", function() { return TextureDisplayManager; });
  56105. /* harmony import */ var babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Dual/textureBlock */ "babylonjs/Misc/dataStorage");
  56106. /* 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__);
  56107. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  56108. var TextureDisplayManager = /** @class */ (function () {
  56109. function TextureDisplayManager() {
  56110. }
  56111. TextureDisplayManager.prototype.getHeaderClass = function (block) {
  56112. return "";
  56113. };
  56114. TextureDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  56115. return true;
  56116. };
  56117. TextureDisplayManager.prototype.getHeaderText = function (block) {
  56118. return block.name;
  56119. };
  56120. TextureDisplayManager.prototype.getBackgroundColor = function (block) {
  56121. return "#323232";
  56122. };
  56123. TextureDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  56124. var _this = this;
  56125. var textureBlock = block;
  56126. if (!this._previewCanvas) {
  56127. contentArea.classList.add("texture-block");
  56128. 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"]) {
  56129. contentArea.classList.add("regular-texture-block");
  56130. }
  56131. this._previewCanvas = contentArea.ownerDocument.createElement("canvas");
  56132. this._previewImage = contentArea.ownerDocument.createElement("img");
  56133. contentArea.appendChild(this._previewImage);
  56134. this._previewImage.classList.add("empty");
  56135. }
  56136. if (textureBlock.texture) {
  56137. _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_1__["TextureLineComponent"].UpdatePreview(this._previewCanvas, textureBlock.texture, 140, {
  56138. face: 0,
  56139. displayRed: true,
  56140. displayAlpha: true,
  56141. displayBlue: true,
  56142. displayGreen: true
  56143. }, function () {
  56144. _this._previewImage.src = _this._previewCanvas.toDataURL("image/png");
  56145. _this._previewImage.classList.remove("empty");
  56146. });
  56147. }
  56148. else {
  56149. this._previewImage.classList.add("empty");
  56150. }
  56151. };
  56152. return TextureDisplayManager;
  56153. }());
  56154. /***/ }),
  56155. /***/ "./diagram/display/trigonometryDisplayManager.ts":
  56156. /*!*******************************************************!*\
  56157. !*** ./diagram/display/trigonometryDisplayManager.ts ***!
  56158. \*******************************************************/
  56159. /*! exports provided: TrigonometryDisplayManager */
  56160. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56161. "use strict";
  56162. __webpack_require__.r(__webpack_exports__);
  56163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryDisplayManager", function() { return TrigonometryDisplayManager; });
  56164. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/dataStorage");
  56165. /* 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__);
  56166. var TrigonometryDisplayManager = /** @class */ (function () {
  56167. function TrigonometryDisplayManager() {
  56168. }
  56169. TrigonometryDisplayManager.prototype.getHeaderClass = function (block) {
  56170. return "";
  56171. };
  56172. TrigonometryDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  56173. return false;
  56174. };
  56175. TrigonometryDisplayManager.prototype.getHeaderText = function (block) {
  56176. return block.name;
  56177. };
  56178. TrigonometryDisplayManager.prototype.getBackgroundColor = function (block) {
  56179. return "#405C86";
  56180. };
  56181. TrigonometryDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  56182. var trigonometryBlock = block;
  56183. contentArea.classList.add("trigonometry-block");
  56184. contentArea.innerHTML = babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"][trigonometryBlock.operation];
  56185. };
  56186. return TrigonometryDisplayManager;
  56187. }());
  56188. /***/ }),
  56189. /***/ "./diagram/displayLedger.ts":
  56190. /*!**********************************!*\
  56191. !*** ./diagram/displayLedger.ts ***!
  56192. \**********************************/
  56193. /*! exports provided: DisplayLedger */
  56194. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56195. "use strict";
  56196. __webpack_require__.r(__webpack_exports__);
  56197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisplayLedger", function() { return DisplayLedger; });
  56198. /* harmony import */ var _display_inputDisplayManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./display/inputDisplayManager */ "./diagram/display/inputDisplayManager.ts");
  56199. /* harmony import */ var _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./display/outputDisplayManager */ "./diagram/display/outputDisplayManager.ts");
  56200. /* harmony import */ var _display_clampDisplayManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./display/clampDisplayManager */ "./diagram/display/clampDisplayManager.ts");
  56201. /* harmony import */ var _display_gradientDisplayManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./display/gradientDisplayManager */ "./diagram/display/gradientDisplayManager.ts");
  56202. /* harmony import */ var _display_remapDisplayManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./display/remapDisplayManager */ "./diagram/display/remapDisplayManager.ts");
  56203. /* harmony import */ var _display_trigonometryDisplayManager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./display/trigonometryDisplayManager */ "./diagram/display/trigonometryDisplayManager.ts");
  56204. /* harmony import */ var _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./display/textureDisplayManager */ "./diagram/display/textureDisplayManager.ts");
  56205. /* harmony import */ var _display_discardDisplayManager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./display/discardDisplayManager */ "./diagram/display/discardDisplayManager.ts");
  56206. var DisplayLedger = /** @class */ (function () {
  56207. function DisplayLedger() {
  56208. }
  56209. DisplayLedger.RegisteredControls = {};
  56210. return DisplayLedger;
  56211. }());
  56212. DisplayLedger.RegisteredControls["InputBlock"] = _display_inputDisplayManager__WEBPACK_IMPORTED_MODULE_0__["InputDisplayManager"];
  56213. DisplayLedger.RegisteredControls["VertexOutputBlock"] = _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__["OutputDisplayManager"];
  56214. DisplayLedger.RegisteredControls["FragmentOutputBlock"] = _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__["OutputDisplayManager"];
  56215. DisplayLedger.RegisteredControls["ClampBlock"] = _display_clampDisplayManager__WEBPACK_IMPORTED_MODULE_2__["ClampDisplayManager"];
  56216. DisplayLedger.RegisteredControls["GradientBlock"] = _display_gradientDisplayManager__WEBPACK_IMPORTED_MODULE_3__["GradientDisplayManager"];
  56217. DisplayLedger.RegisteredControls["RemapBlock"] = _display_remapDisplayManager__WEBPACK_IMPORTED_MODULE_4__["RemapDisplayManager"];
  56218. DisplayLedger.RegisteredControls["TrigonometryBlock"] = _display_trigonometryDisplayManager__WEBPACK_IMPORTED_MODULE_5__["TrigonometryDisplayManager"];
  56219. DisplayLedger.RegisteredControls["TextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  56220. DisplayLedger.RegisteredControls["ReflectionTextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  56221. DisplayLedger.RegisteredControls["ReflectionBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  56222. DisplayLedger.RegisteredControls["RefractionBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  56223. DisplayLedger.RegisteredControls["CurrentScreenBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  56224. DisplayLedger.RegisteredControls["ParticleTextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  56225. DisplayLedger.RegisteredControls["DiscardBlock"] = _display_discardDisplayManager__WEBPACK_IMPORTED_MODULE_7__["DiscardDisplayManager"];
  56226. /***/ }),
  56227. /***/ "./diagram/frameNodePort.ts":
  56228. /*!**********************************!*\
  56229. !*** ./diagram/frameNodePort.ts ***!
  56230. \**********************************/
  56231. /*! exports provided: FrameNodePort */
  56232. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56233. "use strict";
  56234. __webpack_require__.r(__webpack_exports__);
  56235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FrameNodePort", function() { return FrameNodePort; });
  56236. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56237. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  56238. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  56239. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__);
  56240. /* harmony import */ var _graphCanvas__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphCanvas */ "./diagram/graphCanvas.tsx");
  56241. var FrameNodePort = /** @class */ (function (_super) {
  56242. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FrameNodePort, _super);
  56243. function FrameNodePort(portContainer, connectionPoint, node, globalState, isInput, framePortId, parentFrameId) {
  56244. var _this = _super.call(this, portContainer, connectionPoint, node, globalState) || this;
  56245. _this.connectionPoint = connectionPoint;
  56246. _this.node = node;
  56247. _this._onFramePortPositionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
  56248. _this._parentFrameId = parentFrameId;
  56249. _this._isInput = isInput;
  56250. _this._framePortId = framePortId;
  56251. _this._onSelectionChangedObserver = _this._globalState.onSelectionChangedObservable.add(function (selection) {
  56252. if (Object(_graphCanvas__WEBPACK_IMPORTED_MODULE_3__["isFramePortData"])(selection) && selection.port === _this) {
  56253. _this._img.classList.add("selected");
  56254. }
  56255. else {
  56256. _this._img.classList.remove("selected");
  56257. }
  56258. });
  56259. _this.refresh();
  56260. return _this;
  56261. }
  56262. Object.defineProperty(FrameNodePort.prototype, "parentFrameId", {
  56263. get: function () {
  56264. return this._parentFrameId;
  56265. },
  56266. enumerable: false,
  56267. configurable: true
  56268. });
  56269. Object.defineProperty(FrameNodePort.prototype, "onFramePortPositionChangedObservable", {
  56270. get: function () {
  56271. return this._onFramePortPositionChangedObservable;
  56272. },
  56273. enumerable: false,
  56274. configurable: true
  56275. });
  56276. Object.defineProperty(FrameNodePort.prototype, "isInput", {
  56277. get: function () {
  56278. return this._isInput;
  56279. },
  56280. enumerable: false,
  56281. configurable: true
  56282. });
  56283. Object.defineProperty(FrameNodePort.prototype, "framePortId", {
  56284. get: function () {
  56285. return this._framePortId;
  56286. },
  56287. enumerable: false,
  56288. configurable: true
  56289. });
  56290. Object.defineProperty(FrameNodePort.prototype, "framePortPosition", {
  56291. get: function () {
  56292. return this._framePortPosition;
  56293. },
  56294. set: function (position) {
  56295. this._framePortPosition = position;
  56296. this.onFramePortPositionChangedObservable.notifyObservers(this);
  56297. },
  56298. enumerable: false,
  56299. configurable: true
  56300. });
  56301. FrameNodePort.CreateFrameNodePortElement = function (connectionPoint, node, root, displayManager, globalState, isInput, framePortId, parentFrameId) {
  56302. var portContainer = root.ownerDocument.createElement("div");
  56303. var block = connectionPoint.ownerBlock;
  56304. portContainer.classList.add("portLine");
  56305. if (framePortId !== null) {
  56306. portContainer.dataset.framePortId = "" + framePortId;
  56307. }
  56308. root.appendChild(portContainer);
  56309. if (!displayManager || displayManager.shouldDisplayPortLabels(block)) {
  56310. var portLabel = root.ownerDocument.createElement("div");
  56311. portLabel.classList.add("port-label");
  56312. var portName = connectionPoint.displayName || connectionPoint.name;
  56313. if (connectionPoint.ownerBlock.isInput) {
  56314. portName = node.name;
  56315. }
  56316. portLabel.innerHTML = portName;
  56317. portContainer.appendChild(portLabel);
  56318. }
  56319. return new FrameNodePort(portContainer, connectionPoint, node, globalState, isInput, framePortId, parentFrameId);
  56320. };
  56321. return FrameNodePort;
  56322. }(_nodePort__WEBPACK_IMPORTED_MODULE_1__["NodePort"]));
  56323. /***/ }),
  56324. /***/ "./diagram/graphCanvas.scss":
  56325. /*!**********************************!*\
  56326. !*** ./diagram/graphCanvas.scss ***!
  56327. \**********************************/
  56328. /*! no static exports found */
  56329. /***/ (function(module, exports, __webpack_require__) {
  56330. var api = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  56331. 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");
  56332. content = content.__esModule ? content.default : content;
  56333. if (typeof content === 'string') {
  56334. content = [[module.i, content, '']];
  56335. }
  56336. var options = {};
  56337. options.insert = "head";
  56338. options.singleton = false;
  56339. var update = api(content, options);
  56340. module.exports = content.locals || {};
  56341. /***/ }),
  56342. /***/ "./diagram/graphCanvas.tsx":
  56343. /*!*********************************!*\
  56344. !*** ./diagram/graphCanvas.tsx ***!
  56345. \*********************************/
  56346. /*! exports provided: isFramePortData, GraphCanvasComponent */
  56347. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56348. "use strict";
  56349. __webpack_require__.r(__webpack_exports__);
  56350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFramePortData", function() { return isFramePortData; });
  56351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphCanvasComponent", function() { return GraphCanvasComponent; });
  56352. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56353. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56354. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56355. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  56356. /* 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__);
  56357. /* harmony import */ var _graphNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphNode */ "./diagram/graphNode.ts");
  56358. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dagre */ "../../node_modules/dagre/index.js");
  56359. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_4__);
  56360. /* harmony import */ var _nodeLink__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nodeLink */ "./diagram/nodeLink.ts");
  56361. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  56362. /* harmony import */ var _graphFrame__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./graphFrame */ "./diagram/graphFrame.ts");
  56363. /* harmony import */ var _frameNodePort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./frameNodePort */ "./diagram/frameNodePort.ts");
  56364. __webpack_require__(/*! ./graphCanvas.scss */ "./diagram/graphCanvas.scss");
  56365. var isFramePortData = function (variableToCheck) {
  56366. if (variableToCheck) {
  56367. return variableToCheck.port !== undefined;
  56368. }
  56369. else
  56370. return false;
  56371. };
  56372. var GraphCanvasComponent = /** @class */ (function (_super) {
  56373. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphCanvasComponent, _super);
  56374. function GraphCanvasComponent(props) {
  56375. var _this = _super.call(this, props) || this;
  56376. _this.MinZoom = 0.1;
  56377. _this.MaxZoom = 4;
  56378. _this._nodes = [];
  56379. _this._links = [];
  56380. _this._mouseStartPointX = null;
  56381. _this._mouseStartPointY = null;
  56382. _this._dropPointX = 0;
  56383. _this._dropPointY = 0;
  56384. _this._selectionStartX = 0;
  56385. _this._selectionStartY = 0;
  56386. _this._candidateLinkedHasMoved = false;
  56387. _this._x = 0;
  56388. _this._y = 0;
  56389. _this._zoom = 1;
  56390. _this._selectedNodes = [];
  56391. _this._selectedLink = null;
  56392. _this._selectedPort = null;
  56393. _this._candidateLink = null;
  56394. _this._candidatePort = null;
  56395. _this._gridSize = 20;
  56396. _this._selectionBox = null;
  56397. _this._selectedFrame = null;
  56398. _this._frameCandidate = null;
  56399. _this._frames = [];
  56400. _this._altKeyIsPressed = false;
  56401. _this._ctrlKeyIsPressed = false;
  56402. _this._oldY = -1;
  56403. _this._frameIsMoving = false;
  56404. _this._isLoading = false;
  56405. props.globalState.onSelectionChangedObservable.add(function (selection) {
  56406. if (!selection) {
  56407. _this._selectedNodes = [];
  56408. _this._selectedLink = null;
  56409. _this._selectedFrame = null;
  56410. _this._selectedPort = null;
  56411. }
  56412. else {
  56413. if (selection instanceof _nodeLink__WEBPACK_IMPORTED_MODULE_5__["NodeLink"]) {
  56414. _this._selectedNodes = [];
  56415. _this._selectedFrame = null;
  56416. _this._selectedLink = selection;
  56417. _this._selectedPort = null;
  56418. }
  56419. else if (selection instanceof _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"]) {
  56420. _this._selectedNodes = [];
  56421. _this._selectedFrame = selection;
  56422. _this._selectedLink = null;
  56423. _this._selectedPort = null;
  56424. }
  56425. else if (selection instanceof _graphNode__WEBPACK_IMPORTED_MODULE_3__["GraphNode"]) {
  56426. if (_this._ctrlKeyIsPressed) {
  56427. if (_this._selectedNodes.indexOf(selection) === -1) {
  56428. _this._selectedNodes.push(selection);
  56429. }
  56430. }
  56431. else {
  56432. _this._selectedNodes = [selection];
  56433. }
  56434. }
  56435. else if (selection instanceof _nodePort__WEBPACK_IMPORTED_MODULE_6__["NodePort"]) {
  56436. _this._selectedNodes = [];
  56437. _this._selectedFrame = null;
  56438. _this._selectedLink = null;
  56439. _this._selectedPort = selection;
  56440. }
  56441. else {
  56442. _this._selectedNodes = [];
  56443. _this._selectedFrame = null;
  56444. _this._selectedLink = null;
  56445. _this._selectedPort = selection.port;
  56446. }
  56447. }
  56448. });
  56449. props.globalState.onCandidatePortSelectedObservable.add(function (port) {
  56450. _this._candidatePort = port;
  56451. });
  56452. props.globalState.onGridSizeChanged.add(function () {
  56453. _this.gridSize = babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("GridSize", 20);
  56454. });
  56455. _this.props.globalState.hostDocument.addEventListener("keyup", function () { return _this.onKeyUp(); }, false);
  56456. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  56457. _this._altKeyIsPressed = evt.altKey;
  56458. _this._ctrlKeyIsPressed = evt.ctrlKey;
  56459. }, false);
  56460. _this.props.globalState.hostDocument.defaultView.addEventListener("blur", function () {
  56461. _this._altKeyIsPressed = false;
  56462. _this._ctrlKeyIsPressed = false;
  56463. }, false);
  56464. // Store additional data to serialization object
  56465. _this.props.globalState.storeEditorData = function (editorData, graphFrame) {
  56466. editorData.frames = [];
  56467. if (graphFrame) {
  56468. editorData.frames.push(graphFrame.serialize());
  56469. }
  56470. else {
  56471. editorData.x = _this.x;
  56472. editorData.y = _this.y;
  56473. editorData.zoom = _this.zoom;
  56474. for (var _i = 0, _a = _this._frames; _i < _a.length; _i++) {
  56475. var frame = _a[_i];
  56476. editorData.frames.push(frame.serialize());
  56477. }
  56478. }
  56479. };
  56480. return _this;
  56481. }
  56482. Object.defineProperty(GraphCanvasComponent.prototype, "gridSize", {
  56483. get: function () {
  56484. return this._gridSize;
  56485. },
  56486. set: function (value) {
  56487. this._gridSize = value;
  56488. this.updateTransform();
  56489. },
  56490. enumerable: false,
  56491. configurable: true
  56492. });
  56493. Object.defineProperty(GraphCanvasComponent.prototype, "globalState", {
  56494. get: function () {
  56495. return this.props.globalState;
  56496. },
  56497. enumerable: false,
  56498. configurable: true
  56499. });
  56500. Object.defineProperty(GraphCanvasComponent.prototype, "nodes", {
  56501. get: function () {
  56502. return this._nodes;
  56503. },
  56504. enumerable: false,
  56505. configurable: true
  56506. });
  56507. Object.defineProperty(GraphCanvasComponent.prototype, "links", {
  56508. get: function () {
  56509. return this._links;
  56510. },
  56511. enumerable: false,
  56512. configurable: true
  56513. });
  56514. Object.defineProperty(GraphCanvasComponent.prototype, "frames", {
  56515. get: function () {
  56516. return this._frames;
  56517. },
  56518. enumerable: false,
  56519. configurable: true
  56520. });
  56521. Object.defineProperty(GraphCanvasComponent.prototype, "zoom", {
  56522. get: function () {
  56523. return this._zoom;
  56524. },
  56525. set: function (value) {
  56526. if (this._zoom === value) {
  56527. return;
  56528. }
  56529. this._zoom = value;
  56530. this.updateTransform();
  56531. },
  56532. enumerable: false,
  56533. configurable: true
  56534. });
  56535. Object.defineProperty(GraphCanvasComponent.prototype, "x", {
  56536. get: function () {
  56537. return this._x;
  56538. },
  56539. set: function (value) {
  56540. this._x = value;
  56541. this.updateTransform();
  56542. },
  56543. enumerable: false,
  56544. configurable: true
  56545. });
  56546. Object.defineProperty(GraphCanvasComponent.prototype, "y", {
  56547. get: function () {
  56548. return this._y;
  56549. },
  56550. set: function (value) {
  56551. this._y = value;
  56552. this.updateTransform();
  56553. },
  56554. enumerable: false,
  56555. configurable: true
  56556. });
  56557. Object.defineProperty(GraphCanvasComponent.prototype, "selectedNodes", {
  56558. get: function () {
  56559. return this._selectedNodes;
  56560. },
  56561. enumerable: false,
  56562. configurable: true
  56563. });
  56564. Object.defineProperty(GraphCanvasComponent.prototype, "selectedLink", {
  56565. get: function () {
  56566. return this._selectedLink;
  56567. },
  56568. enumerable: false,
  56569. configurable: true
  56570. });
  56571. Object.defineProperty(GraphCanvasComponent.prototype, "selectedFrame", {
  56572. get: function () {
  56573. return this._selectedFrame;
  56574. },
  56575. enumerable: false,
  56576. configurable: true
  56577. });
  56578. Object.defineProperty(GraphCanvasComponent.prototype, "selectedPort", {
  56579. get: function () {
  56580. return this._selectedPort;
  56581. },
  56582. enumerable: false,
  56583. configurable: true
  56584. });
  56585. Object.defineProperty(GraphCanvasComponent.prototype, "canvasContainer", {
  56586. get: function () {
  56587. return this._graphCanvas;
  56588. },
  56589. enumerable: false,
  56590. configurable: true
  56591. });
  56592. Object.defineProperty(GraphCanvasComponent.prototype, "hostCanvas", {
  56593. get: function () {
  56594. return this._hostCanvas;
  56595. },
  56596. enumerable: false,
  56597. configurable: true
  56598. });
  56599. Object.defineProperty(GraphCanvasComponent.prototype, "svgCanvas", {
  56600. get: function () {
  56601. return this._svgCanvas;
  56602. },
  56603. enumerable: false,
  56604. configurable: true
  56605. });
  56606. Object.defineProperty(GraphCanvasComponent.prototype, "selectionContainer", {
  56607. get: function () {
  56608. return this._selectionContainer;
  56609. },
  56610. enumerable: false,
  56611. configurable: true
  56612. });
  56613. Object.defineProperty(GraphCanvasComponent.prototype, "frameContainer", {
  56614. get: function () {
  56615. return this._frameContainer;
  56616. },
  56617. enumerable: false,
  56618. configurable: true
  56619. });
  56620. GraphCanvasComponent.prototype.getGridPosition = function (position, useCeil) {
  56621. if (useCeil === void 0) { useCeil = false; }
  56622. var gridSize = this.gridSize;
  56623. if (gridSize === 0) {
  56624. return position;
  56625. }
  56626. if (useCeil) {
  56627. return gridSize * Math.ceil(position / gridSize);
  56628. }
  56629. return gridSize * Math.floor(position / gridSize);
  56630. };
  56631. GraphCanvasComponent.prototype.getGridPositionCeil = function (position) {
  56632. var gridSize = this.gridSize;
  56633. if (gridSize === 0) {
  56634. return position;
  56635. }
  56636. return gridSize * Math.ceil(position / gridSize);
  56637. };
  56638. GraphCanvasComponent.prototype.updateTransform = function () {
  56639. this._rootContainer.style.transform = "translate(" + this._x + "px, " + this._y + "px) scale(" + this._zoom + ")";
  56640. if (babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean("ShowGrid", true)) {
  56641. this._hostCanvas.style.backgroundSize = this._gridSize * this._zoom + "px " + this._gridSize * this._zoom + "px";
  56642. this._hostCanvas.style.backgroundPosition = this._x + "px " + this._y + "px";
  56643. }
  56644. else {
  56645. this._hostCanvas.style.backgroundSize = "0";
  56646. }
  56647. };
  56648. GraphCanvasComponent.prototype.onKeyUp = function () {
  56649. this._altKeyIsPressed = false;
  56650. this._ctrlKeyIsPressed = false;
  56651. this._oldY = -1;
  56652. };
  56653. GraphCanvasComponent.prototype.findNodeFromBlock = function (block) {
  56654. return this.nodes.filter(function (n) { return n.block === block; })[0];
  56655. };
  56656. GraphCanvasComponent.prototype.reset = function () {
  56657. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  56658. var node = _a[_i];
  56659. node.dispose();
  56660. }
  56661. var frames = this._frames.splice(0);
  56662. for (var _b = 0, frames_1 = frames; _b < frames_1.length; _b++) {
  56663. var frame = frames_1[_b];
  56664. frame.dispose();
  56665. }
  56666. this._nodes = [];
  56667. this._frames = [];
  56668. this._links = [];
  56669. this._graphCanvas.innerHTML = "";
  56670. this._svgCanvas.innerHTML = "";
  56671. };
  56672. GraphCanvasComponent.prototype.connectPorts = function (pointA, pointB) {
  56673. var blockA = pointA.ownerBlock;
  56674. var blockB = pointB.ownerBlock;
  56675. var nodeA = this.findNodeFromBlock(blockA);
  56676. var nodeB = this.findNodeFromBlock(blockB);
  56677. if (!nodeA || !nodeB) {
  56678. return;
  56679. }
  56680. var portA = nodeA.getPortForConnectionPoint(pointA);
  56681. var portB = nodeB.getPortForConnectionPoint(pointB);
  56682. if (!portA || !portB) {
  56683. return;
  56684. }
  56685. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  56686. var currentLink = _a[_i];
  56687. if (currentLink.portA === portA && currentLink.portB === portB) {
  56688. return;
  56689. }
  56690. if (currentLink.portA === portB && currentLink.portB === portA) {
  56691. return;
  56692. }
  56693. }
  56694. var link = new _nodeLink__WEBPACK_IMPORTED_MODULE_5__["NodeLink"](this, portA, nodeA, portB, nodeB);
  56695. this._links.push(link);
  56696. nodeA.links.push(link);
  56697. nodeB.links.push(link);
  56698. };
  56699. GraphCanvasComponent.prototype.removeLink = function (link) {
  56700. var index = this._links.indexOf(link);
  56701. if (index > -1) {
  56702. this._links.splice(index, 1);
  56703. }
  56704. link.dispose();
  56705. };
  56706. GraphCanvasComponent.prototype.appendBlock = function (block) {
  56707. var newNode = new _graphNode__WEBPACK_IMPORTED_MODULE_3__["GraphNode"](block, this.props.globalState);
  56708. newNode.appendVisual(this._graphCanvas, this);
  56709. this._nodes.push(newNode);
  56710. return newNode;
  56711. };
  56712. GraphCanvasComponent.prototype.distributeGraph = function () {
  56713. var _this = this;
  56714. this.x = 0;
  56715. this.y = 0;
  56716. this.zoom = 1;
  56717. var graph = new dagre__WEBPACK_IMPORTED_MODULE_4__["graphlib"].Graph();
  56718. graph.setGraph({});
  56719. graph.setDefaultEdgeLabel(function () { return ({}); });
  56720. graph.graph().rankdir = "LR";
  56721. // Build dagre graph
  56722. this._nodes.forEach(function (node) {
  56723. if (_this._frames.some(function (f) { return f.nodes.indexOf(node) !== -1; })) {
  56724. return;
  56725. }
  56726. graph.setNode(node.id.toString(), {
  56727. id: node.id,
  56728. type: "node",
  56729. width: node.width,
  56730. height: node.height
  56731. });
  56732. });
  56733. this._frames.forEach(function (frame) {
  56734. graph.setNode(frame.id.toString(), {
  56735. id: frame.id,
  56736. type: "frame",
  56737. width: frame.element.clientWidth,
  56738. height: frame.element.clientHeight
  56739. });
  56740. });
  56741. this._nodes.forEach(function (node) {
  56742. node.block.outputs.forEach(function (output) {
  56743. if (!output.hasEndpoints) {
  56744. return;
  56745. }
  56746. output.endpoints.forEach(function (endpoint) {
  56747. var sourceFrames = _this._frames.filter(function (f) { return f.nodes.indexOf(node) !== -1; });
  56748. var targetFrames = _this._frames.filter(function (f) { return f.nodes.some(function (n) { return n.block === endpoint.ownerBlock; }); });
  56749. var sourceId = sourceFrames.length > 0 ? sourceFrames[0].id : node.id;
  56750. var targetId = targetFrames.length > 0 ? targetFrames[0].id : endpoint.ownerBlock.uniqueId;
  56751. graph.setEdge(sourceId.toString(), targetId.toString());
  56752. });
  56753. });
  56754. });
  56755. // Distribute
  56756. dagre__WEBPACK_IMPORTED_MODULE_4__["layout"](graph);
  56757. // Update graph
  56758. var dagreNodes = graph.nodes().map(function (node) { return graph.node(node); });
  56759. dagreNodes.forEach(function (dagreNode) {
  56760. if (!dagreNode) {
  56761. return;
  56762. }
  56763. if (dagreNode.type === "node") {
  56764. for (var _i = 0, _a = _this._nodes; _i < _a.length; _i++) {
  56765. var node = _a[_i];
  56766. if (node.id === dagreNode.id) {
  56767. node.x = dagreNode.x - dagreNode.width / 2;
  56768. node.y = dagreNode.y - dagreNode.height / 2;
  56769. node.cleanAccumulation();
  56770. return;
  56771. }
  56772. }
  56773. return;
  56774. }
  56775. for (var _b = 0, _c = _this._frames; _b < _c.length; _b++) {
  56776. var frame = _c[_b];
  56777. if (frame.id === dagreNode.id) {
  56778. _this._frameIsMoving = true;
  56779. frame.move(dagreNode.x - dagreNode.width / 2, dagreNode.y - dagreNode.height / 2, false);
  56780. frame.cleanAccumulation();
  56781. _this._frameIsMoving = false;
  56782. return;
  56783. }
  56784. }
  56785. });
  56786. };
  56787. GraphCanvasComponent.prototype.componentDidMount = function () {
  56788. this._hostCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas");
  56789. this._rootContainer = this.props.globalState.hostDocument.getElementById("graph-container");
  56790. this._graphCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas-container");
  56791. this._svgCanvas = this.props.globalState.hostDocument.getElementById("graph-svg-container");
  56792. this._selectionContainer = this.props.globalState.hostDocument.getElementById("selection-container");
  56793. this._frameContainer = this.props.globalState.hostDocument.getElementById("frame-container");
  56794. this.gridSize = babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("GridSize", 20);
  56795. this.updateTransform();
  56796. };
  56797. GraphCanvasComponent.prototype.onMove = function (evt) {
  56798. // Selection box
  56799. if (this._selectionBox) {
  56800. var rootRect = this.canvasContainer.getBoundingClientRect();
  56801. var localX = evt.pageX - rootRect.left;
  56802. var localY = evt.pageY - rootRect.top;
  56803. if (localX > this._selectionStartX) {
  56804. this._selectionBox.style.left = this._selectionStartX / this.zoom + "px";
  56805. this._selectionBox.style.width = (localX - this._selectionStartX) / this.zoom + "px";
  56806. }
  56807. else {
  56808. this._selectionBox.style.left = localX / this.zoom + "px";
  56809. this._selectionBox.style.width = (this._selectionStartX - localX) / this.zoom + "px";
  56810. }
  56811. if (localY > this._selectionStartY) {
  56812. this._selectionBox.style.top = this._selectionStartY / this.zoom + "px";
  56813. this._selectionBox.style.height = (localY - this._selectionStartY) / this.zoom + "px";
  56814. }
  56815. else {
  56816. this._selectionBox.style.top = localY / this.zoom + "px";
  56817. this._selectionBox.style.height = (this._selectionStartY - localY) / this.zoom + "px";
  56818. }
  56819. this.props.globalState.onSelectionBoxMoved.notifyObservers(this._selectionBox.getBoundingClientRect());
  56820. return;
  56821. }
  56822. // Candidate frame box
  56823. if (this._frameCandidate) {
  56824. var rootRect = this.canvasContainer.getBoundingClientRect();
  56825. var localX = evt.pageX - rootRect.left;
  56826. var localY = evt.pageY - rootRect.top;
  56827. if (localX > this._selectionStartX) {
  56828. this._frameCandidate.style.left = this._selectionStartX / this.zoom + "px";
  56829. this._frameCandidate.style.width = (localX - this._selectionStartX) / this.zoom + "px";
  56830. }
  56831. else {
  56832. this._frameCandidate.style.left = localX / this.zoom + "px";
  56833. this._frameCandidate.style.width = (this._selectionStartX - localX) / this.zoom + "px";
  56834. }
  56835. if (localY > this._selectionStartY) {
  56836. this._frameCandidate.style.top = this._selectionStartY / this.zoom + "px";
  56837. this._frameCandidate.style.height = (localY - this._selectionStartY) / this.zoom + "px";
  56838. }
  56839. else {
  56840. this._frameCandidate.style.top = localY / this.zoom + "px";
  56841. this._frameCandidate.style.height = (this._selectionStartY - localY) / this.zoom + "px";
  56842. }
  56843. return;
  56844. }
  56845. // Candidate link
  56846. if (this._candidateLink) {
  56847. var rootRect = this.canvasContainer.getBoundingClientRect();
  56848. this._candidatePort = null;
  56849. this.props.globalState.onCandidateLinkMoved.notifyObservers(new babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["Vector2"](evt.pageX, evt.pageY));
  56850. this._dropPointX = (evt.pageX - rootRect.left) / this.zoom;
  56851. this._dropPointY = (evt.pageY - rootRect.top) / this.zoom;
  56852. this._candidateLink.update(this._dropPointX, this._dropPointY, true);
  56853. this._candidateLinkedHasMoved = true;
  56854. return;
  56855. }
  56856. // Zoom with mouse + alt
  56857. if (this._altKeyIsPressed && evt.buttons === 1) {
  56858. if (this._oldY < 0) {
  56859. this._oldY = evt.pageY;
  56860. }
  56861. var zoomDelta = (evt.pageY - this._oldY) / 10;
  56862. if (Math.abs(zoomDelta) > 5) {
  56863. var oldZoom = this.zoom;
  56864. this.zoom = Math.max(Math.min(this.MaxZoom, this.zoom + zoomDelta / 100), this.MinZoom);
  56865. var boundingRect = evt.currentTarget.getBoundingClientRect();
  56866. var clientWidth = boundingRect.width;
  56867. var widthDiff = clientWidth * this.zoom - clientWidth * oldZoom;
  56868. var clientX = evt.clientX - boundingRect.left;
  56869. var xFactor = (clientX - this.x) / oldZoom / clientWidth;
  56870. this.x = this.x - widthDiff * xFactor;
  56871. this._oldY = evt.pageY;
  56872. }
  56873. return;
  56874. }
  56875. // Move canvas
  56876. this._rootContainer.style.cursor = "move";
  56877. if (this._mouseStartPointX === null || this._mouseStartPointY === null) {
  56878. return;
  56879. }
  56880. this.x += evt.clientX - this._mouseStartPointX;
  56881. this.y += evt.clientY - this._mouseStartPointY;
  56882. this._mouseStartPointX = evt.clientX;
  56883. this._mouseStartPointY = evt.clientY;
  56884. };
  56885. GraphCanvasComponent.prototype.onDown = function (evt) {
  56886. this._rootContainer.setPointerCapture(evt.pointerId);
  56887. // Selection?
  56888. if (evt.currentTarget === this._hostCanvas && evt.ctrlKey) {
  56889. this._selectionBox = this.props.globalState.hostDocument.createElement("div");
  56890. this._selectionBox.classList.add("selection-box");
  56891. this._selectionContainer.appendChild(this._selectionBox);
  56892. var rootRect = this.canvasContainer.getBoundingClientRect();
  56893. this._selectionStartX = (evt.pageX - rootRect.left);
  56894. this._selectionStartY = (evt.pageY - rootRect.top);
  56895. this._selectionBox.style.left = this._selectionStartX / this.zoom + "px";
  56896. this._selectionBox.style.top = this._selectionStartY / this.zoom + "px";
  56897. this._selectionBox.style.width = "0px";
  56898. this._selectionBox.style.height = "0px";
  56899. return;
  56900. }
  56901. // Frame?
  56902. if (evt.currentTarget === this._hostCanvas && evt.shiftKey) {
  56903. this._frameCandidate = this.props.globalState.hostDocument.createElement("div");
  56904. this._frameCandidate.classList.add("frame-box");
  56905. this._frameContainer.appendChild(this._frameCandidate);
  56906. var rootRect = this.canvasContainer.getBoundingClientRect();
  56907. this._selectionStartX = (evt.pageX - rootRect.left);
  56908. this._selectionStartY = (evt.pageY - rootRect.top);
  56909. this._frameCandidate.style.left = this._selectionStartX / this.zoom + "px";
  56910. this._frameCandidate.style.top = this._selectionStartY / this.zoom + "px";
  56911. this._frameCandidate.style.width = "0px";
  56912. this._frameCandidate.style.height = "0px";
  56913. return;
  56914. }
  56915. // Port dragging
  56916. if (evt.nativeEvent.srcElement && evt.nativeEvent.srcElement.nodeName === "IMG") {
  56917. if (!this._candidateLink) {
  56918. var portElement = evt.nativeEvent.srcElement.parentElement.port;
  56919. this._candidateLink = new _nodeLink__WEBPACK_IMPORTED_MODULE_5__["NodeLink"](this, portElement, portElement.node);
  56920. this._candidateLinkedHasMoved = false;
  56921. }
  56922. return;
  56923. }
  56924. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  56925. this._mouseStartPointX = evt.clientX;
  56926. this._mouseStartPointY = evt.clientY;
  56927. };
  56928. GraphCanvasComponent.prototype.onUp = function (evt) {
  56929. this._mouseStartPointX = null;
  56930. this._mouseStartPointY = null;
  56931. this._rootContainer.releasePointerCapture(evt.pointerId);
  56932. this._oldY = -1;
  56933. if (this._candidateLink) {
  56934. if (this._candidateLinkedHasMoved) {
  56935. this.processCandidatePort();
  56936. this.props.globalState.onCandidateLinkMoved.notifyObservers(null);
  56937. }
  56938. else { // is a click event on NodePort
  56939. if (this._candidateLink.portA instanceof _frameNodePort__WEBPACK_IMPORTED_MODULE_8__["FrameNodePort"]) { //only on Frame Node Ports
  56940. var port_1 = this._candidateLink.portA;
  56941. var frame = this.frames.find(function (frame) { return frame.id === port_1.parentFrameId; });
  56942. if (frame) {
  56943. var data = {
  56944. frame: frame,
  56945. port: port_1
  56946. };
  56947. this.props.globalState.onSelectionChangedObservable.notifyObservers(data);
  56948. }
  56949. }
  56950. else if (this._candidateLink.portA instanceof _nodePort__WEBPACK_IMPORTED_MODULE_6__["NodePort"]) {
  56951. this.props.globalState.onSelectionChangedObservable.notifyObservers(this._candidateLink.portA);
  56952. }
  56953. }
  56954. this._candidateLink.dispose();
  56955. this._candidateLink = null;
  56956. this._candidatePort = null;
  56957. }
  56958. if (this._selectionBox) {
  56959. this._selectionBox.parentElement.removeChild(this._selectionBox);
  56960. this._selectionBox = null;
  56961. }
  56962. if (this._frameCandidate) {
  56963. var newFrame = new _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"](this._frameCandidate, this);
  56964. this._frames.push(newFrame);
  56965. this._frameCandidate.parentElement.removeChild(this._frameCandidate);
  56966. this._frameCandidate = null;
  56967. this.props.globalState.onSelectionChangedObservable.notifyObservers(newFrame);
  56968. }
  56969. };
  56970. GraphCanvasComponent.prototype.onWheel = function (evt) {
  56971. var delta = evt.deltaY < 0 ? 0.1 : -0.1;
  56972. var oldZoom = this.zoom;
  56973. this.zoom = Math.min(Math.max(this.MinZoom, this.zoom + delta * this.zoom), this.MaxZoom);
  56974. var boundingRect = evt.currentTarget.getBoundingClientRect();
  56975. var clientWidth = boundingRect.width;
  56976. var clientHeight = boundingRect.height;
  56977. var widthDiff = clientWidth * this.zoom - clientWidth * oldZoom;
  56978. var heightDiff = clientHeight * this.zoom - clientHeight * oldZoom;
  56979. var clientX = evt.clientX - boundingRect.left;
  56980. var clientY = evt.clientY - boundingRect.top;
  56981. var xFactor = (clientX - this.x) / oldZoom / clientWidth;
  56982. var yFactor = (clientY - this.y) / oldZoom / clientHeight;
  56983. this.x = this.x - widthDiff * xFactor;
  56984. this.y = this.y - heightDiff * yFactor;
  56985. evt.stopPropagation();
  56986. };
  56987. GraphCanvasComponent.prototype.zoomToFit = function () {
  56988. var _this = this;
  56989. // Get negative offset
  56990. var minX = 0;
  56991. var minY = 0;
  56992. this._nodes.forEach(function (node) {
  56993. if (_this._frames.some(function (f) { return f.nodes.indexOf(node) !== -1; })) {
  56994. return;
  56995. }
  56996. if (node.x < minX) {
  56997. minX = node.x;
  56998. }
  56999. if (node.y < minY) {
  57000. minY = node.y;
  57001. }
  57002. });
  57003. this._frames.forEach(function (frame) {
  57004. if (frame.x < minX) {
  57005. minX = frame.x;
  57006. }
  57007. if (frame.y < minY) {
  57008. minY = frame.y;
  57009. }
  57010. });
  57011. // Restore to 0
  57012. this._frames.forEach(function (frame) {
  57013. frame.x += -minX;
  57014. frame.y += -minY;
  57015. frame.cleanAccumulation();
  57016. });
  57017. this._nodes.forEach(function (node) {
  57018. node.x += -minX;
  57019. node.y += -minY;
  57020. node.cleanAccumulation();
  57021. });
  57022. // Get correct zoom
  57023. var xFactor = this._rootContainer.clientWidth / this._rootContainer.scrollWidth;
  57024. var yFactor = this._rootContainer.clientHeight / this._rootContainer.scrollHeight;
  57025. var zoomFactor = xFactor < yFactor ? xFactor : yFactor;
  57026. this.zoom = zoomFactor;
  57027. this.x = 0;
  57028. this.y = 0;
  57029. };
  57030. GraphCanvasComponent.prototype.processCandidatePort = function () {
  57031. var pointB = this._candidateLink.portA.connectionPoint;
  57032. var nodeB = this._candidateLink.portA.node;
  57033. var pointA;
  57034. var nodeA;
  57035. if (this._candidatePort) {
  57036. pointA = this._candidatePort.connectionPoint;
  57037. nodeA = this._candidatePort.node;
  57038. }
  57039. else {
  57040. if (pointB.direction === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointDirection"].Output) {
  57041. return;
  57042. }
  57043. // No destination so let's spin a new input block
  57044. var pointName = "output", inputBlock = void 0;
  57045. var customInputBlock = this._candidateLink.portA.connectionPoint.createCustomInputBlock();
  57046. if (!customInputBlock) {
  57047. inputBlock = 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);
  57048. }
  57049. else {
  57050. inputBlock = customInputBlock[0], pointName = customInputBlock[1];
  57051. }
  57052. this.props.globalState.nodeMaterial.attachedBlocks.push(inputBlock);
  57053. pointA = inputBlock[pointName];
  57054. nodeA = this.appendBlock(inputBlock);
  57055. nodeA.x = this._dropPointX - 200;
  57056. nodeA.y = this._dropPointY - 50;
  57057. }
  57058. if (pointA.direction === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointDirection"].Input) {
  57059. var temp = pointB;
  57060. pointB = pointA;
  57061. pointA = temp;
  57062. var tempNode = nodeA;
  57063. nodeA = nodeB;
  57064. nodeB = tempNode;
  57065. }
  57066. if (pointB.connectedPoint === pointA) {
  57067. return;
  57068. }
  57069. if (pointB === pointA) {
  57070. return;
  57071. }
  57072. if (pointB.direction === pointA.direction) {
  57073. return;
  57074. }
  57075. if (pointB.ownerBlock === pointA.ownerBlock) {
  57076. return;
  57077. }
  57078. // Check compatibility
  57079. var isFragmentOutput = pointB.ownerBlock.getClassName() === "FragmentOutputBlock";
  57080. var compatibilityState = pointA.checkCompatibilityState(pointB);
  57081. 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"])) {
  57082. compatibilityState = pointB.checkCompatibilityState(pointA);
  57083. }
  57084. if (compatibilityState === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].Compatible) {
  57085. if (isFragmentOutput) {
  57086. var fragmentBlock = pointB.ownerBlock;
  57087. if (pointB.name === "rgb" && fragmentBlock.rgba.isConnected) {
  57088. nodeB.getLinksForConnectionPoint(fragmentBlock.rgba)[0].dispose();
  57089. }
  57090. else if (pointB.name === "rgba" && fragmentBlock.rgb.isConnected) {
  57091. nodeB.getLinksForConnectionPoint(fragmentBlock.rgb)[0].dispose();
  57092. }
  57093. }
  57094. }
  57095. else {
  57096. var message = "";
  57097. switch (compatibilityState) {
  57098. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].TypeIncompatible:
  57099. message = "Cannot connect two different connection types";
  57100. break;
  57101. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialConnectionPointCompatibilityStates"].TargetIncompatible:
  57102. message = "Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader";
  57103. break;
  57104. }
  57105. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(message);
  57106. return;
  57107. }
  57108. var linksToNotifyForDispose = null;
  57109. if (pointB.isConnected) {
  57110. var links = nodeB.getLinksForConnectionPoint(pointB);
  57111. linksToNotifyForDispose = links.slice();
  57112. links.forEach(function (link) {
  57113. link.dispose(false);
  57114. });
  57115. }
  57116. if (pointB.ownerBlock.inputsAreExclusive) { // Disconnect all inputs if block has exclusive inputs
  57117. pointB.ownerBlock.inputs.forEach(function (i) {
  57118. var links = nodeB.getLinksForConnectionPoint(i);
  57119. if (!linksToNotifyForDispose) {
  57120. linksToNotifyForDispose = links.slice();
  57121. }
  57122. else {
  57123. linksToNotifyForDispose.push.apply(linksToNotifyForDispose, links.slice());
  57124. }
  57125. links.forEach(function (link) {
  57126. link.dispose(false);
  57127. });
  57128. });
  57129. }
  57130. pointA.connectTo(pointB);
  57131. this.connectPorts(pointA, pointB);
  57132. if (pointB.innerType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].AutoDetect) {
  57133. // need to potentially propagate the type of pointA to other ports of blocks connected to owner of pointB
  57134. var refreshNode_1 = function (node) {
  57135. node.refresh();
  57136. var links = node.links;
  57137. // refresh first the nodes so that the right types are assigned to the auto-detect ports
  57138. links.forEach(function (link) {
  57139. var nodeA = link.nodeA, nodeB = link.nodeB;
  57140. if (!visitedNodes_1.has(nodeA)) {
  57141. visitedNodes_1.add(nodeA);
  57142. refreshNode_1(nodeA);
  57143. }
  57144. if (nodeB && !visitedNodes_1.has(nodeB)) {
  57145. visitedNodes_1.add(nodeB);
  57146. refreshNode_1(nodeB);
  57147. }
  57148. });
  57149. // then refresh the links to display the right color between ports
  57150. links.forEach(function (link) {
  57151. if (!visitedLinks_1.has(link)) {
  57152. visitedLinks_1.add(link);
  57153. link.update();
  57154. }
  57155. });
  57156. };
  57157. var visitedNodes_1 = new Set([nodeA]);
  57158. var visitedLinks_1 = new Set([nodeB.links[nodeB.links.length - 1]]);
  57159. refreshNode_1(nodeB);
  57160. }
  57161. else {
  57162. nodeB.refresh();
  57163. }
  57164. linksToNotifyForDispose === null || linksToNotifyForDispose === void 0 ? void 0 : linksToNotifyForDispose.forEach(function (link) {
  57165. link.onDisposedObservable.notifyObservers(link);
  57166. link.onDisposedObservable.clear();
  57167. });
  57168. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57169. };
  57170. GraphCanvasComponent.prototype.processEditorData = function (editorData) {
  57171. var frames = this._frames.splice(0);
  57172. for (var _i = 0, frames_2 = frames; _i < frames_2.length; _i++) {
  57173. var frame = frames_2[_i];
  57174. frame.dispose();
  57175. }
  57176. this._frames = [];
  57177. this.x = editorData.x || 0;
  57178. this.y = editorData.y || 0;
  57179. this.zoom = editorData.zoom || 1;
  57180. // Frames
  57181. if (editorData.frames) {
  57182. for (var _a = 0, _b = editorData.frames; _a < _b.length; _a++) {
  57183. var frameData = _b[_a];
  57184. var frame = _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"].Parse(frameData, this, editorData.map);
  57185. this._frames.push(frame);
  57186. }
  57187. }
  57188. };
  57189. GraphCanvasComponent.prototype.addFrame = function (frameData) {
  57190. var frame = _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"].Parse(frameData, this, this.props.globalState.nodeMaterial.editorData.map);
  57191. this._frames.push(frame);
  57192. this.globalState.onSelectionChangedObservable.notifyObservers(frame);
  57193. };
  57194. GraphCanvasComponent.prototype.render = function () {
  57195. var _this = this;
  57196. 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); } },
  57197. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "graph-container" },
  57198. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "graph-canvas-container" }),
  57199. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "frame-container" }),
  57200. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { id: "graph-svg-container" }),
  57201. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "selection-container" }))));
  57202. };
  57203. return GraphCanvasComponent;
  57204. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57205. /***/ }),
  57206. /***/ "./diagram/graphFrame.ts":
  57207. /*!*******************************!*\
  57208. !*** ./diagram/graphFrame.ts ***!
  57209. \*******************************/
  57210. /*! exports provided: FramePortPosition, GraphFrame */
  57211. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57212. "use strict";
  57213. __webpack_require__.r(__webpack_exports__);
  57214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FramePortPosition", function() { return FramePortPosition; });
  57215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphFrame", function() { return GraphFrame; });
  57216. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  57217. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  57218. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../serializationTools */ "./serializationTools.ts");
  57219. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../stringTools */ "./stringTools.ts");
  57220. /* harmony import */ var _frameNodePort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./frameNodePort */ "./diagram/frameNodePort.ts");
  57221. var ResizingDirection;
  57222. (function (ResizingDirection) {
  57223. ResizingDirection[ResizingDirection["Right"] = 0] = "Right";
  57224. ResizingDirection[ResizingDirection["Left"] = 1] = "Left";
  57225. ResizingDirection[ResizingDirection["Top"] = 2] = "Top";
  57226. ResizingDirection[ResizingDirection["Bottom"] = 3] = "Bottom";
  57227. ResizingDirection[ResizingDirection["TopRight"] = 4] = "TopRight";
  57228. ResizingDirection[ResizingDirection["TopLeft"] = 5] = "TopLeft";
  57229. ResizingDirection[ResizingDirection["BottomRight"] = 6] = "BottomRight";
  57230. ResizingDirection[ResizingDirection["BottomLeft"] = 7] = "BottomLeft";
  57231. })(ResizingDirection || (ResizingDirection = {}));
  57232. var FramePortPosition;
  57233. (function (FramePortPosition) {
  57234. FramePortPosition[FramePortPosition["Top"] = 0] = "Top";
  57235. FramePortPosition[FramePortPosition["Middle"] = 1] = "Middle";
  57236. FramePortPosition[FramePortPosition["Bottom"] = 2] = "Bottom";
  57237. })(FramePortPosition || (FramePortPosition = {}));
  57238. ;
  57239. var GraphFrame = /** @class */ (function () {
  57240. function GraphFrame(candidate, canvas, doNotCaptureNodes) {
  57241. var _this_1 = this;
  57242. if (doNotCaptureNodes === void 0) { doNotCaptureNodes = false; }
  57243. this.CollapsedWidth = 200;
  57244. this._x = 0;
  57245. this._y = 0;
  57246. this._gridAlignedX = 0;
  57247. this._gridAlignedY = 0;
  57248. this._nodes = [];
  57249. this._mouseStartPointX = null;
  57250. this._mouseStartPointY = null;
  57251. this._onNodeLinkDisposedObservers = [];
  57252. this._isCollapsed = false;
  57253. this._frameInPorts = [];
  57254. this._frameOutPorts = [];
  57255. this._controlledPorts = []; // Ports on Nodes that are shown on outside of frame
  57256. this._exposedInPorts = [];
  57257. this._exposedOutPorts = [];
  57258. this._minFrameHeight = 40;
  57259. this._minFrameWidth = 220;
  57260. this.onExpandStateChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  57261. 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>";
  57262. 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>";
  57263. 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>";
  57264. this.initResizing = function (evt) {
  57265. evt.stopPropagation();
  57266. _this_1._mouseStartPointX = evt.clientX;
  57267. _this_1._mouseStartPointY = evt.clientY;
  57268. _this_1._frameIsResizing = true;
  57269. };
  57270. this.cleanUpResizing = function (evt) {
  57271. evt.stopPropagation();
  57272. _this_1._frameIsResizing = false;
  57273. _this_1._resizingDirection = null;
  57274. _this_1._mouseStartPointX = null;
  57275. _this_1._mouseStartPointY = null;
  57276. _this_1.mouseXLimit = null;
  57277. _this_1.refresh();
  57278. };
  57279. this.updateMinHeightWithComments = function () {
  57280. if (_this_1.comments && _this_1.comments.length > 0) {
  57281. var minFrameHeightWithComments = _this_1._commentsElement.offsetHeight + 40;
  57282. _this_1._minFrameHeight = minFrameHeightWithComments;
  57283. }
  57284. };
  57285. this._onRightHandlePointerDown = function (evt) {
  57286. // tslint:disable-next-line: no-this-assignment
  57287. var _this = _this_1;
  57288. if (_this.isCollapsed) {
  57289. return;
  57290. }
  57291. _this_1.initResizing(evt);
  57292. _this._resizingDirection = ResizingDirection.Right;
  57293. _this.mouseXLimit = evt.clientX - (_this.width - _this._minFrameWidth);
  57294. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onRightHandlePointerUp);
  57295. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onRightHandlePointerMove);
  57296. };
  57297. this._onRightHandlePointerMove = function (evt) {
  57298. var slack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  57299. var xLimit = _this_1._mouseStartPointX - slack;
  57300. _this_1._moveRightHandle(evt, xLimit);
  57301. };
  57302. this._moveRightHandle = function (evt, xLimit) {
  57303. // tslint:disable-next-line: no-this-assignment
  57304. var _this = _this_1;
  57305. if (_this.mouseXLimit) {
  57306. if (!_this._isResizingRight() || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientX < xLimit) {
  57307. return;
  57308. }
  57309. if (_this._isResizingRight()) {
  57310. evt.stopPropagation();
  57311. var distanceMouseMoved = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57312. _this._expandRight(distanceMouseMoved, evt.clientX);
  57313. _this._mouseStartPointX = evt.clientX;
  57314. }
  57315. }
  57316. };
  57317. this._onRightHandlePointerUp = function (evt) {
  57318. // tslint:disable-next-line: no-this-assignment
  57319. var _this = _this_1;
  57320. if (_this._isResizingRight()) {
  57321. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  57322. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onRightHandlePointerUp);
  57323. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onRightHandlePointerMove);
  57324. _this.cleanUpResizing(evt);
  57325. }
  57326. };
  57327. this._onBottomHandlePointerDown = function (evt) {
  57328. // tslint:disable-next-line: no-this-assignment
  57329. var _this = _this_1;
  57330. if (_this.isCollapsed) {
  57331. return;
  57332. }
  57333. _this.initResizing(evt);
  57334. _this._resizingDirection = ResizingDirection.Bottom;
  57335. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onBottomHandlePointerMove);
  57336. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onBottomHandlePointerUp);
  57337. };
  57338. this._onBottomHandlePointerMove = function (evt) {
  57339. var slack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  57340. var yLimit = _this_1._mouseStartPointY - slack;
  57341. _this_1._moveBottomHandle(evt, yLimit);
  57342. };
  57343. this._moveBottomHandle = function (evt, yLimit) {
  57344. // tslint:disable-next-line: no-this-assignment
  57345. var _this = _this_1;
  57346. if (_this._resizingDirection !== ResizingDirection.Bottom || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientY < yLimit) {
  57347. return;
  57348. }
  57349. if (_this._resizingDirection === ResizingDirection.Bottom) {
  57350. evt.stopPropagation();
  57351. var distanceMouseMoved = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57352. _this._expandBottom(distanceMouseMoved);
  57353. _this._mouseStartPointY = evt.clientY;
  57354. }
  57355. };
  57356. this._onBottomHandlePointerUp = function (evt) {
  57357. // tslint:disable-next-line: no-this-assignment
  57358. var _this = _this_1;
  57359. if (_this._resizingDirection === ResizingDirection.Bottom) {
  57360. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  57361. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onBottomHandlePointerMove);
  57362. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onBottomHandlePointerUp);
  57363. _this.cleanUpResizing(evt);
  57364. }
  57365. };
  57366. this._onLeftHandlePointerDown = function (evt) {
  57367. // tslint:disable-next-line: no-this-assignment
  57368. var _this = _this_1;
  57369. if (_this.isCollapsed) {
  57370. return;
  57371. }
  57372. _this.initResizing(evt);
  57373. _this._resizingDirection = ResizingDirection.Left;
  57374. _this.mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
  57375. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onLeftHandlePointerUp);
  57376. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onLeftHandlePointerMove);
  57377. };
  57378. this._onLeftHandlePointerMove = function (evt) {
  57379. var slack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  57380. var xLimit = _this_1._mouseStartPointX + slack;
  57381. _this_1._moveLeftHandle(evt, xLimit);
  57382. };
  57383. this._moveLeftHandle = function (evt, xLimit) {
  57384. // tslint:disable-next-line: no-this-assignment
  57385. var _this = _this_1;
  57386. if (_this.mouseXLimit) {
  57387. if (_this._resizingDirection !== ResizingDirection.Left || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientX > xLimit) {
  57388. return;
  57389. }
  57390. if (_this._resizingDirection === ResizingDirection.Left) {
  57391. evt.stopPropagation();
  57392. var distanceMouseMoved = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57393. _this._expandLeft(distanceMouseMoved);
  57394. _this._mouseStartPointX = evt.clientX;
  57395. }
  57396. }
  57397. };
  57398. this._onLeftHandlePointerUp = function (evt) {
  57399. // tslint:disable-next-line: no-this-assignment
  57400. var _this = _this_1;
  57401. if (_this._resizingDirection === ResizingDirection.Left) {
  57402. _this.x = parseFloat(_this.element.style.left.replace("px", ""));
  57403. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  57404. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onLeftHandlePointerUp);
  57405. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onLeftHandlePointerMove);
  57406. _this.cleanUpResizing(evt);
  57407. }
  57408. };
  57409. this._onTopHandlePointerDown = function (evt) {
  57410. // tslint:disable-next-line: no-this-assignment
  57411. var _this = _this_1;
  57412. if (_this.isCollapsed) {
  57413. return;
  57414. }
  57415. _this.initResizing(evt);
  57416. _this._resizingDirection = ResizingDirection.Top;
  57417. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopHandlePointerUp);
  57418. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onTopHandlePointerMove);
  57419. };
  57420. this._onTopHandlePointerMove = function (evt) {
  57421. var slack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  57422. var yLimit = _this_1._mouseStartPointY + slack;
  57423. _this_1._moveTopHandle(evt, yLimit);
  57424. };
  57425. this._moveTopHandle = function (evt, yLimit) {
  57426. // tslint:disable-next-line: no-this-assignment
  57427. var _this = _this_1;
  57428. if (!_this._isResizingTop() || _this._mouseStartPointX === null || _this._mouseStartPointY === null || evt.clientY > yLimit) {
  57429. return;
  57430. }
  57431. if (_this._isResizingTop()) {
  57432. evt.stopPropagation();
  57433. var distanceMouseMoved = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57434. _this._expandTop(distanceMouseMoved);
  57435. _this._mouseStartPointY = evt.clientY;
  57436. }
  57437. };
  57438. this._onTopHandlePointerUp = function (evt) {
  57439. // tslint:disable-next-line: no-this-assignment
  57440. var _this = _this_1;
  57441. if (_this._isResizingTop()) {
  57442. _this.y = parseFloat(_this.element.style.top.replace("px", ""));
  57443. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  57444. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onTopHandlePointerUp);
  57445. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onTopHandlePointerMove);
  57446. _this.cleanUpResizing(evt);
  57447. }
  57448. };
  57449. this._onTopRightHandlePointerDown = function (evt) {
  57450. // tslint:disable-next-line: no-this-assignment
  57451. var _this = _this_1;
  57452. if (_this.isCollapsed) {
  57453. return;
  57454. }
  57455. _this.initResizing(evt);
  57456. _this._resizingDirection = ResizingDirection.TopRight;
  57457. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopRightHandlePointerUp);
  57458. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onTopRightHandlePointerMove);
  57459. };
  57460. this._onTopRightHandlePointerMove = function (evt) {
  57461. var topSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  57462. var yLimit = _this_1._mouseStartPointY + topSlack;
  57463. var rightSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  57464. var xLimit = _this_1._mouseStartPointX - rightSlack;
  57465. _this_1._moveTopRightHandle(evt, xLimit, yLimit);
  57466. };
  57467. this._moveTopRightHandle = function (evt, xLimit, yLimit) {
  57468. // tslint:disable-next-line: no-this-assignment
  57469. var _this = _this_1;
  57470. if (!(_this._isResizingTop() && _this._isResizingRight()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  57471. return;
  57472. }
  57473. if (_this._isResizingRight() && _this._isResizingTop()) {
  57474. evt.stopPropagation();
  57475. if (evt.clientY < yLimit && evt.clientX > xLimit) { // able to move in X and Y
  57476. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57477. _this._expandRight(distanceMouseMovedX, evt.clientX);
  57478. _this._mouseStartPointX = evt.clientX;
  57479. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57480. _this._expandTop(distanceMouseMovedY);
  57481. _this._mouseStartPointY = evt.clientY;
  57482. }
  57483. else if (evt.clientY > yLimit && evt.clientX > xLimit) { // able to move in X but not Y
  57484. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57485. _this._expandRight(distanceMouseMovedX, evt.clientX);
  57486. _this._mouseStartPointX = evt.clientX;
  57487. }
  57488. else if (evt.clientY < yLimit && evt.clientX < xLimit) { // able to move in Y but not X
  57489. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57490. _this._expandTop(distanceMouseMovedY);
  57491. _this._mouseStartPointY = evt.clientY;
  57492. }
  57493. }
  57494. };
  57495. this._onTopRightHandlePointerUp = function (evt) {
  57496. evt.stopPropagation();
  57497. // tslint:disable-next-line: no-this-assignment
  57498. var _this = _this_1;
  57499. if (_this._resizingDirection === ResizingDirection.TopRight) {
  57500. _this.y = parseFloat(_this.element.style.top.replace("px", ""));
  57501. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  57502. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  57503. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onTopRightHandlePointerUp);
  57504. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onTopRightHandlePointerMove);
  57505. _this.cleanUpResizing(evt);
  57506. }
  57507. };
  57508. this._onBottomRightHandlePointerDown = function (evt) {
  57509. // tslint:disable-next-line: no-this-assignment
  57510. var _this = _this_1;
  57511. if (_this.isCollapsed) {
  57512. return;
  57513. }
  57514. _this.initResizing(evt);
  57515. _this._resizingDirection = ResizingDirection.BottomRight;
  57516. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onBottomRightHandlePointerUp);
  57517. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onBottomRightHandlePointerMove);
  57518. };
  57519. this._onBottomRightHandlePointerMove = function (evt) {
  57520. var bottomSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  57521. var yLimit = _this_1._mouseStartPointY - bottomSlack;
  57522. var rightSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  57523. var xLimit = _this_1._mouseStartPointX - rightSlack;
  57524. _this_1._moveBottomRightHandle(evt, xLimit, yLimit);
  57525. };
  57526. this._moveBottomRightHandle = function (evt, xLimit, yLimit) {
  57527. // tslint:disable-next-line: no-this-assignment
  57528. var _this = _this_1;
  57529. if (!(_this._isResizingBottom() && _this._isResizingRight()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  57530. return;
  57531. }
  57532. if (_this._isResizingRight() && _this._isResizingBottom()) {
  57533. evt.stopPropagation();
  57534. if (evt.clientY > yLimit && evt.clientX > xLimit) { // able to move in X and Y
  57535. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57536. _this._expandRight(distanceMouseMovedX, evt.clientX);
  57537. _this._mouseStartPointX = evt.clientX;
  57538. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57539. _this._expandBottom(distanceMouseMovedY);
  57540. _this._mouseStartPointY = evt.clientY;
  57541. }
  57542. else if (evt.clientY < yLimit && evt.clientX > xLimit) { // able to move in X but not Y
  57543. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57544. _this._expandRight(distanceMouseMovedX, evt.clientX);
  57545. _this._mouseStartPointX = evt.clientX;
  57546. }
  57547. else if (evt.clientY > yLimit && evt.clientX < xLimit) { // able to move in Y but not X
  57548. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57549. _this._expandBottom(distanceMouseMovedY);
  57550. _this._mouseStartPointY = evt.clientY;
  57551. }
  57552. }
  57553. };
  57554. this._onBottomRightHandlePointerUp = function (evt) {
  57555. evt.stopPropagation();
  57556. // tslint:disable-next-line: no-this-assignment
  57557. var _this = _this_1;
  57558. if (_this._resizingDirection === ResizingDirection.BottomRight) {
  57559. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  57560. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  57561. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onBottomRightHandlePointerUp);
  57562. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onBottomRightHandlePointerMove);
  57563. _this.cleanUpResizing(evt);
  57564. }
  57565. };
  57566. this._onBottomLeftHandlePointerDown = function (evt) {
  57567. // tslint:disable-next-line: no-this-assignment
  57568. var _this = _this_1;
  57569. if (_this.isCollapsed) {
  57570. return;
  57571. }
  57572. _this.initResizing(evt);
  57573. _this._resizingDirection = ResizingDirection.BottomLeft;
  57574. _this.mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
  57575. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onBottomLeftHandlePointerUp);
  57576. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onBottomLeftHandlePointerMove);
  57577. };
  57578. this._onBottomLeftHandlePointerMove = function (evt) {
  57579. var bottomSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  57580. var yLimit = _this_1._mouseStartPointY - bottomSlack;
  57581. var leftSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  57582. var xLimit = _this_1._mouseStartPointX + leftSlack;
  57583. _this_1._moveBottomLeftHandle(evt, xLimit, yLimit);
  57584. };
  57585. this._moveBottomLeftHandle = function (evt, xLimit, yLimit) {
  57586. // tslint:disable-next-line: no-this-assignment
  57587. var _this = _this_1;
  57588. if (!(_this._isResizingBottom() && _this._isResizingLeft()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  57589. return;
  57590. }
  57591. if (_this._isResizingLeft() && _this._isResizingBottom()) {
  57592. evt.stopPropagation();
  57593. if (evt.clientY > yLimit && evt.clientX < xLimit) { // able to move in X and Y
  57594. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57595. _this._expandLeft(distanceMouseMovedX);
  57596. _this._mouseStartPointX = evt.clientX;
  57597. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57598. _this._expandBottom(distanceMouseMovedY);
  57599. _this._mouseStartPointY = evt.clientY;
  57600. }
  57601. else if (evt.clientY < yLimit && evt.clientX < xLimit) { // able to move in X but not Y
  57602. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57603. _this._expandLeft(distanceMouseMovedX);
  57604. _this._mouseStartPointX = evt.clientX;
  57605. }
  57606. else if (evt.clientY > yLimit && evt.clientX > xLimit) { // able to move in Y but not X
  57607. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57608. _this._expandBottom(distanceMouseMovedY);
  57609. _this._mouseStartPointY = evt.clientY;
  57610. }
  57611. }
  57612. };
  57613. this._onBottomLeftHandlePointerUp = function (evt) {
  57614. evt.stopPropagation();
  57615. // tslint:disable-next-line: no-this-assignment
  57616. var _this = _this_1;
  57617. if (_this._resizingDirection === ResizingDirection.BottomLeft) {
  57618. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  57619. _this.x = parseFloat(_this.element.style.left.replace("px", ""));
  57620. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  57621. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onBottomLeftHandlePointerUp);
  57622. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onBottomLeftHandlePointerMove);
  57623. _this.cleanUpResizing(evt);
  57624. }
  57625. };
  57626. this._onTopLeftHandlePointerDown = function (evt) {
  57627. // tslint:disable-next-line: no-this-assignment
  57628. var _this = _this_1;
  57629. if (_this.isCollapsed) {
  57630. return;
  57631. }
  57632. _this.initResizing(evt);
  57633. _this._resizingDirection = ResizingDirection.TopLeft;
  57634. _this.mouseXLimit = evt.clientX + _this.width - _this._minFrameWidth;
  57635. _this._ownerCanvas.hostCanvas.addEventListener("pointerup", _this._onTopLeftHandlePointerUp);
  57636. _this._ownerCanvas.hostCanvas.addEventListener("pointermove", _this._onTopLeftHandlePointerMove);
  57637. };
  57638. this._onTopLeftHandlePointerMove = function (evt) {
  57639. var topSlack = (_this_1.element.offsetHeight - _this_1._minFrameHeight) * _this_1._ownerCanvas.zoom;
  57640. var yLimit = _this_1._mouseStartPointY + topSlack;
  57641. var leftSlack = (_this_1.element.offsetWidth - _this_1._minFrameWidth) * _this_1._ownerCanvas.zoom;
  57642. var xLimit = _this_1._mouseStartPointX + leftSlack;
  57643. _this_1._moveTopLeftHandle(evt, xLimit, yLimit);
  57644. };
  57645. this._moveTopLeftHandle = function (evt, xLimit, yLimit) {
  57646. // tslint:disable-next-line: no-this-assignment
  57647. var _this = _this_1;
  57648. if (!(_this._isResizingTop() && _this._isResizingLeft()) || _this._mouseStartPointX === null || _this._mouseStartPointY === null) {
  57649. return;
  57650. }
  57651. if (_this._isResizingLeft() && _this._isResizingTop()) {
  57652. evt.stopPropagation();
  57653. if (evt.clientY < yLimit && evt.clientX < xLimit) { // able to move in X and Y
  57654. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57655. _this._expandLeft(distanceMouseMovedX);
  57656. _this._mouseStartPointX = evt.clientX;
  57657. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57658. _this._expandTop(distanceMouseMovedY);
  57659. _this._mouseStartPointY = evt.clientY;
  57660. }
  57661. else if (evt.clientY > yLimit && evt.clientX < xLimit) { // able to move in X but not Y
  57662. var distanceMouseMovedX = (evt.clientX - _this._mouseStartPointX) / _this._ownerCanvas.zoom;
  57663. _this._expandLeft(distanceMouseMovedX);
  57664. _this._mouseStartPointX = evt.clientX;
  57665. }
  57666. else if (evt.clientY < yLimit && evt.clientX > xLimit) { // able to move in Y but not X
  57667. var distanceMouseMovedY = (evt.clientY - _this._mouseStartPointY) / _this._ownerCanvas.zoom;
  57668. _this._expandTop(distanceMouseMovedY);
  57669. _this._mouseStartPointY = evt.clientY;
  57670. }
  57671. }
  57672. };
  57673. this._onTopLeftHandlePointerUp = function (evt) {
  57674. evt.stopPropagation();
  57675. // tslint:disable-next-line: no-this-assignment
  57676. var _this = _this_1;
  57677. if (_this._resizingDirection === ResizingDirection.TopLeft) {
  57678. _this.y = parseFloat(_this.element.style.top.replace("px", ""));
  57679. _this.height = parseFloat(_this.element.style.height.replace("px", ""));
  57680. _this.x = parseFloat(_this.element.style.left.replace("px", ""));
  57681. _this.width = parseFloat(_this.element.style.width.replace("px", ""));
  57682. _this._ownerCanvas.hostCanvas.removeEventListener("pointerup", _this._onTopLeftHandlePointerUp);
  57683. _this._ownerCanvas.hostCanvas.removeEventListener("pointermove", _this._onTopLeftHandlePointerMove);
  57684. _this.cleanUpResizing(evt);
  57685. }
  57686. };
  57687. this._id = GraphFrame._FrameCounter++;
  57688. this._ownerCanvas = canvas;
  57689. var root = canvas.frameContainer;
  57690. this.element = root.ownerDocument.createElement("div");
  57691. this.element.classList.add("frame-box");
  57692. root.appendChild(this.element);
  57693. this._headerElement = root.ownerDocument.createElement("div");
  57694. this._headerElement.classList.add("frame-box-header");
  57695. this._headerElement.addEventListener("dblclick", function () {
  57696. _this_1.isCollapsed = !_this_1.isCollapsed;
  57697. });
  57698. this.element.appendChild(this._headerElement);
  57699. this._borderElement = root.ownerDocument.createElement("div");
  57700. this._borderElement.classList.add("frame-box-border");
  57701. this.element.appendChild(this._borderElement);
  57702. // add resizing side handles
  57703. var rightHandle = root.ownerDocument.createElement("div");
  57704. rightHandle.className = "handle right-handle";
  57705. this.element.appendChild(rightHandle);
  57706. rightHandle.addEventListener("pointerdown", this._onRightHandlePointerDown);
  57707. var leftHandle = root.ownerDocument.createElement("div");
  57708. leftHandle.className = "handle left-handle";
  57709. this.element.appendChild(leftHandle);
  57710. leftHandle.addEventListener("pointerdown", this._onLeftHandlePointerDown);
  57711. var bottomHandle = root.ownerDocument.createElement("div");
  57712. bottomHandle.className = "handle bottom-handle";
  57713. this.element.appendChild(bottomHandle);
  57714. bottomHandle.addEventListener("pointerdown", this._onBottomHandlePointerDown);
  57715. var topHandle = root.ownerDocument.createElement("div");
  57716. topHandle.className = "handle top-handle";
  57717. this.element.appendChild(topHandle);
  57718. topHandle.addEventListener("pointerdown", this._onTopHandlePointerDown);
  57719. var topRightCornerHandle = root.ownerDocument.createElement("div");
  57720. topRightCornerHandle.className = "handle right-handle top-right-corner-handle";
  57721. this.element.appendChild(topRightCornerHandle);
  57722. topRightCornerHandle.addEventListener("pointerdown", this._onTopRightHandlePointerDown);
  57723. var bottomRightCornerHandle = root.ownerDocument.createElement("div");
  57724. bottomRightCornerHandle.className = "handle right-handle bottom-right-corner-handle";
  57725. this.element.appendChild(bottomRightCornerHandle);
  57726. bottomRightCornerHandle.addEventListener("pointerdown", this._onBottomRightHandlePointerDown);
  57727. var topLeftCornerHandle = root.ownerDocument.createElement("div");
  57728. topLeftCornerHandle.className = "handle left-handle top-left-corner-handle";
  57729. this.element.appendChild(topLeftCornerHandle);
  57730. topLeftCornerHandle.addEventListener("pointerdown", this._onTopLeftHandlePointerDown);
  57731. var bottomLeftCornerHandle = root.ownerDocument.createElement("div");
  57732. bottomLeftCornerHandle.className = "handle left-handle bottom-left-corner-handle";
  57733. this.element.appendChild(bottomLeftCornerHandle);
  57734. bottomLeftCornerHandle.addEventListener("pointerdown", this._onBottomLeftHandlePointerDown);
  57735. // add header elements
  57736. this._headerTextElement = root.ownerDocument.createElement("div");
  57737. this._headerTextElement.classList.add("frame-box-header-title");
  57738. this._headerElement.appendChild(this._headerTextElement);
  57739. this._headerCollapseElement = root.ownerDocument.createElement("div");
  57740. this._headerCollapseElement.classList.add("frame-box-header-collapse");
  57741. this._headerCollapseElement.classList.add("frame-box-header-button");
  57742. this._headerCollapseElement.title = "Collapse";
  57743. this._headerCollapseElement.ondragstart = function () { return false; };
  57744. this._headerCollapseElement.addEventListener("pointerdown", function (evt) {
  57745. _this_1._headerCollapseElement.classList.add("down");
  57746. evt.stopPropagation();
  57747. });
  57748. this._headerCollapseElement.addEventListener("pointerup", function (evt) {
  57749. evt.stopPropagation();
  57750. _this_1._headerCollapseElement.classList.remove("down");
  57751. _this_1.isCollapsed = !_this_1.isCollapsed;
  57752. });
  57753. this._headerCollapseElement.innerHTML = this.CollapseSVG;
  57754. this._headerElement.appendChild(this._headerCollapseElement);
  57755. this._headerCloseElement = root.ownerDocument.createElement("div");
  57756. this._headerCloseElement.classList.add("frame-box-header-close");
  57757. this._headerCloseElement.classList.add("frame-box-header-button");
  57758. this._headerCloseElement.title = "Close";
  57759. this._headerCloseElement.ondragstart = function () { return false; };
  57760. this._headerCloseElement.addEventListener("pointerdown", function (evt) {
  57761. evt.stopPropagation();
  57762. });
  57763. this._headerCloseElement.addEventListener("pointerup", function (evt) {
  57764. evt.stopPropagation();
  57765. _this_1.dispose();
  57766. });
  57767. this._headerCloseElement.innerHTML = this.CloseSVG;
  57768. this._headerElement.appendChild(this._headerCloseElement);
  57769. this._portContainer = root.ownerDocument.createElement("div");
  57770. this._portContainer.classList.add("port-container");
  57771. this.element.appendChild(this._portContainer);
  57772. this._outputPortContainer = root.ownerDocument.createElement("div");
  57773. this._outputPortContainer.classList.add("outputsContainer");
  57774. this._portContainer.appendChild(this._outputPortContainer);
  57775. this._inputPortContainer = root.ownerDocument.createElement("div");
  57776. this._inputPortContainer.classList.add("inputsContainer");
  57777. this._portContainer.appendChild(this._inputPortContainer);
  57778. this.name = "Frame";
  57779. this.color = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color3"].FromInts(72, 72, 72);
  57780. if (candidate) {
  57781. this.x = parseFloat(candidate.style.left.replace("px", ""));
  57782. this.y = parseFloat(candidate.style.top.replace("px", ""));
  57783. this.width = parseFloat(candidate.style.width.replace("px", ""));
  57784. this.height = parseFloat(candidate.style.height.replace("px", ""));
  57785. this.cleanAccumulation();
  57786. }
  57787. this._headerTextElement.addEventListener("pointerdown", function (evt) { return _this_1._onDown(evt); });
  57788. this._headerTextElement.addEventListener("pointerup", function (evt) { return _this_1._onUp(evt); });
  57789. this._headerTextElement.addEventListener("pointermove", function (evt) { return _this_1._onMove(evt); });
  57790. this._onSelectionChangedObserver = canvas.globalState.onSelectionChangedObservable.add(function (node) {
  57791. if (node === _this_1) {
  57792. _this_1.element.classList.add("selected");
  57793. }
  57794. else {
  57795. _this_1.element.classList.remove("selected");
  57796. }
  57797. });
  57798. this._onGraphNodeRemovalObserver = canvas.globalState.onGraphNodeRemovalObservable.add(function (node) {
  57799. // remove node from this._nodes
  57800. var index = _this_1._nodes.indexOf(node);
  57801. if (index === -1) {
  57802. return;
  57803. }
  57804. else {
  57805. node.enclosingFrameId = -1;
  57806. _this_1._nodes.splice(index, 1);
  57807. }
  57808. });
  57809. this._onExposePortOnFrameObserver = canvas.globalState.onExposePortOnFrameObservable.add(function (node) {
  57810. if (_this_1.nodes.indexOf(node) === -1) {
  57811. return;
  57812. }
  57813. _this_1._redrawFramePorts();
  57814. });
  57815. this._commentsElement = document.createElement('div');
  57816. this._commentsElement.className = 'frame-comments';
  57817. this._commentsElement.style.color = 'white';
  57818. this._commentsElement.style.fontSize = '16px';
  57819. var commentSpan = document.createElement('span');
  57820. commentSpan.className = "frame-comment-span";
  57821. this._commentsElement.appendChild(commentSpan);
  57822. this.element.appendChild(this._commentsElement);
  57823. // Get nodes
  57824. if (!doNotCaptureNodes) {
  57825. this.refresh();
  57826. }
  57827. }
  57828. Object.defineProperty(GraphFrame.prototype, "id", {
  57829. get: function () {
  57830. return this._id;
  57831. },
  57832. enumerable: false,
  57833. configurable: true
  57834. });
  57835. Object.defineProperty(GraphFrame.prototype, "isCollapsed", {
  57836. get: function () {
  57837. return this._isCollapsed;
  57838. },
  57839. set: function (value) {
  57840. if (this._isCollapsed === value) {
  57841. return;
  57842. }
  57843. this._isCollapsed = value;
  57844. this._ownerCanvas._frameIsMoving = true;
  57845. // Need to delegate the outside ports to the frame
  57846. if (value) {
  57847. this.element.classList.add("collapsed");
  57848. this._moveFrame((this.width - this.CollapsedWidth) / 2, 0);
  57849. this._createFramePorts();
  57850. this._markFramePortPositions();
  57851. }
  57852. else {
  57853. this.element.classList.remove("collapsed");
  57854. this._outputPortContainer.innerHTML = "";
  57855. this._inputPortContainer.innerHTML = "";
  57856. this._frameInPorts.forEach(function (p) {
  57857. p.dispose();
  57858. });
  57859. this._frameOutPorts.forEach(function (p) {
  57860. p.dispose();
  57861. });
  57862. this._controlledPorts.forEach(function (port) {
  57863. port.delegatedPort = null;
  57864. port.refresh();
  57865. });
  57866. this._frameInPorts = [];
  57867. this._frameOutPorts = [];
  57868. this._controlledPorts = [];
  57869. this._onNodeLinkDisposedObservers = [];
  57870. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  57871. var node = _a[_i];
  57872. node.isVisible = true;
  57873. }
  57874. this._moveFrame(-(this.width - this.CollapsedWidth) / 2, 0);
  57875. }
  57876. this.cleanAccumulation();
  57877. this._ownerCanvas._frameIsMoving = false;
  57878. // UI
  57879. if (this._isCollapsed) {
  57880. this._headerCollapseElement.innerHTML = this.ExpandSVG;
  57881. this._headerCollapseElement.title = "Expand";
  57882. }
  57883. else {
  57884. this._headerCollapseElement.innerHTML = this.CollapseSVG;
  57885. this._headerCollapseElement.title = "Collapse";
  57886. }
  57887. this.onExpandStateChanged.notifyObservers(this);
  57888. },
  57889. enumerable: false,
  57890. configurable: true
  57891. });
  57892. GraphFrame.prototype._createInputPort = function (port, node) {
  57893. var localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, node, this._inputPortContainer, null, this._ownerCanvas.globalState, true, GraphFrame._FramePortCounter++, this.id);
  57894. this._frameInPorts.push(localPort);
  57895. port.delegatedPort = localPort;
  57896. this._controlledPorts.push(port);
  57897. port.exposedPortPosition = this._exposedInPorts.findIndex(function (nodePort) { return nodePort === port; });
  57898. if (port.exposedPortPosition < 0) {
  57899. this._exposedInPorts.push(port);
  57900. port.exposedPortPosition = this._exposedInPorts.length - 1;
  57901. }
  57902. };
  57903. // Mark ports with FramePortPosition for re-arrangement support
  57904. GraphFrame.prototype._markFramePortPositions = function () {
  57905. // mark FrameInPorts
  57906. if (this._frameInPorts.length == 2) {
  57907. this._frameInPorts[0].framePortPosition = FramePortPosition.Top;
  57908. this._frameInPorts[1].framePortPosition = FramePortPosition.Bottom;
  57909. }
  57910. else {
  57911. for (var i = 0; i < this._frameInPorts.length; i++) {
  57912. var port = this._frameInPorts[i];
  57913. if (i === 0) {
  57914. port.framePortPosition = FramePortPosition.Top;
  57915. }
  57916. else if (i === this._frameInPorts.length - 1) {
  57917. port.framePortPosition = FramePortPosition.Bottom;
  57918. }
  57919. else {
  57920. port.framePortPosition = FramePortPosition.Middle;
  57921. }
  57922. }
  57923. }
  57924. // mark FrameOutPorts
  57925. if (this._frameOutPorts.length == 2) {
  57926. this._frameOutPorts[0].framePortPosition = FramePortPosition.Top;
  57927. this._frameOutPorts[1].framePortPosition = FramePortPosition.Bottom;
  57928. }
  57929. else {
  57930. for (var i = 0; i < this._frameOutPorts.length; i++) {
  57931. var port = this._frameOutPorts[i];
  57932. if (i === 0) {
  57933. port.framePortPosition = FramePortPosition.Top;
  57934. }
  57935. else if (i === this._frameInPorts.length - 1) {
  57936. port.framePortPosition = FramePortPosition.Bottom;
  57937. }
  57938. else {
  57939. port.framePortPosition = FramePortPosition.Middle;
  57940. }
  57941. }
  57942. }
  57943. };
  57944. GraphFrame.prototype._createFramePorts = function () {
  57945. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  57946. var node = _a[_i];
  57947. node.isVisible = false;
  57948. }
  57949. for (var i = 0; i < this._exposedOutPorts.length;) { // Output
  57950. var port = this._exposedOutPorts[i];
  57951. if (port.node === null || port.node.enclosingFrameId != this.id) {
  57952. if (this.removePortFromExposedWithNode(port, this._exposedOutPorts))
  57953. continue;
  57954. }
  57955. else {
  57956. if (!this.createOutputPorts(port, port.node) && this.removePortFromExposedWithNode(port, this._exposedOutPorts)) {
  57957. continue;
  57958. }
  57959. }
  57960. ++i;
  57961. }
  57962. for (var i = 0; i < this._exposedInPorts.length;) { // Input
  57963. var port = this._exposedInPorts[i];
  57964. if (port.node === null || port.node.enclosingFrameId != this.id) {
  57965. if (this.removePortFromExposedWithNode(port, this._exposedInPorts)) {
  57966. continue;
  57967. }
  57968. }
  57969. else {
  57970. if (!this.createInputPorts(port, port.node) && this.removePortFromExposedWithNode(port, this._exposedInPorts)) {
  57971. continue;
  57972. }
  57973. }
  57974. ++i;
  57975. }
  57976. for (var _b = 0, _c = this._nodes; _b < _c.length; _b++) {
  57977. var node = _c[_b];
  57978. var _loop_1 = function (port_1) {
  57979. port_1.exposedPortPosition = this_1._exposedOutPorts.findIndex(function (nodePort) { return nodePort === port_1; });
  57980. if (port_1.exposedPortPosition < 0) {
  57981. if (this_1.createOutputPorts(port_1, node)) {
  57982. port_1.node.enclosingFrameId = this_1.id;
  57983. this_1._exposedOutPorts.push(port_1);
  57984. port_1.exposedPortPosition = this_1._exposedOutPorts.length - 1;
  57985. }
  57986. }
  57987. };
  57988. var this_1 = this;
  57989. for (var _d = 0, _e = node.outputPorts; _d < _e.length; _d++) {
  57990. var port_1 = _e[_d];
  57991. _loop_1(port_1);
  57992. }
  57993. for (var _f = 0, _g = node.inputPorts; _f < _g.length; _f++) { // Input
  57994. var port = _g[_f];
  57995. port.exposedPortPosition = this._exposedInPorts.findIndex(function (nodePort) { return nodePort === port; });
  57996. if (port.exposedPortPosition < 0) {
  57997. this.createInputPorts(port, node);
  57998. }
  57999. }
  58000. }
  58001. };
  58002. GraphFrame.prototype.removePortFromExposedWithNode = function (port, exposedPorts) {
  58003. var index = exposedPorts.findIndex(function (nodePort) { return nodePort === port; });
  58004. if (index >= 0) {
  58005. exposedPorts.splice(index, 1);
  58006. port.exposedPortPosition = -1;
  58007. return true;
  58008. }
  58009. return false;
  58010. };
  58011. GraphFrame.prototype.removePortFromExposedWithLink = function (nodeLink, exposedPorts) {
  58012. var aPort = exposedPorts.findIndex(function (nodePort) { return nodePort === nodeLink.portA; });
  58013. var bPort = exposedPorts.findIndex(function (nodePort) { return nodePort === nodeLink.portB; });
  58014. if (aPort >= 0) {
  58015. exposedPorts.splice(aPort, 1);
  58016. nodeLink.portA.exposedPortPosition = -1;
  58017. }
  58018. else if (bPort >= 0) {
  58019. exposedPorts.splice(bPort, 1);
  58020. if (nodeLink.portB) {
  58021. nodeLink.portB.exposedPortPosition = -1;
  58022. }
  58023. }
  58024. };
  58025. GraphFrame.prototype.createInputPorts = function (port, node) {
  58026. var _this_1 = this;
  58027. if (port.connectionPoint.isConnected) {
  58028. var portAdded = false;
  58029. for (var _i = 0, _a = node.links; _i < _a.length; _i++) {
  58030. var link = _a[_i];
  58031. if (link.portB === port && this.nodes.indexOf(link.nodeA) === -1) {
  58032. this._createInputPort(port, node);
  58033. link.isVisible = true;
  58034. portAdded = true;
  58035. var onLinkDisposedObserver = link.onDisposedObservable.add(function (nodeLink) {
  58036. _this_1.removePortFromExposedWithLink(nodeLink, _this_1._exposedInPorts);
  58037. _this_1._redrawFramePorts();
  58038. });
  58039. this._onNodeLinkDisposedObservers.push(onLinkDisposedObserver);
  58040. }
  58041. }
  58042. if (portAdded)
  58043. return true;
  58044. }
  58045. else if (port.exposedOnFrame) {
  58046. this._createInputPort(port, node);
  58047. return true;
  58048. }
  58049. return false;
  58050. };
  58051. GraphFrame.prototype.createOutputPorts = function (port, node) {
  58052. var _this_1 = this;
  58053. if (port.connectionPoint.hasEndpoints) {
  58054. var portAdded = false;
  58055. for (var _i = 0, _a = node.links; _i < _a.length; _i++) {
  58056. var link = _a[_i];
  58057. if (link.portA === port && this.nodes.indexOf(link.nodeB) === -1) {
  58058. var localPort = void 0;
  58059. if (!portAdded) {
  58060. portAdded = true;
  58061. localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, link.nodeA, this._outputPortContainer, null, this._ownerCanvas.globalState, false, GraphFrame._FramePortCounter++, this.id);
  58062. this._frameOutPorts.push(localPort);
  58063. link.isVisible = true;
  58064. var onLinkDisposedObserver = link.onDisposedObservable.add(function (nodeLink) {
  58065. _this_1.removePortFromExposedWithLink(nodeLink, _this_1._exposedOutPorts);
  58066. _this_1._redrawFramePorts();
  58067. });
  58068. this._onNodeLinkDisposedObservers.push(onLinkDisposedObserver);
  58069. }
  58070. else if (this.nodes.indexOf(link.nodeB) === -1) {
  58071. link.isVisible = true;
  58072. localPort = this.ports.filter(function (p) { return p.connectionPoint === port.connectionPoint; })[0];
  58073. }
  58074. else {
  58075. localPort = this.ports.filter(function (p) { return p.connectionPoint === port.connectionPoint; })[0];
  58076. }
  58077. port.delegatedPort = localPort;
  58078. this._controlledPorts.push(port);
  58079. }
  58080. else if (port.exposedPortPosition >= 0 && !portAdded) {
  58081. var localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, node, this._outputPortContainer, null, this._ownerCanvas.globalState, false, GraphFrame._FramePortCounter++, this.id);
  58082. this._frameOutPorts.push(localPort);
  58083. port.delegatedPort = localPort;
  58084. this._controlledPorts.push(port);
  58085. portAdded = true;
  58086. }
  58087. }
  58088. if (portAdded)
  58089. return true;
  58090. }
  58091. else if (port.exposedOnFrame) {
  58092. var localPort = _frameNodePort__WEBPACK_IMPORTED_MODULE_3__["FrameNodePort"].CreateFrameNodePortElement(port.connectionPoint, node, this._outputPortContainer, null, this._ownerCanvas.globalState, false, GraphFrame._FramePortCounter++, this.id);
  58093. this._frameOutPorts.push(localPort);
  58094. port.delegatedPort = localPort;
  58095. this._controlledPorts.push(port);
  58096. return true;
  58097. }
  58098. return false;
  58099. };
  58100. GraphFrame.prototype._redrawFramePorts = function () {
  58101. if (!this.isCollapsed) {
  58102. return;
  58103. }
  58104. this._outputPortContainer.innerHTML = "";
  58105. this._inputPortContainer.innerHTML = "";
  58106. this.ports.forEach(function (framePort) {
  58107. framePort.dispose();
  58108. });
  58109. this._controlledPorts.forEach(function (port) {
  58110. port.delegatedPort = null;
  58111. port.refresh();
  58112. });
  58113. this._frameInPorts = [];
  58114. this._frameOutPorts = [];
  58115. this._controlledPorts = [];
  58116. this._createFramePorts();
  58117. this.ports.forEach(function (framePort) { return framePort.node._refreshLinks(); });
  58118. };
  58119. Object.defineProperty(GraphFrame.prototype, "nodes", {
  58120. get: function () {
  58121. return this._nodes;
  58122. },
  58123. enumerable: false,
  58124. configurable: true
  58125. });
  58126. Object.defineProperty(GraphFrame.prototype, "ports", {
  58127. get: function () {
  58128. return this._frameInPorts.concat(this._frameOutPorts);
  58129. },
  58130. enumerable: false,
  58131. configurable: true
  58132. });
  58133. Object.defineProperty(GraphFrame.prototype, "name", {
  58134. get: function () {
  58135. return this._name;
  58136. },
  58137. set: function (value) {
  58138. this._name = value;
  58139. this._headerTextElement.innerHTML = value;
  58140. },
  58141. enumerable: false,
  58142. configurable: true
  58143. });
  58144. Object.defineProperty(GraphFrame.prototype, "color", {
  58145. get: function () {
  58146. return this._color;
  58147. },
  58148. set: function (value) {
  58149. this._color = value;
  58150. this._headerElement.style.background = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 1)";
  58151. this._headerElement.style.borderColor = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 1)";
  58152. this.element.style.background = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 0.7)";
  58153. },
  58154. enumerable: false,
  58155. configurable: true
  58156. });
  58157. Object.defineProperty(GraphFrame.prototype, "x", {
  58158. get: function () {
  58159. return this._x;
  58160. },
  58161. set: function (value) {
  58162. if (this._x === value) {
  58163. return;
  58164. }
  58165. this._x = value;
  58166. this._gridAlignedX = this._ownerCanvas.getGridPosition(value);
  58167. this.element.style.left = this._gridAlignedX + "px";
  58168. },
  58169. enumerable: false,
  58170. configurable: true
  58171. });
  58172. Object.defineProperty(GraphFrame.prototype, "y", {
  58173. get: function () {
  58174. return this._y;
  58175. },
  58176. set: function (value) {
  58177. if (this._y === value) {
  58178. return;
  58179. }
  58180. this._y = value;
  58181. this._gridAlignedY = this._ownerCanvas.getGridPosition(value);
  58182. this.element.style.top = this._gridAlignedY + "px";
  58183. },
  58184. enumerable: false,
  58185. configurable: true
  58186. });
  58187. Object.defineProperty(GraphFrame.prototype, "width", {
  58188. get: function () {
  58189. return this._width;
  58190. },
  58191. set: function (value) {
  58192. if (this._width === value) {
  58193. return;
  58194. }
  58195. var viableWidth = value > this._minFrameWidth ? value : this._minFrameWidth;
  58196. this._width = viableWidth;
  58197. var gridAlignedRight = this._ownerCanvas.getGridPositionCeil(viableWidth + this._gridAlignedX);
  58198. this.element.style.width = gridAlignedRight - this._gridAlignedX + "px";
  58199. },
  58200. enumerable: false,
  58201. configurable: true
  58202. });
  58203. Object.defineProperty(GraphFrame.prototype, "height", {
  58204. get: function () {
  58205. return this._height;
  58206. },
  58207. set: function (value) {
  58208. if (this._height === value) {
  58209. return;
  58210. }
  58211. this._height = value;
  58212. var gridAlignedBottom = this._ownerCanvas.getGridPositionCeil(value + this._gridAlignedY);
  58213. this.element.style.height = gridAlignedBottom - this._gridAlignedY + "px";
  58214. },
  58215. enumerable: false,
  58216. configurable: true
  58217. });
  58218. Object.defineProperty(GraphFrame.prototype, "comments", {
  58219. get: function () {
  58220. return this._comments;
  58221. },
  58222. set: function (comments) {
  58223. if (comments && !this._comments && comments.length > 0) {
  58224. this.element.style.gridTemplateRows = "40px min-content 1fr";
  58225. this._borderElement.style.gridRow = "1 / span 3";
  58226. this._portContainer.style.gridRow = "3";
  58227. this._commentsElement.classList.add("has-comments");
  58228. }
  58229. else if (!comments) {
  58230. this.element.style.gridTemplateRows = "40px calc(100% - 40px)";
  58231. this._borderElement.style.gridRow = "1 / span 2";
  58232. this._portContainer.style.gridRow = "2";
  58233. this._commentsElement.classList.remove('has-comments');
  58234. }
  58235. if (comments === "" || (comments && comments.length >= 0)) {
  58236. this._commentsElement.children[0].innerText = comments;
  58237. }
  58238. this.height = this._borderElement.offsetHeight;
  58239. this._comments = comments;
  58240. this.updateMinHeightWithComments();
  58241. },
  58242. enumerable: false,
  58243. configurable: true
  58244. });
  58245. GraphFrame.prototype.refresh = function () {
  58246. this._nodes = [];
  58247. this._ownerCanvas.globalState.onFrameCreatedObservable.notifyObservers(this);
  58248. };
  58249. GraphFrame.prototype.addNode = function (node) {
  58250. var index = this.nodes.indexOf(node);
  58251. if (index === -1) {
  58252. this.nodes.push(node);
  58253. }
  58254. };
  58255. GraphFrame.prototype.removeNode = function (node) {
  58256. var index = this.nodes.indexOf(node);
  58257. if (index > -1) {
  58258. node.enclosingFrameId = -1;
  58259. this.nodes.splice(index, 1);
  58260. }
  58261. };
  58262. GraphFrame.prototype.syncNode = function (node) {
  58263. if (this.isCollapsed) {
  58264. return;
  58265. }
  58266. if (node.isOverlappingFrame(this)) {
  58267. this.addNode(node);
  58268. }
  58269. else {
  58270. this.removeNode(node);
  58271. }
  58272. };
  58273. GraphFrame.prototype.cleanAccumulation = function () {
  58274. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  58275. var selectedNode = _a[_i];
  58276. selectedNode.cleanAccumulation();
  58277. }
  58278. this.x = this._ownerCanvas.getGridPosition(this.x);
  58279. this.y = this._ownerCanvas.getGridPosition(this.y);
  58280. };
  58281. GraphFrame.prototype._onDown = function (evt) {
  58282. evt.stopPropagation();
  58283. this._mouseStartPointX = evt.clientX;
  58284. this._mouseStartPointY = evt.clientY;
  58285. this._headerTextElement.setPointerCapture(evt.pointerId);
  58286. this._ownerCanvas.globalState.onSelectionChangedObservable.notifyObservers(this);
  58287. this._ownerCanvas._frameIsMoving = true;
  58288. this.move(this._ownerCanvas.getGridPosition(this.x), this._ownerCanvas.getGridPosition(this.y));
  58289. };
  58290. GraphFrame.prototype.move = function (newX, newY, align) {
  58291. if (align === void 0) { align = true; }
  58292. var oldX = this.x;
  58293. var oldY = this.y;
  58294. this.x = newX;
  58295. this.y = newY;
  58296. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  58297. var selectedNode = _a[_i];
  58298. selectedNode.x += this.x - oldX;
  58299. selectedNode.y += this.y - oldY;
  58300. if (align) {
  58301. selectedNode.cleanAccumulation(true);
  58302. }
  58303. }
  58304. };
  58305. GraphFrame.prototype._onUp = function (evt) {
  58306. evt.stopPropagation();
  58307. this.cleanAccumulation();
  58308. this._mouseStartPointX = null;
  58309. this._mouseStartPointY = null;
  58310. this._headerTextElement.releasePointerCapture(evt.pointerId);
  58311. this._ownerCanvas._frameIsMoving = false;
  58312. };
  58313. GraphFrame.prototype._moveFrame = function (offsetX, offsetY) {
  58314. this.x += offsetX;
  58315. this.y += offsetY;
  58316. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  58317. var selectedNode = _a[_i];
  58318. selectedNode.x += offsetX;
  58319. selectedNode.y += offsetY;
  58320. }
  58321. };
  58322. GraphFrame.prototype._onMove = function (evt) {
  58323. if (this._mouseStartPointX === null || this._mouseStartPointY === null || evt.ctrlKey || this._frameIsResizing) {
  58324. return;
  58325. }
  58326. var newX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
  58327. var newY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
  58328. this._moveFrame(newX, newY);
  58329. this._mouseStartPointX = evt.clientX;
  58330. this._mouseStartPointY = evt.clientY;
  58331. evt.stopPropagation();
  58332. };
  58333. GraphFrame.prototype.moveFramePortUp = function (nodePort) {
  58334. var _a, _b;
  58335. var elementsArray;
  58336. if (nodePort.isInput) {
  58337. if (this._inputPortContainer.children.length < 2) {
  58338. return;
  58339. }
  58340. elementsArray = Array.from(this._inputPortContainer.childNodes);
  58341. var indexInContainer = this._frameInPorts.findIndex(function (framePort) { return framePort === nodePort; });
  58342. _a = [this._exposedInPorts[indexInContainer], this._exposedInPorts[indexInContainer - 1]], this._exposedInPorts[indexInContainer - 1] = _a[0], this._exposedInPorts[indexInContainer] = _a[1]; // swap idicies
  58343. this._movePortUp(elementsArray, nodePort, this._frameInPorts);
  58344. }
  58345. else {
  58346. if (this._outputPortContainer.children.length < 2) {
  58347. return;
  58348. }
  58349. elementsArray = Array.from(this._outputPortContainer.childNodes);
  58350. var indexInContainer = this._frameOutPorts.findIndex(function (framePort) { return framePort === nodePort; });
  58351. _b = [this._exposedOutPorts[indexInContainer], this._exposedOutPorts[indexInContainer - 1]], this._exposedOutPorts[indexInContainer - 1] = _b[0], this._exposedOutPorts[indexInContainer] = _b[1]; // swap idicies
  58352. this._movePortUp(elementsArray, nodePort, this._frameOutPorts);
  58353. }
  58354. this.ports.forEach(function (framePort) { return framePort.node._refreshLinks(); });
  58355. };
  58356. GraphFrame.prototype._movePortUp = function (elementsArray, nodePort, framePortList) {
  58357. var _a;
  58358. var _b;
  58359. // update UI
  58360. var indexInElementArray = elementsArray.findIndex(function (elem) { return elem.dataset.framePortId === "" + nodePort.framePortId; });
  58361. if (indexInElementArray === 0) {
  58362. return;
  58363. }
  58364. var secondPortElement = elementsArray[indexInElementArray];
  58365. var firstPortElement = elementsArray[indexInElementArray - 1];
  58366. (_b = firstPortElement.parentElement) === null || _b === void 0 ? void 0 : _b.insertBefore(secondPortElement, firstPortElement);
  58367. // update Frame Port Container
  58368. var indexInContainer = framePortList.findIndex(function (framePort) { return framePort === nodePort; });
  58369. _a = [framePortList[indexInContainer], framePortList[indexInContainer - 1]], framePortList[indexInContainer - 1] = _a[0], framePortList[indexInContainer] = _a[1]; // swap idicies
  58370. //special case framePortList.length == 2
  58371. if (framePortList.length == 2) {
  58372. framePortList[1].framePortPosition = FramePortPosition.Bottom;
  58373. framePortList[0].framePortPosition = FramePortPosition.Top;
  58374. }
  58375. else {
  58376. // notify nodePort if it is now at Top (indexInElementArray === 1)
  58377. if (indexInElementArray === 1) {
  58378. framePortList[1].framePortPosition = FramePortPosition.Middle;
  58379. framePortList[0].framePortPosition = FramePortPosition.Top;
  58380. }
  58381. else if (indexInContainer === elementsArray.length - 1) {
  58382. framePortList[framePortList.length - 1].framePortPosition = FramePortPosition.Bottom;
  58383. framePortList[framePortList.length - 2].framePortPosition = FramePortPosition.Middle;
  58384. }
  58385. else {
  58386. nodePort.framePortPosition = FramePortPosition.Middle;
  58387. }
  58388. }
  58389. };
  58390. GraphFrame.prototype.moveFramePortDown = function (nodePort) {
  58391. var _a, _b;
  58392. var elementsArray;
  58393. if (nodePort.isInput) {
  58394. if (this._inputPortContainer.children.length < 2) {
  58395. return;
  58396. }
  58397. elementsArray = Array.from(this._inputPortContainer.childNodes);
  58398. var indexInContainer = this._frameInPorts.findIndex(function (framePort) { return framePort === nodePort; });
  58399. _a = [this._exposedInPorts[indexInContainer + 1], this._exposedInPorts[indexInContainer]], this._exposedInPorts[indexInContainer] = _a[0], this._exposedInPorts[indexInContainer + 1] = _a[1]; // swap idicies
  58400. this._movePortDown(elementsArray, nodePort, this._frameInPorts);
  58401. }
  58402. else {
  58403. if (this._outputPortContainer.children.length < 2) {
  58404. return;
  58405. }
  58406. elementsArray = Array.from(this._outputPortContainer.childNodes);
  58407. var indexInContainer = this._frameOutPorts.findIndex(function (framePort) { return framePort === nodePort; });
  58408. _b = [this._exposedOutPorts[indexInContainer + 1], this._exposedOutPorts[indexInContainer]], this._exposedOutPorts[indexInContainer] = _b[0], this._exposedOutPorts[indexInContainer + 1] = _b[1]; // swap idicies
  58409. this._movePortDown(elementsArray, nodePort, this._frameOutPorts);
  58410. }
  58411. this.ports.forEach(function (framePort) { return framePort.node._refreshLinks(); });
  58412. };
  58413. GraphFrame.prototype._movePortDown = function (elementsArray, nodePort, framePortList) {
  58414. var _a;
  58415. var _b;
  58416. // update UI
  58417. var indexInElementArray = elementsArray.findIndex(function (elem) { return elem.dataset.framePortId === "" + nodePort.framePortId; });
  58418. if (indexInElementArray === elementsArray.length - 1) {
  58419. return;
  58420. }
  58421. var firstPort = elementsArray[indexInElementArray];
  58422. var secondPort = elementsArray[indexInElementArray + 1];
  58423. (_b = firstPort.parentElement) === null || _b === void 0 ? void 0 : _b.insertBefore(secondPort, firstPort);
  58424. // update Frame Port Container
  58425. var indexInContainer = framePortList.findIndex(function (framePort) { return framePort === nodePort; });
  58426. _a = [framePortList[indexInContainer + 1], framePortList[indexInContainer]], framePortList[indexInContainer] = _a[0], framePortList[indexInContainer + 1] = _a[1]; // swap idicies
  58427. // notify nodePort if it is now at bottom (indexInContainer === elementsArray.length-2)
  58428. if (framePortList.length == 2) {
  58429. framePortList[0].framePortPosition = FramePortPosition.Top;
  58430. framePortList[1].framePortPosition = FramePortPosition.Bottom;
  58431. }
  58432. else {
  58433. if (indexInContainer === elementsArray.length - 2) {
  58434. framePortList[elementsArray.length - 2].framePortPosition = FramePortPosition.Middle;
  58435. framePortList[elementsArray.length - 1].framePortPosition = FramePortPosition.Bottom;
  58436. }
  58437. else if (indexInContainer === 0) {
  58438. framePortList[0].framePortPosition = FramePortPosition.Top;
  58439. framePortList[1].framePortPosition = FramePortPosition.Middle;
  58440. }
  58441. else {
  58442. nodePort.framePortPosition = FramePortPosition.Middle;
  58443. }
  58444. }
  58445. };
  58446. GraphFrame.prototype._isResizingTop = function () {
  58447. return this._resizingDirection === ResizingDirection.Top || this._resizingDirection === ResizingDirection.TopRight || this._resizingDirection === ResizingDirection.TopLeft;
  58448. };
  58449. GraphFrame.prototype._isResizingRight = function () {
  58450. return this._resizingDirection === ResizingDirection.Right || this._resizingDirection === ResizingDirection.TopRight || this._resizingDirection === ResizingDirection.BottomRight;
  58451. };
  58452. GraphFrame.prototype._isResizingBottom = function () {
  58453. return this._resizingDirection === ResizingDirection.Bottom || this._resizingDirection === ResizingDirection.BottomLeft || this._resizingDirection === ResizingDirection.BottomRight;
  58454. };
  58455. GraphFrame.prototype._isResizingLeft = function () {
  58456. return this._resizingDirection === ResizingDirection.Left || this._resizingDirection === ResizingDirection.TopLeft || this._resizingDirection === ResizingDirection.BottomLeft;
  58457. };
  58458. GraphFrame.prototype._expandLeft = function (widthModification) {
  58459. var frameElementWidth = parseFloat(this.element.style.width.replace("px", ""));
  58460. var frameElementLeft = parseFloat(this.element.style.left.replace("px", ""));
  58461. this.element.style.width = frameElementWidth - widthModification + "px";
  58462. this.element.style.left = frameElementLeft + widthModification + "px";
  58463. this.updateMinHeightWithComments();
  58464. };
  58465. GraphFrame.prototype._expandTop = function (heightModification) {
  58466. var frameElementHeight = parseFloat(this.element.style.height.replace("px", ""));
  58467. var frameElementTop = parseFloat(this.element.style.top.replace("px", ""));
  58468. this.element.style.height = frameElementHeight - heightModification + "px";
  58469. this.element.style.top = frameElementTop + heightModification + "px";
  58470. };
  58471. GraphFrame.prototype._expandRight = function (widthModification, x) {
  58472. var frameElementWidth = parseFloat(this.element.style.width.replace("px", ""));
  58473. if ((frameElementWidth + widthModification) > 20) {
  58474. this._mouseStartPointX = x;
  58475. this.element.style.width = frameElementWidth + widthModification + "px";
  58476. }
  58477. this.updateMinHeightWithComments();
  58478. };
  58479. GraphFrame.prototype._expandBottom = function (heightModification) {
  58480. var frameElementHeight = parseFloat(this.element.style.height.replace("px", ""));
  58481. this.element.style.height = frameElementHeight + heightModification + "px";
  58482. };
  58483. GraphFrame.prototype.dispose = function () {
  58484. var _a;
  58485. if (this.isCollapsed) {
  58486. while (this._nodes.length > 0) {
  58487. this._nodes[0].dispose();
  58488. }
  58489. this.isCollapsed = false;
  58490. }
  58491. else {
  58492. this._nodes.forEach(function (node) {
  58493. node.enclosingFrameId = -1;
  58494. });
  58495. }
  58496. if (this._onSelectionChangedObserver) {
  58497. this._ownerCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  58498. }
  58499. ;
  58500. if (this._onGraphNodeRemovalObserver) {
  58501. this._ownerCanvas.globalState.onGraphNodeRemovalObservable.remove(this._onGraphNodeRemovalObserver);
  58502. }
  58503. ;
  58504. if (this._onExposePortOnFrameObserver) {
  58505. this._ownerCanvas.globalState.onExposePortOnFrameObservable.remove(this._onExposePortOnFrameObserver);
  58506. }
  58507. ;
  58508. (_a = this.element.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild(this.element);
  58509. this._ownerCanvas.frames.splice(this._ownerCanvas.frames.indexOf(this), 1);
  58510. this.onExpandStateChanged.clear();
  58511. };
  58512. GraphFrame.prototype.serializePortData = function (exposedPorts) {
  58513. if (exposedPorts.length > 0) {
  58514. for (var i = 0; i < exposedPorts.length; ++i) {
  58515. exposedPorts[i].exposedPortPosition = i;
  58516. }
  58517. }
  58518. };
  58519. GraphFrame.prototype.serialize = function () {
  58520. this.serializePortData(this._exposedInPorts);
  58521. this.serializePortData(this._exposedOutPorts);
  58522. return {
  58523. x: this._x,
  58524. y: this._y,
  58525. width: this._width,
  58526. height: this._height,
  58527. color: this._color.asArray(),
  58528. name: this.name,
  58529. isCollapsed: true,
  58530. blocks: this.nodes.map(function (n) { return n.block.uniqueId; }),
  58531. comments: this._comments
  58532. };
  58533. };
  58534. GraphFrame.prototype.export = function () {
  58535. var state = this._ownerCanvas.globalState;
  58536. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_1__["SerializationTools"].Serialize(state.nodeMaterial, state, this);
  58537. _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].DownloadAsFile(state.hostDocument, json, this._name + ".json");
  58538. };
  58539. GraphFrame.Parse = function (serializationData, canvas, map) {
  58540. var newFrame = new GraphFrame(null, canvas, true);
  58541. var isCollapsed = !!serializationData.isCollapsed;
  58542. newFrame.x = serializationData.x;
  58543. newFrame.y = serializationData.y;
  58544. newFrame.width = serializationData.width;
  58545. newFrame.height = serializationData.height;
  58546. newFrame.name = serializationData.name;
  58547. newFrame.color = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color3"].FromArray(serializationData.color);
  58548. newFrame.comments = serializationData.comments;
  58549. if (serializationData.blocks && map) {
  58550. var _loop_2 = function () {
  58551. var actualId = map[blockId];
  58552. var node_1 = canvas.nodes.filter(function (n) { return n.block.uniqueId === actualId; });
  58553. if (node_1.length) {
  58554. newFrame.nodes.push(node_1[0]);
  58555. node_1[0].enclosingFrameId = newFrame.id;
  58556. }
  58557. };
  58558. for (var _i = 0, _a = serializationData.blocks; _i < _a.length; _i++) {
  58559. var blockId = _a[_i];
  58560. _loop_2();
  58561. }
  58562. }
  58563. else {
  58564. newFrame.refresh();
  58565. }
  58566. for (var _b = 0, _c = newFrame.nodes; _b < _c.length; _b++) {
  58567. var node = _c[_b];
  58568. for (var _d = 0, _e = node.outputPorts; _d < _e.length; _d++) { // Output
  58569. var port = _e[_d];
  58570. if (port.exposedOnFrame) {
  58571. if (port.exposedPortPosition !== -1) {
  58572. newFrame._exposedOutPorts[port.exposedPortPosition] = port;
  58573. }
  58574. }
  58575. }
  58576. for (var _f = 0, _g = node.inputPorts; _f < _g.length; _f++) { // Inports
  58577. var port = _g[_f];
  58578. if (port.exposedOnFrame) {
  58579. if (port.exposedPortPosition !== -1) {
  58580. newFrame._exposedInPorts[port.exposedPortPosition] = port;
  58581. }
  58582. }
  58583. }
  58584. }
  58585. newFrame.isCollapsed = isCollapsed;
  58586. if (isCollapsed) {
  58587. canvas._frameIsMoving = true;
  58588. newFrame._moveFrame(-(newFrame.width - newFrame.CollapsedWidth) / 2, 0);
  58589. var diff = serializationData.x - newFrame.x;
  58590. newFrame._moveFrame(diff, 0);
  58591. newFrame.cleanAccumulation();
  58592. for (var _h = 0, _j = newFrame.nodes; _h < _j.length; _h++) {
  58593. var selectedNode = _j[_h];
  58594. selectedNode.refresh();
  58595. }
  58596. canvas._frameIsMoving = false;
  58597. }
  58598. return newFrame;
  58599. };
  58600. GraphFrame._FrameCounter = 0;
  58601. GraphFrame._FramePortCounter = 0;
  58602. return GraphFrame;
  58603. }());
  58604. /***/ }),
  58605. /***/ "./diagram/graphNode.ts":
  58606. /*!******************************!*\
  58607. !*** ./diagram/graphNode.ts ***!
  58608. \******************************/
  58609. /*! exports provided: GraphNode */
  58610. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58611. "use strict";
  58612. __webpack_require__.r(__webpack_exports__);
  58613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphNode", function() { return GraphNode; });
  58614. /* harmony import */ var _propertyLedger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./propertyLedger */ "./diagram/propertyLedger.ts");
  58615. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58616. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58617. /* harmony import */ var _properties_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./properties/genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  58618. /* harmony import */ var _displayLedger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./displayLedger */ "./diagram/displayLedger.ts");
  58619. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  58620. var GraphNode = /** @class */ (function () {
  58621. function GraphNode(block, globalState) {
  58622. var _this = this;
  58623. this.block = block;
  58624. this._inputPorts = [];
  58625. this._outputPorts = [];
  58626. this._links = [];
  58627. this._x = 0;
  58628. this._y = 0;
  58629. this._gridAlignedX = 0;
  58630. this._gridAlignedY = 0;
  58631. this._mouseStartPointX = null;
  58632. this._mouseStartPointY = null;
  58633. this._displayManager = null;
  58634. this._isVisible = true;
  58635. this._enclosingFrameId = -1;
  58636. this._globalState = globalState;
  58637. this._onSelectionChangedObserver = this._globalState.onSelectionChangedObservable.add(function (node) {
  58638. if (node === _this) {
  58639. _this._visual.classList.add("selected");
  58640. }
  58641. else {
  58642. setTimeout(function () {
  58643. if (_this._ownerCanvas.selectedNodes.indexOf(_this) === -1) {
  58644. _this._visual.classList.remove("selected");
  58645. }
  58646. });
  58647. }
  58648. });
  58649. this._onUpdateRequiredObserver = this._globalState.onUpdateRequiredObservable.add(function () {
  58650. _this.refresh();
  58651. });
  58652. this._onSelectionBoxMovedObserver = this._globalState.onSelectionBoxMoved.add(function (rect1) {
  58653. var rect2 = _this._visual.getBoundingClientRect();
  58654. var overlap = !(rect1.right < rect2.left ||
  58655. rect1.left > rect2.right ||
  58656. rect1.bottom < rect2.top ||
  58657. rect1.top > rect2.bottom);
  58658. _this.isSelected = overlap;
  58659. });
  58660. this._onFrameCreatedObserver = this._globalState.onFrameCreatedObservable.add(function (frame) {
  58661. if (_this._ownerCanvas.frames.some(function (f) { return f.nodes.indexOf(_this) !== -1; })) {
  58662. return;
  58663. }
  58664. if (_this.isOverlappingFrame(frame)) {
  58665. frame.nodes.push(_this);
  58666. }
  58667. });
  58668. }
  58669. Object.defineProperty(GraphNode.prototype, "isVisible", {
  58670. get: function () {
  58671. return this._isVisible;
  58672. },
  58673. set: function (value) {
  58674. this._isVisible = value;
  58675. if (!value) {
  58676. this._visual.classList.add("hidden");
  58677. }
  58678. else {
  58679. this._visual.classList.remove("hidden");
  58680. this._upateNodePortNames();
  58681. }
  58682. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  58683. var link = _a[_i];
  58684. link.isVisible = value;
  58685. }
  58686. this._refreshLinks();
  58687. },
  58688. enumerable: false,
  58689. configurable: true
  58690. });
  58691. GraphNode.prototype._upateNodePortNames = function () {
  58692. for (var _i = 0, _a = this._inputPorts.concat(this._outputPorts); _i < _a.length; _i++) {
  58693. var port = _a[_i];
  58694. if (port.hasLabel()) {
  58695. port.portName = port.connectionPoint.displayName || port.connectionPoint.name;
  58696. }
  58697. }
  58698. };
  58699. Object.defineProperty(GraphNode.prototype, "outputPorts", {
  58700. get: function () {
  58701. return this._outputPorts;
  58702. },
  58703. enumerable: false,
  58704. configurable: true
  58705. });
  58706. Object.defineProperty(GraphNode.prototype, "inputPorts", {
  58707. get: function () {
  58708. return this._inputPorts;
  58709. },
  58710. enumerable: false,
  58711. configurable: true
  58712. });
  58713. Object.defineProperty(GraphNode.prototype, "links", {
  58714. get: function () {
  58715. return this._links;
  58716. },
  58717. enumerable: false,
  58718. configurable: true
  58719. });
  58720. Object.defineProperty(GraphNode.prototype, "gridAlignedX", {
  58721. get: function () {
  58722. return this._gridAlignedX;
  58723. },
  58724. enumerable: false,
  58725. configurable: true
  58726. });
  58727. Object.defineProperty(GraphNode.prototype, "gridAlignedY", {
  58728. get: function () {
  58729. return this._gridAlignedY;
  58730. },
  58731. enumerable: false,
  58732. configurable: true
  58733. });
  58734. Object.defineProperty(GraphNode.prototype, "x", {
  58735. get: function () {
  58736. return this._x;
  58737. },
  58738. set: function (value) {
  58739. if (this._x === value) {
  58740. return;
  58741. }
  58742. this._x = value;
  58743. this._gridAlignedX = this._ownerCanvas.getGridPosition(value);
  58744. this._visual.style.left = this._gridAlignedX + "px";
  58745. this._refreshLinks();
  58746. this._refreshFrames();
  58747. },
  58748. enumerable: false,
  58749. configurable: true
  58750. });
  58751. Object.defineProperty(GraphNode.prototype, "y", {
  58752. get: function () {
  58753. return this._y;
  58754. },
  58755. set: function (value) {
  58756. if (this._y === value) {
  58757. return;
  58758. }
  58759. this._y = value;
  58760. this._gridAlignedY = this._ownerCanvas.getGridPosition(value);
  58761. this._visual.style.top = this._gridAlignedY + "px";
  58762. this._refreshLinks();
  58763. this._refreshFrames();
  58764. },
  58765. enumerable: false,
  58766. configurable: true
  58767. });
  58768. Object.defineProperty(GraphNode.prototype, "width", {
  58769. get: function () {
  58770. return this._visual.clientWidth;
  58771. },
  58772. enumerable: false,
  58773. configurable: true
  58774. });
  58775. Object.defineProperty(GraphNode.prototype, "height", {
  58776. get: function () {
  58777. return this._visual.clientHeight;
  58778. },
  58779. enumerable: false,
  58780. configurable: true
  58781. });
  58782. Object.defineProperty(GraphNode.prototype, "id", {
  58783. get: function () {
  58784. return this.block.uniqueId;
  58785. },
  58786. enumerable: false,
  58787. configurable: true
  58788. });
  58789. Object.defineProperty(GraphNode.prototype, "name", {
  58790. get: function () {
  58791. return this.block.name;
  58792. },
  58793. enumerable: false,
  58794. configurable: true
  58795. });
  58796. Object.defineProperty(GraphNode.prototype, "isSelected", {
  58797. get: function () {
  58798. return this._isSelected;
  58799. },
  58800. set: function (value) {
  58801. if (this._isSelected === value) {
  58802. return;
  58803. }
  58804. this._isSelected = value;
  58805. if (!value) {
  58806. this._visual.classList.remove("selected");
  58807. var indexInSelection = this._ownerCanvas.selectedNodes.indexOf(this);
  58808. if (indexInSelection > -1) {
  58809. this._ownerCanvas.selectedNodes.splice(indexInSelection, 1);
  58810. }
  58811. }
  58812. else {
  58813. this._globalState.onSelectionChangedObservable.notifyObservers(this);
  58814. }
  58815. },
  58816. enumerable: false,
  58817. configurable: true
  58818. });
  58819. Object.defineProperty(GraphNode.prototype, "enclosingFrameId", {
  58820. get: function () {
  58821. return this._enclosingFrameId;
  58822. },
  58823. set: function (value) {
  58824. this._enclosingFrameId = value;
  58825. },
  58826. enumerable: false,
  58827. configurable: true
  58828. });
  58829. GraphNode.prototype.isOverlappingFrame = function (frame) {
  58830. var rect2 = this._visual.getBoundingClientRect();
  58831. var rect1 = frame.element.getBoundingClientRect();
  58832. // Add a tiny margin
  58833. rect1.width -= 5;
  58834. rect1.height -= 5;
  58835. var isOverlappingFrame = !(rect1.right < rect2.left ||
  58836. rect1.left > rect2.right ||
  58837. rect1.bottom < rect2.top ||
  58838. rect1.top > rect2.bottom);
  58839. if (isOverlappingFrame) {
  58840. this.enclosingFrameId = frame.id;
  58841. }
  58842. return isOverlappingFrame;
  58843. };
  58844. GraphNode.prototype.getPortForConnectionPoint = function (point) {
  58845. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  58846. var port = _a[_i];
  58847. var attachedPoint = port.connectionPoint;
  58848. if (attachedPoint === point) {
  58849. return port;
  58850. }
  58851. }
  58852. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  58853. var port = _c[_b];
  58854. var attachedPoint = port.connectionPoint;
  58855. if (attachedPoint === point) {
  58856. return port;
  58857. }
  58858. }
  58859. return null;
  58860. };
  58861. GraphNode.prototype.getLinksForConnectionPoint = function (point) {
  58862. return this._links.filter(function (link) { return link.portA.connectionPoint === point || link.portB.connectionPoint === point; });
  58863. };
  58864. GraphNode.prototype._refreshFrames = function () {
  58865. if (this._ownerCanvas._frameIsMoving || this._ownerCanvas._isLoading) {
  58866. return;
  58867. }
  58868. // Frames
  58869. for (var _i = 0, _a = this._ownerCanvas.frames; _i < _a.length; _i++) {
  58870. var frame = _a[_i];
  58871. frame.syncNode(this);
  58872. }
  58873. };
  58874. GraphNode.prototype._refreshLinks = function () {
  58875. if (this._ownerCanvas._isLoading) {
  58876. return;
  58877. }
  58878. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  58879. var link = _a[_i];
  58880. link.update();
  58881. }
  58882. };
  58883. GraphNode.prototype.refresh = function () {
  58884. if (this._displayManager) {
  58885. this._header.innerHTML = this._displayManager.getHeaderText(this.block);
  58886. this._displayManager.updatePreviewContent(this.block, this._content);
  58887. this._visual.style.background = this._displayManager.getBackgroundColor(this.block);
  58888. var additionalClass = this._displayManager.getHeaderClass(this.block);
  58889. this._header.classList.value = "header";
  58890. if (additionalClass) {
  58891. this._header.classList.add(additionalClass);
  58892. }
  58893. }
  58894. else {
  58895. this._header.innerHTML = this.block.name;
  58896. }
  58897. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  58898. var port = _a[_i];
  58899. port.refresh();
  58900. }
  58901. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  58902. var port = _c[_b];
  58903. port.refresh();
  58904. }
  58905. this._comments.innerHTML = this.block.comments || "";
  58906. this._comments.title = this.block.comments || "";
  58907. };
  58908. GraphNode.prototype._onDown = function (evt) {
  58909. // Check if this is coming from the port
  58910. if (evt.srcElement && evt.srcElement.nodeName === "IMG") {
  58911. return;
  58912. }
  58913. var indexInSelection = this._ownerCanvas.selectedNodes.indexOf(this);
  58914. if (indexInSelection === -1) {
  58915. this._globalState.onSelectionChangedObservable.notifyObservers(this);
  58916. }
  58917. else if (evt.ctrlKey) {
  58918. this.isSelected = false;
  58919. }
  58920. evt.stopPropagation();
  58921. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  58922. var selectedNode = _a[_i];
  58923. selectedNode.cleanAccumulation();
  58924. }
  58925. this._mouseStartPointX = evt.clientX;
  58926. this._mouseStartPointY = evt.clientY;
  58927. this._visual.setPointerCapture(evt.pointerId);
  58928. };
  58929. GraphNode.prototype.cleanAccumulation = function (useCeil) {
  58930. if (useCeil === void 0) { useCeil = false; }
  58931. this.x = this._ownerCanvas.getGridPosition(this.x, useCeil);
  58932. this.y = this._ownerCanvas.getGridPosition(this.y, useCeil);
  58933. };
  58934. GraphNode.prototype._onUp = function (evt) {
  58935. evt.stopPropagation();
  58936. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  58937. var selectedNode = _a[_i];
  58938. selectedNode.cleanAccumulation();
  58939. }
  58940. this._mouseStartPointX = null;
  58941. this._mouseStartPointY = null;
  58942. this._visual.releasePointerCapture(evt.pointerId);
  58943. };
  58944. GraphNode.prototype._onMove = function (evt) {
  58945. if (this._mouseStartPointX === null || this._mouseStartPointY === null || evt.ctrlKey) {
  58946. return;
  58947. }
  58948. var newX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
  58949. var newY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
  58950. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  58951. var selectedNode = _a[_i];
  58952. selectedNode.x += newX;
  58953. selectedNode.y += newY;
  58954. }
  58955. this._mouseStartPointX = evt.clientX;
  58956. this._mouseStartPointY = evt.clientY;
  58957. evt.stopPropagation();
  58958. };
  58959. GraphNode.prototype.renderProperties = function () {
  58960. var control = _propertyLedger__WEBPACK_IMPORTED_MODULE_0__["PropertyLedger"].RegisteredControls[this.block.getClassName()];
  58961. if (!control) {
  58962. control = _properties_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__["GenericPropertyComponent"];
  58963. }
  58964. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](control, {
  58965. globalState: this._globalState,
  58966. block: this.block
  58967. });
  58968. };
  58969. GraphNode.prototype.appendVisual = function (root, owner) {
  58970. var _this = this;
  58971. this._ownerCanvas = owner;
  58972. // Display manager
  58973. var displayManagerClass = _displayLedger__WEBPACK_IMPORTED_MODULE_3__["DisplayLedger"].RegisteredControls[this.block.getClassName()];
  58974. if (displayManagerClass) {
  58975. this._displayManager = new displayManagerClass();
  58976. }
  58977. // DOM
  58978. this._visual = root.ownerDocument.createElement("div");
  58979. this._visual.classList.add("visual");
  58980. this._visual.addEventListener("pointerdown", function (evt) { return _this._onDown(evt); });
  58981. this._visual.addEventListener("pointerup", function (evt) { return _this._onUp(evt); });
  58982. this._visual.addEventListener("pointermove", function (evt) { return _this._onMove(evt); });
  58983. this._header = root.ownerDocument.createElement("div");
  58984. this._header.classList.add("header");
  58985. this._visual.appendChild(this._header);
  58986. this._connections = root.ownerDocument.createElement("div");
  58987. this._connections.classList.add("connections");
  58988. this._visual.appendChild(this._connections);
  58989. this._inputsContainer = root.ownerDocument.createElement("div");
  58990. this._inputsContainer.classList.add("inputsContainer");
  58991. this._connections.appendChild(this._inputsContainer);
  58992. this._outputsContainer = root.ownerDocument.createElement("div");
  58993. this._outputsContainer.classList.add("outputsContainer");
  58994. this._connections.appendChild(this._outputsContainer);
  58995. this._content = root.ownerDocument.createElement("div");
  58996. this._content.classList.add("content");
  58997. this._visual.appendChild(this._content);
  58998. var selectionBorder = root.ownerDocument.createElement("div");
  58999. selectionBorder.classList.add("selection-border");
  59000. this._visual.appendChild(selectionBorder);
  59001. root.appendChild(this._visual);
  59002. // Comments
  59003. this._comments = root.ownerDocument.createElement("div");
  59004. this._comments.classList.add("comments");
  59005. this._visual.appendChild(this._comments);
  59006. // Connections
  59007. for (var _i = 0, _a = this.block.inputs; _i < _a.length; _i++) {
  59008. var input = _a[_i];
  59009. this._inputPorts.push(_nodePort__WEBPACK_IMPORTED_MODULE_4__["NodePort"].CreatePortElement(input, this, this._inputsContainer, this._displayManager, this._globalState));
  59010. }
  59011. for (var _b = 0, _c = this.block.outputs; _b < _c.length; _b++) {
  59012. var output = _c[_b];
  59013. this._outputPorts.push(_nodePort__WEBPACK_IMPORTED_MODULE_4__["NodePort"].CreatePortElement(output, this, this._outputsContainer, this._displayManager, this._globalState));
  59014. }
  59015. this.refresh();
  59016. };
  59017. GraphNode.prototype.dispose = function () {
  59018. // notify frame observers that this node is being deleted
  59019. this._globalState.onGraphNodeRemovalObservable.notifyObservers(this);
  59020. if (this._onSelectionChangedObserver) {
  59021. this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  59022. }
  59023. if (this._onUpdateRequiredObserver) {
  59024. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  59025. }
  59026. if (this._onSelectionBoxMovedObserver) {
  59027. this._globalState.onSelectionBoxMoved.remove(this._onSelectionBoxMovedObserver);
  59028. }
  59029. if (this._visual.parentElement) {
  59030. this._visual.parentElement.removeChild(this._visual);
  59031. }
  59032. if (this._onFrameCreatedObserver) {
  59033. this._globalState.onFrameCreatedObservable.remove(this._onFrameCreatedObserver);
  59034. }
  59035. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  59036. var port = _a[_i];
  59037. port.dispose();
  59038. }
  59039. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  59040. var port = _c[_b];
  59041. port.dispose();
  59042. }
  59043. var links = this._links.slice(0);
  59044. for (var _d = 0, links_1 = links; _d < links_1.length; _d++) {
  59045. var link = links_1[_d];
  59046. link.dispose();
  59047. }
  59048. this.block.dispose();
  59049. };
  59050. return GraphNode;
  59051. }());
  59052. /***/ }),
  59053. /***/ "./diagram/nodeLink.ts":
  59054. /*!*****************************!*\
  59055. !*** ./diagram/nodeLink.ts ***!
  59056. \*****************************/
  59057. /*! exports provided: NodeLink */
  59058. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59059. "use strict";
  59060. __webpack_require__.r(__webpack_exports__);
  59061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeLink", function() { return NodeLink; });
  59062. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  59063. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  59064. var NodeLink = /** @class */ (function () {
  59065. function NodeLink(graphCanvas, portA, nodeA, portB, nodeB) {
  59066. var _this = this;
  59067. this._isVisible = true;
  59068. this.onDisposedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  59069. this._portA = portA;
  59070. this._portB = portB;
  59071. this._nodeA = nodeA;
  59072. this._nodeB = nodeB;
  59073. this._graphCanvas = graphCanvas;
  59074. var document = portA.element.ownerDocument;
  59075. var svg = graphCanvas.svgCanvas;
  59076. // Create path
  59077. this._path = document.createElementNS('http://www.w3.org/2000/svg', "path");
  59078. this._path.setAttribute("fill", "none");
  59079. this._path.classList.add("link");
  59080. svg.appendChild(this._path);
  59081. this._selectionPath = document.createElementNS('http://www.w3.org/2000/svg', "path");
  59082. this._selectionPath.setAttribute("fill", "none");
  59083. this._selectionPath.classList.add("selection-link");
  59084. svg.appendChild(this._selectionPath);
  59085. this._selectionPath.onmousedown = function () { return _this.onClick(); };
  59086. if (this._portB) {
  59087. // Update
  59088. this.update();
  59089. }
  59090. this._onSelectionChangedObserver = this._graphCanvas.globalState.onSelectionChangedObservable.add(function (selection) {
  59091. if (selection === _this) {
  59092. _this._path.classList.add("selected");
  59093. _this._selectionPath.classList.add("selected");
  59094. }
  59095. else {
  59096. _this._path.classList.remove("selected");
  59097. _this._selectionPath.classList.remove("selected");
  59098. }
  59099. });
  59100. }
  59101. Object.defineProperty(NodeLink.prototype, "isVisible", {
  59102. get: function () {
  59103. return this._isVisible;
  59104. },
  59105. set: function (value) {
  59106. this._isVisible = value;
  59107. if (!value) {
  59108. this._path.classList.add("hidden");
  59109. this._selectionPath.classList.add("hidden");
  59110. }
  59111. else {
  59112. this._path.classList.remove("hidden");
  59113. this._selectionPath.classList.remove("hidden");
  59114. }
  59115. this.update();
  59116. },
  59117. enumerable: false,
  59118. configurable: true
  59119. });
  59120. Object.defineProperty(NodeLink.prototype, "portA", {
  59121. get: function () {
  59122. return this._portA;
  59123. },
  59124. enumerable: false,
  59125. configurable: true
  59126. });
  59127. Object.defineProperty(NodeLink.prototype, "portB", {
  59128. get: function () {
  59129. return this._portB;
  59130. },
  59131. enumerable: false,
  59132. configurable: true
  59133. });
  59134. Object.defineProperty(NodeLink.prototype, "nodeA", {
  59135. get: function () {
  59136. return this._nodeA;
  59137. },
  59138. enumerable: false,
  59139. configurable: true
  59140. });
  59141. Object.defineProperty(NodeLink.prototype, "nodeB", {
  59142. get: function () {
  59143. return this._nodeB;
  59144. },
  59145. enumerable: false,
  59146. configurable: true
  59147. });
  59148. NodeLink.prototype.update = function (endX, endY, straight) {
  59149. if (endX === void 0) { endX = 0; }
  59150. if (endY === void 0) { endY = 0; }
  59151. if (straight === void 0) { straight = false; }
  59152. var rectA = this._portA.element.getBoundingClientRect();
  59153. var rootRect = this._graphCanvas.canvasContainer.getBoundingClientRect();
  59154. var zoom = this._graphCanvas.zoom;
  59155. var xOffset = rootRect.left;
  59156. var yOffset = rootRect.top;
  59157. var startX = (rectA.left - xOffset + 0.5 * rectA.width) / zoom;
  59158. var startY = (rectA.top - yOffset + 0.5 * rectA.height) / zoom;
  59159. if (this._portB) {
  59160. var rectB = this._portB.element.getBoundingClientRect();
  59161. endX = (rectB.left - xOffset + 0.5 * rectB.width) / zoom;
  59162. endY = (rectB.top - yOffset + 0.5 * rectB.height) / zoom;
  59163. }
  59164. if (straight) {
  59165. this._path.setAttribute("d", "M" + startX + "," + startY + " L" + endX + "," + endY);
  59166. this._path.setAttribute("stroke-dasharray", "10, 10");
  59167. this._path.setAttribute("stroke-linecap", "round");
  59168. }
  59169. else {
  59170. var deltaX = endX - startX;
  59171. var deltaY = endY - startY;
  59172. var tangentLength = Math.min(Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 0.5, 300);
  59173. this._path.setAttribute("d", "M" + startX + "," + startY + " C" + (startX + tangentLength) + "," + startY + " " + (endX - tangentLength) + "," + endY + " " + endX + "," + endY);
  59174. this._selectionPath.setAttribute("d", "M" + startX + "," + startY + " C" + (startX + tangentLength) + "," + startY + " " + (endX - tangentLength) + "," + endY + " " + endX + "," + endY);
  59175. }
  59176. this._path.setAttribute("stroke", this._portA.element.style.backgroundColor);
  59177. };
  59178. NodeLink.prototype.onClick = function () {
  59179. this._graphCanvas.globalState.onSelectionChangedObservable.notifyObservers(this);
  59180. };
  59181. NodeLink.prototype.dispose = function (notify) {
  59182. if (notify === void 0) { notify = true; }
  59183. this._graphCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  59184. if (this._path.parentElement) {
  59185. this._path.parentElement.removeChild(this._path);
  59186. }
  59187. if (this._selectionPath.parentElement) {
  59188. this._selectionPath.parentElement.removeChild(this._selectionPath);
  59189. }
  59190. if (this._nodeB) {
  59191. this._nodeA.links.splice(this._nodeA.links.indexOf(this), 1);
  59192. this._nodeB.links.splice(this._nodeB.links.indexOf(this), 1);
  59193. this._graphCanvas.links.splice(this._graphCanvas.links.indexOf(this), 1);
  59194. this._portA.connectionPoint.disconnectFrom(this._portB.connectionPoint);
  59195. }
  59196. if (notify) {
  59197. this.onDisposedObservable.notifyObservers(this);
  59198. this.onDisposedObservable.clear();
  59199. }
  59200. };
  59201. return NodeLink;
  59202. }());
  59203. /***/ }),
  59204. /***/ "./diagram/nodePort.ts":
  59205. /*!*****************************!*\
  59206. !*** ./diagram/nodePort.ts ***!
  59207. \*****************************/
  59208. /*! exports provided: NodePort */
  59209. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59210. "use strict";
  59211. __webpack_require__.r(__webpack_exports__);
  59212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodePort", function() { return NodePort; });
  59213. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blockTools */ "./blockTools.ts");
  59214. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  59215. /* 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__);
  59216. var NodePort = /** @class */ (function () {
  59217. function NodePort(portContainer, connectionPoint, node, globalState) {
  59218. var _this = this;
  59219. this.connectionPoint = connectionPoint;
  59220. this.node = node;
  59221. this.delegatedPort = null;
  59222. this._element = portContainer.ownerDocument.createElement("div");
  59223. this._element.classList.add("port");
  59224. portContainer.appendChild(this._element);
  59225. this._globalState = globalState;
  59226. this._img = portContainer.ownerDocument.createElement("img");
  59227. this._element.appendChild(this._img);
  59228. // determine if node name is editable
  59229. if (portContainer.children[0].className === 'port-label') {
  59230. this._portLabelElement = portContainer.children[0];
  59231. }
  59232. this._element.port = this;
  59233. // Drag support
  59234. this._element.ondragstart = function () { return false; };
  59235. this._onCandidateLinkMovedObserver = globalState.onCandidateLinkMoved.add(function (coords) {
  59236. var rect = _this._element.getBoundingClientRect();
  59237. if (!coords || rect.left > coords.x || rect.right < coords.x || rect.top > coords.y || rect.bottom < coords.y) {
  59238. _this._element.classList.remove("selected");
  59239. return;
  59240. }
  59241. _this._element.classList.add("selected");
  59242. _this._globalState.onCandidatePortSelectedObservable.notifyObservers(_this);
  59243. });
  59244. this._onSelectionChangedObserver = this._globalState.onSelectionChangedObservable.add(function (selection) {
  59245. if (selection === _this) {
  59246. _this._img.classList.add("selected");
  59247. }
  59248. else {
  59249. _this._img.classList.remove("selected");
  59250. }
  59251. });
  59252. this.refresh();
  59253. }
  59254. Object.defineProperty(NodePort.prototype, "element", {
  59255. get: function () {
  59256. if (this.delegatedPort) {
  59257. return this.delegatedPort.element;
  59258. }
  59259. return this._element;
  59260. },
  59261. enumerable: false,
  59262. configurable: true
  59263. });
  59264. Object.defineProperty(NodePort.prototype, "portName", {
  59265. get: function () {
  59266. var portName = this.connectionPoint.displayName || this.connectionPoint.name;
  59267. if (this.connectionPoint.ownerBlock.isInput) {
  59268. portName = this.node.name;
  59269. }
  59270. return portName;
  59271. },
  59272. set: function (newName) {
  59273. if (this._portLabelElement) {
  59274. this.connectionPoint.displayName = newName;
  59275. this._portLabelElement.innerHTML = newName;
  59276. }
  59277. },
  59278. enumerable: false,
  59279. configurable: true
  59280. });
  59281. Object.defineProperty(NodePort.prototype, "disabled", {
  59282. get: function () {
  59283. if (!this.connectionPoint.isConnected) {
  59284. return false;
  59285. }
  59286. else if (this._isConnectedToNodeOutsideOfFrame()) { //connected to outside node
  59287. return true;
  59288. }
  59289. else {
  59290. var link = this.node.getLinksForConnectionPoint(this.connectionPoint);
  59291. if (link.length) {
  59292. if (link[0].nodeB === this.node) { // check if this node is the receiving
  59293. return true;
  59294. }
  59295. }
  59296. }
  59297. return false;
  59298. },
  59299. enumerable: false,
  59300. configurable: true
  59301. });
  59302. NodePort.prototype.hasLabel = function () {
  59303. return !!this._portLabelElement;
  59304. };
  59305. Object.defineProperty(NodePort.prototype, "exposedOnFrame", {
  59306. get: function () {
  59307. if (!!this.connectionPoint.isExposedOnFrame || this._isConnectedToNodeOutsideOfFrame()) {
  59308. return true;
  59309. }
  59310. return false;
  59311. },
  59312. set: function (value) {
  59313. if (this.disabled) {
  59314. return;
  59315. }
  59316. this.connectionPoint.isExposedOnFrame = value;
  59317. },
  59318. enumerable: false,
  59319. configurable: true
  59320. });
  59321. Object.defineProperty(NodePort.prototype, "exposedPortPosition", {
  59322. get: function () {
  59323. return this.connectionPoint.exposedPortPosition;
  59324. },
  59325. set: function (value) {
  59326. this.connectionPoint.exposedPortPosition = value;
  59327. },
  59328. enumerable: false,
  59329. configurable: true
  59330. });
  59331. NodePort.prototype._isConnectedToNodeOutsideOfFrame = function () {
  59332. var link = this.node.getLinksForConnectionPoint(this.connectionPoint);
  59333. if (link.length) {
  59334. for (var i = 0; i < link.length; i++) {
  59335. if (link[i].nodeA.enclosingFrameId !== link[i].nodeB.enclosingFrameId) {
  59336. return true;
  59337. }
  59338. }
  59339. }
  59340. return false;
  59341. };
  59342. NodePort.prototype.refresh = function () {
  59343. this._element.style.background = _blockTools__WEBPACK_IMPORTED_MODULE_0__["BlockTools"].GetColorFromConnectionNodeType(this.connectionPoint.type);
  59344. switch (this.connectionPoint.type) {
  59345. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Float:
  59346. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Int:
  59347. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+";
  59348. break;
  59349. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  59350. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IyPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLDEwLjVhNy41Miw3LjUyLDAsMCwwLDYuNSw3LjQzVjMuMDdBNy41Miw3LjUyLDAsMCwwLDMsMTAuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDMuMDdWMTcuOTNhNy41LDcuNSwwLDAsMCwwLTE0Ljg2WiIvPjwvZz48L3N2Zz4=";
  59351. break;
  59352. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  59353. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color3:
  59354. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IzPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLjU3LDEzLjMxLDkuNSw5Ljg5VjNBNy41MSw3LjUxLDAsMCwwLDMsMTAuNDYsNy4zMiw3LjMyLDAsMCwwLDMuNTcsMTMuMzFaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTYuNDMsMTUsMTAuNSwxMS42Miw0LjU3LDE1YTcuNDgsNy40OCwwLDAsMCwxMS44NiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE4LDEwLjQ2QTcuNTEsNy41MSwwLDAsMCwxMS41LDNWOS44OWw1LjkzLDMuNDJBNy4zMiw3LjMyLDAsMCwwLDE4LDEwLjQ2WiIvPjwvZz48L3N2Zz4=";
  59355. break;
  59356. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  59357. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color4:
  59358. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3I0PC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDExLjV2Ni40M2E3LjUxLDcuNTEsMCwwLDAsNi40My02LjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN1Y5LjVoNi40M0E3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSwxNy45M1YxMS41SDMuMDdBNy41MSw3LjUxLDAsMCwwLDkuNSwxNy45M1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVIOS41WiIvPjwvZz48L3N2Zz4=";
  59359. break;
  59360. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  59361. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5NYXRyaXg8L3RpdGxlPjxnIGlkPSJMYXllcl81IiBkYXRhLW5hbWU9IkxheWVyIDUiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsNi4xMVY5LjVoMy4zOUE0LjUxLDQuNTEsMCwwLDAsMTEuNSw2LjExWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMTQuODlhNC41MSw0LjUxLDAsMCwwLDMuMzktMy4zOUgxMS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN3YyQTUuNTQsNS41NCwwLDAsMSwxNS45Miw5LjVoMkE3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE1LjkyLDExLjVhNS41NCw1LjU0LDAsMCwxLTQuNDIsNC40MnYyYTcuNTEsNy41MSwwLDAsMCw2LjQzLTYuNDNaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4wOCwxMS41aC0yQTcuNTEsNy41MSwwLDAsMCw5LjUsMTcuOTN2LTJBNS41NCw1LjU0LDAsMCwxLDUuMDgsMTEuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVoMkE1LjU0LDUuNTQsMCwwLDEsOS41LDUuMDhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS41LDExLjVINi4xMUE0LjUxLDQuNTEsMCwwLDAsOS41LDE0Ljg5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSw2LjExQTQuNTEsNC41MSwwLDAsMCw2LjExLDkuNUg5LjVaIi8+PC9nPjwvc3ZnPg==";
  59362. break;
  59363. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Object:
  59364. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+";
  59365. break;
  59366. }
  59367. };
  59368. NodePort.prototype.dispose = function () {
  59369. this._globalState.onCandidateLinkMoved.remove(this._onCandidateLinkMovedObserver);
  59370. if (this._onSelectionChangedObserver) {
  59371. this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  59372. }
  59373. };
  59374. NodePort.CreatePortElement = function (connectionPoint, node, root, displayManager, globalState) {
  59375. var portContainer = root.ownerDocument.createElement("div");
  59376. var block = connectionPoint.ownerBlock;
  59377. portContainer.classList.add("portLine");
  59378. root.appendChild(portContainer);
  59379. if (!displayManager || displayManager.shouldDisplayPortLabels(block)) {
  59380. var portLabel = root.ownerDocument.createElement("div");
  59381. portLabel.classList.add("port-label");
  59382. portLabel.innerHTML = connectionPoint.displayName || connectionPoint.name;
  59383. portContainer.appendChild(portLabel);
  59384. }
  59385. return new NodePort(portContainer, connectionPoint, node, globalState);
  59386. };
  59387. return NodePort;
  59388. }());
  59389. /***/ }),
  59390. /***/ "./diagram/properties/frameNodePortPropertyComponent.tsx":
  59391. /*!***************************************************************!*\
  59392. !*** ./diagram/properties/frameNodePortPropertyComponent.tsx ***!
  59393. \***************************************************************/
  59394. /*! exports provided: FrameNodePortPropertyTabComponent */
  59395. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59396. "use strict";
  59397. __webpack_require__.r(__webpack_exports__);
  59398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FrameNodePortPropertyTabComponent", function() { return FrameNodePortPropertyTabComponent; });
  59399. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59400. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59401. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59402. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  59403. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  59404. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  59405. /* harmony import */ var _graphFrame__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../graphFrame */ "./diagram/graphFrame.ts");
  59406. /* harmony import */ var _graphCanvas__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../graphCanvas */ "./diagram/graphCanvas.tsx");
  59407. var FrameNodePortPropertyTabComponent = /** @class */ (function (_super) {
  59408. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FrameNodePortPropertyTabComponent, _super);
  59409. function FrameNodePortPropertyTabComponent(props) {
  59410. var _this_1 = _super.call(this, props) || this;
  59411. _this_1.state = {
  59412. port: _this_1.props.frameNodePort
  59413. };
  59414. var _this = _this_1;
  59415. _this_1._onSelectionChangedObserver = _this_1.props.globalState.onSelectionChangedObservable.add(function (selection) {
  59416. if (Object(_graphCanvas__WEBPACK_IMPORTED_MODULE_6__["isFramePortData"])(selection)) {
  59417. selection.port.onFramePortPositionChangedObservable.clear();
  59418. _this._onFramePortPositionChangedObserver = selection.port.onFramePortPositionChangedObservable.add(function (port) {
  59419. _this.setState({ port: port });
  59420. });
  59421. _this.setState({ port: selection.port });
  59422. }
  59423. });
  59424. _this_1._onFramePortPositionChangedObserver = _this_1.props.frameNodePort.onFramePortPositionChangedObservable.add(function (port) {
  59425. _this.setState({ port: port });
  59426. });
  59427. return _this_1;
  59428. }
  59429. FrameNodePortPropertyTabComponent.prototype.componentWillUnmount = function () {
  59430. this.props.frameNodePort.onFramePortPositionChangedObservable.remove(this._onFramePortPositionChangedObserver);
  59431. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  59432. };
  59433. FrameNodePortPropertyTabComponent.prototype.render = function () {
  59434. var _this_1 = this;
  59435. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  59436. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  59437. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  59438. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  59439. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  59440. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  59441. 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 }),
  59442. 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 () {
  59443. _this_1.props.frame.moveFramePortUp(_this_1.props.frameNodePort);
  59444. } }),
  59445. 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 () {
  59446. _this_1.props.frame.moveFramePortDown(_this_1.props.frameNodePort);
  59447. } })))));
  59448. };
  59449. return FrameNodePortPropertyTabComponent;
  59450. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59451. /***/ }),
  59452. /***/ "./diagram/properties/framePropertyComponent.tsx":
  59453. /*!*******************************************************!*\
  59454. !*** ./diagram/properties/framePropertyComponent.tsx ***!
  59455. \*******************************************************/
  59456. /*! exports provided: FramePropertyTabComponent */
  59457. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59458. "use strict";
  59459. __webpack_require__.r(__webpack_exports__);
  59460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FramePropertyTabComponent", function() { return FramePropertyTabComponent; });
  59461. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59462. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59463. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59464. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  59465. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  59466. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  59467. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  59468. var FramePropertyTabComponent = /** @class */ (function (_super) {
  59469. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FramePropertyTabComponent, _super);
  59470. function FramePropertyTabComponent(props) {
  59471. return _super.call(this, props) || this;
  59472. }
  59473. FramePropertyTabComponent.prototype.componentDidMount = function () {
  59474. var _this = this;
  59475. this.onFrameExpandStateChangedObserver = this.props.frame.onExpandStateChanged.add(function () { return _this.forceUpdate(); });
  59476. };
  59477. FramePropertyTabComponent.prototype.componentWillUnmount = function () {
  59478. if (this.onFrameExpandStateChangedObserver) {
  59479. this.props.frame.onExpandStateChanged.remove(this.onFrameExpandStateChangedObserver);
  59480. this.onFrameExpandStateChangedObserver = null;
  59481. }
  59482. };
  59483. FramePropertyTabComponent.prototype.render = function () {
  59484. var _this = this;
  59485. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  59486. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  59487. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  59488. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  59489. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  59490. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  59491. 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 }),
  59492. 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" }),
  59493. 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 }),
  59494. !this.props.frame.isCollapsed &&
  59495. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Collapse", onClick: function () {
  59496. _this.props.frame.isCollapsed = true;
  59497. } }),
  59498. this.props.frame.isCollapsed &&
  59499. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Expand", onClick: function () {
  59500. _this.props.frame.isCollapsed = false;
  59501. } }),
  59502. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Export", onClick: function () {
  59503. _this.props.frame.export();
  59504. } })))));
  59505. };
  59506. return FramePropertyTabComponent;
  59507. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59508. /***/ }),
  59509. /***/ "./diagram/properties/genericNodePropertyComponent.tsx":
  59510. /*!*************************************************************!*\
  59511. !*** ./diagram/properties/genericNodePropertyComponent.tsx ***!
  59512. \*************************************************************/
  59513. /*! exports provided: GenericPropertyComponent, GeneralPropertyTabComponent, GenericPropertyTabComponent */
  59514. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59515. "use strict";
  59516. __webpack_require__.r(__webpack_exports__);
  59517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericPropertyComponent", function() { return GenericPropertyComponent; });
  59518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeneralPropertyTabComponent", function() { return GeneralPropertyTabComponent; });
  59519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericPropertyTabComponent", function() { return GenericPropertyTabComponent; });
  59520. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59521. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59522. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59523. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  59524. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  59525. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  59526. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  59527. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  59528. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  59529. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  59530. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  59531. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialDecorator */ "babylonjs/Misc/dataStorage");
  59532. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__);
  59533. var GenericPropertyComponent = /** @class */ (function (_super) {
  59534. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GenericPropertyComponent, _super);
  59535. function GenericPropertyComponent(props) {
  59536. return _super.call(this, props) || this;
  59537. }
  59538. GenericPropertyComponent.prototype.render = function () {
  59539. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  59540. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](GeneralPropertyTabComponent, { globalState: this.props.globalState, block: this.props.block }),
  59541. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](GenericPropertyTabComponent, { globalState: this.props.globalState, block: this.props.block })));
  59542. };
  59543. return GenericPropertyComponent;
  59544. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59545. var GeneralPropertyTabComponent = /** @class */ (function (_super) {
  59546. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GeneralPropertyTabComponent, _super);
  59547. function GeneralPropertyTabComponent(props) {
  59548. return _super.call(this, props) || this;
  59549. }
  59550. GeneralPropertyTabComponent.prototype.render = function () {
  59551. var _this = this;
  59552. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  59553. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  59554. (!this.props.block.isInput || !this.props.block.isAttribute) &&
  59555. 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) {
  59556. if (!_this.props.block.validateBlockName(newName)) {
  59557. _this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("\"" + newName + "\" is a reserved name, please choose another");
  59558. return false;
  59559. }
  59560. return true;
  59561. } }),
  59562. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: this.props.block.getClassName() }),
  59563. 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(); } }))));
  59564. };
  59565. return GeneralPropertyTabComponent;
  59566. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59567. var GenericPropertyTabComponent = /** @class */ (function (_super) {
  59568. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GenericPropertyTabComponent, _super);
  59569. function GenericPropertyTabComponent(props) {
  59570. return _super.call(this, props) || this;
  59571. }
  59572. GenericPropertyTabComponent.prototype.forceRebuild = function (notifiers) {
  59573. if (!notifiers || notifiers.update) {
  59574. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  59575. }
  59576. if (!notifiers || notifiers.rebuild) {
  59577. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  59578. }
  59579. };
  59580. GenericPropertyTabComponent.prototype.render = function () {
  59581. var _this = this;
  59582. var block = this.props.block, propStore = block._propStore;
  59583. if (!propStore) {
  59584. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null));
  59585. }
  59586. var componentList = {}, groups = [];
  59587. var _loop_1 = function (propertyName, displayName, type, groupName, options) {
  59588. var components = componentList[groupName];
  59589. if (!components) {
  59590. components = [];
  59591. componentList[groupName] = components;
  59592. groups.push(groupName);
  59593. }
  59594. switch (type) {
  59595. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].Boolean: {
  59596. 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); } }));
  59597. break;
  59598. }
  59599. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].Float: {
  59600. var cantDisplaySlider = (isNaN(options.min) || isNaN(options.max) || options.min === options.max);
  59601. if (cantDisplaySlider) {
  59602. 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); } }));
  59603. }
  59604. else {
  59605. components.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: displayName, target: this_1.props.block, 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); } }));
  59606. }
  59607. break;
  59608. }
  59609. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].Vector2: {
  59610. 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); } }));
  59611. break;
  59612. }
  59613. case babylonjs_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_10__["PropertyTypeForEdition"].List: {
  59614. 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); } }));
  59615. break;
  59616. }
  59617. }
  59618. };
  59619. var this_1 = this;
  59620. for (var _i = 0, propStore_1 = propStore; _i < propStore_1.length; _i++) {
  59621. var _a = propStore_1[_i], propertyName = _a.propertyName, displayName = _a.displayName, type = _a.type, groupName = _a.groupName, options = _a.options;
  59622. _loop_1(propertyName, displayName, type, groupName, options);
  59623. }
  59624. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, groups.map(function (group) {
  59625. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: group }, componentList[group]);
  59626. })));
  59627. };
  59628. return GenericPropertyTabComponent;
  59629. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59630. /***/ }),
  59631. /***/ "./diagram/properties/gradientNodePropertyComponent.tsx":
  59632. /*!**************************************************************!*\
  59633. !*** ./diagram/properties/gradientNodePropertyComponent.tsx ***!
  59634. \**************************************************************/
  59635. /*! exports provided: GradientPropertyTabComponent */
  59636. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59637. "use strict";
  59638. __webpack_require__.r(__webpack_exports__);
  59639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientPropertyTabComponent", function() { return GradientPropertyTabComponent; });
  59640. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59641. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59642. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59643. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  59644. /* harmony import */ var babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/gradientBlock */ "babylonjs/Misc/dataStorage");
  59645. /* 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__);
  59646. /* harmony import */ var _gradientStepComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./gradientStepComponent */ "./diagram/properties/gradientStepComponent.tsx");
  59647. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  59648. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  59649. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  59650. var GradientPropertyTabComponent = /** @class */ (function (_super) {
  59651. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientPropertyTabComponent, _super);
  59652. function GradientPropertyTabComponent(props) {
  59653. return _super.call(this, props) || this;
  59654. }
  59655. GradientPropertyTabComponent.prototype.componentDidMount = function () {
  59656. var _this = this;
  59657. var gradientBlock = this.props.block;
  59658. this.onValueChangedObserver = gradientBlock.onValueChangedObservable.add(function () {
  59659. _this.forceUpdate();
  59660. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  59661. });
  59662. };
  59663. GradientPropertyTabComponent.prototype.componentWillUnmount = function () {
  59664. var gradientBlock = this.props.block;
  59665. if (this.onValueChangedObserver) {
  59666. gradientBlock.onValueChangedObservable.remove(this.onValueChangedObserver);
  59667. this.onValueChangedObserver = null;
  59668. }
  59669. };
  59670. GradientPropertyTabComponent.prototype.forceRebuild = function () {
  59671. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  59672. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  59673. };
  59674. GradientPropertyTabComponent.prototype.deleteStep = function (step) {
  59675. var gradientBlock = this.props.block;
  59676. var index = gradientBlock.colorSteps.indexOf(step);
  59677. if (index > -1) {
  59678. gradientBlock.colorSteps.splice(index, 1);
  59679. gradientBlock.colorStepsUpdated();
  59680. this.forceRebuild();
  59681. this.forceUpdate();
  59682. }
  59683. };
  59684. GradientPropertyTabComponent.prototype.copyStep = function (step) {
  59685. var gradientBlock = this.props.block;
  59686. var newStep = new babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3__["GradientBlockColorStep"](1.0, step.color);
  59687. gradientBlock.colorSteps.push(newStep);
  59688. gradientBlock.colorStepsUpdated();
  59689. this.forceRebuild();
  59690. this.forceUpdate();
  59691. };
  59692. GradientPropertyTabComponent.prototype.addNewStep = function () {
  59693. var gradientBlock = this.props.block;
  59694. 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());
  59695. gradientBlock.colorSteps.push(newStep);
  59696. gradientBlock.colorStepsUpdated();
  59697. this.forceRebuild();
  59698. this.forceUpdate();
  59699. };
  59700. GradientPropertyTabComponent.prototype.checkForReOrder = function () {
  59701. var gradientBlock = this.props.block;
  59702. gradientBlock.colorSteps.sort(function (a, b) {
  59703. if (a.step === b.step) {
  59704. return 0;
  59705. }
  59706. if (a.step > b.step) {
  59707. return 1;
  59708. }
  59709. return -1;
  59710. });
  59711. gradientBlock.colorStepsUpdated();
  59712. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  59713. this.forceUpdate();
  59714. };
  59715. GradientPropertyTabComponent.prototype.render = function () {
  59716. var _this = this;
  59717. var gradientBlock = this.props.block;
  59718. var typeOptions = [
  59719. { label: "None", value: 0 },
  59720. { label: "Visible in the inspector", value: 1 },
  59721. ];
  59722. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  59723. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  59724. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  59725. 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) {
  59726. if (block.visibleInInspector) {
  59727. return 1;
  59728. }
  59729. if (block.isConstant) {
  59730. return 2;
  59731. }
  59732. return 0;
  59733. }, onSelect: function (value) {
  59734. switch (value) {
  59735. case 0:
  59736. _this.props.block.visibleInInspector = false;
  59737. break;
  59738. case 1:
  59739. _this.props.block.visibleInInspector = true;
  59740. break;
  59741. }
  59742. _this.forceUpdate();
  59743. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  59744. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  59745. } })),
  59746. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "STEPS" },
  59747. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Add new step", onClick: function () { return _this.addNewStep(); } }),
  59748. gradientBlock.colorSteps.map(function (c, i) {
  59749. 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); } }));
  59750. }))));
  59751. };
  59752. return GradientPropertyTabComponent;
  59753. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59754. /***/ }),
  59755. /***/ "./diagram/properties/gradientStepComponent.tsx":
  59756. /*!******************************************************!*\
  59757. !*** ./diagram/properties/gradientStepComponent.tsx ***!
  59758. \******************************************************/
  59759. /*! exports provided: GradientStepComponent */
  59760. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59761. "use strict";
  59762. __webpack_require__.r(__webpack_exports__);
  59763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientStepComponent", function() { return GradientStepComponent; });
  59764. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59765. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59766. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59767. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  59768. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  59769. /* harmony import */ var _sharedComponents_colorPickerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/colorPickerComponent */ "./sharedComponents/colorPickerComponent.tsx");
  59770. var deleteButton = __webpack_require__(/*! ../../../imgs/delete.svg */ "../imgs/delete.svg");
  59771. var copyIcon = __webpack_require__(/*! ../../sharedComponents/copy.svg */ "./sharedComponents/copy.svg");
  59772. var GradientStepComponent = /** @class */ (function (_super) {
  59773. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientStepComponent, _super);
  59774. function GradientStepComponent(props) {
  59775. var _this = _super.call(this, props) || this;
  59776. _this.state = { gradient: props.step.step };
  59777. return _this;
  59778. }
  59779. GradientStepComponent.prototype.updateColor = function (color) {
  59780. this.props.step.color = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(color);
  59781. this.props.onUpdateStep();
  59782. this.forceUpdate();
  59783. };
  59784. GradientStepComponent.prototype.updateStep = function (gradient) {
  59785. this.props.step.step = gradient;
  59786. this.setState({ gradient: gradient });
  59787. this.props.onUpdateStep();
  59788. };
  59789. GradientStepComponent.prototype.onPointerUp = function () {
  59790. this.props.onCheckForReOrder();
  59791. };
  59792. GradientStepComponent.prototype.render = function () {
  59793. var _this = this;
  59794. var step = this.props.step;
  59795. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-step" },
  59796. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step" }, "#" + this.props.lineIndex),
  59797. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color" },
  59798. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_colorPickerComponent__WEBPACK_IMPORTED_MODULE_3__["ColorPickerLineComponent"], { value: step.color, disableAlpha: true, globalState: this.props.globalState, onColorChanged: function (color) {
  59799. _this.updateColor(color);
  59800. } })),
  59801. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-value" }, step.step.toFixed(2)),
  59802. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-slider" },
  59803. 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)); } })),
  59804. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-copy", onClick: function () { if (_this.props.onCopy)
  59805. _this.props.onCopy(); }, title: "Copy Step" },
  59806. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", src: copyIcon })),
  59807. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-delete", onClick: function () { return _this.props.onDelete(); }, title: "Delete Step" },
  59808. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", src: deleteButton }))));
  59809. };
  59810. return GradientStepComponent;
  59811. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59812. /***/ }),
  59813. /***/ "./diagram/properties/inputNodePropertyComponent.tsx":
  59814. /*!***********************************************************!*\
  59815. !*** ./diagram/properties/inputNodePropertyComponent.tsx ***!
  59816. \***********************************************************/
  59817. /*! exports provided: InputPropertyTabComponent */
  59818. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59819. "use strict";
  59820. __webpack_require__.r(__webpack_exports__);
  59821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponent", function() { return InputPropertyTabComponent; });
  59822. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59823. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59824. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59825. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  59826. /* harmony import */ var _components_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/propertyTab/properties/floatPropertyTabComponent */ "./components/propertyTab/properties/floatPropertyTabComponent.tsx");
  59827. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  59828. /* harmony import */ var _components_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  59829. /* harmony import */ var _components_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/propertyTab/properties/color3PropertyTabComponent */ "./components/propertyTab/properties/color3PropertyTabComponent.tsx");
  59830. /* harmony import */ var _components_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  59831. /* harmony import */ var _components_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector4PropertyTabComponent */ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx");
  59832. /* harmony import */ var _components_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../components/propertyTab/properties/matrixPropertyTabComponent */ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx");
  59833. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  59834. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  59835. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  59836. /* 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__);
  59837. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  59838. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  59839. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  59840. /* harmony import */ var _components_propertyTab_properties_color4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../components/propertyTab/properties/color4PropertyTabComponent */ "./components/propertyTab/properties/color4PropertyTabComponent.tsx");
  59841. var InputPropertyTabComponent = /** @class */ (function (_super) {
  59842. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InputPropertyTabComponent, _super);
  59843. function InputPropertyTabComponent(props) {
  59844. return _super.call(this, props) || this;
  59845. }
  59846. InputPropertyTabComponent.prototype.componentDidMount = function () {
  59847. var _this = this;
  59848. var inputBlock = this.props.block;
  59849. this.onValueChangedObserver = inputBlock.onValueChangedObservable.add(function () {
  59850. _this.forceUpdate();
  59851. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  59852. });
  59853. };
  59854. InputPropertyTabComponent.prototype.componentWillUnmount = function () {
  59855. var inputBlock = this.props.block;
  59856. if (this.onValueChangedObserver) {
  59857. inputBlock.onValueChangedObservable.remove(this.onValueChangedObserver);
  59858. this.onValueChangedObserver = null;
  59859. }
  59860. };
  59861. InputPropertyTabComponent.prototype.renderValue = function (globalState) {
  59862. var _this = this;
  59863. var inputBlock = this.props.block;
  59864. switch (inputBlock.type) {
  59865. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Float: {
  59866. var cantDisplaySlider = (isNaN(inputBlock.min) || isNaN(inputBlock.max) || inputBlock.min === inputBlock.max);
  59867. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  59868. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Is boolean", target: inputBlock, propertyName: "isBoolean" }),
  59869. inputBlock.isBoolean &&
  59870. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_15__["CheckBoxLineComponent"], { label: "Value", isSelected: function () {
  59871. return inputBlock.value === 1;
  59872. }, onSelect: function (value) {
  59873. inputBlock.value = value ? 1 : 0;
  59874. if (inputBlock.isConstant) {
  59875. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  59876. }
  59877. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  59878. } }),
  59879. !inputBlock.isBoolean &&
  59880. 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(); } }),
  59881. !inputBlock.isBoolean &&
  59882. 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(); } }),
  59883. !inputBlock.isBoolean && cantDisplaySlider &&
  59884. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["FloatPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }),
  59885. !inputBlock.isBoolean && !cantDisplaySlider &&
  59886. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Value", 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 () {
  59887. if (inputBlock.isConstant) {
  59888. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  59889. }
  59890. } })));
  59891. }
  59892. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  59893. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["Vector2PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  59894. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color3:
  59895. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["Color3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  59896. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color4:
  59897. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_color4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_16__["Color4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  59898. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  59899. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__["Vector3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  59900. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  59901. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__["Vector4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  59902. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  59903. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__["MatrixPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  59904. }
  59905. return null;
  59906. };
  59907. InputPropertyTabComponent.prototype.setDefaultValue = function () {
  59908. var inputBlock = this.props.block;
  59909. inputBlock.setDefaultValue();
  59910. };
  59911. InputPropertyTabComponent.prototype.render = function () {
  59912. var _this = this;
  59913. var inputBlock = this.props.block;
  59914. var systemValuesOptions = [];
  59915. var attributeOptions = [];
  59916. var animationOptions = [];
  59917. switch (inputBlock.type) {
  59918. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Float:
  59919. animationOptions = [
  59920. { label: "None", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None },
  59921. { label: "Time", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].Time },
  59922. ];
  59923. systemValuesOptions = [
  59924. { label: "Delta time", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].DeltaTime }
  59925. ];
  59926. break;
  59927. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  59928. systemValuesOptions = [
  59929. { label: "World", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].World },
  59930. { label: "World x View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].WorldView },
  59931. { label: "World x ViewxProjection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].WorldViewProjection },
  59932. { label: "View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].View },
  59933. { label: "View x Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].ViewProjection },
  59934. { label: "Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].Projection }
  59935. ];
  59936. break;
  59937. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color3:
  59938. systemValuesOptions = [
  59939. { label: "Fog color", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].FogColor }
  59940. ];
  59941. break;
  59942. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color4:
  59943. attributeOptions = [
  59944. { label: "color", value: "color" }
  59945. ];
  59946. break;
  59947. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  59948. attributeOptions = [
  59949. { label: "uv", value: "uv" },
  59950. { label: "uv2", value: "uv2" },
  59951. ];
  59952. break;
  59953. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  59954. systemValuesOptions = [
  59955. { label: "Camera position", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].CameraPosition }
  59956. ];
  59957. attributeOptions = [
  59958. { label: "position", value: "position" },
  59959. { label: "normal", value: "normal" },
  59960. { label: "tangent", value: "tangent" },
  59961. ];
  59962. break;
  59963. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  59964. attributeOptions = [
  59965. { label: "matricesIndices", value: "matricesIndices" },
  59966. { label: "matricesWeights", value: "matricesWeights" }
  59967. ];
  59968. break;
  59969. }
  59970. var modeOptions = [
  59971. { label: "User-defined", value: 0 }
  59972. ];
  59973. if (attributeOptions.length > 0) {
  59974. modeOptions.push({ label: "Mesh attribute", value: 1 });
  59975. }
  59976. if (systemValuesOptions.length > 0) {
  59977. modeOptions.push({ label: "System value", value: 2 });
  59978. }
  59979. var typeOptions = [
  59980. { label: "None", value: 0 },
  59981. { label: "Visible in the inspector", value: 1 },
  59982. { label: "Constant", value: 2 }
  59983. ];
  59984. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  59985. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_13__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  59986. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__["LineContainerComponent"], { title: "PROPERTIES" },
  59987. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None &&
  59988. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Type", options: typeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  59989. if (block.visibleInInspector) {
  59990. return 1;
  59991. }
  59992. if (block.isConstant) {
  59993. return 2;
  59994. }
  59995. return 0;
  59996. }, onSelect: function (value) {
  59997. switch (value) {
  59998. case 0:
  59999. inputBlock.visibleInInspector = false;
  60000. inputBlock.isConstant = false;
  60001. break;
  60002. case 1:
  60003. inputBlock.visibleInInspector = true;
  60004. inputBlock.isConstant = false;
  60005. break;
  60006. case 2:
  60007. inputBlock.visibleInInspector = false;
  60008. inputBlock.isConstant = true;
  60009. break;
  60010. }
  60011. _this.forceUpdate();
  60012. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60013. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60014. } }),
  60015. inputBlock.visibleInInspector &&
  60016. 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 () {
  60017. _this.forceUpdate();
  60018. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60019. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60020. } }),
  60021. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Mode", options: modeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  60022. if (block.isAttribute) {
  60023. return 1;
  60024. }
  60025. if (block.isSystemValue) {
  60026. return 2;
  60027. }
  60028. return 0;
  60029. }, onSelect: function (value) {
  60030. switch (value) {
  60031. case 0:
  60032. inputBlock.isUniform = true;
  60033. inputBlock.setAsSystemValue(null);
  60034. _this.setDefaultValue();
  60035. break;
  60036. case 1:
  60037. inputBlock.setAsAttribute(attributeOptions[0].value);
  60038. break;
  60039. case 2:
  60040. inputBlock.setAsSystemValue(systemValuesOptions[0].value);
  60041. break;
  60042. }
  60043. _this.forceUpdate();
  60044. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60045. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60046. } }),
  60047. inputBlock.isAttribute &&
  60048. 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) {
  60049. inputBlock.setAsAttribute(value);
  60050. _this.forceUpdate();
  60051. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60052. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60053. } }),
  60054. inputBlock.isUniform && animationOptions.length > 0 &&
  60055. 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) {
  60056. _this.forceUpdate();
  60057. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60058. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60059. } }),
  60060. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None &&
  60061. this.renderValue(this.props.globalState),
  60062. inputBlock.isUniform && inputBlock.isSystemValue &&
  60063. 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) {
  60064. inputBlock.setAsSystemValue(value);
  60065. _this.forceUpdate();
  60066. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60067. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60068. } }))));
  60069. };
  60070. return InputPropertyTabComponent;
  60071. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60072. /***/ }),
  60073. /***/ "./diagram/properties/lightInformationPropertyTabComponent.tsx":
  60074. /*!*********************************************************************!*\
  60075. !*** ./diagram/properties/lightInformationPropertyTabComponent.tsx ***!
  60076. \*********************************************************************/
  60077. /*! exports provided: LightInformationPropertyTabComponent */
  60078. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60079. "use strict";
  60080. __webpack_require__.r(__webpack_exports__);
  60081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationPropertyTabComponent", function() { return LightInformationPropertyTabComponent; });
  60082. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60083. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60084. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60085. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  60086. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  60087. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  60088. var LightInformationPropertyTabComponent = /** @class */ (function (_super) {
  60089. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightInformationPropertyTabComponent, _super);
  60090. function LightInformationPropertyTabComponent() {
  60091. return _super !== null && _super.apply(this, arguments) || this;
  60092. }
  60093. LightInformationPropertyTabComponent.prototype.render = function () {
  60094. var _this = this;
  60095. var scene = this.props.globalState.nodeMaterial.getScene();
  60096. var lightOptions = scene.lights.map(function (l) {
  60097. return { label: l.name, value: l.name };
  60098. });
  60099. var lightInformationBlock = this.props.block;
  60100. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  60101. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  60102. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  60103. 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) {
  60104. lightInformationBlock.light = scene.getLightByName(name);
  60105. _this.forceUpdate();
  60106. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60107. } }))));
  60108. };
  60109. return LightInformationPropertyTabComponent;
  60110. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60111. /***/ }),
  60112. /***/ "./diagram/properties/lightPropertyTabComponent.tsx":
  60113. /*!**********************************************************!*\
  60114. !*** ./diagram/properties/lightPropertyTabComponent.tsx ***!
  60115. \**********************************************************/
  60116. /*! exports provided: LightPropertyTabComponent */
  60117. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60118. "use strict";
  60119. __webpack_require__.r(__webpack_exports__);
  60120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightPropertyTabComponent", function() { return LightPropertyTabComponent; });
  60121. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60122. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60123. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60124. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  60125. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  60126. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  60127. var LightPropertyTabComponent = /** @class */ (function (_super) {
  60128. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightPropertyTabComponent, _super);
  60129. function LightPropertyTabComponent() {
  60130. return _super !== null && _super.apply(this, arguments) || this;
  60131. }
  60132. LightPropertyTabComponent.prototype.render = function () {
  60133. var _this = this;
  60134. var scene = this.props.globalState.nodeMaterial.getScene();
  60135. var lightOptions = scene.lights.map(function (l) {
  60136. return { label: l.name, value: l.name };
  60137. });
  60138. lightOptions.splice(0, 0, { label: "All", value: "" });
  60139. var lightBlock = this.props.block;
  60140. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  60141. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  60142. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  60143. 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) {
  60144. if (name === "") {
  60145. lightBlock.light = null;
  60146. }
  60147. else {
  60148. lightBlock.light = scene.getLightByName(name);
  60149. }
  60150. _this.forceUpdate();
  60151. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60152. } }))));
  60153. };
  60154. return LightPropertyTabComponent;
  60155. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60156. /***/ }),
  60157. /***/ "./diagram/properties/nodePortPropertyComponent.tsx":
  60158. /*!**********************************************************!*\
  60159. !*** ./diagram/properties/nodePortPropertyComponent.tsx ***!
  60160. \**********************************************************/
  60161. /*! exports provided: NodePortPropertyTabComponent */
  60162. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60163. "use strict";
  60164. __webpack_require__.r(__webpack_exports__);
  60165. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodePortPropertyTabComponent", function() { return NodePortPropertyTabComponent; });
  60166. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60167. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60168. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60169. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  60170. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  60171. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  60172. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  60173. var NodePortPropertyTabComponent = /** @class */ (function (_super) {
  60174. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NodePortPropertyTabComponent, _super);
  60175. function NodePortPropertyTabComponent(props) {
  60176. return _super.call(this, props) || this;
  60177. }
  60178. NodePortPropertyTabComponent.prototype.componentWillUnmount = function () {
  60179. this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  60180. };
  60181. NodePortPropertyTabComponent.prototype.toggleExposeOnFrame = function (value) {
  60182. this.props.nodePort.exposedOnFrame = value;
  60183. this.props.globalState.onExposePortOnFrameObservable.notifyObservers(this.props.nodePort.node);
  60184. };
  60185. NodePortPropertyTabComponent.prototype.render = function () {
  60186. var _this = this;
  60187. var info = this.props.nodePort.hasLabel() ?
  60188. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  60189. 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 }),
  60190. 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 })) :
  60191. 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: " " });
  60192. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  60193. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  60194. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  60195. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  60196. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  60197. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" }, info))));
  60198. };
  60199. return NodePortPropertyTabComponent;
  60200. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60201. /***/ }),
  60202. /***/ "./diagram/properties/texturePropertyTabComponent.tsx":
  60203. /*!************************************************************!*\
  60204. !*** ./diagram/properties/texturePropertyTabComponent.tsx ***!
  60205. \************************************************************/
  60206. /*! exports provided: TexturePropertyTabComponent */
  60207. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60208. "use strict";
  60209. __webpack_require__.r(__webpack_exports__);
  60210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  60211. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60212. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60213. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60214. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  60215. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/dataStorage");
  60216. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  60217. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  60218. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  60219. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  60220. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  60221. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  60222. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  60223. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  60224. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  60225. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  60226. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TexturePropertyTabComponent, _super);
  60227. function TexturePropertyTabComponent(props) {
  60228. var _this = _super.call(this, props) || this;
  60229. var texture = _this.textureBlock.texture;
  60230. _this.state = { isEmbedded: !texture || texture.name.substring(0, 4) === "data", loadAsCubeTexture: texture && texture.isCube };
  60231. return _this;
  60232. }
  60233. Object.defineProperty(TexturePropertyTabComponent.prototype, "textureBlock", {
  60234. get: function () {
  60235. return this.props.block;
  60236. },
  60237. enumerable: false,
  60238. configurable: true
  60239. });
  60240. TexturePropertyTabComponent.prototype.UNSAFE_componentWillUpdate = function (nextProps, nextState) {
  60241. if (nextProps.block !== this.props.block) {
  60242. var texture = nextProps.block.texture;
  60243. nextState.isEmbedded = !texture || texture.name.substring(0, 4) === "data";
  60244. nextState.loadAsCubeTexture = texture && texture.isCube;
  60245. }
  60246. };
  60247. TexturePropertyTabComponent.prototype._generateRandomForCache = function () {
  60248. return 'xxxxxxxxxxxxxxxxxxxx'.replace(/[x]/g, function (c) {
  60249. var r = Math.random() * 10 | 0;
  60250. return r.toString();
  60251. });
  60252. };
  60253. TexturePropertyTabComponent.prototype.updateAfterTextureLoad = function () {
  60254. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60255. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60256. this.forceUpdate();
  60257. };
  60258. TexturePropertyTabComponent.prototype.removeTexture = function () {
  60259. var texture = this.textureBlock.texture;
  60260. if (texture) {
  60261. texture.dispose();
  60262. texture = null;
  60263. this.textureBlock.texture = null;
  60264. }
  60265. this.updateAfterTextureLoad();
  60266. };
  60267. TexturePropertyTabComponent.prototype._prepareTexture = function () {
  60268. var texture = this.textureBlock.texture;
  60269. if (texture && texture.isCube !== this.state.loadAsCubeTexture) {
  60270. texture.dispose();
  60271. texture = null;
  60272. }
  60273. if (!texture) {
  60274. if (!this.state.loadAsCubeTexture) {
  60275. 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);
  60276. texture = this.textureBlock.texture;
  60277. texture.coordinatesMode = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EQUIRECTANGULAR_MODE;
  60278. }
  60279. else {
  60280. this.textureBlock.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["CubeTexture"]("", this.props.globalState.nodeMaterial.getScene());
  60281. texture = this.textureBlock.texture;
  60282. texture.coordinatesMode = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CUBIC_MODE;
  60283. }
  60284. }
  60285. };
  60286. /**
  60287. * Replaces the texture of the node
  60288. * @param file the file of the texture to use
  60289. */
  60290. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  60291. var _this = this;
  60292. this._prepareTexture();
  60293. var texture = this.textureBlock.texture;
  60294. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  60295. var blob = new Blob([data], { type: "octet/stream" });
  60296. var reader = new FileReader();
  60297. reader.readAsDataURL(blob);
  60298. reader.onloadend = function () {
  60299. var base64data = reader.result;
  60300. var extension = undefined;
  60301. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  60302. extension = ".dds";
  60303. }
  60304. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  60305. extension = ".env";
  60306. }
  60307. texture.updateURL(base64data, extension, function () { return _this.updateAfterTextureLoad(); });
  60308. };
  60309. }, undefined, true);
  60310. };
  60311. TexturePropertyTabComponent.prototype.replaceTextureWithUrl = function (url) {
  60312. var _this = this;
  60313. this._prepareTexture();
  60314. var texture = this.textureBlock.texture;
  60315. 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"]) {
  60316. var extension = undefined;
  60317. if (url.toLowerCase().indexOf(".dds") > 0) {
  60318. extension = ".dds";
  60319. }
  60320. else if (url.toLowerCase().indexOf(".env") > 0) {
  60321. extension = ".env";
  60322. }
  60323. texture.updateURL(url, extension, function () { return _this.updateAfterTextureLoad(); });
  60324. }
  60325. else {
  60326. texture.updateURL(url, null, function () { return _this.updateAfterTextureLoad(); });
  60327. }
  60328. };
  60329. TexturePropertyTabComponent.prototype.render = function () {
  60330. var _this = this;
  60331. var url = "";
  60332. var texture = this.textureBlock.texture;
  60333. if (texture && texture.name && texture.name.substring(0, 4) !== "data") {
  60334. url = texture.name;
  60335. }
  60336. url = url.replace(/\?nocache=\d+/, "");
  60337. 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"];
  60338. var isFrozenTexture = this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["CurrentScreenBlock"] || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ParticleTextureBlock"];
  60339. var reflectionModeOptions = [
  60340. {
  60341. label: "Cubic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CUBIC_MODE
  60342. },
  60343. {
  60344. label: "Equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EQUIRECTANGULAR_MODE
  60345. },
  60346. {
  60347. label: "Explicit", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EXPLICIT_MODE
  60348. },
  60349. {
  60350. label: "Fixed equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].FIXED_EQUIRECTANGULAR_MODE
  60351. },
  60352. {
  60353. label: "Fixed mirrored equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].FIXED_EQUIRECTANGULAR_MIRRORED_MODE
  60354. },
  60355. {
  60356. label: "Planar", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].PLANAR_MODE
  60357. },
  60358. {
  60359. label: "Projection", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].PROJECTION_MODE
  60360. },
  60361. {
  60362. label: "Skybox", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].SKYBOX_MODE
  60363. },
  60364. {
  60365. label: "Spherical", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].SPHERICAL_MODE
  60366. },
  60367. ];
  60368. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  60369. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  60370. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  60371. 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 () {
  60372. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60373. } }),
  60374. texture && !isInReflectionMode &&
  60375. 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 () {
  60376. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60377. } }),
  60378. texture && !isInReflectionMode &&
  60379. 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 () {
  60380. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60381. } }),
  60382. texture && isInReflectionMode &&
  60383. 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) {
  60384. texture.coordinatesMode = value;
  60385. _this.forceUpdate();
  60386. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60387. } }),
  60388. texture && !isInReflectionMode && !isFrozenTexture &&
  60389. 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) {
  60390. texture.wrapU = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  60391. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60392. } }),
  60393. texture && !isInReflectionMode && !isFrozenTexture &&
  60394. 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) {
  60395. texture.wrapV = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  60396. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60397. } }),
  60398. texture && !isInReflectionMode && !isFrozenTexture &&
  60399. 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 () {
  60400. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60401. } }),
  60402. texture && !isInReflectionMode && !isFrozenTexture &&
  60403. 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 () {
  60404. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60405. } }),
  60406. texture && !isInReflectionMode && !isFrozenTexture &&
  60407. 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 () {
  60408. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60409. } }),
  60410. texture && !isInReflectionMode && !isFrozenTexture &&
  60411. 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 () {
  60412. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60413. } }),
  60414. texture && !isInReflectionMode && !isFrozenTexture &&
  60415. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rotation U", target: texture, propertyName: "uAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  60416. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60417. } }),
  60418. texture && !isInReflectionMode && !isFrozenTexture &&
  60419. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rotation V", target: texture, propertyName: "vAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  60420. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60421. } }),
  60422. texture && !isInReflectionMode && !isFrozenTexture &&
  60423. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rotation W", target: texture, propertyName: "wAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  60424. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60425. } })),
  60426. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "SOURCE" },
  60427. 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) {
  60428. _this.setState({ isEmbedded: value });
  60429. _this.textureBlock.texture = null;
  60430. _this.updateAfterTextureLoad();
  60431. } }),
  60432. isInReflectionMode &&
  60433. 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 }); } }),
  60434. this.state.isEmbedded &&
  60435. 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" }),
  60436. !this.state.isEmbedded &&
  60437. 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); } }),
  60438. !this.state.isEmbedded && url &&
  60439. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Refresh", onClick: function () { return _this.replaceTextureWithUrl(url + "?nocache=" + _this._generateRandomForCache()); } }),
  60440. texture &&
  60441. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Remove", onClick: function () { return _this.removeTexture(); } })),
  60442. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block })));
  60443. };
  60444. return TexturePropertyTabComponent;
  60445. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60446. /***/ }),
  60447. /***/ "./diagram/properties/transformNodePropertyComponent.tsx":
  60448. /*!***************************************************************!*\
  60449. !*** ./diagram/properties/transformNodePropertyComponent.tsx ***!
  60450. \***************************************************************/
  60451. /*! exports provided: TransformPropertyTabComponent */
  60452. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60453. "use strict";
  60454. __webpack_require__.r(__webpack_exports__);
  60455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformPropertyTabComponent", function() { return TransformPropertyTabComponent; });
  60456. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60457. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60458. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60459. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  60460. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  60461. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  60462. var TransformPropertyTabComponent = /** @class */ (function (_super) {
  60463. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TransformPropertyTabComponent, _super);
  60464. function TransformPropertyTabComponent(props) {
  60465. return _super.call(this, props) || this;
  60466. }
  60467. TransformPropertyTabComponent.prototype.render = function () {
  60468. var _this = this;
  60469. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  60470. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  60471. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  60472. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Transform as direction", onSelect: function (value) {
  60473. var transformBlock = _this.props.block;
  60474. if (value) {
  60475. transformBlock.complementW = 0;
  60476. }
  60477. else {
  60478. transformBlock.complementW = 1;
  60479. }
  60480. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60481. }, isSelected: function () { return _this.props.block.complementW === 0; } }))));
  60482. };
  60483. return TransformPropertyTabComponent;
  60484. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60485. /***/ }),
  60486. /***/ "./diagram/properties/trigonometryNodePropertyComponent.tsx":
  60487. /*!******************************************************************!*\
  60488. !*** ./diagram/properties/trigonometryNodePropertyComponent.tsx ***!
  60489. \******************************************************************/
  60490. /*! exports provided: TrigonometryPropertyTabComponent */
  60491. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60492. "use strict";
  60493. __webpack_require__.r(__webpack_exports__);
  60494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryPropertyTabComponent", function() { return TrigonometryPropertyTabComponent; });
  60495. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60496. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60497. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60498. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  60499. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  60500. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/dataStorage");
  60501. /* 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__);
  60502. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  60503. var TrigonometryPropertyTabComponent = /** @class */ (function (_super) {
  60504. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TrigonometryPropertyTabComponent, _super);
  60505. function TrigonometryPropertyTabComponent(props) {
  60506. return _super.call(this, props) || this;
  60507. }
  60508. TrigonometryPropertyTabComponent.prototype.render = function () {
  60509. var _this = this;
  60510. var trigonometryBlock = this.props.block;
  60511. var operationOptions = [
  60512. { label: "Cos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Cos },
  60513. { label: "Sin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Sin },
  60514. { label: "Abs", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Abs },
  60515. { label: "Exp", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Exp },
  60516. { label: "Exp2", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Exp2 },
  60517. { label: "Round", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Round },
  60518. { label: "Ceiling", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Ceiling },
  60519. { label: "Floor", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Floor },
  60520. { label: "ArcCos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcCos },
  60521. { label: "ArcSin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcSin },
  60522. { label: "ArcTan", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcTan },
  60523. { label: "Tan", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Tan },
  60524. { label: "Log", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Log },
  60525. { label: "Fract", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Fract },
  60526. { label: "Sign", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Sign },
  60527. { label: "Radians to degrees", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Degrees },
  60528. { label: "Degrees to radians", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Radians }
  60529. ];
  60530. operationOptions.sort(function (a, b) {
  60531. return a.label.localeCompare(b.label);
  60532. });
  60533. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  60534. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__["GeneralPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  60535. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  60536. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__["OptionsLineComponent"], { label: "Operation", options: operationOptions, target: trigonometryBlock, propertyName: "operation", onSelect: function (value) {
  60537. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  60538. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60539. _this.forceUpdate();
  60540. } }))));
  60541. };
  60542. return TrigonometryPropertyTabComponent;
  60543. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60544. /***/ }),
  60545. /***/ "./diagram/propertyLedger.ts":
  60546. /*!***********************************!*\
  60547. !*** ./diagram/propertyLedger.ts ***!
  60548. \***********************************/
  60549. /*! exports provided: PropertyLedger */
  60550. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60551. "use strict";
  60552. __webpack_require__.r(__webpack_exports__);
  60553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyLedger", function() { return PropertyLedger; });
  60554. /* harmony import */ var _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./properties/inputNodePropertyComponent */ "./diagram/properties/inputNodePropertyComponent.tsx");
  60555. /* harmony import */ var _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./properties/transformNodePropertyComponent */ "./diagram/properties/transformNodePropertyComponent.tsx");
  60556. /* harmony import */ var _properties_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./properties/gradientNodePropertyComponent */ "./diagram/properties/gradientNodePropertyComponent.tsx");
  60557. /* harmony import */ var _properties_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./properties/lightPropertyTabComponent */ "./diagram/properties/lightPropertyTabComponent.tsx");
  60558. /* harmony import */ var _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./properties/lightInformationPropertyTabComponent */ "./diagram/properties/lightInformationPropertyTabComponent.tsx");
  60559. /* harmony import */ var _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./properties/texturePropertyTabComponent */ "./diagram/properties/texturePropertyTabComponent.tsx");
  60560. /* harmony import */ var _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./properties/trigonometryNodePropertyComponent */ "./diagram/properties/trigonometryNodePropertyComponent.tsx");
  60561. var PropertyLedger = /** @class */ (function () {
  60562. function PropertyLedger() {
  60563. }
  60564. PropertyLedger.RegisteredControls = {};
  60565. return PropertyLedger;
  60566. }());
  60567. PropertyLedger.RegisteredControls["TransformBlock"] = _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_1__["TransformPropertyTabComponent"];
  60568. PropertyLedger.RegisteredControls["InputBlock"] = _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_0__["InputPropertyTabComponent"];
  60569. PropertyLedger.RegisteredControls["GradientBlock"] = _properties_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__["GradientPropertyTabComponent"];
  60570. PropertyLedger.RegisteredControls["LightBlock"] = _properties_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightPropertyTabComponent"];
  60571. PropertyLedger.RegisteredControls["LightInformationBlock"] = _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_4__["LightInformationPropertyTabComponent"];
  60572. PropertyLedger.RegisteredControls["TextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  60573. PropertyLedger.RegisteredControls["ReflectionTextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  60574. PropertyLedger.RegisteredControls["ReflectionBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  60575. PropertyLedger.RegisteredControls["RefractionBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  60576. PropertyLedger.RegisteredControls["CurrentScreenBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  60577. PropertyLedger.RegisteredControls["ParticleTextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["TexturePropertyTabComponent"];
  60578. PropertyLedger.RegisteredControls["TrigonometryBlock"] = _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__["TrigonometryPropertyTabComponent"];
  60579. /***/ }),
  60580. /***/ "./globalState.ts":
  60581. /*!************************!*\
  60582. !*** ./globalState.ts ***!
  60583. \************************/
  60584. /*! exports provided: GlobalState */
  60585. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60586. "use strict";
  60587. __webpack_require__.r(__webpack_exports__);
  60588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  60589. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/dataStorage");
  60590. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  60591. /* harmony import */ var _components_preview_previewType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/preview/previewType */ "./components/preview/previewType.ts");
  60592. var GlobalState = /** @class */ (function () {
  60593. function GlobalState() {
  60594. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60595. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60596. this.onBuiltObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60597. this.onResetRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60598. this.onUpdateRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60599. this.onZoomToFitRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60600. this.onReOrganizedRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60601. this.onLogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60602. this.onErrorMessageDialogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60603. this.onIsLoadingChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60604. this.onPreviewCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60605. this.onLightUpdated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60606. this.onPreviewBackgroundChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60607. this.onBackFaceCullingChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60608. this.onDepthPrePassChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60609. this.onAnimationCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60610. this.onCandidateLinkMoved = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60611. this.onSelectionBoxMoved = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60612. this.onFrameCreatedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60613. this.onCandidatePortSelectedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60614. this.onImportFrameObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60615. this.onGraphNodeRemovalObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60616. this.onGridSizeChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60617. this.onExposePortOnFrameObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  60618. this.listOfCustomPreviewFiles = [];
  60619. this.blockKeyboardEvents = false;
  60620. this.previewType = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("PreviewType", _components_preview_previewType__WEBPACK_IMPORTED_MODULE_1__["PreviewType"].Box);
  60621. this.backFaceCulling = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("BackFaceCulling", true);
  60622. this.depthPrePass = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("DepthPrePass", false);
  60623. this.hemisphericLight = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("HemisphericLight", true);
  60624. this.directionalLight0 = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("DirectionalLight0", false);
  60625. this.directionalLight1 = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("DirectionalLight1", false);
  60626. this.controlCamera = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("ControlCamera", true);
  60627. this._mode = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("Mode", babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialModes"].Material);
  60628. var r = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("BackgroundColorR", 0.12549019607843137);
  60629. var g = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("BackgroundColorG", 0.09803921568627451);
  60630. var b = babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadNumber("BackgroundColorB", 0.25098039215686274);
  60631. this.backgroundColor = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color4"](r, g, b, 1.0);
  60632. }
  60633. Object.defineProperty(GlobalState.prototype, "mode", {
  60634. /** Gets the mode */
  60635. get: function () {
  60636. return this._mode;
  60637. },
  60638. /** Sets the mode */
  60639. set: function (m) {
  60640. babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].WriteNumber("Mode", m);
  60641. this._mode = m;
  60642. this.onPreviewCommandActivated.notifyObservers(true);
  60643. },
  60644. enumerable: false,
  60645. configurable: true
  60646. });
  60647. return GlobalState;
  60648. }());
  60649. /***/ }),
  60650. /***/ "./graphEditor.tsx":
  60651. /*!*************************!*\
  60652. !*** ./graphEditor.tsx ***!
  60653. \*************************/
  60654. /*! exports provided: GraphEditor */
  60655. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60656. "use strict";
  60657. __webpack_require__.r(__webpack_exports__);
  60658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  60659. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60660. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60661. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60662. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  60663. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  60664. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  60665. /* harmony import */ var _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/log/logComponent */ "./components/log/logComponent.tsx");
  60666. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  60667. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__);
  60668. /* harmony import */ var _sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./sharedComponents/messageDialog */ "./sharedComponents/messageDialog.tsx");
  60669. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./blockTools */ "./blockTools.ts");
  60670. /* harmony import */ var _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/preview/previewManager */ "./components/preview/previewManager.ts");
  60671. /* harmony import */ var _components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/preview/previewMeshControlComponent */ "./components/preview/previewMeshControlComponent.tsx");
  60672. /* harmony import */ var _components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/preview/previewAreaComponent */ "./components/preview/previewAreaComponent.tsx");
  60673. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  60674. /* harmony import */ var _diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diagram/graphCanvas */ "./diagram/graphCanvas.tsx");
  60675. /* harmony import */ var _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagram/graphFrame */ "./diagram/graphFrame.ts");
  60676. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  60677. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_15__);
  60678. __webpack_require__(/*! ./main.scss */ "./main.scss");
  60679. ;
  60680. var GraphEditor = /** @class */ (function (_super) {
  60681. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphEditor, _super);
  60682. function GraphEditor(props) {
  60683. var _this = _super.call(this, props) || this;
  60684. _this.NodeWidth = 100;
  60685. _this._leftWidth = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("LeftWidth", 200);
  60686. _this._rightWidth = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("RightWidth", 300);
  60687. _this._blocks = new Array();
  60688. _this._copiedNodes = [];
  60689. _this._copiedFrame = null;
  60690. _this._mouseLocationX = 0;
  60691. _this._mouseLocationY = 0;
  60692. _this.handlePopUp = function () {
  60693. _this.setState({
  60694. showPreviewPopUp: true
  60695. });
  60696. _this.createPopUp();
  60697. _this.props.globalState.hostWindow.addEventListener('beforeunload', _this.handleClosingPopUp);
  60698. };
  60699. _this.handleClosingPopUp = function () {
  60700. _this._previewManager.dispose();
  60701. _this._popUpWindow.close();
  60702. _this.setState({
  60703. showPreviewPopUp: false
  60704. }, function () { return _this.initiatePreviewArea(); });
  60705. };
  60706. _this.initiatePreviewArea = function (canvas) {
  60707. if (canvas === void 0) { canvas = _this.props.globalState.hostDocument.getElementById("preview-canvas"); }
  60708. _this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_9__["PreviewManager"](canvas, _this.props.globalState);
  60709. };
  60710. _this.createPopUp = function () {
  60711. var userOptions = {
  60712. original: true,
  60713. popup: true,
  60714. overlay: false,
  60715. embedMode: false,
  60716. enableClose: true,
  60717. handleResize: true,
  60718. enablePopup: true,
  60719. };
  60720. var options = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ embedHostWidth: "100%" }, userOptions);
  60721. var popUpWindow = _this.createPopupWindow("PREVIEW AREA", "_PreviewHostWindow");
  60722. if (popUpWindow) {
  60723. popUpWindow.addEventListener('beforeunload', _this.handleClosingPopUp);
  60724. var parentControl = popUpWindow.document.getElementById('node-editor-graph-root');
  60725. _this.createPreviewMeshControlHost(options, parentControl);
  60726. _this.createPreviewHost(options, parentControl);
  60727. if (parentControl) {
  60728. _this.fixPopUpStyles(parentControl.ownerDocument);
  60729. _this.initiatePreviewArea(parentControl.ownerDocument.getElementById("preview-canvas"));
  60730. }
  60731. }
  60732. };
  60733. _this.createPopupWindow = function (title, windowVariableName, width, height) {
  60734. if (width === void 0) { width = 500; }
  60735. if (height === void 0) { height = 500; }
  60736. var windowCreationOptionsList = {
  60737. width: width,
  60738. height: height,
  60739. top: (_this.props.globalState.hostWindow.innerHeight - width) / 2 + window.screenY,
  60740. left: (_this.props.globalState.hostWindow.innerWidth - height) / 2 + window.screenX
  60741. };
  60742. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  60743. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  60744. .join(',');
  60745. var popupWindow = _this.props.globalState.hostWindow.open("", title, windowCreationOptions);
  60746. if (!popupWindow) {
  60747. return null;
  60748. }
  60749. var parentDocument = popupWindow.document;
  60750. parentDocument.title = title;
  60751. parentDocument.body.style.width = "100%";
  60752. parentDocument.body.style.height = "100%";
  60753. parentDocument.body.style.margin = "0";
  60754. parentDocument.body.style.padding = "0";
  60755. var parentControl = parentDocument.createElement("div");
  60756. parentControl.style.width = "100%";
  60757. parentControl.style.height = "100%";
  60758. parentControl.style.margin = "0";
  60759. parentControl.style.padding = "0";
  60760. parentControl.style.display = "grid";
  60761. parentControl.style.gridTemplateRows = "40px auto";
  60762. parentControl.id = 'node-editor-graph-root';
  60763. parentControl.className = 'right-panel';
  60764. popupWindow.document.body.appendChild(parentControl);
  60765. _this.copyStyles(_this.props.globalState.hostWindow.document, parentDocument);
  60766. _this[windowVariableName] = popupWindow;
  60767. _this._popUpWindow = popupWindow;
  60768. return popupWindow;
  60769. };
  60770. _this.copyStyles = function (sourceDoc, targetDoc) {
  60771. var styleContainer = [];
  60772. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  60773. var styleSheet = sourceDoc.styleSheets[index];
  60774. try {
  60775. if (styleSheet.href) { // for <link> elements loading CSS from a URL
  60776. var newLinkEl = sourceDoc.createElement('link');
  60777. newLinkEl.rel = 'stylesheet';
  60778. newLinkEl.href = styleSheet.href;
  60779. targetDoc.head.appendChild(newLinkEl);
  60780. styleContainer.push(newLinkEl);
  60781. }
  60782. else if (styleSheet.cssRules) { // for <style> elements
  60783. var newStyleEl = sourceDoc.createElement('style');
  60784. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  60785. var cssRule = _a[_i];
  60786. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  60787. }
  60788. targetDoc.head.appendChild(newStyleEl);
  60789. styleContainer.push(newStyleEl);
  60790. }
  60791. }
  60792. catch (e) {
  60793. console.log(e);
  60794. }
  60795. }
  60796. };
  60797. _this.createPreviewMeshControlHost = function (options, parentControl) {
  60798. // Prepare the preview control host
  60799. if (parentControl) {
  60800. var host = parentControl.ownerDocument.createElement("div");
  60801. host.id = "PreviewMeshControl-host";
  60802. host.style.width = options.embedHostWidth || "auto";
  60803. parentControl.appendChild(host);
  60804. var PreviewMeshControlComponentHost = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_10__["PreviewMeshControlComponent"], {
  60805. globalState: _this.props.globalState,
  60806. togglePreviewAreaComponent: _this.handlePopUp
  60807. });
  60808. react_dom__WEBPACK_IMPORTED_MODULE_15__["render"](PreviewMeshControlComponentHost, host);
  60809. }
  60810. };
  60811. _this.createPreviewHost = function (options, parentControl) {
  60812. // Prepare the preview host
  60813. if (parentControl) {
  60814. var host = parentControl.ownerDocument.createElement("div");
  60815. host.id = "PreviewAreaComponent-host";
  60816. host.style.width = options.embedHostWidth || "auto";
  60817. host.style.display = "grid";
  60818. host.style.gridRow = '2';
  60819. host.style.gridTemplateRows = "auto 40px";
  60820. parentControl.appendChild(host);
  60821. _this._previewHost = host;
  60822. if (!options.overlay) {
  60823. _this._previewHost.style.position = "relative";
  60824. }
  60825. }
  60826. if (_this._previewHost) {
  60827. var PreviewAreaComponentHost = react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_11__["PreviewAreaComponent"], {
  60828. globalState: _this.props.globalState,
  60829. width: 200
  60830. });
  60831. react_dom__WEBPACK_IMPORTED_MODULE_15__["render"](PreviewAreaComponentHost, _this._previewHost);
  60832. }
  60833. };
  60834. _this.fixPopUpStyles = function (document) {
  60835. var previewContainer = document.getElementById("preview");
  60836. if (previewContainer) {
  60837. previewContainer.style.height = "auto";
  60838. previewContainer.style.gridRow = "1";
  60839. }
  60840. var previewConfigBar = document.getElementById("preview-config-bar");
  60841. if (previewConfigBar) {
  60842. previewConfigBar.style.gridRow = "2";
  60843. }
  60844. var newWindowButton = document.getElementById('preview-new-window');
  60845. if (newWindowButton) {
  60846. newWindowButton.style.display = 'none';
  60847. }
  60848. var previewMeshBar = document.getElementById('preview-mesh-bar');
  60849. if (previewMeshBar) {
  60850. previewMeshBar.style.gridTemplateColumns = "auto 1fr 40px 40px";
  60851. }
  60852. };
  60853. _this.state = {
  60854. showPreviewPopUp: false
  60855. };
  60856. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  60857. if (_this.props.globalState.nodeMaterial) {
  60858. _this.buildMaterial();
  60859. }
  60860. });
  60861. _this.props.globalState.onResetRequiredObservable.add(function () {
  60862. _this.build();
  60863. if (_this.props.globalState.nodeMaterial) {
  60864. _this.buildMaterial();
  60865. }
  60866. });
  60867. _this.props.globalState.onImportFrameObservable.add(function (source) {
  60868. var frameData = source.editorData.frames[0];
  60869. // create new graph nodes for only blocks from frame (last blocks added)
  60870. _this.props.globalState.nodeMaterial.attachedBlocks.slice(-(frameData.blocks.length)).forEach(function (block) {
  60871. _this.createNodeFromObject(block);
  60872. });
  60873. _this._graphCanvas.addFrame(frameData);
  60874. _this.reOrganize(_this.props.globalState.nodeMaterial.editorData, true);
  60875. });
  60876. _this.props.globalState.onZoomToFitRequiredObservable.add(function () {
  60877. _this.zoomToFit();
  60878. });
  60879. _this.props.globalState.onReOrganizedRequiredObservable.add(function () {
  60880. _this.reOrganize();
  60881. });
  60882. _this.props.globalState.onGetNodeFromBlock = function (block) {
  60883. return _this._graphCanvas.findNodeFromBlock(block);
  60884. };
  60885. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  60886. if ((evt.keyCode === 46 || evt.keyCode === 8) && !_this.props.globalState.blockKeyboardEvents) { // Delete
  60887. var selectedItems = _this._graphCanvas.selectedNodes;
  60888. for (var _i = 0, selectedItems_1 = selectedItems; _i < selectedItems_1.length; _i++) {
  60889. var selectedItem = selectedItems_1[_i];
  60890. selectedItem.dispose();
  60891. var targetBlock = selectedItem.block;
  60892. _this.props.globalState.nodeMaterial.removeBlock(targetBlock);
  60893. var blockIndex = _this._blocks.indexOf(targetBlock);
  60894. if (blockIndex > -1) {
  60895. _this._blocks.splice(blockIndex, 1);
  60896. }
  60897. }
  60898. if (_this._graphCanvas.selectedLink) {
  60899. _this._graphCanvas.selectedLink.dispose();
  60900. }
  60901. if (_this._graphCanvas.selectedFrame) {
  60902. _this._graphCanvas.selectedFrame.dispose();
  60903. }
  60904. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  60905. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  60906. return;
  60907. }
  60908. if (!evt.ctrlKey || _this.props.globalState.blockKeyboardEvents) {
  60909. return;
  60910. }
  60911. if (evt.key === "c") { // Copy
  60912. _this._copiedNodes = [];
  60913. _this._copiedFrame = null;
  60914. if (_this._graphCanvas.selectedFrame) {
  60915. _this._copiedFrame = _this._graphCanvas.selectedFrame;
  60916. return;
  60917. }
  60918. var selectedItems = _this._graphCanvas.selectedNodes;
  60919. if (!selectedItems.length) {
  60920. return;
  60921. }
  60922. var selectedItem_1 = selectedItems[0];
  60923. if (!selectedItem_1.block) {
  60924. return;
  60925. }
  60926. _this._copiedNodes = selectedItems.slice(0);
  60927. }
  60928. else if (evt.key === "v") { // Paste
  60929. var rootElement = _this.props.globalState.hostDocument.querySelector(".diagram-container");
  60930. var zoomLevel = _this._graphCanvas.zoom;
  60931. var currentY = (_this._mouseLocationY - rootElement.offsetTop - _this._graphCanvas.y - 20) / zoomLevel;
  60932. if (_this._copiedFrame) {
  60933. // New frame
  60934. var newFrame = new _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_14__["GraphFrame"](null, _this._graphCanvas, true);
  60935. _this._graphCanvas.frames.push(newFrame);
  60936. newFrame.width = _this._copiedFrame.width;
  60937. newFrame.height = _this._copiedFrame.height;
  60938. newFrame.width / 2;
  60939. newFrame.name = _this._copiedFrame.name;
  60940. newFrame.color = _this._copiedFrame.color;
  60941. var currentX_1 = (_this._mouseLocationX - rootElement.offsetLeft - _this._graphCanvas.x) / zoomLevel;
  60942. newFrame.x = currentX_1 - newFrame.width / 2;
  60943. newFrame.y = currentY;
  60944. // Paste nodes
  60945. if (_this._copiedFrame.nodes.length) {
  60946. currentX_1 = newFrame.x + _this._copiedFrame.nodes[0].x - _this._copiedFrame.x;
  60947. currentY = newFrame.y + _this._copiedFrame.nodes[0].y - _this._copiedFrame.y;
  60948. _this._graphCanvas._frameIsMoving = true;
  60949. var newNodes = _this.pasteSelection(_this._copiedFrame.nodes, currentX_1, currentY);
  60950. if (newNodes) {
  60951. for (var _a = 0, newNodes_1 = newNodes; _a < newNodes_1.length; _a++) {
  60952. var node = newNodes_1[_a];
  60953. newFrame.syncNode(node);
  60954. }
  60955. }
  60956. _this._graphCanvas._frameIsMoving = false;
  60957. }
  60958. if (_this._copiedFrame.isCollapsed) {
  60959. newFrame.isCollapsed = true;
  60960. }
  60961. // Select
  60962. _this.props.globalState.onSelectionChangedObservable.notifyObservers(newFrame);
  60963. return;
  60964. }
  60965. if (!_this._copiedNodes.length) {
  60966. return;
  60967. }
  60968. var currentX = (_this._mouseLocationX - rootElement.offsetLeft - _this._graphCanvas.x - _this.NodeWidth) / zoomLevel;
  60969. _this.pasteSelection(_this._copiedNodes, currentX, currentY, true);
  60970. }
  60971. }, false);
  60972. return _this;
  60973. }
  60974. /**
  60975. * Creates a node and recursivly creates its parent nodes from it's input
  60976. * @param nodeMaterialBlock
  60977. */
  60978. GraphEditor.prototype.createNodeFromObject = function (block, recursion) {
  60979. if (recursion === void 0) { recursion = true; }
  60980. if (this._blocks.indexOf(block) !== -1) {
  60981. return this._graphCanvas.nodes.filter(function (n) { return n.block === block; })[0];
  60982. }
  60983. this._blocks.push(block);
  60984. if (this.props.globalState.nodeMaterial.attachedBlocks.indexOf(block) === -1) {
  60985. this.props.globalState.nodeMaterial.attachedBlocks.push(block);
  60986. }
  60987. if (block.isFinalMerger) {
  60988. this.props.globalState.nodeMaterial.addOutputNode(block);
  60989. }
  60990. // Connections
  60991. if (block.inputs.length) {
  60992. for (var _i = 0, _a = block.inputs; _i < _a.length; _i++) {
  60993. var input = _a[_i];
  60994. if (input.isConnected && recursion) {
  60995. this.createNodeFromObject(input.sourceBlock);
  60996. }
  60997. }
  60998. }
  60999. // Graph
  61000. var node = this._graphCanvas.appendBlock(block);
  61001. // Links
  61002. if (block.inputs.length && recursion) {
  61003. for (var _b = 0, _c = block.inputs; _b < _c.length; _b++) {
  61004. var input = _c[_b];
  61005. if (input.isConnected) {
  61006. this._graphCanvas.connectPorts(input.connectedPoint, input);
  61007. }
  61008. }
  61009. }
  61010. return node;
  61011. };
  61012. GraphEditor.prototype.addValueNode = function (type) {
  61013. var nodeType = _blockTools__WEBPACK_IMPORTED_MODULE_8__["BlockTools"].GetConnectionNodeTypeFromString(type);
  61014. var newInputBlock = new babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["InputBlock"](type, undefined, nodeType);
  61015. return this.createNodeFromObject(newInputBlock);
  61016. };
  61017. GraphEditor.prototype.componentDidMount = function () {
  61018. if (this.props.globalState.hostDocument) {
  61019. this._graphCanvas = this.refs["graphCanvas"];
  61020. this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_9__["PreviewManager"](this.props.globalState.hostDocument.getElementById("preview-canvas"), this.props.globalState);
  61021. }
  61022. if (navigator.userAgent.indexOf("Mobile") !== -1) {
  61023. (this.props.globalState.hostDocument || document).querySelector(".blocker").style.visibility = "visible";
  61024. }
  61025. this.build();
  61026. };
  61027. GraphEditor.prototype.componentWillUnmount = function () {
  61028. if (this.props.globalState.hostDocument) {
  61029. this.props.globalState.hostDocument.removeEventListener("keyup", this._onWidgetKeyUpPointer, false);
  61030. }
  61031. if (this._previewManager) {
  61032. this._previewManager.dispose();
  61033. }
  61034. };
  61035. GraphEditor.prototype.reconnectNewNodes = function (nodeIndex, newNodes, sourceNodes, done) {
  61036. if (done[nodeIndex]) {
  61037. return;
  61038. }
  61039. var currentNode = newNodes[nodeIndex];
  61040. var block = currentNode.block;
  61041. var sourceNode = sourceNodes[nodeIndex];
  61042. var _loop_1 = function () {
  61043. var sourceInput = sourceNode.block.inputs[inputIndex];
  61044. var currentInput = block.inputs[inputIndex];
  61045. if (!sourceInput.isConnected) {
  61046. return "continue";
  61047. }
  61048. var sourceBlock = sourceInput.connectedPoint.ownerBlock;
  61049. var activeNodes = sourceNodes.filter(function (s) { return s.block === sourceBlock; });
  61050. if (activeNodes.length > 0) {
  61051. var activeNode = activeNodes[0];
  61052. var indexInList = sourceNodes.indexOf(activeNode);
  61053. // First make sure to connect the other one
  61054. this_1.reconnectNewNodes(indexInList, newNodes, sourceNodes, done);
  61055. // Then reconnect
  61056. var outputIndex = sourceBlock.outputs.indexOf(sourceInput.connectedPoint);
  61057. var newOutput = newNodes[indexInList].block.outputs[outputIndex];
  61058. newOutput.connectTo(currentInput);
  61059. }
  61060. else {
  61061. // Connect with outside blocks
  61062. sourceInput._connectedPoint.connectTo(currentInput);
  61063. }
  61064. this_1._graphCanvas.connectPorts(currentInput.connectedPoint, currentInput);
  61065. };
  61066. var this_1 = this;
  61067. for (var inputIndex = 0; inputIndex < sourceNode.block.inputs.length; inputIndex++) {
  61068. _loop_1();
  61069. }
  61070. currentNode.refresh();
  61071. done[nodeIndex] = true;
  61072. };
  61073. GraphEditor.prototype.pasteSelection = function (copiedNodes, currentX, currentY, selectNew) {
  61074. if (selectNew === void 0) { selectNew = false; }
  61075. var originalNode = null;
  61076. var newNodes = [];
  61077. // Copy to prevent recursive side effects while creating nodes.
  61078. copiedNodes = copiedNodes.slice();
  61079. // Cancel selection
  61080. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  61081. // Create new nodes
  61082. for (var _i = 0, copiedNodes_1 = copiedNodes; _i < copiedNodes_1.length; _i++) {
  61083. var node = copiedNodes_1[_i];
  61084. var block = node.block;
  61085. if (!block) {
  61086. continue;
  61087. }
  61088. var clone = block.clone(this.props.globalState.nodeMaterial.getScene());
  61089. if (!clone) {
  61090. return;
  61091. }
  61092. var newNode = this.createNodeFromObject(clone, false);
  61093. var x = 0;
  61094. var y = 0;
  61095. if (originalNode) {
  61096. x = currentX + node.x - originalNode.x;
  61097. y = currentY + node.y - originalNode.y;
  61098. }
  61099. else {
  61100. originalNode = node;
  61101. x = currentX;
  61102. y = currentY;
  61103. }
  61104. newNode.x = x;
  61105. newNode.y = y;
  61106. newNode.cleanAccumulation();
  61107. newNodes.push(newNode);
  61108. if (selectNew) {
  61109. this.props.globalState.onSelectionChangedObservable.notifyObservers(newNode);
  61110. }
  61111. }
  61112. // Relink
  61113. var done = new Array(newNodes.length);
  61114. for (var index = 0; index < newNodes.length; index++) {
  61115. this.reconnectNewNodes(index, newNodes, copiedNodes, done);
  61116. }
  61117. return newNodes;
  61118. };
  61119. GraphEditor.prototype.zoomToFit = function () {
  61120. this._graphCanvas.zoomToFit();
  61121. };
  61122. GraphEditor.prototype.buildMaterial = function () {
  61123. if (!this.props.globalState.nodeMaterial) {
  61124. return;
  61125. }
  61126. try {
  61127. this.props.globalState.nodeMaterial.options.emitComments = true;
  61128. this.props.globalState.nodeMaterial.build(true);
  61129. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogEntry"]("Node material build successful", false));
  61130. }
  61131. catch (err) {
  61132. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogEntry"](err, true));
  61133. }
  61134. _serializationTools__WEBPACK_IMPORTED_MODULE_12__["SerializationTools"].UpdateLocations(this.props.globalState.nodeMaterial, this.props.globalState);
  61135. this.props.globalState.onBuiltObservable.notifyObservers();
  61136. };
  61137. GraphEditor.prototype.build = function () {
  61138. var editorData = this.props.globalState.nodeMaterial.editorData;
  61139. this._graphCanvas._isLoading = true; // Will help loading large graphes
  61140. if (editorData instanceof Array) {
  61141. editorData = {
  61142. locations: editorData
  61143. };
  61144. }
  61145. // setup the diagram model
  61146. this._blocks = [];
  61147. this._graphCanvas.reset();
  61148. // Load graph of nodes from the material
  61149. if (this.props.globalState.nodeMaterial) {
  61150. this.loadGraph();
  61151. }
  61152. this.reOrganize(editorData);
  61153. };
  61154. GraphEditor.prototype.loadGraph = function () {
  61155. var _this = this;
  61156. var material = this.props.globalState.nodeMaterial;
  61157. material._vertexOutputNodes.forEach(function (n) {
  61158. _this.createNodeFromObject(n, true);
  61159. });
  61160. material._fragmentOutputNodes.forEach(function (n) {
  61161. _this.createNodeFromObject(n, true);
  61162. });
  61163. material.attachedBlocks.forEach(function (n) {
  61164. _this.createNodeFromObject(n, true);
  61165. });
  61166. // Links
  61167. material.attachedBlocks.forEach(function (n) {
  61168. if (n.inputs.length) {
  61169. for (var _i = 0, _a = n.inputs; _i < _a.length; _i++) {
  61170. var input = _a[_i];
  61171. if (input.isConnected) {
  61172. _this._graphCanvas.connectPorts(input.connectedPoint, input);
  61173. }
  61174. }
  61175. }
  61176. });
  61177. };
  61178. GraphEditor.prototype.showWaitScreen = function () {
  61179. var _a;
  61180. (_a = this.props.globalState.hostDocument.querySelector(".wait-screen")) === null || _a === void 0 ? void 0 : _a.classList.remove("hidden");
  61181. };
  61182. GraphEditor.prototype.hideWaitScreen = function () {
  61183. var _a;
  61184. (_a = this.props.globalState.hostDocument.querySelector(".wait-screen")) === null || _a === void 0 ? void 0 : _a.classList.add("hidden");
  61185. };
  61186. GraphEditor.prototype.reOrganize = function (editorData, isImportingAFrame) {
  61187. var _this = this;
  61188. if (editorData === void 0) { editorData = null; }
  61189. if (isImportingAFrame === void 0) { isImportingAFrame = false; }
  61190. this.showWaitScreen();
  61191. this._graphCanvas._isLoading = true; // Will help loading large graphes
  61192. setTimeout(function () {
  61193. if (!editorData || !editorData.locations) {
  61194. _this._graphCanvas.distributeGraph();
  61195. }
  61196. else {
  61197. // Locations
  61198. for (var _i = 0, _a = editorData.locations; _i < _a.length; _i++) {
  61199. var location = _a[_i];
  61200. for (var _b = 0, _c = _this._graphCanvas.nodes; _b < _c.length; _b++) {
  61201. var node = _c[_b];
  61202. if (node.block && node.block.uniqueId === location.blockId) {
  61203. node.x = location.x;
  61204. node.y = location.y;
  61205. node.cleanAccumulation();
  61206. break;
  61207. }
  61208. }
  61209. }
  61210. if (!isImportingAFrame) {
  61211. _this._graphCanvas.processEditorData(editorData);
  61212. }
  61213. }
  61214. _this._graphCanvas._isLoading = false;
  61215. for (var _d = 0, _e = _this._graphCanvas.nodes; _d < _e.length; _d++) {
  61216. var node = _e[_d];
  61217. node._refreshLinks();
  61218. }
  61219. _this.hideWaitScreen();
  61220. });
  61221. };
  61222. GraphEditor.prototype.onPointerDown = function (evt) {
  61223. this._startX = evt.clientX;
  61224. this._moveInProgress = true;
  61225. evt.currentTarget.setPointerCapture(evt.pointerId);
  61226. };
  61227. GraphEditor.prototype.onPointerUp = function (evt) {
  61228. this._moveInProgress = false;
  61229. evt.currentTarget.releasePointerCapture(evt.pointerId);
  61230. };
  61231. GraphEditor.prototype.resizeColumns = function (evt, forLeft) {
  61232. if (forLeft === void 0) { forLeft = true; }
  61233. if (!this._moveInProgress) {
  61234. return;
  61235. }
  61236. var deltaX = evt.clientX - this._startX;
  61237. var rootElement = evt.currentTarget.ownerDocument.getElementById("node-editor-graph-root");
  61238. if (forLeft) {
  61239. this._leftWidth += deltaX;
  61240. this._leftWidth = Math.max(150, Math.min(400, this._leftWidth));
  61241. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("LeftWidth", this._leftWidth);
  61242. }
  61243. else {
  61244. this._rightWidth -= deltaX;
  61245. this._rightWidth = Math.max(250, Math.min(500, this._rightWidth));
  61246. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].WriteNumber("RightWidth", this._rightWidth);
  61247. rootElement.ownerDocument.getElementById("preview").style.height = this._rightWidth + "px";
  61248. }
  61249. rootElement.style.gridTemplateColumns = this.buildColumnLayout();
  61250. this._startX = evt.clientX;
  61251. };
  61252. GraphEditor.prototype.buildColumnLayout = function () {
  61253. return this._leftWidth + "px 4px calc(100% - " + (this._leftWidth + 8 + this._rightWidth) + "px) 4px " + this._rightWidth + "px";
  61254. };
  61255. GraphEditor.prototype.emitNewBlock = function (event) {
  61256. var _this = this;
  61257. var data = event.dataTransfer.getData("babylonjs-material-node");
  61258. var newNode;
  61259. if (data.indexOf("Custom") > -1) {
  61260. var storageData = localStorage.getItem(data);
  61261. if (storageData) {
  61262. var frameData = JSON.parse(storageData);
  61263. //edit position before loading.
  61264. var newX = (event.clientX - event.currentTarget.offsetLeft - this._graphCanvas.x - this.NodeWidth) / this._graphCanvas.zoom;
  61265. var newY = (event.clientY - event.currentTarget.offsetTop - this._graphCanvas.y - 20) / this._graphCanvas.zoom;
  61266. ;
  61267. var oldX = frameData.editorData.frames[0].x;
  61268. var oldY = frameData.editorData.frames[0].y;
  61269. frameData.editorData.frames[0].x = newX;
  61270. frameData.editorData.frames[0].y = newY;
  61271. for (var _i = 0, _a = frameData.editorData.locations; _i < _a.length; _i++) {
  61272. var location = _a[_i];
  61273. location.x += newX - oldX;
  61274. location.y += newY - oldY;
  61275. }
  61276. _serializationTools__WEBPACK_IMPORTED_MODULE_12__["SerializationTools"].AddFrameToMaterial(frameData, this.props.globalState, this.props.globalState.nodeMaterial);
  61277. this._graphCanvas.frames[this._graphCanvas.frames.length - 1].cleanAccumulation();
  61278. this.forceUpdate();
  61279. return;
  61280. }
  61281. }
  61282. if (data.indexOf("Block") === -1) {
  61283. newNode = this.addValueNode(data);
  61284. }
  61285. else {
  61286. var block_1 = _blockTools__WEBPACK_IMPORTED_MODULE_8__["BlockTools"].GetBlockFromString(data, this.props.globalState.nodeMaterial.getScene(), this.props.globalState.nodeMaterial);
  61287. if (block_1.isUnique) {
  61288. var className = block_1.getClassName();
  61289. for (var _b = 0, _c = this._blocks; _b < _c.length; _b++) {
  61290. var other = _c[_b];
  61291. if (other !== block_1 && other.getClassName() === className) {
  61292. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("You can only have one " + className + " per graph");
  61293. return;
  61294. }
  61295. }
  61296. }
  61297. block_1.autoConfigure(this.props.globalState.nodeMaterial);
  61298. newNode = this.createNodeFromObject(block_1);
  61299. }
  61300. ;
  61301. var x = event.clientX - event.currentTarget.offsetLeft - this._graphCanvas.x - this.NodeWidth;
  61302. var y = event.clientY - event.currentTarget.offsetTop - this._graphCanvas.y - 20;
  61303. newNode.x = x / this._graphCanvas.zoom;
  61304. newNode.y = y / this._graphCanvas.zoom;
  61305. newNode.cleanAccumulation();
  61306. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  61307. this.props.globalState.onSelectionChangedObservable.notifyObservers(newNode);
  61308. var block = newNode.block;
  61309. x -= this.NodeWidth + 150;
  61310. block.inputs.forEach(function (connection) {
  61311. if (connection.connectedPoint) {
  61312. var existingNodes = _this._graphCanvas.nodes.filter(function (n) { return n.block === connection.connectedPoint.ownerBlock; });
  61313. var connectedNode = existingNodes[0];
  61314. if (connectedNode.x === 0 && connectedNode.y === 0) {
  61315. connectedNode.x = x / _this._graphCanvas.zoom;
  61316. connectedNode.y = y / _this._graphCanvas.zoom;
  61317. connectedNode.cleanAccumulation();
  61318. y += 80;
  61319. }
  61320. }
  61321. });
  61322. this.forceUpdate();
  61323. };
  61324. GraphEditor.prototype.render = function () {
  61325. var _this = this;
  61326. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_4__["Portal"], { globalState: this.props.globalState },
  61327. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "node-editor-graph-root", style: {
  61328. gridTemplateColumns: this.buildColumnLayout()
  61329. }, onMouseMove: function (evt) {
  61330. _this._mouseLocationX = evt.pageX;
  61331. _this._mouseLocationY = evt.pageY;
  61332. }, onMouseDown: function (evt) {
  61333. if (evt.target.nodeName === "INPUT") {
  61334. return;
  61335. }
  61336. _this.props.globalState.blockKeyboardEvents = false;
  61337. } },
  61338. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_2__["NodeListComponent"], { globalState: this.props.globalState }),
  61339. 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); } }),
  61340. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagram-container", onDrop: function (event) {
  61341. _this.emitNewBlock(event);
  61342. }, onDragOver: function (event) {
  61343. event.preventDefault();
  61344. } },
  61345. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_13__["GraphCanvasComponent"], { ref: "graphCanvas", globalState: this.props.globalState })),
  61346. 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); } }),
  61347. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "right-panel" },
  61348. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["PropertyTabComponent"], { globalState: this.props.globalState }),
  61349. !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,
  61350. !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),
  61351. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogComponent"], { globalState: this.props.globalState })),
  61352. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_7__["MessageDialogComponent"], { globalState: this.props.globalState }),
  61353. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "blocker" }, "Node Material Editor runs only on desktop"),
  61354. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "wait-screen hidden" }, "Processing...please wait")));
  61355. };
  61356. return GraphEditor;
  61357. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61358. /***/ }),
  61359. /***/ "./index.ts":
  61360. /*!******************!*\
  61361. !*** ./index.ts ***!
  61362. \******************/
  61363. /*! exports provided: NodeEditor */
  61364. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61365. "use strict";
  61366. __webpack_require__.r(__webpack_exports__);
  61367. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  61368. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  61369. /***/ }),
  61370. /***/ "./legacy/legacy.ts":
  61371. /*!**************************!*\
  61372. !*** ./legacy/legacy.ts ***!
  61373. \**************************/
  61374. /*! exports provided: NodeEditor */
  61375. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61376. "use strict";
  61377. __webpack_require__.r(__webpack_exports__);
  61378. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  61379. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  61380. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  61381. if (typeof globalObject !== "undefined") {
  61382. globalObject.BABYLON = globalObject.BABYLON || {};
  61383. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  61384. }
  61385. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  61386. /***/ }),
  61387. /***/ "./main.scss":
  61388. /*!*******************!*\
  61389. !*** ./main.scss ***!
  61390. \*******************/
  61391. /*! no static exports found */
  61392. /***/ (function(module, exports, __webpack_require__) {
  61393. var api = __webpack_require__(/*! ../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  61394. 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");
  61395. content = content.__esModule ? content.default : content;
  61396. if (typeof content === 'string') {
  61397. content = [[module.i, content, '']];
  61398. }
  61399. var options = {};
  61400. options.insert = "head";
  61401. options.singleton = false;
  61402. var update = api(content, options);
  61403. module.exports = content.locals || {};
  61404. /***/ }),
  61405. /***/ "./nodeEditor.ts":
  61406. /*!***********************!*\
  61407. !*** ./nodeEditor.ts ***!
  61408. \***********************/
  61409. /*! exports provided: NodeEditor */
  61410. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61411. "use strict";
  61412. __webpack_require__.r(__webpack_exports__);
  61413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  61414. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61415. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  61416. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  61417. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  61418. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  61419. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  61420. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  61421. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  61422. /* harmony import */ var _components_preview_previewType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/preview/previewType */ "./components/preview/previewType.ts");
  61423. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  61424. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_7__);
  61425. /**
  61426. * Class used to create a node editor
  61427. */
  61428. var NodeEditor = /** @class */ (function () {
  61429. function NodeEditor() {
  61430. }
  61431. /**
  61432. * Show the node editor
  61433. * @param options defines the options to use to configure the node editor
  61434. */
  61435. NodeEditor.Show = function (options) {
  61436. if (this._CurrentState) {
  61437. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  61438. if (popupWindow) {
  61439. popupWindow.close();
  61440. }
  61441. }
  61442. var hostElement = options.hostElement;
  61443. if (!hostElement) {
  61444. hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  61445. }
  61446. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  61447. globalState.nodeMaterial = options.nodeMaterial;
  61448. globalState.mode = options.nodeMaterial.mode;
  61449. globalState.hostElement = hostElement;
  61450. globalState.hostDocument = hostElement.ownerDocument;
  61451. globalState.customSave = options.customSave;
  61452. globalState.hostWindow = hostElement.ownerDocument.defaultView;
  61453. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  61454. globalState: globalState
  61455. });
  61456. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  61457. if (options.customLoadObservable) {
  61458. options.customLoadObservable.add(function (data) {
  61459. _serializationTools__WEBPACK_IMPORTED_MODULE_5__["SerializationTools"].Deserialize(data, globalState);
  61460. globalState.mode = options.nodeMaterial.mode;
  61461. globalState.onResetRequiredObservable.notifyObservers();
  61462. globalState.onBuiltObservable.notifyObservers();
  61463. });
  61464. }
  61465. this._CurrentState = globalState;
  61466. // Close the popup window when the page is refreshed or scene is disposed
  61467. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  61468. if (globalState.nodeMaterial && popupWindow) {
  61469. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  61470. if (popupWindow) {
  61471. popupWindow.close();
  61472. }
  61473. });
  61474. window.onbeforeunload = function () {
  61475. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  61476. if (popupWindow) {
  61477. popupWindow.close();
  61478. }
  61479. };
  61480. }
  61481. window.addEventListener('beforeunload', function () {
  61482. 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) {
  61483. 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);
  61484. }
  61485. });
  61486. };
  61487. return NodeEditor;
  61488. }());
  61489. /***/ }),
  61490. /***/ "./portal.tsx":
  61491. /*!********************!*\
  61492. !*** ./portal.tsx ***!
  61493. \********************/
  61494. /*! exports provided: Portal */
  61495. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61496. "use strict";
  61497. __webpack_require__.r(__webpack_exports__);
  61498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  61499. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61500. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61501. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61502. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  61503. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  61504. var Portal = /** @class */ (function (_super) {
  61505. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Portal, _super);
  61506. function Portal() {
  61507. return _super !== null && _super.apply(this, arguments) || this;
  61508. }
  61509. Portal.prototype.render = function () {
  61510. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  61511. };
  61512. return Portal;
  61513. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61514. /***/ }),
  61515. /***/ "./serializationTools.ts":
  61516. /*!*******************************!*\
  61517. !*** ./serializationTools.ts ***!
  61518. \*******************************/
  61519. /*! exports provided: SerializationTools */
  61520. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61521. "use strict";
  61522. __webpack_require__.r(__webpack_exports__);
  61523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SerializationTools", function() { return SerializationTools; });
  61524. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Textures/texture */ "babylonjs/Misc/dataStorage");
  61525. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__);
  61526. var SerializationTools = /** @class */ (function () {
  61527. function SerializationTools() {
  61528. }
  61529. SerializationTools.UpdateLocations = function (material, globalState, frame) {
  61530. material.editorData = {
  61531. locations: []
  61532. };
  61533. // Store node locations
  61534. var blocks = frame ? frame.nodes.map(function (n) { return n.block; }) : material.attachedBlocks;
  61535. for (var _i = 0, blocks_1 = blocks; _i < blocks_1.length; _i++) {
  61536. var block = blocks_1[_i];
  61537. var node = globalState.onGetNodeFromBlock(block);
  61538. material.editorData.locations.push({
  61539. blockId: block.uniqueId,
  61540. x: node ? node.x : 0,
  61541. y: node ? node.y : 0
  61542. });
  61543. }
  61544. globalState.storeEditorData(material.editorData, frame);
  61545. };
  61546. SerializationTools.Serialize = function (material, globalState, frame) {
  61547. var bufferSerializationState = babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers;
  61548. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["DataStorage"].ReadBoolean("EmbedTextures", true);
  61549. this.UpdateLocations(material, globalState, frame);
  61550. var selectedBlocks = frame ? frame.nodes.map(function (n) { return n.block; }) : undefined;
  61551. var serializationObject = material.serialize(selectedBlocks);
  61552. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = bufferSerializationState;
  61553. return JSON.stringify(serializationObject, undefined, 2);
  61554. };
  61555. SerializationTools.Deserialize = function (serializationObject, globalState) {
  61556. globalState.onIsLoadingChanged.notifyObservers(true);
  61557. globalState.nodeMaterial.loadFromSerialization(serializationObject, "");
  61558. };
  61559. SerializationTools.AddFrameToMaterial = function (serializationObject, globalState, currentMaterial) {
  61560. globalState.onIsLoadingChanged.notifyObservers(true);
  61561. this.UpdateLocations(currentMaterial, globalState);
  61562. globalState.nodeMaterial.loadFromSerialization(serializationObject, "", true);
  61563. globalState.onImportFrameObservable.notifyObservers(serializationObject);
  61564. };
  61565. return SerializationTools;
  61566. }());
  61567. /***/ }),
  61568. /***/ "./sharedComponents/buttonLineComponent.tsx":
  61569. /*!**************************************************!*\
  61570. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  61571. \**************************************************/
  61572. /*! exports provided: ButtonLineComponent */
  61573. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61574. "use strict";
  61575. __webpack_require__.r(__webpack_exports__);
  61576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  61577. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61578. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61579. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61580. var ButtonLineComponent = /** @class */ (function (_super) {
  61581. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ButtonLineComponent, _super);
  61582. function ButtonLineComponent(props) {
  61583. return _super.call(this, props) || this;
  61584. }
  61585. ButtonLineComponent.prototype.render = function () {
  61586. var _this = this;
  61587. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  61588. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  61589. };
  61590. return ButtonLineComponent;
  61591. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61592. /***/ }),
  61593. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  61594. /*!****************************************************!*\
  61595. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  61596. \****************************************************/
  61597. /*! exports provided: CheckBoxLineComponent */
  61598. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61599. "use strict";
  61600. __webpack_require__.r(__webpack_exports__);
  61601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  61602. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61603. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61604. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61605. var CheckBoxLineComponent = /** @class */ (function (_super) {
  61606. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CheckBoxLineComponent, _super);
  61607. function CheckBoxLineComponent(props) {
  61608. var _this = _super.call(this, props) || this;
  61609. _this._localChange = false;
  61610. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  61611. if (_this.props.isSelected) {
  61612. _this.state = { isSelected: _this.props.isSelected() };
  61613. }
  61614. else {
  61615. _this.state = { isSelected: _this.props.target[_this.props.propertyName] == true };
  61616. }
  61617. if (_this.props.disabled) {
  61618. _this.state = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _this.state), { isDisabled: _this.props.disabled });
  61619. }
  61620. return _this;
  61621. }
  61622. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  61623. var currentState;
  61624. if (nextProps.isSelected) {
  61625. currentState = nextProps.isSelected();
  61626. }
  61627. else {
  61628. currentState = nextProps.target[nextProps.propertyName] == true;
  61629. }
  61630. if (currentState !== nextState.isSelected || this._localChange) {
  61631. nextState.isSelected = currentState;
  61632. this._localChange = false;
  61633. return true;
  61634. }
  61635. if (nextProps.disabled !== !!nextState.isDisabled) {
  61636. return true;
  61637. }
  61638. return nextProps.label !== this.props.label || nextProps.target !== this.props.target;
  61639. };
  61640. CheckBoxLineComponent.prototype.onChange = function () {
  61641. this._localChange = true;
  61642. if (this.props.onSelect) {
  61643. this.props.onSelect(!this.state.isSelected);
  61644. }
  61645. else {
  61646. if (this.props.onPropertyChangedObservable) {
  61647. this.props.onPropertyChangedObservable.notifyObservers({
  61648. object: this.props.target,
  61649. property: this.props.propertyName,
  61650. value: !this.state.isSelected,
  61651. initialValue: this.state.isSelected
  61652. });
  61653. }
  61654. this.props.target[this.props.propertyName] = !this.state.isSelected;
  61655. }
  61656. if (this.props.onValueChanged) {
  61657. this.props.onValueChanged();
  61658. }
  61659. this.setState({ isSelected: !this.state.isSelected });
  61660. };
  61661. CheckBoxLineComponent.prototype.render = function () {
  61662. var _this = this;
  61663. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  61664. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  61665. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  61666. 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 }),
  61667. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" + (!!this.props.disabled ? ' disabled' : '') }))));
  61668. };
  61669. CheckBoxLineComponent._UniqueIdSeed = 0;
  61670. return CheckBoxLineComponent;
  61671. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61672. /***/ }),
  61673. /***/ "./sharedComponents/color3LineComponent.tsx":
  61674. /*!**************************************************!*\
  61675. !*** ./sharedComponents/color3LineComponent.tsx ***!
  61676. \**************************************************/
  61677. /*! exports provided: Color3LineComponent */
  61678. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61679. "use strict";
  61680. __webpack_require__.r(__webpack_exports__);
  61681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  61682. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61683. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61684. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61685. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  61686. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  61687. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  61688. /* harmony import */ var _colorPickerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./colorPickerComponent */ "./sharedComponents/colorPickerComponent.tsx");
  61689. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./sharedComponents/copy.svg");
  61690. var plusIcon = __webpack_require__(/*! ./plus.svg */ "./sharedComponents/plus.svg");
  61691. var minusIcon = __webpack_require__(/*! ./minus.svg */ "./sharedComponents/minus.svg");
  61692. var Color3LineComponent = /** @class */ (function (_super) {
  61693. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3LineComponent, _super);
  61694. function Color3LineComponent(props) {
  61695. var _this = _super.call(this, props) || this;
  61696. _this._localChange = false;
  61697. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  61698. return _this;
  61699. }
  61700. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  61701. var currentState = nextProps.target[nextProps.propertyName];
  61702. if (!currentState.equals(nextState.color) || this._localChange) {
  61703. nextState.color = currentState.clone();
  61704. this._localChange = false;
  61705. return true;
  61706. }
  61707. return false;
  61708. };
  61709. Color3LineComponent.prototype.onChange = function (newValue) {
  61710. this._localChange = true;
  61711. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  61712. if (this.props.onPropertyChangedObservable) {
  61713. this.props.onPropertyChangedObservable.notifyObservers({
  61714. object: this.props.target,
  61715. property: this.props.propertyName,
  61716. value: newColor,
  61717. initialValue: this.state.color
  61718. });
  61719. }
  61720. if (this.props.target[this.props.propertyName].getClassName() === "Color4") {
  61721. this.props.target[this.props.propertyName] = new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](newColor.r, newColor.g, newColor.b, 1.0);
  61722. }
  61723. else {
  61724. this.props.target[this.props.propertyName] = newColor;
  61725. }
  61726. this.setState({ color: newColor });
  61727. if (this.props.onChange) {
  61728. this.props.onChange();
  61729. }
  61730. };
  61731. Color3LineComponent.prototype.switchExpandState = function () {
  61732. this._localChange = true;
  61733. this.setState({ isExpanded: !this.state.isExpanded });
  61734. };
  61735. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  61736. if (this.props.onChange) {
  61737. this.props.onChange();
  61738. }
  61739. if (!this.props.onPropertyChangedObservable) {
  61740. return;
  61741. }
  61742. this.props.onPropertyChangedObservable.notifyObservers({
  61743. object: this.props.target,
  61744. property: this.props.propertyName,
  61745. value: this.state.color,
  61746. initialValue: previousValue
  61747. });
  61748. };
  61749. Color3LineComponent.prototype.updateStateR = function (value) {
  61750. this._localChange = true;
  61751. var store = this.state.color.clone();
  61752. this.props.target[this.props.propertyName].x = value;
  61753. this.state.color.r = value;
  61754. this.props.target[this.props.propertyName] = this.state.color;
  61755. this.setState({ color: this.state.color });
  61756. this.raiseOnPropertyChanged(store);
  61757. };
  61758. Color3LineComponent.prototype.updateStateG = function (value) {
  61759. this._localChange = true;
  61760. var store = this.state.color.clone();
  61761. this.props.target[this.props.propertyName].g = value;
  61762. this.state.color.g = value;
  61763. this.props.target[this.props.propertyName] = this.state.color;
  61764. this.setState({ color: this.state.color });
  61765. this.raiseOnPropertyChanged(store);
  61766. };
  61767. Color3LineComponent.prototype.updateStateB = function (value) {
  61768. this._localChange = true;
  61769. var store = this.state.color.clone();
  61770. this.props.target[this.props.propertyName].b = value;
  61771. this.state.color.b = value;
  61772. this.props.target[this.props.propertyName] = this.state.color;
  61773. this.setState({ color: this.state.color });
  61774. this.raiseOnPropertyChanged(store);
  61775. };
  61776. Color3LineComponent.prototype.copyToClipboard = function () {
  61777. var element = document.createElement('div');
  61778. element.textContent = this.state.color.toHexString();
  61779. document.body.appendChild(element);
  61780. if (window.getSelection) {
  61781. var range = document.createRange();
  61782. range.selectNode(element);
  61783. window.getSelection().removeAllRanges();
  61784. window.getSelection().addRange(range);
  61785. }
  61786. document.execCommand('copy');
  61787. element.remove();
  61788. };
  61789. Color3LineComponent.prototype.render = function () {
  61790. var _this = this;
  61791. var expandedIcon = this.state.isExpanded ? minusIcon : plusIcon;
  61792. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  61793. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  61794. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  61795. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  61796. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorPickerComponent__WEBPACK_IMPORTED_MODULE_4__["ColorPickerLineComponent"], { value: this.state.color, disableAlpha: true, globalState: this.props.globalState, onColorChanged: function (color) {
  61797. _this.onChange(color);
  61798. } })),
  61799. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  61800. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  61801. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" },
  61802. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: expandedIcon, alt: "" }))),
  61803. this.state.isExpanded &&
  61804. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  61805. 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); } }),
  61806. 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); } }),
  61807. 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); } }))));
  61808. };
  61809. return Color3LineComponent;
  61810. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61811. /***/ }),
  61812. /***/ "./sharedComponents/color4LineComponent.tsx":
  61813. /*!**************************************************!*\
  61814. !*** ./sharedComponents/color4LineComponent.tsx ***!
  61815. \**************************************************/
  61816. /*! exports provided: Color4LineComponent */
  61817. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61818. "use strict";
  61819. __webpack_require__.r(__webpack_exports__);
  61820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color4LineComponent", function() { return Color4LineComponent; });
  61821. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61822. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61823. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61824. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  61825. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  61826. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  61827. /* harmony import */ var _colorPickerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./colorPickerComponent */ "./sharedComponents/colorPickerComponent.tsx");
  61828. var copyIcon = __webpack_require__(/*! ./copy.svg */ "./sharedComponents/copy.svg");
  61829. var plusIcon = __webpack_require__(/*! ./plus.svg */ "./sharedComponents/plus.svg");
  61830. var minusIcon = __webpack_require__(/*! ./minus.svg */ "./sharedComponents/minus.svg");
  61831. var Color4LineComponent = /** @class */ (function (_super) {
  61832. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color4LineComponent, _super);
  61833. function Color4LineComponent(props) {
  61834. var _this = _super.call(this, props) || this;
  61835. _this._localChange = false;
  61836. var value = _this.props.target[_this.props.propertyName];
  61837. 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);
  61838. _this.state = { isExpanded: false, color: currentColor };
  61839. return _this;
  61840. }
  61841. Color4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  61842. var currentState = nextProps.target[nextProps.propertyName];
  61843. var currentColor = currentState.getClassName() === "Color4" ? currentState : new babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"](currentState.r, currentState.g, currentState.b, 1.0);
  61844. if (!currentColor.equals(nextState.color) || this._localChange) {
  61845. nextState.color = currentColor.clone();
  61846. this._localChange = false;
  61847. return true;
  61848. }
  61849. return false;
  61850. };
  61851. Color4LineComponent.prototype.onChange = function (newValue) {
  61852. this._localChange = true;
  61853. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromHexString(newValue);
  61854. if (this.props.onPropertyChangedObservable) {
  61855. this.props.onPropertyChangedObservable.notifyObservers({
  61856. object: this.props.target,
  61857. property: this.props.propertyName,
  61858. value: newColor,
  61859. initialValue: this.state.color
  61860. });
  61861. }
  61862. this.props.target[this.props.propertyName] = newColor;
  61863. this.setState({ color: this.props.target[this.props.propertyName] });
  61864. if (this.props.onChange) {
  61865. this.props.onChange();
  61866. }
  61867. };
  61868. Color4LineComponent.prototype.switchExpandState = function () {
  61869. this._localChange = true;
  61870. this.setState({ isExpanded: !this.state.isExpanded });
  61871. };
  61872. Color4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  61873. if (this.props.onChange) {
  61874. this.props.onChange();
  61875. }
  61876. if (!this.props.onPropertyChangedObservable) {
  61877. return;
  61878. }
  61879. this.props.onPropertyChangedObservable.notifyObservers({
  61880. object: this.props.target,
  61881. property: this.props.propertyName,
  61882. value: this.state.color,
  61883. initialValue: previousValue
  61884. });
  61885. };
  61886. Color4LineComponent.prototype.updateStateR = function (value) {
  61887. this._localChange = true;
  61888. var store = this.state.color.clone();
  61889. this.props.target[this.props.propertyName].x = value;
  61890. this.state.color.r = value;
  61891. this.props.target[this.props.propertyName] = this.state.color;
  61892. this.setState({ color: this.state.color });
  61893. this.raiseOnPropertyChanged(store);
  61894. };
  61895. Color4LineComponent.prototype.updateStateG = function (value) {
  61896. this._localChange = true;
  61897. var store = this.state.color.clone();
  61898. this.props.target[this.props.propertyName].g = value;
  61899. this.state.color.g = value;
  61900. this.props.target[this.props.propertyName] = this.state.color;
  61901. this.setState({ color: this.state.color });
  61902. this.raiseOnPropertyChanged(store);
  61903. };
  61904. Color4LineComponent.prototype.updateStateB = function (value) {
  61905. this._localChange = true;
  61906. var store = this.state.color.clone();
  61907. this.props.target[this.props.propertyName].b = value;
  61908. this.state.color.b = value;
  61909. this.props.target[this.props.propertyName] = this.state.color;
  61910. this.setState({ color: this.state.color });
  61911. this.raiseOnPropertyChanged(store);
  61912. };
  61913. Color4LineComponent.prototype.updateStateA = function (value) {
  61914. this._localChange = true;
  61915. var store = this.state.color.clone();
  61916. this.props.target[this.props.propertyName].a = value;
  61917. this.state.color.a = value;
  61918. this.props.target[this.props.propertyName] = this.state.color;
  61919. this.setState({ color: this.state.color });
  61920. this.raiseOnPropertyChanged(store);
  61921. };
  61922. Color4LineComponent.prototype.copyToClipboard = function () {
  61923. var element = document.createElement('div');
  61924. element.textContent = this.state.color.toHexString();
  61925. document.body.appendChild(element);
  61926. if (window.getSelection) {
  61927. var range = document.createRange();
  61928. range.selectNode(element);
  61929. window.getSelection().removeAllRanges();
  61930. window.getSelection().addRange(range);
  61931. }
  61932. document.execCommand('copy');
  61933. element.remove();
  61934. };
  61935. Color4LineComponent.prototype.render = function () {
  61936. var _this = this;
  61937. var expandedIcon = this.state.isExpanded ? minusIcon : plusIcon;
  61938. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  61939. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  61940. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  61941. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  61942. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_colorPickerComponent__WEBPACK_IMPORTED_MODULE_4__["ColorPickerLineComponent"], { globalState: this.props.globalState, value: this.state.color, onColorChanged: function (color) {
  61943. _this.onChange(color);
  61944. } })),
  61945. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  61946. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
  61947. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" },
  61948. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: expandedIcon, alt: "" }))),
  61949. this.state.isExpanded &&
  61950. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  61951. 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); } }),
  61952. 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); } }),
  61953. 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); } }),
  61954. 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); } }))));
  61955. };
  61956. return Color4LineComponent;
  61957. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61958. /***/ }),
  61959. /***/ "./sharedComponents/colorPickerComponent.tsx":
  61960. /*!***************************************************!*\
  61961. !*** ./sharedComponents/colorPickerComponent.tsx ***!
  61962. \***************************************************/
  61963. /*! exports provided: ColorPickerLineComponent */
  61964. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61965. "use strict";
  61966. __webpack_require__.r(__webpack_exports__);
  61967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorPickerLineComponent", function() { return ColorPickerLineComponent; });
  61968. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61969. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61970. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61971. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/dataStorage");
  61972. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__);
  61973. /* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-color */ "../../node_modules/react-color/lib/index.js");
  61974. /* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_color__WEBPACK_IMPORTED_MODULE_3__);
  61975. var ColorPickerLineComponent = /** @class */ (function (_super) {
  61976. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ColorPickerLineComponent, _super);
  61977. function ColorPickerLineComponent(props) {
  61978. var _this = _super.call(this, props) || this;
  61979. _this.state = { pickerEnabled: false, color: {
  61980. r: _this.props.value.r * 255,
  61981. g: _this.props.value.g * 255,
  61982. b: _this.props.value.b * 255,
  61983. a: _this.props.value instanceof babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"] ? _this.props.value.a * 100 : 100,
  61984. }, hex: _this.props.value.toHexString() };
  61985. _this._floatRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  61986. _this._floatHostRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  61987. return _this;
  61988. }
  61989. ColorPickerLineComponent.prototype.syncPositions = function () {
  61990. var div = this._floatRef.current;
  61991. var host = this._floatHostRef.current;
  61992. if (!div || !host) {
  61993. return;
  61994. }
  61995. var top = host.getBoundingClientRect().top;
  61996. var height = div.getBoundingClientRect().height;
  61997. if (top + height + 10 > window.innerHeight) {
  61998. top = window.innerHeight - height - 10;
  61999. }
  62000. div.style.top = top + "px";
  62001. div.style.left = host.getBoundingClientRect().left - div.getBoundingClientRect().width + "px";
  62002. };
  62003. ColorPickerLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  62004. var result = nextProps.value.toHexString() !== this.props.value.toHexString()
  62005. || nextProps.disableAlpha !== this.props.disableAlpha
  62006. || nextState.hex !== this.state.hex
  62007. || nextState.pickerEnabled !== this.state.pickerEnabled;
  62008. if (result) {
  62009. nextState.color = {
  62010. r: nextProps.value.r * 255,
  62011. g: nextProps.value.g * 255,
  62012. b: nextProps.value.b * 255,
  62013. a: nextProps.value instanceof babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"] ? nextProps.value.a : 1,
  62014. };
  62015. nextState.hex = nextProps.value.toHexString();
  62016. }
  62017. return result;
  62018. };
  62019. ColorPickerLineComponent.prototype.componentDidUpdate = function () {
  62020. this.syncPositions();
  62021. };
  62022. ColorPickerLineComponent.prototype.componentDidMount = function () {
  62023. this.syncPositions();
  62024. };
  62025. ColorPickerLineComponent.prototype.setPickerState = function (enabled) {
  62026. this.setState({ pickerEnabled: enabled });
  62027. this.props.globalState.blockKeyboardEvents = enabled;
  62028. };
  62029. ColorPickerLineComponent.prototype.render = function () {
  62030. var _this = this;
  62031. var color = this.state.color;
  62032. this.props.globalState.blockKeyboardEvents = this.state.pickerEnabled;
  62033. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker" },
  62034. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-rect", ref: this._floatHostRef, style: { background: this.state.hex }, onClick: function () { return _this.setPickerState(true); } }),
  62035. this.state.pickerEnabled &&
  62036. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  62037. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-cover", onClick: function () { return _this.setPickerState(false); } }),
  62038. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color-picker-float", ref: this._floatRef },
  62039. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_color__WEBPACK_IMPORTED_MODULE_3__["SketchPicker"], { color: color, disableAlpha: this.props.disableAlpha, onChange: function (color) {
  62040. var hex;
  62041. if (_this.props.disableAlpha) {
  62042. var newColor3 = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromInts(color.rgb.r, color.rgb.g, color.rgb.b);
  62043. hex = newColor3.toHexString();
  62044. }
  62045. else {
  62046. var newColor4 = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_2__["Color4"].FromInts(color.rgb.r, color.rgb.g, color.rgb.b, 255 * (color.rgb.a || 0));
  62047. hex = newColor4.toHexString();
  62048. }
  62049. _this.setState({ hex: hex, color: color.rgb });
  62050. _this.props.onColorChanged(hex);
  62051. } })))));
  62052. };
  62053. return ColorPickerLineComponent;
  62054. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62055. /***/ }),
  62056. /***/ "./sharedComponents/copy.svg":
  62057. /*!***********************************!*\
  62058. !*** ./sharedComponents/copy.svg ***!
  62059. \***********************************/
  62060. /*! no static exports found */
  62061. /***/ (function(module, exports) {
  62062. 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"
  62063. /***/ }),
  62064. /***/ "./sharedComponents/draggableLineComponent.tsx":
  62065. /*!*****************************************************!*\
  62066. !*** ./sharedComponents/draggableLineComponent.tsx ***!
  62067. \*****************************************************/
  62068. /*! exports provided: DraggableLineComponent */
  62069. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62070. "use strict";
  62071. __webpack_require__.r(__webpack_exports__);
  62072. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineComponent", function() { return DraggableLineComponent; });
  62073. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62074. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62075. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62076. var DraggableLineComponent = /** @class */ (function (_super) {
  62077. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DraggableLineComponent, _super);
  62078. function DraggableLineComponent(props) {
  62079. return _super.call(this, props) || this;
  62080. }
  62081. DraggableLineComponent.prototype.render = function () {
  62082. var _this = this;
  62083. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine", title: this.props.tooltip, draggable: true, onDragStart: function (event) {
  62084. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  62085. } }, this.props.data.replace("Block", "")));
  62086. };
  62087. return DraggableLineComponent;
  62088. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62089. /***/ }),
  62090. /***/ "./sharedComponents/draggableLineWithButtonComponent.tsx":
  62091. /*!***************************************************************!*\
  62092. !*** ./sharedComponents/draggableLineWithButtonComponent.tsx ***!
  62093. \***************************************************************/
  62094. /*! exports provided: DraggableLineWithButtonComponent */
  62095. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62096. "use strict";
  62097. __webpack_require__.r(__webpack_exports__);
  62098. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineWithButtonComponent", function() { return DraggableLineWithButtonComponent; });
  62099. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62100. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62101. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62102. var DraggableLineWithButtonComponent = /** @class */ (function (_super) {
  62103. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DraggableLineWithButtonComponent, _super);
  62104. function DraggableLineWithButtonComponent(props) {
  62105. return _super.call(this, props) || this;
  62106. }
  62107. DraggableLineWithButtonComponent.prototype.render = function () {
  62108. var _this = this;
  62109. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine withButton", title: this.props.tooltip, draggable: true, onDragStart: function (event) {
  62110. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  62111. } },
  62112. this.props.data.substr(0, this.props.data.length - 6),
  62113. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "icon", onClick: function () { _this.props.onIconClick(_this.props.data); }, title: this.props.iconTitle },
  62114. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", title: this.props.iconTitle, src: this.props.iconImage }))));
  62115. };
  62116. return DraggableLineWithButtonComponent;
  62117. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62118. /***/ }),
  62119. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  62120. /*!******************************************************!*\
  62121. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  62122. \******************************************************/
  62123. /*! exports provided: FileButtonLineComponent */
  62124. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62125. "use strict";
  62126. __webpack_require__.r(__webpack_exports__);
  62127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  62128. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62129. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62130. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62131. var FileButtonLineComponent = /** @class */ (function (_super) {
  62132. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FileButtonLineComponent, _super);
  62133. function FileButtonLineComponent(props) {
  62134. var _this = _super.call(this, props) || this;
  62135. _this.uploadRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  62136. return _this;
  62137. }
  62138. FileButtonLineComponent.prototype.onChange = function (evt) {
  62139. var files = evt.target.files;
  62140. if (files && files.length) {
  62141. this.props.onClick(files[0]);
  62142. }
  62143. evt.target.value = "";
  62144. };
  62145. FileButtonLineComponent.prototype.render = function () {
  62146. var _this = this;
  62147. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  62148. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: this.props.uploadName ? this.props.uploadName : "file-upload", className: "file-upload" }, this.props.label),
  62149. 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); } })));
  62150. };
  62151. return FileButtonLineComponent;
  62152. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62153. /***/ }),
  62154. /***/ "./sharedComponents/floatLineComponent.tsx":
  62155. /*!*************************************************!*\
  62156. !*** ./sharedComponents/floatLineComponent.tsx ***!
  62157. \*************************************************/
  62158. /*! exports provided: FloatLineComponent */
  62159. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62160. "use strict";
  62161. __webpack_require__.r(__webpack_exports__);
  62162. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  62163. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62164. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62165. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62166. var FloatLineComponent = /** @class */ (function (_super) {
  62167. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatLineComponent, _super);
  62168. function FloatLineComponent(props) {
  62169. var _this = _super.call(this, props) || this;
  62170. _this._localChange = false;
  62171. var currentValue = _this.props.target[_this.props.propertyName];
  62172. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 2)) : "0" };
  62173. _this._store = currentValue;
  62174. return _this;
  62175. }
  62176. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  62177. if (this._localChange) {
  62178. this._localChange = false;
  62179. return true;
  62180. }
  62181. var newValue = nextProps.target[nextProps.propertyName];
  62182. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 2) : "0";
  62183. if (newValueString !== nextState.value) {
  62184. nextState.value = newValueString;
  62185. return true;
  62186. }
  62187. return false;
  62188. };
  62189. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  62190. if (this.props.onChange) {
  62191. this.props.onChange(newValue);
  62192. }
  62193. if (!this.props.onPropertyChangedObservable) {
  62194. return;
  62195. }
  62196. this.props.onPropertyChangedObservable.notifyObservers({
  62197. object: this.props.target,
  62198. property: this.props.propertyName,
  62199. value: newValue,
  62200. initialValue: previousValue
  62201. });
  62202. };
  62203. FloatLineComponent.prototype.updateValue = function (valueString) {
  62204. if (/[^0-9\.\-]/g.test(valueString)) {
  62205. return;
  62206. }
  62207. valueString = valueString.replace(/(.+\...).+/, "$1");
  62208. var valueAsNumber;
  62209. if (this.props.isInteger) {
  62210. valueAsNumber = parseInt(valueString);
  62211. }
  62212. else {
  62213. valueAsNumber = parseFloat(valueString);
  62214. }
  62215. this._localChange = true;
  62216. this.setState({ value: valueString });
  62217. if (isNaN(valueAsNumber)) {
  62218. return;
  62219. }
  62220. this.props.target[this.props.propertyName] = valueAsNumber;
  62221. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  62222. this._store = valueAsNumber;
  62223. };
  62224. FloatLineComponent.prototype.render = function () {
  62225. var _this = this;
  62226. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.additionalClass ? this.props.additionalClass + " floatLine" : "floatLine" },
  62227. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  62228. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  62229. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step || "0.01", className: "numeric-input", onBlur: function (evt) {
  62230. _this.props.globalState.blockKeyboardEvents = false;
  62231. }, onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, value: this.state.value, onChange: function (evt) { return _this.updateValue(evt.target.value); } })))));
  62232. };
  62233. return FloatLineComponent;
  62234. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62235. /***/ }),
  62236. /***/ "./sharedComponents/lineContainerComponent.tsx":
  62237. /*!*****************************************************!*\
  62238. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  62239. \*****************************************************/
  62240. /*! exports provided: LineContainerComponent */
  62241. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62242. "use strict";
  62243. __webpack_require__.r(__webpack_exports__);
  62244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  62245. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62246. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62247. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62248. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  62249. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__);
  62250. var downArrow = __webpack_require__(/*! ../../imgs/downArrow.svg */ "../imgs/downArrow.svg");
  62251. var LineContainerComponent = /** @class */ (function (_super) {
  62252. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineContainerComponent, _super);
  62253. function LineContainerComponent(props) {
  62254. var _this = _super.call(this, props) || this;
  62255. var initialState = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  62256. _this.state = { isExpanded: initialState };
  62257. return _this;
  62258. }
  62259. LineContainerComponent.prototype.switchExpandedState = function () {
  62260. var newState = !this.state.isExpanded;
  62261. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean(this.props.title, newState);
  62262. this.setState({ isExpanded: newState });
  62263. };
  62264. LineContainerComponent.prototype.renderHeader = function () {
  62265. var _this = this;
  62266. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  62267. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  62268. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  62269. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  62270. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", title: this.props.title, src: downArrow }))));
  62271. };
  62272. LineContainerComponent.prototype.render = function () {
  62273. if (!this.state.isExpanded) {
  62274. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  62275. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  62276. }
  62277. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  62278. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  62279. this.renderHeader(),
  62280. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  62281. };
  62282. return LineContainerComponent;
  62283. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62284. /***/ }),
  62285. /***/ "./sharedComponents/lineWithFileButtonComponent.tsx":
  62286. /*!**********************************************************!*\
  62287. !*** ./sharedComponents/lineWithFileButtonComponent.tsx ***!
  62288. \**********************************************************/
  62289. /*! exports provided: LineWithFileButtonComponent */
  62290. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62291. "use strict";
  62292. __webpack_require__.r(__webpack_exports__);
  62293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineWithFileButtonComponent", function() { return LineWithFileButtonComponent; });
  62294. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62295. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62296. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62297. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/dataStorage */ "babylonjs/Misc/dataStorage");
  62298. /* harmony import */ var babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__);
  62299. var LineWithFileButtonComponent = /** @class */ (function (_super) {
  62300. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineWithFileButtonComponent, _super);
  62301. function LineWithFileButtonComponent(props) {
  62302. var _this = _super.call(this, props) || this;
  62303. var initialState = babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  62304. _this.state = { isExpanded: initialState };
  62305. _this.uploadRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  62306. return _this;
  62307. }
  62308. LineWithFileButtonComponent.prototype.onChange = function (evt) {
  62309. var files = evt.target.files;
  62310. if (files && files.length) {
  62311. this.props.onIconClick(files[0]);
  62312. }
  62313. evt.target.value = "";
  62314. };
  62315. LineWithFileButtonComponent.prototype.switchExpandedState = function () {
  62316. var newState = !this.state.isExpanded;
  62317. babylonjs_Misc_dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].WriteBoolean(this.props.title, newState);
  62318. this.setState({ isExpanded: newState });
  62319. };
  62320. LineWithFileButtonComponent.prototype.render = function () {
  62321. var _this = this;
  62322. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "nonDraggableLine withButton" },
  62323. this.props.label,
  62324. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "icon", title: this.props.title },
  62325. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "img", src: this.props.iconImage })),
  62326. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine", title: this.props.title },
  62327. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: this.props.uploadName ? this.props.uploadName : "file-upload", className: "file-upload" }),
  62328. 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); } }))));
  62329. };
  62330. return LineWithFileButtonComponent;
  62331. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62332. /***/ }),
  62333. /***/ "./sharedComponents/matrixLineComponent.tsx":
  62334. /*!**************************************************!*\
  62335. !*** ./sharedComponents/matrixLineComponent.tsx ***!
  62336. \**************************************************/
  62337. /*! exports provided: MatrixLineComponent */
  62338. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62339. "use strict";
  62340. __webpack_require__.r(__webpack_exports__);
  62341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixLineComponent", function() { return MatrixLineComponent; });
  62342. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62343. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62344. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62345. /* harmony import */ var babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math.vector */ "babylonjs/Misc/dataStorage");
  62346. /* harmony import */ var babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__);
  62347. /* harmony import */ var _vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  62348. /* harmony import */ var _optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  62349. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  62350. var MatrixLineComponent = /** @class */ (function (_super) {
  62351. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MatrixLineComponent, _super);
  62352. function MatrixLineComponent(props) {
  62353. var _this = _super.call(this, props) || this;
  62354. _this._localChange = false;
  62355. var matrix = _this.props.target[_this.props.propertyName].clone();
  62356. var angle = 0;
  62357. if (_this.props.mode) {
  62358. var quat = new babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Quaternion"]();
  62359. matrix.decompose(undefined, quat);
  62360. var euler = quat.toEulerAngles();
  62361. switch (_this.props.mode) {
  62362. case 1:
  62363. angle = euler.x;
  62364. break;
  62365. case 2:
  62366. angle = euler.y;
  62367. break;
  62368. case 3:
  62369. angle = euler.z;
  62370. break;
  62371. }
  62372. }
  62373. _this.state = { value: matrix, mode: _this.props.mode || 0, angle: angle };
  62374. return _this;
  62375. }
  62376. MatrixLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  62377. var nextPropsValue = nextProps.target[nextProps.propertyName];
  62378. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  62379. nextState.value = nextPropsValue.clone();
  62380. this._localChange = false;
  62381. return true;
  62382. }
  62383. return nextState.mode !== this.state.mode || nextState.angle !== this.state.angle;
  62384. };
  62385. MatrixLineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  62386. if (this.props.onChange) {
  62387. this.props.onChange(this.state.value);
  62388. }
  62389. if (!this.props.onPropertyChangedObservable) {
  62390. return;
  62391. }
  62392. this.props.onPropertyChangedObservable.notifyObservers({
  62393. object: this.props.target,
  62394. property: this.props.propertyName,
  62395. value: this.state.value,
  62396. initialValue: previousValue
  62397. });
  62398. };
  62399. MatrixLineComponent.prototype.updateMatrix = function () {
  62400. var store = this.props.target[this.props.propertyName].clone();
  62401. this.props.target[this.props.propertyName] = this.state.value;
  62402. this.setState({ value: store });
  62403. this.raiseOnPropertyChanged(store);
  62404. };
  62405. MatrixLineComponent.prototype.updateRow = function (value, row) {
  62406. this._localChange = true;
  62407. this.state.value.setRow(row, value);
  62408. this.updateMatrix();
  62409. };
  62410. MatrixLineComponent.prototype.updateBasedOnMode = function (value) {
  62411. switch (this.state.mode) {
  62412. case 1: {
  62413. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationXToRef(this.state.angle, this.state.value);
  62414. break;
  62415. }
  62416. case 2: {
  62417. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationYToRef(this.state.angle, this.state.value);
  62418. break;
  62419. }
  62420. case 3: {
  62421. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationZToRef(this.state.angle, this.state.value);
  62422. break;
  62423. }
  62424. }
  62425. this.updateMatrix();
  62426. this.setState({ angle: value });
  62427. };
  62428. MatrixLineComponent.prototype.render = function () {
  62429. var _this = this;
  62430. var modeOptions = [
  62431. { label: "User-defined", value: 0 },
  62432. { label: "Rotation over X axis", value: 1 },
  62433. { label: "Rotation over Y axis", value: 2 },
  62434. { label: "Rotation over Z axis", value: 3 },
  62435. ];
  62436. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  62437. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  62438. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label)),
  62439. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  62440. 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 () {
  62441. return _this.state.mode;
  62442. }, onSelect: function (value) {
  62443. _this.props.target[_this.props.propertyName] = babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].Identity();
  62444. babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_2__["Matrix"].IdentityToRef(_this.state.value);
  62445. _this.setState({ mode: value, angle: 0 });
  62446. _this.updateMatrix();
  62447. if (_this.props.onModeChange) {
  62448. _this.props.onModeChange(value);
  62449. }
  62450. } })),
  62451. this.state.mode === 0 &&
  62452. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  62453. 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); } }),
  62454. 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); } }),
  62455. 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); } }),
  62456. 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); } })),
  62457. this.state.mode !== 0 &&
  62458. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  62459. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Angle", minimum: 0, maximum: 2 * Math.PI, useEuler: true, step: 0.1, directValue: this.state.angle, onChange: function (value) { return _this.updateBasedOnMode(value); } }))));
  62460. };
  62461. return MatrixLineComponent;
  62462. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62463. /***/ }),
  62464. /***/ "./sharedComponents/messageDialog.tsx":
  62465. /*!********************************************!*\
  62466. !*** ./sharedComponents/messageDialog.tsx ***!
  62467. \********************************************/
  62468. /*! exports provided: MessageDialogComponent */
  62469. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62470. "use strict";
  62471. __webpack_require__.r(__webpack_exports__);
  62472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageDialogComponent", function() { return MessageDialogComponent; });
  62473. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62474. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62475. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62476. var MessageDialogComponent = /** @class */ (function (_super) {
  62477. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MessageDialogComponent, _super);
  62478. function MessageDialogComponent(props) {
  62479. var _this = _super.call(this, props) || this;
  62480. _this.state = { message: "", isError: false };
  62481. _this.props.globalState.onErrorMessageDialogRequiredObservable.add(function (message) {
  62482. _this.setState({ message: message, isError: true });
  62483. });
  62484. return _this;
  62485. }
  62486. MessageDialogComponent.prototype.render = function () {
  62487. var _this = this;
  62488. if (!this.state.message) {
  62489. return null;
  62490. }
  62491. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-container" },
  62492. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog" },
  62493. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-message" }, this.state.message),
  62494. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-buttons" },
  62495. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-button-ok" + (this.state.isError ? " error" : ""), onClick: function () { return _this.setState({ message: "" }); } }, "OK")))));
  62496. };
  62497. return MessageDialogComponent;
  62498. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62499. /***/ }),
  62500. /***/ "./sharedComponents/minus.svg":
  62501. /*!************************************!*\
  62502. !*** ./sharedComponents/minus.svg ***!
  62503. \************************************/
  62504. /*! no static exports found */
  62505. /***/ (function(module, exports) {
  62506. 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"
  62507. /***/ }),
  62508. /***/ "./sharedComponents/numericInputComponent.tsx":
  62509. /*!****************************************************!*\
  62510. !*** ./sharedComponents/numericInputComponent.tsx ***!
  62511. \****************************************************/
  62512. /*! exports provided: NumericInputComponent */
  62513. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62514. "use strict";
  62515. __webpack_require__.r(__webpack_exports__);
  62516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  62517. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62518. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62519. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62520. var NumericInputComponent = /** @class */ (function (_super) {
  62521. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NumericInputComponent, _super);
  62522. function NumericInputComponent(props) {
  62523. var _this = _super.call(this, props) || this;
  62524. _this._localChange = false;
  62525. _this.state = { value: _this.props.value.toFixed(3) };
  62526. return _this;
  62527. }
  62528. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  62529. if (this._localChange) {
  62530. this._localChange = false;
  62531. return true;
  62532. }
  62533. if (nextProps.value.toString() !== nextState.value) {
  62534. nextState.value = nextProps.value.toFixed(3);
  62535. return true;
  62536. }
  62537. return false;
  62538. };
  62539. NumericInputComponent.prototype.updateValue = function (evt) {
  62540. var value = evt.target.value;
  62541. if (/[^0-9\.\-]/g.test(value)) {
  62542. return;
  62543. }
  62544. var valueAsNumber = parseFloat(value);
  62545. this._localChange = true;
  62546. this.setState({ value: value });
  62547. if (isNaN(valueAsNumber)) {
  62548. return;
  62549. }
  62550. this.props.onChange(valueAsNumber);
  62551. };
  62552. NumericInputComponent.prototype.render = function () {
  62553. var _this = this;
  62554. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  62555. this.props.label &&
  62556. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  62557. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, onBlur: function (evt) {
  62558. _this.props.globalState.blockKeyboardEvents = false;
  62559. }, step: this.props.step, className: "numeric-input", value: this.state.value, onChange: function (evt) { return _this.updateValue(evt); } })));
  62560. };
  62561. NumericInputComponent.defaultProps = {
  62562. step: 1,
  62563. };
  62564. return NumericInputComponent;
  62565. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62566. /***/ }),
  62567. /***/ "./sharedComponents/optionsLineComponent.tsx":
  62568. /*!***************************************************!*\
  62569. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  62570. \***************************************************/
  62571. /*! exports provided: OptionsLineComponent */
  62572. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62573. "use strict";
  62574. __webpack_require__.r(__webpack_exports__);
  62575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  62576. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62577. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62578. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62579. var ListLineOption = /** @class */ (function () {
  62580. function ListLineOption() {
  62581. }
  62582. return ListLineOption;
  62583. }());
  62584. var OptionsLineComponent = /** @class */ (function (_super) {
  62585. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(OptionsLineComponent, _super);
  62586. function OptionsLineComponent(props) {
  62587. var _this = _super.call(this, props) || this;
  62588. _this._localChange = false;
  62589. _this.state = { value: _this._getValue(props) };
  62590. return _this;
  62591. }
  62592. OptionsLineComponent.prototype._getValue = function (props) {
  62593. if (props.getSelection) {
  62594. return props.getSelection(props.target);
  62595. }
  62596. return (props.target && props.propertyName) ? props.target[props.propertyName] : props.options[props.defaultIfNull || 0];
  62597. };
  62598. OptionsLineComponent.prototype.setValue = function (value) {
  62599. this.setState({ value: value });
  62600. };
  62601. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  62602. if (this._localChange) {
  62603. this._localChange = false;
  62604. return true;
  62605. }
  62606. var newValue = this._getValue(nextProps);
  62607. if (newValue != null && newValue !== nextState.value) {
  62608. nextState.value = newValue;
  62609. return true;
  62610. }
  62611. return false;
  62612. };
  62613. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  62614. if (!this.props.onPropertyChangedObservable) {
  62615. return;
  62616. }
  62617. this.props.onPropertyChangedObservable.notifyObservers({
  62618. object: this.props.target,
  62619. property: this.props.propertyName,
  62620. value: newValue,
  62621. initialValue: previousValue
  62622. });
  62623. };
  62624. OptionsLineComponent.prototype.updateValue = function (valueString) {
  62625. var value = this.props.valuesAreStrings ? valueString : parseInt(valueString);
  62626. this._localChange = true;
  62627. var store = this.state.value;
  62628. if (!this.props.noDirectUpdate) {
  62629. this.props.target[this.props.propertyName] = value;
  62630. }
  62631. this.setState({ value: value });
  62632. this.raiseOnPropertyChanged(value, store);
  62633. if (this.props.onSelect) {
  62634. this.props.onSelect(value);
  62635. }
  62636. };
  62637. OptionsLineComponent.prototype.render = function () {
  62638. var _this = this;
  62639. var _a;
  62640. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  62641. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  62642. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" + (this.props.className ? " " + this.props.className : "") },
  62643. 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) {
  62644. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  62645. })))));
  62646. };
  62647. return OptionsLineComponent;
  62648. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62649. /***/ }),
  62650. /***/ "./sharedComponents/plus.svg":
  62651. /*!***********************************!*\
  62652. !*** ./sharedComponents/plus.svg ***!
  62653. \***********************************/
  62654. /*! no static exports found */
  62655. /***/ (function(module, exports) {
  62656. 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"
  62657. /***/ }),
  62658. /***/ "./sharedComponents/popup.ts":
  62659. /*!***********************************!*\
  62660. !*** ./sharedComponents/popup.ts ***!
  62661. \***********************************/
  62662. /*! exports provided: Popup */
  62663. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62664. "use strict";
  62665. __webpack_require__.r(__webpack_exports__);
  62666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  62667. var Popup = /** @class */ (function () {
  62668. function Popup() {
  62669. }
  62670. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  62671. var _this = this;
  62672. if (width === void 0) { width = 300; }
  62673. if (height === void 0) { height = 800; }
  62674. var windowCreationOptionsList = {
  62675. width: width,
  62676. height: height,
  62677. top: (window.innerHeight - width) / 2 + window.screenY,
  62678. left: (window.innerWidth - height) / 2 + window.screenX
  62679. };
  62680. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  62681. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  62682. .join(',');
  62683. var popupWindow = window.open("", title, windowCreationOptions);
  62684. if (!popupWindow) {
  62685. return null;
  62686. }
  62687. var parentDocument = popupWindow.document;
  62688. // Font
  62689. var newLinkEl = parentDocument.createElement('link');
  62690. newLinkEl.rel = 'stylesheet';
  62691. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  62692. parentDocument.head.appendChild(newLinkEl);
  62693. parentDocument.title = title;
  62694. parentDocument.body.style.width = "100%";
  62695. parentDocument.body.style.height = "100%";
  62696. parentDocument.body.style.margin = "0";
  62697. parentDocument.body.style.padding = "0";
  62698. var parentControl = parentDocument.createElement("div");
  62699. parentControl.style.width = "100%";
  62700. parentControl.style.height = "100%";
  62701. parentControl.style.margin = "0";
  62702. parentControl.style.padding = "0";
  62703. popupWindow.document.body.appendChild(parentControl);
  62704. this._CopyStyles(window.document, parentDocument);
  62705. setTimeout(function () {
  62706. _this._CopyStyles(window.document, parentDocument);
  62707. }, 0);
  62708. this[windowVariableName] = popupWindow;
  62709. return parentControl;
  62710. };
  62711. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  62712. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  62713. var styleSheet = sourceDoc.styleSheets[index];
  62714. try {
  62715. if (styleSheet.cssRules) { // for <style> elements
  62716. var newStyleEl = sourceDoc.createElement('style');
  62717. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  62718. var cssRule = _a[_i];
  62719. // write the text of each rule into the body of the style element
  62720. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  62721. }
  62722. targetDoc.head.appendChild(newStyleEl);
  62723. }
  62724. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  62725. var newLinkEl = sourceDoc.createElement('link');
  62726. newLinkEl.rel = 'stylesheet';
  62727. newLinkEl.href = styleSheet.href;
  62728. targetDoc.head.appendChild(newLinkEl);
  62729. }
  62730. }
  62731. catch (e) {
  62732. console.log(e);
  62733. }
  62734. }
  62735. };
  62736. return Popup;
  62737. }());
  62738. /***/ }),
  62739. /***/ "./sharedComponents/sliderLineComponent.tsx":
  62740. /*!**************************************************!*\
  62741. !*** ./sharedComponents/sliderLineComponent.tsx ***!
  62742. \**************************************************/
  62743. /*! exports provided: SliderLineComponent */
  62744. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62745. "use strict";
  62746. __webpack_require__.r(__webpack_exports__);
  62747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderLineComponent", function() { return SliderLineComponent; });
  62748. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62749. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62750. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62751. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/dataStorage");
  62752. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  62753. var SliderLineComponent = /** @class */ (function (_super) {
  62754. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderLineComponent, _super);
  62755. function SliderLineComponent(props) {
  62756. var _this = _super.call(this, props) || this;
  62757. _this._localChange = false;
  62758. if (_this.props.directValue !== undefined) {
  62759. _this.state = {
  62760. value: _this.props.directValue
  62761. };
  62762. }
  62763. else {
  62764. var value = _this.props.target[_this.props.propertyName];
  62765. if (value === undefined) {
  62766. value = _this.props.maximum;
  62767. }
  62768. _this.state = { value: value };
  62769. }
  62770. return _this;
  62771. }
  62772. SliderLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  62773. if (nextProps.directValue !== undefined) {
  62774. nextState.value = nextProps.directValue;
  62775. return true;
  62776. }
  62777. var currentState = nextProps.target[nextProps.propertyName];
  62778. if (currentState === undefined) {
  62779. currentState = nextProps.maximum;
  62780. }
  62781. if (currentState !== nextState.value || nextProps.minimum !== this.props.minimum || nextProps.maximum !== this.props.maximum || this._localChange) {
  62782. nextState.value = Math.min(Math.max(currentState, nextProps.minimum), nextProps.maximum);
  62783. this._localChange = false;
  62784. return true;
  62785. }
  62786. return false;
  62787. };
  62788. SliderLineComponent.prototype.onChange = function (newValueString) {
  62789. this._localChange = true;
  62790. var newValue = parseFloat(newValueString);
  62791. if (this.props.useEuler) {
  62792. newValue = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToRadians(newValue);
  62793. }
  62794. if (this.props.target) {
  62795. if (this.props.onPropertyChangedObservable) {
  62796. this.props.onPropertyChangedObservable.notifyObservers({
  62797. object: this.props.target,
  62798. property: this.props.propertyName,
  62799. value: newValue,
  62800. initialValue: this.state.value
  62801. });
  62802. }
  62803. this.props.target[this.props.propertyName] = newValue;
  62804. }
  62805. if (this.props.onChange) {
  62806. this.props.onChange(newValue);
  62807. }
  62808. this.setState({ value: newValue });
  62809. };
  62810. SliderLineComponent.prototype.onInput = function (newValueString) {
  62811. var newValue = parseFloat(newValueString);
  62812. if (this.props.onInput) {
  62813. this.props.onInput(newValue);
  62814. }
  62815. };
  62816. SliderLineComponent.prototype.prepareDataToRead = function (value) {
  62817. if (this.props.useEuler) {
  62818. return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToDegrees(value);
  62819. }
  62820. return value;
  62821. };
  62822. SliderLineComponent.prototype.render = function () {
  62823. var _this = this;
  62824. var decimalCount = this.props.decimalCount !== undefined ? this.props.decimalCount : 2;
  62825. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "sliderLine" },
  62826. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  62827. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "slider" },
  62828. this.state.value ? this.prepareDataToRead(this.state.value).toFixed(decimalCount) : "0",
  62829. "\u00A0",
  62830. 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); } }))));
  62831. };
  62832. return SliderLineComponent;
  62833. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62834. /***/ }),
  62835. /***/ "./sharedComponents/textInputLineComponent.tsx":
  62836. /*!*****************************************************!*\
  62837. !*** ./sharedComponents/textInputLineComponent.tsx ***!
  62838. \*****************************************************/
  62839. /*! exports provided: TextInputLineComponent */
  62840. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62841. "use strict";
  62842. __webpack_require__.r(__webpack_exports__);
  62843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  62844. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62845. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62846. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62847. var TextInputLineComponent = /** @class */ (function (_super) {
  62848. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextInputLineComponent, _super);
  62849. function TextInputLineComponent(props) {
  62850. var _this = _super.call(this, props) || this;
  62851. _this._localChange = false;
  62852. _this.state = { value: _this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName] || "" };
  62853. return _this;
  62854. }
  62855. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  62856. if (this._localChange) {
  62857. this._localChange = false;
  62858. return true;
  62859. }
  62860. var newValue = nextProps.value !== undefined ? nextProps.value : nextProps.target[nextProps.propertyName];
  62861. if (newValue !== nextState.value) {
  62862. nextState.value = newValue || "";
  62863. return true;
  62864. }
  62865. return false;
  62866. };
  62867. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  62868. if (this.props.onChange) {
  62869. this.props.onChange(newValue);
  62870. return;
  62871. }
  62872. if (!this.props.onPropertyChangedObservable) {
  62873. return;
  62874. }
  62875. this.props.onPropertyChangedObservable.notifyObservers({
  62876. object: this.props.target,
  62877. property: this.props.propertyName,
  62878. value: newValue,
  62879. initialValue: previousValue
  62880. });
  62881. };
  62882. TextInputLineComponent.prototype.updateValue = function (value, raisePropertyChanged) {
  62883. this._localChange = true;
  62884. var store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
  62885. if (this.props.validator && raisePropertyChanged) {
  62886. if (this.props.validator(value) == false) {
  62887. value = store;
  62888. }
  62889. }
  62890. this.setState({ value: value });
  62891. if (raisePropertyChanged) {
  62892. this.raiseOnPropertyChanged(value, store);
  62893. }
  62894. if (this.props.propertyName) {
  62895. this.props.target[this.props.propertyName] = value;
  62896. }
  62897. };
  62898. TextInputLineComponent.prototype.render = function () {
  62899. var _this = this;
  62900. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  62901. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  62902. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  62903. 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) {
  62904. if (evt.keyCode !== 13) {
  62905. return;
  62906. }
  62907. _this.updateValue(_this.state.value, true);
  62908. }, onBlur: function (evt) {
  62909. _this.updateValue(evt.target.value, true);
  62910. _this.props.globalState.blockKeyboardEvents = false;
  62911. } }))));
  62912. };
  62913. return TextInputLineComponent;
  62914. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62915. /***/ }),
  62916. /***/ "./sharedComponents/textLineComponent.tsx":
  62917. /*!************************************************!*\
  62918. !*** ./sharedComponents/textLineComponent.tsx ***!
  62919. \************************************************/
  62920. /*! exports provided: TextLineComponent */
  62921. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62922. "use strict";
  62923. __webpack_require__.r(__webpack_exports__);
  62924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  62925. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62926. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62927. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62928. var TextLineComponent = /** @class */ (function (_super) {
  62929. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextLineComponent, _super);
  62930. function TextLineComponent(props) {
  62931. return _super.call(this, props) || this;
  62932. }
  62933. TextLineComponent.prototype.onLink = function () {
  62934. if (!this.props.onLink) {
  62935. return;
  62936. }
  62937. this.props.onLink();
  62938. };
  62939. TextLineComponent.prototype.renderContent = function () {
  62940. var _this = this;
  62941. if (this.props.onLink) {
  62942. 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"));
  62943. }
  62944. 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"));
  62945. };
  62946. TextLineComponent.prototype.render = function () {
  62947. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  62948. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  62949. this.renderContent()));
  62950. };
  62951. return TextLineComponent;
  62952. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62953. /***/ }),
  62954. /***/ "./sharedComponents/textureLineComponent.tsx":
  62955. /*!***************************************************!*\
  62956. !*** ./sharedComponents/textureLineComponent.tsx ***!
  62957. \***************************************************/
  62958. /*! exports provided: TextureLineComponent */
  62959. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62960. "use strict";
  62961. __webpack_require__.r(__webpack_exports__);
  62962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  62963. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62964. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62965. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62966. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/dataStorage");
  62967. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  62968. var TextureLineComponent = /** @class */ (function (_super) {
  62969. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureLineComponent, _super);
  62970. function TextureLineComponent(props) {
  62971. var _this = _super.call(this, props) || this;
  62972. _this.state = {
  62973. displayRed: true,
  62974. displayGreen: true,
  62975. displayBlue: true,
  62976. displayAlpha: true,
  62977. face: 0
  62978. };
  62979. _this.canvasRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
  62980. return _this;
  62981. }
  62982. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  62983. return true;
  62984. };
  62985. TextureLineComponent.prototype.componentDidMount = function () {
  62986. this.updatePreview();
  62987. };
  62988. TextureLineComponent.prototype.componentDidUpdate = function () {
  62989. this.updatePreview();
  62990. };
  62991. TextureLineComponent.prototype.updatePreview = function () {
  62992. TextureLineComponent.UpdatePreview(this.canvasRef.current, this.props.texture, this.props.width, this.state, undefined, this.props.globalState);
  62993. };
  62994. TextureLineComponent.UpdatePreview = function (previewCanvas, texture, width, options, onReady, globalState) {
  62995. if (!texture.isReady() && texture._texture) {
  62996. texture._texture.onLoadedObservable.addOnce(function () {
  62997. TextureLineComponent.UpdatePreview(previewCanvas, texture, width, options, onReady, globalState);
  62998. });
  62999. }
  63000. var scene = texture.getScene();
  63001. var engine = scene.getEngine();
  63002. var size = texture.getSize();
  63003. var ratio = size.width / size.height;
  63004. var height = (width / ratio) | 1;
  63005. var passPostProcess;
  63006. if (!texture.isCube) {
  63007. 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);
  63008. }
  63009. else {
  63010. 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);
  63011. passCubePostProcess.face = options.face;
  63012. passPostProcess = passCubePostProcess;
  63013. }
  63014. if (!passPostProcess.getEffect().isReady()) {
  63015. // Try again later
  63016. passPostProcess.dispose();
  63017. setTimeout(function () { return TextureLineComponent.UpdatePreview(previewCanvas, texture, width, options, onReady, globalState); }, 250);
  63018. return;
  63019. }
  63020. if (globalState) {
  63021. globalState.blockMutationUpdates = true;
  63022. }
  63023. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  63024. passPostProcess.onApply = function (effect) {
  63025. effect.setTexture("textureSampler", texture);
  63026. };
  63027. var internalTexture = rtt.getInternalTexture();
  63028. if (internalTexture) {
  63029. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  63030. // Read the contents of the framebuffer
  63031. var numberOfChannelsByLine = width * 4;
  63032. var halfHeight = height / 2;
  63033. //Reading datas from WebGL
  63034. var data = engine.readPixels(0, 0, width, height);
  63035. if (!texture.isCube) {
  63036. if (!options.displayRed || !options.displayGreen || !options.displayBlue) {
  63037. for (var i = 0; i < width * height * 4; i += 4) {
  63038. if (!options.displayRed) {
  63039. data[i] = 0;
  63040. }
  63041. if (!options.displayGreen) {
  63042. data[i + 1] = 0;
  63043. }
  63044. if (!options.displayBlue) {
  63045. data[i + 2] = 0;
  63046. }
  63047. if (options.displayAlpha) {
  63048. var alpha = data[i + 2];
  63049. data[i] = alpha;
  63050. data[i + 1] = alpha;
  63051. data[i + 2] = alpha;
  63052. data[i + 2] = 0;
  63053. }
  63054. }
  63055. }
  63056. }
  63057. //To flip image on Y axis.
  63058. if (texture.invertY || texture.isCube) {
  63059. for (var i = 0; i < halfHeight; i++) {
  63060. for (var j = 0; j < numberOfChannelsByLine; j++) {
  63061. var currentCell = j + i * numberOfChannelsByLine;
  63062. var targetLine = height - i - 1;
  63063. var targetCell = j + targetLine * numberOfChannelsByLine;
  63064. var temp = data[currentCell];
  63065. data[currentCell] = data[targetCell];
  63066. data[targetCell] = temp;
  63067. }
  63068. }
  63069. }
  63070. previewCanvas.width = width;
  63071. previewCanvas.height = height;
  63072. var context = previewCanvas.getContext('2d');
  63073. if (context) {
  63074. // Copy the pixels to the preview canvas
  63075. var imageData = context.createImageData(width, height);
  63076. var castData = imageData.data;
  63077. castData.set(data);
  63078. context.putImageData(imageData, 0, 0);
  63079. if (onReady) {
  63080. onReady();
  63081. }
  63082. }
  63083. // Unbind
  63084. engine.unBindFramebuffer(internalTexture);
  63085. }
  63086. rtt.dispose();
  63087. passPostProcess.dispose();
  63088. previewCanvas.style.height = height + "px";
  63089. if (globalState) {
  63090. globalState.blockMutationUpdates = false;
  63091. }
  63092. };
  63093. TextureLineComponent.prototype.render = function () {
  63094. var _this = this;
  63095. var texture = this.props.texture;
  63096. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  63097. !this.props.hideChannelSelect && texture.isCube &&
  63098. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  63099. 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"),
  63100. 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"),
  63101. 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"),
  63102. 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"),
  63103. 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"),
  63104. 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")),
  63105. !this.props.hideChannelSelect && !texture.isCube &&
  63106. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  63107. 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"),
  63108. 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"),
  63109. 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"),
  63110. 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"),
  63111. 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")),
  63112. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: this.canvasRef, className: "preview" })));
  63113. };
  63114. return TextureLineComponent;
  63115. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63116. /***/ }),
  63117. /***/ "./sharedComponents/vector2LineComponent.tsx":
  63118. /*!***************************************************!*\
  63119. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  63120. \***************************************************/
  63121. /*! exports provided: Vector2LineComponent */
  63122. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63123. "use strict";
  63124. __webpack_require__.r(__webpack_exports__);
  63125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  63126. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63127. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63128. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63129. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  63130. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  63131. /* 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");
  63132. var Vector2LineComponent = /** @class */ (function (_super) {
  63133. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2LineComponent, _super);
  63134. function Vector2LineComponent(props) {
  63135. var _this = _super.call(this, props) || this;
  63136. _this._localChange = false;
  63137. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  63138. return _this;
  63139. }
  63140. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  63141. var nextPropsValue = nextProps.target[nextProps.propertyName];
  63142. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  63143. nextState.value = nextPropsValue.clone();
  63144. this._localChange = false;
  63145. return true;
  63146. }
  63147. return false;
  63148. };
  63149. Vector2LineComponent.prototype.switchExpandState = function () {
  63150. this._localChange = true;
  63151. this.setState({ isExpanded: !this.state.isExpanded });
  63152. };
  63153. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  63154. if (this.props.onChange) {
  63155. this.props.onChange(this.state.value);
  63156. }
  63157. if (!this.props.onPropertyChangedObservable) {
  63158. return;
  63159. }
  63160. this.props.onPropertyChangedObservable.notifyObservers({
  63161. object: this.props.target,
  63162. property: this.props.propertyName,
  63163. value: this.state.value,
  63164. initialValue: previousValue
  63165. });
  63166. };
  63167. Vector2LineComponent.prototype.updateStateX = function (value) {
  63168. this._localChange = true;
  63169. var store = this.state.value.clone();
  63170. this.props.target[this.props.propertyName].x = value;
  63171. this.state.value.x = value;
  63172. this.setState({ value: this.state.value });
  63173. this.raiseOnPropertyChanged(store);
  63174. };
  63175. Vector2LineComponent.prototype.updateStateY = function (value) {
  63176. this._localChange = true;
  63177. var store = this.state.value.clone();
  63178. this.props.target[this.props.propertyName].y = value;
  63179. this.state.value.y = value;
  63180. this.setState({ value: this.state.value });
  63181. this.raiseOnPropertyChanged(store);
  63182. };
  63183. Vector2LineComponent.prototype.render = function () {
  63184. var _this = this;
  63185. 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"] });
  63186. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  63187. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  63188. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  63189. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  63190. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  63191. this.state.isExpanded &&
  63192. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  63193. 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); } }),
  63194. 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); } }))));
  63195. };
  63196. Vector2LineComponent.defaultProps = {
  63197. step: 0.001,
  63198. };
  63199. return Vector2LineComponent;
  63200. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63201. /***/ }),
  63202. /***/ "./sharedComponents/vector3LineComponent.tsx":
  63203. /*!***************************************************!*\
  63204. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  63205. \***************************************************/
  63206. /*! exports provided: Vector3LineComponent */
  63207. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63208. "use strict";
  63209. __webpack_require__.r(__webpack_exports__);
  63210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  63211. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63212. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63213. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63214. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  63215. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  63216. /* 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");
  63217. var Vector3LineComponent = /** @class */ (function (_super) {
  63218. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3LineComponent, _super);
  63219. function Vector3LineComponent(props) {
  63220. var _this = _super.call(this, props) || this;
  63221. _this._localChange = false;
  63222. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  63223. return _this;
  63224. }
  63225. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  63226. var nextPropsValue = nextProps.target[nextProps.propertyName];
  63227. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  63228. nextState.value = nextPropsValue.clone();
  63229. this._localChange = false;
  63230. return true;
  63231. }
  63232. return false;
  63233. };
  63234. Vector3LineComponent.prototype.switchExpandState = function () {
  63235. this._localChange = true;
  63236. this.setState({ isExpanded: !this.state.isExpanded });
  63237. };
  63238. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  63239. if (this.props.onChange) {
  63240. this.props.onChange(this.state.value);
  63241. }
  63242. if (!this.props.onPropertyChangedObservable) {
  63243. return;
  63244. }
  63245. this.props.onPropertyChangedObservable.notifyObservers({
  63246. object: this.props.target,
  63247. property: this.props.propertyName,
  63248. value: this.state.value,
  63249. initialValue: previousValue
  63250. });
  63251. };
  63252. Vector3LineComponent.prototype.updateVector3 = function () {
  63253. var store = this.props.target[this.props.propertyName].clone();
  63254. this.props.target[this.props.propertyName] = this.state.value;
  63255. this.setState({ value: store });
  63256. this.raiseOnPropertyChanged(store);
  63257. };
  63258. Vector3LineComponent.prototype.updateStateX = function (value) {
  63259. this._localChange = true;
  63260. this.state.value.x = value;
  63261. this.updateVector3();
  63262. };
  63263. Vector3LineComponent.prototype.updateStateY = function (value) {
  63264. this._localChange = true;
  63265. this.state.value.y = value;
  63266. this.updateVector3();
  63267. };
  63268. Vector3LineComponent.prototype.updateStateZ = function (value) {
  63269. this._localChange = true;
  63270. this.state.value.z = value;
  63271. this.updateVector3();
  63272. };
  63273. Vector3LineComponent.prototype.render = function () {
  63274. var _this = this;
  63275. 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"] });
  63276. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  63277. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  63278. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  63279. 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)),
  63280. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  63281. this.state.isExpanded &&
  63282. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  63283. 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); } }),
  63284. 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); } }),
  63285. 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); } }))));
  63286. };
  63287. Vector3LineComponent.defaultProps = {
  63288. step: 0.001,
  63289. };
  63290. return Vector3LineComponent;
  63291. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63292. /***/ }),
  63293. /***/ "./sharedComponents/vector4LineComponent.tsx":
  63294. /*!***************************************************!*\
  63295. !*** ./sharedComponents/vector4LineComponent.tsx ***!
  63296. \***************************************************/
  63297. /*! exports provided: Vector4LineComponent */
  63298. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63299. "use strict";
  63300. __webpack_require__.r(__webpack_exports__);
  63301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4LineComponent", function() { return Vector4LineComponent; });
  63302. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63303. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63304. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63305. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  63306. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  63307. /* 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");
  63308. var Vector4LineComponent = /** @class */ (function (_super) {
  63309. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4LineComponent, _super);
  63310. function Vector4LineComponent(props) {
  63311. var _this = _super.call(this, props) || this;
  63312. _this._localChange = false;
  63313. _this.state = { isExpanded: false, value: (_this.props.value || _this.props.target[_this.props.propertyName]).clone() };
  63314. return _this;
  63315. }
  63316. Vector4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  63317. var nextPropsValue = nextProps.value || nextProps.target[nextProps.propertyName];
  63318. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  63319. nextState.value = nextPropsValue.clone();
  63320. this._localChange = false;
  63321. return true;
  63322. }
  63323. return false;
  63324. };
  63325. Vector4LineComponent.prototype.switchExpandState = function () {
  63326. this._localChange = true;
  63327. this.setState({ isExpanded: !this.state.isExpanded });
  63328. };
  63329. Vector4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  63330. if (this.props.onChange) {
  63331. this.props.onChange(this.state.value);
  63332. }
  63333. if (!this.props.onPropertyChangedObservable || !this.props.propertyName) {
  63334. return;
  63335. }
  63336. this.props.onPropertyChangedObservable.notifyObservers({
  63337. object: this.props.target,
  63338. property: this.props.propertyName,
  63339. value: this.state.value,
  63340. initialValue: previousValue
  63341. });
  63342. };
  63343. Vector4LineComponent.prototype.updateVector4 = function () {
  63344. var store = (this.props.value || this.props.target[this.props.propertyName]).clone();
  63345. if (this.props.value) {
  63346. this.props.value.copyFrom(this.state.value);
  63347. }
  63348. else {
  63349. this.props.target[this.props.propertyName] = this.state.value;
  63350. }
  63351. this.forceUpdate();
  63352. this.raiseOnPropertyChanged(store);
  63353. };
  63354. Vector4LineComponent.prototype.updateStateX = function (value) {
  63355. this._localChange = true;
  63356. this.state.value.x = value;
  63357. this.updateVector4();
  63358. };
  63359. Vector4LineComponent.prototype.updateStateY = function (value) {
  63360. this._localChange = true;
  63361. this.state.value.y = value;
  63362. this.updateVector4();
  63363. };
  63364. Vector4LineComponent.prototype.updateStateZ = function (value) {
  63365. this._localChange = true;
  63366. this.state.value.z = value;
  63367. this.updateVector4();
  63368. };
  63369. Vector4LineComponent.prototype.updateStateW = function (value) {
  63370. this._localChange = true;
  63371. this.state.value.w = value;
  63372. this.updateVector4();
  63373. };
  63374. Vector4LineComponent.prototype.render = function () {
  63375. var _this = this;
  63376. 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"] });
  63377. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  63378. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  63379. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  63380. 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)),
  63381. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  63382. this.state.isExpanded &&
  63383. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  63384. 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); } }),
  63385. 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); } }),
  63386. 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); } }),
  63387. 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); } }))));
  63388. };
  63389. Vector4LineComponent.defaultProps = {
  63390. step: 0.001,
  63391. };
  63392. return Vector4LineComponent;
  63393. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63394. /***/ }),
  63395. /***/ "./stringTools.ts":
  63396. /*!************************!*\
  63397. !*** ./stringTools.ts ***!
  63398. \************************/
  63399. /*! exports provided: StringTools */
  63400. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63401. "use strict";
  63402. __webpack_require__.r(__webpack_exports__);
  63403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringTools", function() { return StringTools; });
  63404. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/dataStorage");
  63405. /* 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__);
  63406. var StringTools = /** @class */ (function () {
  63407. function StringTools() {
  63408. }
  63409. /*
  63410. * Based on FileSaver.js
  63411. * A saveAs() FileSaver implementation.
  63412. *
  63413. * By Eli Grey, http://eligrey.com
  63414. *
  63415. * License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
  63416. * source : http://purl.eligrey.com/github/FileSaver.js
  63417. */
  63418. StringTools._SaveAs = function (blob, name, document) {
  63419. var _this = this;
  63420. if ('download' in HTMLAnchorElement.prototype) {
  63421. var URL = window.URL || window.webkitURL;
  63422. var a = document.createElement('a');
  63423. a.download = name;
  63424. a.rel = 'noopener'; // tabnabbing
  63425. a.href = URL.createObjectURL(blob);
  63426. setTimeout(function () { URL.revokeObjectURL(a.href); }, 4E4); // 40s
  63427. setTimeout(function () { _this._Click(a, document); }, 0);
  63428. return;
  63429. }
  63430. // Open a popup immediately do go around popup blocker
  63431. // Mostly only available on user interaction and the fileReader is async so...
  63432. var popup = open('', '_blank');
  63433. if (popup) {
  63434. popup.document.title = popup.document.body.innerText = 'downloading...';
  63435. }
  63436. var force = blob.type === 'application/octet-stream';
  63437. var isSafari = /constructor/i.test(window.HTMLElement) || window.safari;
  63438. var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent);
  63439. if ((isChromeIOS || (force && isSafari)) && typeof FileReader !== 'undefined') {
  63440. // Safari doesn't allow downloading of blob URLs
  63441. var reader = new FileReader();
  63442. reader.onloadend = function () {
  63443. var url = reader.result;
  63444. url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;');
  63445. if (popup) {
  63446. popup.location.href = url;
  63447. }
  63448. else {
  63449. location = url;
  63450. }
  63451. popup = null;
  63452. };
  63453. reader.readAsDataURL(blob);
  63454. }
  63455. else {
  63456. var URL = window.URL || window.webkitURL;
  63457. var url = URL.createObjectURL(blob);
  63458. if (popup) {
  63459. popup.location.href = url;
  63460. }
  63461. else {
  63462. location.href = url;
  63463. }
  63464. popup = null;
  63465. setTimeout(function () { URL.revokeObjectURL(url); }, 4E4);
  63466. }
  63467. };
  63468. StringTools._Click = function (node, document) {
  63469. try {
  63470. node.dispatchEvent(new MouseEvent('click'));
  63471. }
  63472. catch (e) {
  63473. var evt = document.createEvent('MouseEvents');
  63474. evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null);
  63475. node.dispatchEvent(evt);
  63476. }
  63477. };
  63478. /**
  63479. * Gets the base math type of node material block connection point.
  63480. * @param type Type to parse.
  63481. */
  63482. StringTools.GetBaseType = function (type) {
  63483. return babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"][type];
  63484. };
  63485. /**
  63486. * Download a string into a file that will be saved locally by the browser
  63487. * @param content defines the string to download locally as a file
  63488. */
  63489. StringTools.DownloadAsFile = function (document, content, filename) {
  63490. var blob = new Blob([content], {
  63491. type: "application/octet-stream"
  63492. });
  63493. this._SaveAs(blob, filename, document);
  63494. };
  63495. return StringTools;
  63496. }());
  63497. /***/ }),
  63498. /***/ "babylonjs/Misc/dataStorage":
  63499. /*!****************************************************************************************************!*\
  63500. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  63501. \****************************************************************************************************/
  63502. /*! no static exports found */
  63503. /***/ (function(module, exports) {
  63504. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_dataStorage__;
  63505. /***/ })
  63506. /******/ });
  63507. });
  63508. //# sourceMappingURL=babylon.nodeEditor.max.js.map